Flashing Failures
Solutions for firmware flashing issues.
Serial Port Permission Denied
Error
Error: [Errno 13] could not open port /dev/ttyUSB0:
[Errno 13] Permission denied: '/dev/ttyUSB0'
Solution
Temporary fix:
sudo chmod 777 /dev/ttyUSB0
Permanent fix:
sudo usermod -aG dialout $USER
sudo reboot
Device Not Found
Error
Error: could not open port /dev/ttyUSB0:
[Errno 2] No such file or directory
Solutions
-
Check USB Connection
lsusbdmesg | tail -20 -
Try Different USB Port
- Use USB 2.0 port if available
- Try direct connection (no hub)
-
Check Drivers
# Should show FTDI/CP2102 devicelsusb | grep -i "Future\|Silicon\|Qinheng"
Flashing Timeout/Hang
Symptoms
- Command hangs indefinitely
- No progress output
- Must Ctrl+C to stop
Solutions
-
Close Serial Terminals
sudo pkill picocomsudo pkill minicomsudo pkill screen -
Verify Recovery Mode
- SW1.1 = ON
- SW1.2 = OFF
- Power cycle board
-
Check Power
- Stable 5V supply
- Adequate current (3A)
Checksum Mismatch
Error
Verification failed
Checksum mismatch
Solutions
-
Re-download Files
- Corrupted download
- Use different network
-
Verify Files
md5sum prebuilt/sbc/*.bin# Compare with expected checksums -
Try Different SD Card
- For SD-based recovery
Flashing Succeeds but Won't Boot
Symptoms
- Flash reports success
- Board doesn't boot normally
- U-Boot errors
Solutions
-
Verify Normal Boot Mode
- SW1.1 = OFF
- SW1.2 = OFF
-
Check Serial Output
picocom /dev/ttyUSB0 -b 115200 -
Re-flash
- Try recovery mode again
- Use different firmware version
Quick Reference
| Issue | Command |
|---|---|
| Check permissions | ls -la /dev/ttyUSB* |
| Add to dialout | sudo usermod -aG dialout $USER |
| Kill terminals | sudo pkill picocom |
| Check USB | lsusb && dmesg | grep tty |
| Verify switch | Check SW1 position |