This patch is to address mx51evk u-boot issue below.
https://bugs.launchpad.net/u-boot-linaro/+bug/655461
With this patch, an auto boot mx51evk Linaro image on mmc becomes possible.
This patch is to add mmc boot support to default mx51evk env. It also cleans some unused env like netdev, uboot and redundant env like loadaddr since CONFIG_LOADADDR already defines it.
Signed-off-by: Shawn Guo shawn.gsc@gmail.com --- include/configs/mx51evk.h | 25 +++++++++++++------------ 1 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/include/configs/mx51evk.h b/include/configs/mx51evk.h index 86a4731..cd04d85 100644 --- a/include/configs/mx51evk.h +++ b/include/configs/mx51evk.h @@ -126,18 +126,19 @@
#define CONFIG_LOADADDR 0x90800000 /* loadaddr env var */
-#define CONFIG_EXTRA_ENV_SETTINGS \ - "netdev=eth0\0" \ - "uboot_addr=0xa0000000\0" \ - "uboot=u-boot.bin\0" \ - "loadaddr=0x90800000\0" \ - "bootargs_base=setenv bootargs console=tty "\ - "console=ttymxc0,${baudrate}\0"\ - "bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs "\ - "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0"\ - "bootcmd=run bootcmd_net\0" \ - "bootcmd_net=run bootargs_base bootargs_nfs; " \ - "tftpboot ${loadaddr} ${kernel}; bootm\0" +#define CONFIG_EXTRA_ENV_SETTINGS \ + "mmcdev=0\0" \ + "mmcpart=2\0" \ + "bootargs_base=setenv bootargs console=tty " \ + "console=ttymxc0,${baudrate}\0" \ + "bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs " \ + "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \ + "bootcmd_net=run bootargs_base bootargs_nfs; " \ + "tftpboot ${loadaddr} ${kernel}; bootm\0" \ + "bootcmd_mmc=mmc rescan ${mmcdev}; " \ + "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} boot.scr; " \ + "source\0" \ + "bootcmd=run bootcmd_mmc\0"
#define CONFIG_ARP_TIMEOUT 200UL
On 10 Oct 22, Shawn Guo wrote:
Please send these two u-boot patches to mainline u-boot too and cc: Stefano Babic sbabic@denx.de
/Amit