Dear Vincent,

In message <cab2nkc_zcgbcgovdxgp-q2hnvav-pe11pyn43pj828ifhdp...@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

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
Quote from a recent meeting:   "We are going to continue having these
meetings everyday until I find out why no work is getting done."
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to