summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/u-boot/u-boot-imx/mx53_loco_bootenv.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-imx/mx53_loco_bootenv.patch')
-rw-r--r--recipes-bsp/u-boot/u-boot-imx/mx53_loco_bootenv.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot-imx/mx53_loco_bootenv.patch b/recipes-bsp/u-boot/u-boot-imx/mx53_loco_bootenv.patch
new file mode 100644
index 00000000..4b0ac9bf
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot-imx/mx53_loco_bootenv.patch
@@ -0,0 +1,51 @@
1diff --git a/include/configs/mx53_loco.h b/include/configs/mx53_loco.h
2index 0f57f78..e8a6414 100644
3--- a/include/configs/mx53_loco.h
4+++ b/include/configs/mx53_loco.h
5@@ -114,22 +114,30 @@
6 #define CONFIG_RD_LOADADDR (CONFIG_LOADADDR + 0x300000)
7
8 #define CONFIG_EXTRA_ENV_SETTINGS \
9- "netdev=eth0\0" \
10- "ethprime=FEC0\0" \
11- "uboot=u-boot.bin\0" \
12- "kernel=uImage\0" \
13- "nfsroot=/opt/eldk/arm\0" \
14- "bootargs_base=setenv bootargs console=ttymxc0,115200\0"\
15- "bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs "\
16- "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0"\
17- "bootcmd_net=run bootargs_base bootargs_nfs; " \
18- "tftpboot ${loadaddr} ${kernel}; bootm\0" \
19- "bootargs_mmc=setenv bootargs ${bootargs} ip=dhcp " \
20- "root=/dev/mmcblk0p1 rootwait rw\0" \
21- "bootcmd_mmc=run bootargs_base bootargs_mmc; " \
22- "mmc dev 0; " \
23- "mmc read ${loadaddr} 0x800 0x1800; bootm\0" \
24- "bootcmd=run bootcmd_mmc\0" \
25+ "script=boot.scr\0" \
26+ "uimage=uImage\0" \
27+ "mmcdev=0\0" \
28+ "mmcpart=1\0" \
29+ "mmcroot=/dev/mmcblk0p2 rw\0" \
30+ "mmcrootfstype=ext3 rootwait\0" \
31+ "mmcargs=setenv bootargs console=ttymxc0,${baudrate} " \
32+ "root=${mmcroot} " \
33+ "rootfstype=${mmcrootfstype}\0" \
34+ "loadbootscript=" \
35+ "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
36+ "bootscript=echo Running bootscript from mmc ...; " \
37+ "source\0" \
38+ "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \
39+ "mmcboot=echo Booting from mmc ...; " \
40+ "run mmcargs; " \
41+ "bootm\0" \
42+ "netargs=setenv bootargs console=ttymxc0,${baudrate} " \
43+ "root=/dev/nfs " \
44+ "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
45+ "netboot=echo Booting from net ...; " \
46+ "run netargs; " \
47+ "dhcp ${uimage}; bootm\0" \
48+ "bootcmd=run loaduimage; run mmcboot;\0" \
49 \
50
51