[U-Boot-Users] Query about U-Boot NAND ENV section
Wolfgang Denk
wd at denx.de
Fri Feb 15 17:02:01 CET 2008
In message <91C99CB54D033E469E6D6702BAE5744701CEF3F7 at dbde01.ent.ti.com> you wrote:
>
> I tried to dig into this issue, and found that, U-Boot for NAND Flash is
> designed the same way. The function "nand_init" gets invoked after
> "env_init" and "serial_init", and sue to this U-Boot always uses the
> default baudrate.
Thjis is a dilemma - U-Boot tries to support porting and debugging by
enabling the serial console very, very early, typically long before
relocation to RAM. In this state, we have only a verly limited
environment - small stack, no writable data segment, no BSS, etc.
This is not sufficient for the (pretty complicated) NAND flash
driver. So U-Boot cannot read the baudrate setting from the
environment in NAND...
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Remember, an int is not always 16 bits. I'm not sure, but if the
80386 is one step closer to Intel's slugfest with the CPU curve that
is aymptotically approaching a real machine, perhaps an int has been
implemented as 32 bits by some Unix vendors...? - Derek Terveer
More information about the U-Boot
mailing list