[U-Boot] [PATCH v1 1/3] Make mmc init come before env_relocate
Wolfgang Denk
wd at denx.de
Tue Sep 22 20:57:33 CEST 2009
Dear Mingkai Hu,
In message <1252640445-7890-2-git-send-email-Mingkai.hu at freescale.com> you wrote:
> If the environment variables are saved on the MMC/SD card,
> env_relocat can't relocate env from MMC/SD card without mmc init.
>
> Signed-off-by: Mingkai Hu <Mingkai.hu at freescale.com>
I'm biased. I understand that you do this because you need it for the
next patch, which reads the environment from MMC card. But then MMC is
just one out of many storage devices, and with the same right we would
have to move the SCSI or DoC or S-ATA initialization up, because we
could implement storing the environment on such devices, too.
This has not been done so far, because it suffers from the fundamental
problem your code is suffering from, too: you cannot access the
environment early enough, so for example your board boots with a
hard-wird, unchangable console baud rate, despite that you suggest to
the user he could change it.
I don't like that, and therefore tend to NAK the whole approach.
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
Don't hit a man when he's down - kick him; it's easier.
More information about the U-Boot
mailing list