[LEDE-DEV] [PATCH] cns3xxx: backport upstream SPI Flash partition sizes

Felix Fietkau nbd at nbd.name
Thu Sep 15 03:16:26 PDT 2016


On 2016-09-15 11:34, Koen Vandeputte wrote:
> As indicated by Tim Harvey:
> 
> The 4.4 kernel is not easily sized down to below the 1.5MB limit
> imposed by the SPI flash MTD partition mapping. Increase this
> to 2MB where it is for NOR flash devices.
> Additionally add a check that ensures the kernel fits within
> the 2MB limit.
> 
> This resolves boot issues on SPI based boards such as the GW2380/82.
> 
> https://github.com/Gateworks/openwrt/commit/17b860f32fe5739042445eb852109682d6ff7d99
> 
> Signed-off-by: Koen Vandeputte <koen.vandeputte at ncentric.com>
I'm now working on the approach that I encouraged Tim to take when this
issue came up last. I think simply bumping the hardcoded kernel/rootfs
split partition sizes is a hack at best, my solution involves using
mtdsplit to make the kernel/rootfs split dynamic, like on other platforms.
>From what I can tell, the old sysupgrade script is written in a way that
the image format changes will not break sysupgrade from old firmware to
new and vice versa.

- Felix



More information about the Lede-dev mailing list