2104b67b513dcaf06ba0502217c21236c02d5ec1
[openwrt/openwrt.git] / package / boot / uboot-kirkwood / patches / 150-goflexhome.patch
1 --- a/include/configs/goflexhome.h
2 +++ b/include/configs/goflexhome.h
3 @@ -69,17 +69,15 @@
4 */
5 #define CONFIG_BOOTCOMMAND \
6 "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
7 - "ubi part root; " \
8 - "ubifsmount ubi:root; " \
9 - "ubifsload 0x800000 ${kernel}; " \
10 + "ubi part ubi; " \
11 + "ubi read 0x800000 kernel; " \
12 "bootm 0x800000"
13
14 #define CONFIG_EXTRA_ENV_SETTINGS \
15 "console=console=ttyS0,115200\0" \
16 "mtdids=nand0=orion_nand\0" \
17 - "mtdparts="CONFIG_MTDPARTS_DEFAULT \
18 - "kernel=/boot/uImage\0" \
19 - "bootargs_root=ubi.mtd=root root=ubi0:root rootfstype=ubifs ro\0"
20 + "mtdparts="CONFIG_MTDPARTS_DEFAULT "\0" \
21 + "bootargs_root=\0"
22
23 /*
24 * Ethernet Driver configuration
25 --- a/configs/goflexhome_defconfig
26 +++ b/configs/goflexhome_defconfig
27 @@ -21,7 +21,7 @@ CONFIG_CMD_EXT4=y
28 CONFIG_CMD_FAT=y
29 CONFIG_CMD_JFFS2=y
30 CONFIG_MTDIDS_DEFAULT="nand0=orion_nand"
31 -CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:1m(uboot),6M(uImage),-(root)"
32 +CONFIG_MTDPARTS_DEFAULT="mtdparts=orion_nand:1m(uboot),255m(ubi)"
33 CONFIG_CMD_UBI=y
34 CONFIG_ISO_PARTITION=y
35 CONFIG_ENV_IS_IN_NAND=y