[OpenWrt-Devel] [PATCH 2/3] ath79: fix IMAGE_SIZE for common TP-Link definitions

Adrian Schmutzler mail at adrianschmutzler.de
Thu Aug 8 07:12:10 EDT 2019


> > 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20190808/4e55bafd/attachment.sig>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list