Loading u-boot binary from the u-boot command line

I need to to test the modified u-boot binary. I want to test it without writing it on the NOR flash, that already has a working u-boot.
Can I load the modified u-boot binary from the currently running u-boot command line?

Can I load the modified u-boot binary from the currently running u-boot command line?
Yes, U-boot supports chain loading.
On host machine you can use ckermit[1] program to load U-boot image using serial or you can use tftp to load modified U-boot image at SYS_TEXT_BASE address. Once the image is loaded , you can bootm "SYS_TEXT_BASE".
Thanks -Amit

On Fri, Jan 22, 2021 at 9:23 PM Amit Tomar atomar25opensource@gmail.com wrote:
Can I load the modified u-boot binary from the currently running u-boot command line?
Yes, U-boot supports chain loading.
On host machine you can use ckermit[1] program to load U-boot image using serial or you can use tftp to load modified U-boot image at SYS_TEXT_BASE address. Once the image is loaded , you can bootm "SYS_TEXT_BASE".
I think this only works if SYS_TEXT_BASE is a RAM address, which is mostly the case for boards that don't run U-Boot from NOR flash after POR.
Regards, Bin
participants (3)
-
Amit Tomar
-
Bin Meng
-
scd rjcom