diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2012-04-29 11:44:38 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2012-04-29 13:14:51 -0300 |
commit | 45562de13cdf0fe92ae2c2976ef92cb1595fdcd5 (patch) | |
tree | 43e54cb9c682f8a86ed644117e8d16be04954f25 | |
parent | 7e2060edec294c46522b5c9c00600e6ef9faf777 (diff) | |
download | meta-freescale-45562de13cdf0fe92ae2c2976ef92cb1595fdcd5.tar.gz |
u-boot-imx: mx53qsb: fix environment to work with generated sdcard layout
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r-- | meta-fsl-arm/recipes-bsp/u-boot/u-boot-imx/mx53_loco_bootenv.patch | 51 | ||||
-rw-r--r-- | meta-fsl-arm/recipes-bsp/u-boot/u-boot-imx_2009.08.bb | 5 |
2 files changed, 54 insertions, 2 deletions
diff --git a/meta-fsl-arm/recipes-bsp/u-boot/u-boot-imx/mx53_loco_bootenv.patch b/meta-fsl-arm/recipes-bsp/u-boot/u-boot-imx/mx53_loco_bootenv.patch new file mode 100644 index 000000000..768cf99fa --- /dev/null +++ b/meta-fsl-arm/recipes-bsp/u-boot/u-boot-imx/mx53_loco_bootenv.patch | |||
@@ -0,0 +1,51 @@ | |||
1 | diff --git a/include/configs/mx53_loco.h b/include/configs/mx53_loco.h | ||
2 | index 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=2\0" \ | ||
29 | + "mmcroot=/dev/mmcblk0p3 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 | |||
diff --git a/meta-fsl-arm/recipes-bsp/u-boot/u-boot-imx_2009.08.bb b/meta-fsl-arm/recipes-bsp/u-boot/u-boot-imx_2009.08.bb index 8131a2cef..06332848c 100644 --- a/meta-fsl-arm/recipes-bsp/u-boot/u-boot-imx_2009.08.bb +++ b/meta-fsl-arm/recipes-bsp/u-boot/u-boot-imx_2009.08.bb | |||
@@ -11,9 +11,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4c6cde5df68eff615d36789dc18edd3b" | |||
11 | 11 | ||
12 | DEPENDS_mxs += "elftosb-native" | 12 | DEPENDS_mxs += "elftosb-native" |
13 | 13 | ||
14 | PR = "r4" | 14 | PR = "r5" |
15 | 15 | ||
16 | SRC_URI = "git://opensource.freescale.com/pub/scm/imx/uboot-imx.git;tag=rel_imx_2.6.38_11.11.01;protocol=http" | 16 | SRC_URI = "git://opensource.freescale.com/pub/scm/imx/uboot-imx.git;tag=rel_imx_2.6.38_11.11.01;protocol=http \ |
17 | file://mx53_loco_bootenv.patch" | ||
17 | 18 | ||
18 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |
19 | 20 | ||