[U-Boot] Booting Wandboard through USB

following: - https://lists.denx.de/pipermail/u-boot/2015-May/215573.html - https://lists.denx.de/pipermail/u-boot/2015-June/215606.html
Hi everyone,
I'd like to know if something is going on regarding this topic ?
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.
What is a bit annoying is the use of ymodem to load u-boot.bin. Anybody has a cleaner solution ?
Thanks

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

Hi Vincent,
On Thu, Jul 27, 2017 at 6:05 AM, Vincent Prince vincent.prince.fr@gmail.com wrote:
following:
- https://lists.denx.de/pipermail/u-boot/2015-May/215573.html
- https://lists.denx.de/pipermail/u-boot/2015-June/215606.html
Hi everyone,
I'd like to know if something is going on regarding this topic ?
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.
What is a bit annoying is the use of ymodem to load u-boot.bin. Anybody has a cleaner solution ?
Stefan has sent a patch series that seems to really help on loading SPL + u-boot.img via USB:
https://www.mail-archive.com/u-boot@lists.denx.de/msg259052.html
I haven't had a chance to test it yet as I am currently out of office without hardware access.
Please give it a try and provide your feedback.

Hi Fabio, Stefan,
Indeed i saw it this morning with great enthusiasm, I'm currently in vacation, I'll test it in two weeks when I'll back to work.
Thanks, Vincent
2017-08-05 14:22 GMT+02:00 Fabio Estevam festevam@gmail.com:
Hi Vincent,
On Thu, Jul 27, 2017 at 6:05 AM, Vincent Prince vincent.prince.fr@gmail.com wrote:
following:
- https://lists.denx.de/pipermail/u-boot/2015-May/215573.html
- https://lists.denx.de/pipermail/u-boot/2015-June/215606.html
Hi everyone,
I'd like to know if something is going on regarding this topic ?
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.
What is a bit annoying is the use of ymodem to load u-boot.bin. Anybody has a cleaner solution ?
Stefan has sent a patch series that seems to really help on loading SPL + u-boot.img via USB:
https://www.mail-archive.com/u-boot@lists.denx.de/msg259052.html
I haven't had a chance to test it yet as I am currently out of office without hardware access.
Please give it a try and provide your feedback.

On Sat, Aug 05, 2017 at 03:44:04PM +0200, Vincent Prince wrote:
Hi Fabio, Stefan,
Indeed i saw it this morning with great enthusiasm, I'm currently in vacation, I'll test it in two weeks when I'll back to work.
Add me to the existed people list as this means I can finally add an i.MX target to my CI loop :)
participants (4)
-
Fabio Estevam
-
Tom Rini
-
Vincent Prince
-
Wolfgang Denk