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

2016-09-22 Thread Tim Harvey
On Thu, Sep 15, 2016 at 1:24 PM, Felix Fietkau wrote: > On 2016-09-15 20:27, Tim Harvey wrote: >> Felix, >> >> I like the 'idea' of using mtdsplit (very clean) however this break's >> the ability to downgrade firmware. If I take an old firmware image (a >> version of OpenWrt prior to cns3xxx movin

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

2016-09-19 Thread Koen Vandeputte
Hi Felix, Apologies for the late reply. I went on holidays after sending the patch last week. I've extensively tested your changes yesterday and they work very nicely. - Flashing old to new - Flashing new to new - Flashing new to old A big advantage is that no more free space is wasted on the k

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

2016-09-15 Thread Felix Fietkau
On 2016-09-15 20:27, Tim Harvey wrote: > Felix, > > I like the 'idea' of using mtdsplit (very clean) however this break's > the ability to downgrade firmware. If I take an old firmware image (a > version of OpenWrt prior to cns3xxx moving to the 4.4 kernel which > became too large to fit in the ha

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

2016-09-15 Thread Tim Harvey
On Thu, Sep 15, 2016 at 7:36 AM, Tim Harvey wrote: > On Thu, Sep 15, 2016 at 4:03 AM, Felix Fietkau wrote: >> On 2016-09-15 12:16, Felix Fietkau wrote: >>> 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

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

2016-09-15 Thread Tim Harvey
On Thu, Sep 15, 2016 at 4:03 AM, Felix Fietkau wrote: > On 2016-09-15 12:16, Felix Fietkau wrote: >> 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 mappi

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

2016-09-15 Thread Felix Fietkau
On 2016-09-15 12:16, Felix Fietkau wrote: > 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

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

2016-09-15 Thread Felix Fietkau
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 ker

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

2016-09-15 Thread John Crispin
On 15/09/2016 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 k