A tiny Linux tool that automatically detects the MediaTek Preloader USB port and sends the correct boot command (FASTBOOT / METAMETA / FACTFACT, etc.) without needing to manually pick the serial port.
Perfect for MTK devices that keep connecting/disconnecting as "MT65xx Preloader".
Run:
sudo python mtk-auto-boot FASTBOOTThe tool will:
- Wait for the MTK preloader VID/PID →
0e8d:2000 - Auto-detect
/dev/ttyACM* - Send the boot sequence until the device confirms it
Then it exits.
Requirements:
sudo apt install python3-serialMake it executable:
chmod +x mtk_auto_boot.py(If you installed the packaged version, it’s already available as mtk-auto-boot.)
If you get:
Permission denied: '/dev/ttyACM0'
Add your user to the dialout group:
sudo usermod -aG dialout $USERLog out & back in.
or
sudo python mtk-auto-boot FASTBOOTMediaTek preloaders flash on/off constantly. This script removes the guesswork and automates the boot-sequence handshake so you can quickly enter FASTBOOT or META mode.
If you want a cleaner or fancier version later (badge style, logo, screenshots), I can bump it up.