Project

General

Profile

Bootcmd break

Added by Tim Eastham over 11 years ago

I am presently storing the firmware in non-volatile memory when I hand it off for testing. The problem is, sometimes I need to just download some code into ram to test. Is there a way to provide an opportunity to break in a bootcmd? Here is what I have:

bootcmd = 'sf probe 0;sf read 0xc0700000 0x580000 0x80000;loadfpga 0xc0700000;sf read 0xc0700000 0x100000 0x280000;bootelf 0xc0700000'

Before it calls the sf read after the loadfpga, is there a command I can call that will give the user an option to break out? Something like the countdown that happens before the bootcmd would be cool.

Thanks,
Tim


Replies (2)

RE: Bootcmd break - Added by Michael Williamson over 11 years ago

Tim,

Just hit a key and break and load the code manually?

If you want the FPGA to be loaded, then we often make a separate script for loading the fpga, e.g:

setenv progfpga 'sf probe 0;sf read 0xc0700000 0x580000 0x80000;loadfpga 0xc0700000'

than you can "run progfpga" to load the fpga up and press on with your manual loads.

Similarly you can make your a variable called loadapp

setenv loadapp 'sf probe 0; sf read 0xc0700000 0x100000 0x280000;bootelf 0xc0700000'

you can reassign the bootcmd to something like 'run progfpga; run loadapp'

That's about all I have...

-Mike

RE: Bootcmd break - Added by Tim Eastham over 11 years ago

That is exactly what I need. Thanks Mike.

    (1-2/2)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)