summaryrefslogtreecommitdiff
path: root/openwrt/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-08-30 14:04:26 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-08-30 14:04:26 +0000
commitc4435096581de4bee1c661a81853d76c9312af52 (patch)
tree21051f05ab21f764db54de6b162f5c9ee24e9215 /openwrt/target/linux
parent40d922651cccf49ce425bef39f4e2dc158953f71 (diff)
downloadmtk-20170518-c4435096581de4bee1c661a81853d76c9312af52.zip
mtk-20170518-c4435096581de4bee1c661a81853d76c9312af52.tar.gz
mtk-20170518-c4435096581de4bee1c661a81853d76c9312af52.tar.bz2
magicbox: add 0x40 to the kernel image size (uImage header)
SVN-Revision: 4720
Diffstat (limited to 'openwrt/target/linux')
-rw-r--r--openwrt/target/linux/magicbox-2.6/patches/002-flash_map.patch3
1 files changed, 2 insertions, 1 deletions
diff --git a/openwrt/target/linux/magicbox-2.6/patches/002-flash_map.patch b/openwrt/target/linux/magicbox-2.6/patches/002-flash_map.patch
index 8038230..fcddb34 100644
--- a/openwrt/target/linux/magicbox-2.6/patches/002-flash_map.patch
+++ b/openwrt/target/linux/magicbox-2.6/patches/002-flash_map.patch
@@ -20,7 +20,7 @@ diff -urN linux.old/drivers/mtd/maps/Kconfig linux.dev/drivers/mtd/maps/Kconfig
diff -urN linux.old/drivers/mtd/maps/magicmap.c linux.dev/drivers/mtd/maps/magicmap.c
--- linux.old/drivers/mtd/maps/magicmap.c 1970-01-01 01:00:00.000000000 +0100
+++ linux.dev/drivers/mtd/maps/magicmap.c 2006-08-30 06:52:34.000000000 +0200
-@@ -0,0 +1,112 @@
+@@ -0,0 +1,113 @@
+/*
+ * magicmap.c: Copyleft 2005 Karol Lewandowski
+ *
@@ -94,6 +94,7 @@ diff -urN linux.old/drivers/mtd/maps/magicmap.c linux.dev/drivers/mtd/maps/magic
+ if (MTD_READ(flash, 12, sizeof(u32), &len, (char *) &size) ||
+ len != 4)
+ return -ENXIO;
++ size += 0x40; /* header size of the uImage */
+ if ((size > 0) && (size < 0x400000)) {
+ /* skip to next erase block */
+ if (size & (flash->erasesize - 1)) {