aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2013-04-06 22:22:26 +0000
committerHauke Mehrtens <hauke@openwrt.org>2013-04-06 22:22:26 +0000
commit94d356b7e11e13f1e4e40b79ede7dc7812ad117b (patch)
treed441a11ee1198baea8962302e95d62caf856be9f
parent825fbbb9005c0521c79ccd282ff6b3f03c755638 (diff)
downloadmaster-187ad058-94d356b7e11e13f1e4e40b79ede7dc7812ad117b.tar.gz
master-187ad058-94d356b7e11e13f1e4e40b79ede7dc7812ad117b.tar.bz2
master-187ad058-94d356b7e11e13f1e4e40b79ede7dc7812ad117b.zip
brcm47xx: use old partition names again for kernel 3.8
This fixes sysupgrade. The partition names are used all over the Internet in various howtos. Thank you russell for spotting this problem. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36235 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/brcm47xx/base-files/etc/uci-defaults/09_fix_crc2
-rw-r--r--target/linux/brcm47xx/patches-3.8/028-mtd-bcm47xxpart-use-old-part-names.patch20
2 files changed, 21 insertions, 1 deletions
diff --git a/target/linux/brcm47xx/base-files/etc/uci-defaults/09_fix_crc b/target/linux/brcm47xx/base-files/etc/uci-defaults/09_fix_crc
index 981d114b35..b411d8495f 100644
--- a/target/linux/brcm47xx/base-files/etc/uci-defaults/09_fix_crc
+++ b/target/linux/brcm47xx/base-files/etc/uci-defaults/09_fix_crc
@@ -5,7 +5,7 @@
#
do_fixcrc() {
- mtd fixtrx firmware
+ mtd fixtrx linux
}
case `uname -r` in
diff --git a/target/linux/brcm47xx/patches-3.8/028-mtd-bcm47xxpart-use-old-part-names.patch b/target/linux/brcm47xx/patches-3.8/028-mtd-bcm47xxpart-use-old-part-names.patch
new file mode 100644
index 0000000000..e43bb87283
--- /dev/null
+++ b/target/linux/brcm47xx/patches-3.8/028-mtd-bcm47xxpart-use-old-part-names.patch
@@ -0,0 +1,20 @@
+--- a/drivers/mtd/bcm47xxpart.c
++++ b/drivers/mtd/bcm47xxpart.c
+@@ -134,7 +134,7 @@ static int bcm47xxpart_parse(struct mtd_
+ trx = (struct trx_header *)buf;
+
+ trx_part = curr_part;
+- bcm47xxpart_add_part(&parts[curr_part++], "firmware",
++ bcm47xxpart_add_part(&parts[curr_part++], "linux",
+ offset, 0);
+
+ i = 0;
+@@ -147,7 +147,7 @@ static int bcm47xxpart_parse(struct mtd_
+ i++;
+ }
+
+- bcm47xxpart_add_part(&parts[curr_part++], "linux",
++ bcm47xxpart_add_part(&parts[curr_part++], "kernel",
+ offset + trx->offset[i], 0);
+ i++;
+