[LEDE-DEV] [PATCH] ramips: fix AR670W partition alignment
John Crispin
john at phrozen.org
Sun Feb 5 01:15:09 PST 2017
On 05/02/2017 09:59, Claudio Leite wrote:
> mtdsplit_lzma requires that the rootfs be aligned to a block boundary.
> Pad the kernel partition to make this so.
>
> Signed-off-by: Claudio Leite <leitec at gmail.com>
> ---
> target/linux/ramips/image/rt288x.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target/linux/ramips/image/rt288x.mk b/target/linux/ramips/image/rt288x.mk
> index 4a0d6d4..86a5063 100644
> --- a/target/linux/ramips/image/rt288x.mk
> +++ b/target/linux/ramips/image/rt288x.mk
> @@ -14,7 +14,7 @@ define Device/ar670w
> BLOCKSIZE := 64k
> DEVICE_TITLE := Airlink AR670W
> IMAGE_SIZE := $(ralink_default_fw_size_4M)
> - KERNEL := $(KERNEL_DTB)
> + KERNEL := $(KERNEL_DTB) | pad-to $$(BLOCKSIZE)
> IMAGES += factory.bin
> IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | \
> wrg-header wrgn16a_airlink_ar670w
>
Hi
although technically correct, the lzma splitter needs to be fixed to not
have this requirement, instead of adding these patches for all boards.
there is no need for any padding beyond 4byte padding.
John
More information about the Lede-dev
mailing list