aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2012-11-15 16:39:45 +0000
committerHauke Mehrtens <hauke@openwrt.org>2012-11-15 16:39:45 +0000
commit7ff2c6b0f67db4832903a86bfe294bd6c2b4f79f (patch)
treea1a013e7dadfcccc13bf8cb9404abed4c1ac8319
parente16546fc1fc356ea405ccc0e7fcf20fc10826d9d (diff)
downloadmaster-187ad058-7ff2c6b0f67db4832903a86bfe294bd6c2b4f79f.tar.gz
master-187ad058-7ff2c6b0f67db4832903a86bfe294bd6c2b4f79f.tar.bz2
master-187ad058-7ff2c6b0f67db4832903a86bfe294bd6c2b4f79f.zip
brcm47xx: revert r33935: check for .ELF header in partition parser
For sysupgrade the generic image should be used and the special image for the wgt634u is just needed for initial flashing over CFE. russell reported that with this patch sysupgrdae did not worked for him any more and he could not reproduce the error described in #11420. With the patch the linux partition also contained the loader which is in the first 128KB. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34201 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/brcm47xx/patches-3.3/050-mtd-add-bcm47xx-part-parser.patch10
1 files changed, 2 insertions, 8 deletions
diff --git a/target/linux/brcm47xx/patches-3.3/050-mtd-add-bcm47xx-part-parser.patch b/target/linux/brcm47xx/patches-3.3/050-mtd-add-bcm47xx-part-parser.patch
index 0c66603f2e..5381e2f6cc 100644
--- a/target/linux/brcm47xx/patches-3.3/050-mtd-add-bcm47xx-part-parser.patch
+++ b/target/linux/brcm47xx/patches-3.3/050-mtd-add-bcm47xx-part-parser.patch
@@ -26,7 +26,7 @@
obj-$(CONFIG_MTD_CHAR) += mtdchar.o
--- /dev/null
+++ b/drivers/mtd/bcm47xxpart.c
-@@ -0,0 +1,548 @@
+@@ -0,0 +1,542 @@
+/*
+ * Copyright (C) 2006 Felix Fietkau <nbd@openwrt.org>
+ * Copyright (C) 2005 Waldemar Brodkorb <wbx@openwrt.org>
@@ -96,11 +96,6 @@
+ u32 offsets[TRX_MAX_OFFSET]; /* Offsets of partitions from start of header */
+};
+
-+/* for WGT634U search the ELF-header of
-+ * the kernel decompressor instead of TRX
-+ */
-+#define WGT634U_ELF_MAGIC 0x464c457f /* ".ELF" */
-+
+/* for Edimax Print servers which use an additional header
+ * then the firmware on flash looks like :
+ * EDIMAX HEADER | TRX HEADER
@@ -154,8 +149,7 @@
+ }
+
+ /* found a TRX header */
-+ if (le32_to_cpu(trx->magic) == TRX_MAGIC ||
-+ le32_to_cpu(trx->magic) == WGT634U_ELF_MAGIC)
++ if (le32_to_cpu(trx->magic) == TRX_MAGIC)
+ goto found;
+ }
+