2009-01-09 09:07:59     auto load & boot

Document created by Aaronwu Employee on Sep 18, 2013
Version 1Show Document
  • View in full screen mode

2009-01-09 09:07:59     auto load & boot

Nikolay Chokoev (IRELAND)

Message: 67720   




How can I compile u-boot so at powerup to check first for USB Flash memory, and if exists to load an image from it and to boot the image automatically. Afcourse the file name will be hardcoded.


Best regards,






2009-01-09 09:20:19     Re: auto load & boot

Mike Frysinger (UNITED STATES)

Message: 67721   


you can use the hush shell to add scripting to the default bootcmd.  see the toplevel README for more info.




2009-01-09 11:24:57     Re: auto load & boot

Nikolay Chokoev (IRELAND)

Message: 67729   


I'm trying something easyer at the beginning. I've changed 'ramboot' env variable in 'bfin_adi_common.h' as:


"ramboot=" \

        "usb start;" \

        "fatload usb 0 $(loadaddr) uimage;" \

        "bootm" \

        "\0" \


and I have some error executing 'run ramboot':


bfin> run ramboot


usb     - USB sub-system


The "usb start;fatload usb 0 0x01000000 uimage;bootm" (the content of the ramboot var.) directly to the terminal works fine.


What I'm doing wrong this time?




2009-01-09 12:10:00     Re: auto load & boot

Nikolay Chokoev (IRELAND)

Message: 67731   


Sorry for the last post! I found it. I had 2 instances of 'ramboot' due to previous changes, the first one was wrong. Now it is fine!