
Dear Vincent,
In message CAB2nKc_zcgbCGOVdXgP-Q2hNVAv-PE11pYn43PJ828iFHdPftg@mail.gmail.com you wrote:
I managed to flash a yocto BSP with SPL with USB+serial with Fabio help, but I found it a bit painful, and hard to automate.
- Go into serial console to reboot, interrupt uboot, and type bmode usb.
- Quit serial console
- Launch imx_usb_loader,
- Send u-boot.bin with ymodem (teraterm on windows, kermit on linux)
- Go back to serial console, interrupt u-boot
- Mount Usb OTG (ums 1 mmc 0)
- Flash wic.gz image
- Reset u-boot.
A bit easier (though not really much) is it when you use ckermit as terminal program. Then you can run both the serial connections and the download with in the same command environment. See [1] for a well tested standard configuration for Kermit; in addition, you may want to add something like this:
define sx !sx %1 %2 %3 %4 %5 %6 %7 %8 %9 < \v(line) > \v(line) define rx !rx %1 %2 %3 %4 %5 %6 %7 %8 %9 < \v(line) > \v(line) define sy !sz --ymodem %1 %2 %3 %4 %5 %6 %7 %8 %9 < \v(line) > \v(line) define ry !rz --ymodem %1 %2 %3 %4 %5 %6 %7 %8 %9 < \v(line) > \v(line) define sz !sz %1 %2 %3 %4 %5 %6 %7 %8 %9 < \v(line) > \v(line) define rz !rz %1 %2 %3 %4 %5 %6 %7 %8 %9 < \v(line) > \v(line)
to add macros for sending and receiving files suing X-, Y- and Z-modem protocols.
Best regards,
Wolfgang Denk