[LEDE-DEV] [PATCH v2 2/3] ipq806x: Add support for new device: tew827dru

Mathias Kresin dev at kresin.me
Wed Sep 14 23:26:27 PDT 2016


14.09.2016 14:17, J Mo:
> On 09/11/2016 01:39 AM, Mathias Kresin wrote:
>> This one is quite neat. It allows me to verify my changes. Would you
>> please try the attached patch.
>>
>> Before:
>>
>> $ ./caldata -i './caldata1.bin' -v
>> Size: 12064
>> MAC: 12:34:56:78:90:12
>> Checksum: 0xdf10 (OK)
>>
>> Patched:
>>
>> $ ./caldata -v -i ./patched.bin
>> Size: 12064
>> MAC: aa:bb:cc:dd:ee:ff
>> Checksum: 0x184c (OK)
>>
>
> Just tested..... firmware fails to load.

There was an endianess issue in the script which is fixed. Can we 
continue discussing my approach to patch the mac address at 
https://github.com/lede-project/source/pull/324? It is about the same 
topic and we already made some progress. The latest version of my patch 
is linked there as well.

It doesn't work yet completely, since there seams to be something in the 
caldata which triggers the replacement of parts of the mac address with 
random(?) values.

Mathias



More information about the Lede-dev mailing list