ath79: image: pad kernel for Adtran/Bluesocket devices
authorTomasz Maciej Nowak <tomek_n@o2.pl>
Tue, 17 Sep 2019 14:21:51 +0000 (16:21 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 21 Sep 2019 20:17:39 +0000 (22:17 +0200)
commit66b7c82bb1767d0c4c1e62ae8051154f182ed2d7
tree693176f1d0674cba14c079f07e098cb79d945ea8
parentd1e3f32dcf63d19dcfe5cb4a1d8437e7a55cb96e
ath79: image: pad kernel for Adtran/Bluesocket devices

It has been reported that using the sysupgrade-tar image will trigger
"lzma_decode failed error". The RedBoot bootloader always loads data
from flash till block size boundary, so if there's no padding it'll also
load the beginning of rootfs, and it seems that lzma_decoder can't handle
that garbage data. Previously the script creating combined-image
silently padded the kernel and rootfs, but since sysupgrade-tar doesn't,
pad the default kernel image.

Fixes: 900330f ("ath79: image: retire combined-image for Adtran/Bluesocket
devices")
Cc: Brian Gonyer <bgonyer@gmail.com>
Cc: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
target/linux/ath79/image/generic.mk