uboot-kirkwood/goflexhome: explicit define the size of the last partition
[openwrt.git] / package / boot / uboot-kirkwood / patches / 150-goflexhome.patch
1 Index: u-boot-2014.10/include/configs/goflexhome.h
2 ===================================================================
3 --- u-boot-2014.10.orig/include/configs/goflexhome.h
4 +++ u-boot-2014.10/include/configs/goflexhome.h
5 @@ -96,20 +96,18 @@
6   */
7  #define CONFIG_BOOTCOMMAND \
8         "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
9 -       "ubi part root; " \
10 -       "ubifsmount ubi:root; " \
11 -       "ubifsload 0x800000 ${kernel}; " \
12 -       "bootm 0x800000"
13 +       "ubi part ubi; "                                                \
14 +       "ubi read 0x800000 kernel; "                            \
15 +       "bootz 0x800000"
16  
17  #define CONFIG_MTDPARTS \
18 -       "mtdparts=orion_nand:1m(uboot),6M(uImage),-(root)\0"
19 +       "mtdparts=orion_nand:1m(uboot),255m(ubi)\0"
20  
21  #define CONFIG_EXTRA_ENV_SETTINGS \
22         "console=console=ttyS0,115200\0" \
23         "mtdids=nand0=orion_nand\0" \
24         "mtdparts="CONFIG_MTDPARTS \
25 -       "kernel=/boot/uImage\0" \
26 -       "bootargs_root=ubi.mtd=root root=ubi0:root rootfstype=ubifs ro\0"
27 +       "bootargs_root=\0"
28  
29  /*
30   * Ethernet Driver configuration