> > Correct me if I'm wrong but I thought all the data beyond IMAGE_SIZE 
> > remain intact by OpenWrt on firstboot. Experimenting with Archer C7 v1 
> > recently I was able to flash OpenWrt image (ar71xx) and after reflashing 
> > tplink fw previous settings were still valid indicating config partition 
> > hasn't 
> > been overwritten. 
> > At least TL-MR22U has config partition of 64KB and Archer C7 has 128KB 
> > - I've gone through GPL sources of Archer and it seems between two 
> > firmware versions this partition was increased from 64 to 128KB, actually I 
> > discovered this by hexdiff-ing u-boot versions from each firmware version 
> Nevertheless, addressing this with IMAGE_SIZE would still be just a hack. 
> If there is config data to be preserved, one should add a partition for it. 
> Then IMAGE_SIZE would just shrink according to the (then correct) firmware 
> partition. Now that we have DTS files with individual partition > schemes, 
> this would be even easier than for ar71xx.
> Best 
> Adrian 

To put this in a more positive frame:

If you think that there is a config partition on C7v1 or other devices and you 
know where it is, please send a patch adding it as read-only partition in DTS.

Best

Adrian

Attachment: openpgp-digital-signature.asc
Description: PGP signature

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to