[OpenWrt-Devel] [PATCH 2/2] lantiq: get rid of ltq-vdsl-fw
John Crispin
blogic at openwrt.org
Sat Dec 19 07:10:46 EST 2015
On 19/12/2015 09:14, Andre Heider wrote:
> Hi again,
>
> On Fri, Dec 11, 2015 at 11:50 AM, John Crispin <blogic at openwrt.org> wrote:
>> had a chat with hauke. the bdiff between the A and B FW is around 64K.
>> the idea would be to patch dsl_control to have a mechanism similar to
>> the dsl_notify script. dsl_control would call the script once before fw
>> loading with the "prepare" parameter and once the FW is loaded it will
>> call the script again with the "delete" parameter.
>>
>> the script will then make sure to copy/patch the fw to /tmp on prepare
>> and remove it again on delete. this would allow storing both files in
>> the lzma area of the flash and we could runtime patch the FW on demand.
>>
>> volunteers to welcome ;)
>
> I could look into that I guess.
cool
>
> Which would mean we need a host tool to create a binary patch and a
> target tool to apply it.
> Is such a tool already used anywhere in openwrt?
>
http://www.daemonology.net/bsdiff/ and its not used yet. packaging a new
tool is trivial however. just have a look at tools/*/Makefile
> But it'll mean that a patched fw in /tmp would use an additional ~1mb memory.
dsl_control would call the script twice. once when it want the fw to be
prepared and a second time when it is finished which will trigger the
deletion of the fw from /tmp
John
>
> Regards,
> Andre
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list