openwrtv3/package/boot/uboot-kirkwood/patches/150-goflexhome.patch
Luka Perkov 9d0c1f484b uboot-kirkwood/goflexhome: explicit define the size of the last partition
Explicit sets the size of the mtdparts, because the kernel has also an explicit value.
If they have diffent sizes the ubi won't be detected.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 49018
2016-03-14 17:06:18 +00:00

30 lines
952 B
Diff

Index: u-boot-2014.10/include/configs/goflexhome.h
===================================================================
--- u-boot-2014.10.orig/include/configs/goflexhome.h
+++ u-boot-2014.10/include/configs/goflexhome.h
@@ -96,20 +96,18 @@
*/
#define CONFIG_BOOTCOMMAND \
"setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
- "ubi part root; " \
- "ubifsmount ubi:root; " \
- "ubifsload 0x800000 ${kernel}; " \
- "bootm 0x800000"
+ "ubi part ubi; " \
+ "ubi read 0x800000 kernel; " \
+ "bootz 0x800000"
#define CONFIG_MTDPARTS \
- "mtdparts=orion_nand:1m(uboot),6M(uImage),-(root)\0"
+ "mtdparts=orion_nand:1m(uboot),255m(ubi)\0"
#define CONFIG_EXTRA_ENV_SETTINGS \
"console=console=ttyS0,115200\0" \
"mtdids=nand0=orion_nand\0" \
"mtdparts="CONFIG_MTDPARTS \
- "kernel=/boot/uImage\0" \
- "bootargs_root=ubi.mtd=root root=ubi0:root rootfstype=ubifs ro\0"
+ "bootargs_root=\0"
/*
* Ethernet Driver configuration