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

Tino Reichardt list-lede at mcmilk.de
Fri Nov 4 09:00:33 PDT 2016


* Mathias Kresin <dev at kresin.me> wrote:
> 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.

okay

> > 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

I did that also, but it didn't work.
The default Image is lzma, so lzma is okay. But I also tried -d20 and
even without dict. (lzma-no-dict). The last thing I tried, was to use
gzip, but then I see an error like:
 "this type of compression is not supported"

Did the netgear router (DGN1000B) ever successfull but an own image?
In the openwrt forum I found sth. like that, but they didn't really
write all things, they have tried... :(

> 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.


-- 
Best regards, TR



More information about the Lede-dev mailing list