All of lore.kernel.org
 help / color / mirror / Atom feed
* Loading u-boot binary from the u-boot command line
@ 2021-01-22  7:49 scd rjcom
  2021-01-22 13:23 ` Amit Tomar
  0 siblings, 1 reply; 3+ messages in thread
From: scd rjcom @ 2021-01-22  7:49 UTC (permalink / raw)
  To: u-boot

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?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Loading u-boot binary from the u-boot command line
  2021-01-22  7:49 Loading u-boot binary from the u-boot command line scd rjcom
@ 2021-01-22 13:23 ` Amit Tomar
  2021-01-22 14:32   ` Bin Meng
  0 siblings, 1 reply; 3+ messages in thread
From: Amit Tomar @ 2021-01-22 13:23 UTC (permalink / raw)
  To: u-boot

>
> 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

[1]: http://blog.mezeske.com/?p=483

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Loading u-boot binary from the u-boot command line
  2021-01-22 13:23 ` Amit Tomar
@ 2021-01-22 14:32   ` Bin Meng
  0 siblings, 0 replies; 3+ messages in thread
From: Bin Meng @ 2021-01-22 14:32 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-22 14:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-22  7:49 Loading u-boot binary from the u-boot command line scd rjcom
2021-01-22 13:23 ` Amit Tomar
2021-01-22 14:32   ` Bin Meng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.