brcm47xx: use old partition names again for kernel 3.8
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 6 Apr 2013 22:22:26 +0000 (22:22 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 6 Apr 2013 22:22:26 +0000 (22:22 +0000)
This fixes sysupgrade. The partition names are used all over the Internet in various howtos.

Thank you russell for spotting this problem.

SVN-Revision: 36235

target/linux/brcm47xx/base-files/etc/uci-defaults/09_fix_crc
target/linux/brcm47xx/patches-3.8/028-mtd-bcm47xxpart-use-old-part-names.patch [new file with mode: 0644]

index 981d114b35cff8914fa3f597db88a2701d319a8c..b411d8495fdb1470102ef9517a2cebca0ecb19e2 100644 (file)
@@ -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 (file)
index 0000000..e43bb87
--- /dev/null
@@ -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++;