[LEDE-DEV] [RFC] ADSL Modem Allnet All0333CJ Rev.C / Amazon-SE SoC

Mathias Kresin dev at kresin.me
Fri Nov 4 07:58:53 PDT 2016


2016-11-04 9:46 GMT+01:00 Tino Reichardt <list-lede at mcmilk.de>:
> * Alberto Bursi <alberto.bursi at outlook.it> wrote:
>> On 11/03/2016 10:13 AM, Tino Reichardt wrote:
>> > Most of these Modems have only a very small flash of 2MB or 4MB .. so
>> > there is no need for lot of stuff. My aim is to have nice DSL modems
>> > with recent kernel and dsl firmware. pppoe is not really needed, but
>> > will fit also into that flash, I think.
>> >
>>
>> Default LEDE image (router firmware with switch/router/firewall/wifi)
>> fits in 4MiB of flash (also with luci webinterface, if it is integrated
>> at firmware generation time), there are plenty of other supported
>> devices with 4MiB of flash.
>
> Yes, my device has 4MB.

That is what the xway_legacy target is for. It was created to support
4MB flash devices by removing some kernel options and shrink the
kernel.

> Yes, I will not touch the loader then... currently this loader is the
> main problem I have, cause it's not loading my new built kernel 4.4.30 :(
>
> This is the error I get:
> <snip>
> AMAZON_SE # tftpboot
> Using AMAZON_SE Switch device
> TFTP from server 192.168.1.2; our IP address is 192.168.1.1
> Filename 'uImage'.
> Load address: 0x80100000
> Loading: #################################################################
>          #################################################################
>          #################################################################
>          #################################################################
>          #################################################################
>          #################################################################
>          #################################################################
>          #################################################################
>          #################################################################
>          ##############################
> done
> Bytes transferred = 3145732 (300004 hex)
> AMAZON_SE # bootm 0x80100000
> Checking Images Integrity ...
>   Kernel: OK
>   Rootfs: OK
> ## Booting image at 80100000 ...
>    Image Name:   MIPS LEDE Linux-4.4.30
>    Created:      2016-11-03   7:34:38 UTC
>    Image Type:   MIPS Linux Kernel Image (lzma compressed)
>    Data Size:    1358940 Bytes =  1.3 MB
>    Load Address: 80002000
>    Entry Point:  80002000
>    Verifying Checksum ... OK
>    Uncompressing Kernel Image ... ERROR: LzmaDecode.c, 561
>
> Decoding error = 1
> LZMA ERROR 1 - must RESET board to recover

Not sure what the root cause of the error is, but I've two possible
workarounds in mind. You can try to tftp the kernel to memory address
0x81000000:

  tftp 0x81000000 uImage; bootm 0x81000000

The brnboot bootloader for example doesn't like lzma with dictionary
at all. To workaround the issue we are using lzma without dictionary
(lzma-no-dict build step) for brnboot compatible images. Might work
with this u-boot as well.

Mathias



More information about the Lede-dev mailing list