projects
/
openwrt
/
staging
/
yousong.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fa01e2
)
ramips: fix Netgear EX2700 images
author
Joseph C. Lehner
<
[email protected]
>
Mon, 30 May 2016 10:59:33 +0000
(12:59 +0200)
committer
John Crispin
<
[email protected]
>
Mon, 30 May 2016 20:52:59 +0000
(22:52 +0200)
The previous image creation code would have failed if the
unpadded kernel uImage size was less than 64 bytes from the
next erase block boundary. Fix that.
Signed-off-by: Joseph C. Lehner <
[email protected]
>
target/linux/ramips/image/mt7620.mk
patch
|
blob
|
history
diff --git
a/target/linux/ramips/image/mt7620.mk
b/target/linux/ramips/image/mt7620.mk
index d7acb1b8f97648f496ce069bb5064d02c0aaedc8..d6da803b525dfe0f69a8284bf0861e4a1126bd1e 100644
(file)
--- a/
target/linux/ramips/image/mt7620.mk
+++ b/
target/linux/ramips/image/mt7620.mk
@@
-8,8
+8,9
@@
define Build/tplink-header
endef
define Build/pad-kernel-ex2700
- dd if=$@
[email protected]
bs=64k conv=sync && truncate -s -64
[email protected]
\
- && cat ex2700-fakeroot.uImage >>
[email protected]
&& mv
[email protected]
$@
+ dd if=/dev/zero
[email protected]
bs=64 count=1 && cat $@
[email protected]
\
+ | dd
[email protected]
bs=64k conv=sync && truncate -s -64
[email protected]
\
+ && cat ex2700-fakeroot.uImage >>
[email protected]
&& rm
[email protected]
&& mv
[email protected]
$@
endef
define Build/netgear-header