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

Tino Reichardt list-lede at mcmilk.de
Mon Nov 7 09:35:14 PST 2016


* Mathias Kresin <dev at kresin.me> wrote:
> 2016-11-06 20:47 GMT+01:00 Tino Reichardt <list-lede at mcmilk.de>:
> > The main thing is, the kernel stops very early, I have turned on every
> > debug option, but have not much info :(
> >
> > [    0.000000] Linux version 4.4.30 (mcmilk at lap-00488) (gcc version 5.4.0 (LEDE GCC 5.4.0 r2084) ) #0 Sat Nov 5 20:54:43 2016
> > [    0.000000] SOC_ID_AMAZON_SE_* done!
> > [    0.000000] SoC: Amazon_SE rev 1.3
> > [    0.000000] bootconsole [early0] enabled
> > [    0.000000] CPU0 revision is: 0001906c (MIPS 4KEc)
> > [    0.000000] MIPS: machine is ALL0333CJ - Allnet ALL0333CJ DSL Modem
> > [    0.000000] Determined physical RAM map:
> > [    0.000000]  memory: 00518000 @ 00002000 (usable)
> > [    0.000000]  memory: 00136000 @ 0051a000 (usable after init)
> > [    0.000000] Wasting 64 bytes for tracking 2 unused pages
> >
> > Has someone an idea?
>
> I guess I found the commit mentioned by john which removed the AMAZON
> SE support [0] from the lantiq target. The obvious question that comes
> in mind when having a look at this commit: Do you have enabled
> CONFIG_SOC_AMAZON_SE in your kernel config? Not sure if it really
> makes a difference since the config option seams to be only used by
> target/linux/lantiq/patches-4.4/0008-MIPS-lantiq-backport-old-timer-code.patch
> and not in the kernel at all.

Yes, CONFIG_SOC_AMAZON_SE=y is in my .config settings.
I am trying now with cmdline settings like " ... mem=16M"

I will give feedback when done, I am also reading the patchset and try
to get into this mips specific settings... what is when called, and so
one...

> You might want to give the parent of the mentioned commit a try, to
> make sure that it worked at least back in the days.

I tried directly multiple images from the 12.09 release for amazon-se...
they all do not boot on my system, on one I got some output:

It was this one: openwrt-lantiq-ase-NONE-jffs2-256k

boot.log:

<snip>
AMAZON_SE # bootm 0x80500000
Checking Images Integrity ...
  Kernel: OK
  Rootfs: OK
## Booting image at 80500000 ...
   Image Name:   MIPS OpenWrt Linux-3.3.8
   Created:      2013-03-23  13:11:17 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    972129 Bytes = 949.3 kB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 3.3.8 (blogic at Debian-60-squeeze-64-minimal) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Sat Mar 23 13:11:07 UTC 2013
[    0.000000] SoC: Amazon_SE rev 1.3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0001906c (MIPS 4KEc)
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 01000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00001000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00001000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
[    0.000000] Kernel command line:
[    0.000000] PID hash table entries: 64 (order: -4, 256 bytes)
[    0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Primary instruction cache 8kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes
[    0.000000] Memory: 13132k/16384k available (2316k kernel code, 3252k reserved, 366k data, 164k init, 0k highmem)
[    0.000000] NR_IRQS:256
[    0.000000] CPU Clock: 266MHz
[    0.000000] Calibrating delay loop... 264.70 BogoMIPS (lpj=529408)
[    0.036000] pid_max: default: 32768 minimum: 301
[    0.040000] Mount-cache hash table entries: 512
[    0.056000] NET: Registered protocol family 16
[    0.068000] gpiochip_add: registered GPIOs 0 to 15 on device: ltq_gpio
[    0.072000] gpiochip_add: registered GPIOs 16 to 31 on device: ltq_gpio
[    0.076000] MIPS: machine is Generic Lantiq based board
[    0.104000] bio: create slab <bio-0> at 0
[    0.116000] Switching to clocksource MIPS
[    0.132000] NET: Registered protocol family 2
[    0.136000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.144000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.152000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.156000] TCP: Hash tables configured (established 512 bind 512)
[    0.164000] TCP reno registered
[    0.168000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.172000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.180000] NET: Registered protocol family 1
[    0.184000] gptu: totally 6 16-bit timers/counters
[    0.192000] gptu: misc_register on minor 63
[    0.196000] gptu: succeeded to request irq 126
[    0.200000] gptu: succeeded to request irq 127
[    0.204000] gptu: succeeded to request irq 128
[    0.208000] gptu: succeeded to request irq 129
-> here it hangs... squashfs or some other problem like this ...
</snap>

I also see no flash memory in this log, I think my Spansion chips were
not directly supported in that kernel version.
LEDE 4.4 has support for them ;)


-- 
Best regards, TR



More information about the Lede-dev mailing list