projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix nozomi default
[openwrt.git]
/
target
/
linux
/
magicbox-2.6
/
patches
/
002-flash_map.patch
diff --git
a/target/linux/magicbox-2.6/patches/002-flash_map.patch
b/target/linux/magicbox-2.6/patches/002-flash_map.patch
index
fcddb34
..
e5f803a
100644
(file)
--- a/
target/linux/magicbox-2.6/patches/002-flash_map.patch
+++ b/
target/linux/magicbox-2.6/patches/002-flash_map.patch
@@
-95,7
+95,7
@@
diff -urN linux.old/drivers/mtd/maps/magicmap.c linux.dev/drivers/mtd/maps/magic
+ len != 4)
+ return -ENXIO;
+ size += 0x40; /* header size of the uImage */
+ len != 4)
+ return -ENXIO;
+ size += 0x40; /* header size of the uImage */
-+ if (
(size > 0) && (size < 0x400000)
) {
++ if (
size < 0x400000
) {
+ /* skip to next erase block */
+ if (size & (flash->erasesize - 1)) {
+ size |= (flash->erasesize - 1);
+ /* skip to next erase block */
+ if (size & (flash->erasesize - 1)) {
+ size |= (flash->erasesize - 1);
This page took
0.029578 seconds
and
4
git commands to generate.