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]>
@@ -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] $@
define Build/netgear-header