aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2016-03-14 17:06:16 +0000
committerLuka Perkov <luka@openwrt.org>2016-03-14 17:06:16 +0000
commit4a52a39c1c9fbf319b2403fa00b63c8c38f6ac86 (patch)
treede069e2934c63d9ee3a3be42c041a72963d267f9 /package/boot
parent3afe741938767856f6ea2091feddc9ab92a65607 (diff)
downloadmaster-187ad058-4a52a39c1c9fbf319b2403fa00b63c8c38f6ac86.tar.gz
master-187ad058-4a52a39c1c9fbf319b2403fa00b63c8c38f6ac86.tar.bz2
master-187ad058-4a52a39c1c9fbf319b2403fa00b63c8c38f6ac86.zip
uboot-kirkwood/goflexhome: update bootargs to use new ubi style
Since switching to new ubi(kernel,squashfs,ubifs) layout, the kernel lies in a ubi volume. Dropping the mtd parts because the mtd layout is saved in the device-tree, which is appended to the zImage. Signed-off-by: Alexander Couzens <lynxis@fe80.eu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49016 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/boot')
-rw-r--r--package/boot/uboot-kirkwood/patches/150-goflexhome.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/boot/uboot-kirkwood/patches/150-goflexhome.patch b/package/boot/uboot-kirkwood/patches/150-goflexhome.patch
new file mode 100644
index 0000000000..76daddfe5e
--- /dev/null
+++ b/package/boot/uboot-kirkwood/patches/150-goflexhome.patch
@@ -0,0 +1,30 @@
+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),-(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