[U-Boot] [PATCH/RFC] mx28: print bootmode with cpuinfo

Fabio Estevam festevam at gmail.com
Mon Jan 23 21:33:53 CET 2012


Hi Matthias,

On 1/18/12, Matthias Fuchs <matthias.fuchs at esd.eu> wrote:
> Hi,
>
> while playing around with the mx28evk and differnet bootmedia
> I found it helpful to see the current bootmode without
> running to the board and checking it's switches. Also
> some other CPU (e.g. 440 PowerPCs) print some kind of bootstrap
> configuration during startup.
>
> The patch probably needs some little cleanup. But the main issue might
> be the way how it passes the information from SPL to 2nd stage.
> I am note sure if those scratch registers are somehow holy :-)

I tested your patch and it worked fine.

What I really liked about it is that it fixed a real issue that I was seeing:
after booting the kernel and issuing a "reboot"command, kernel did
shutdown, reset the system, but then U-boot got stuck showing "DRAM: 0
bytes".

So maybe you could split this patch in two parts:

- One patch that touches the HW_DIGCTRL_SCRATCH register (this part is
what fixed the RAM size retrievel after a "reboot" in the kernel

- Another one to show the boot media

Thanks,

Fabio Estevam


More information about the U-Boot mailing list