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

Tino Reichardt list-lede at mcmilk.de
Mon Nov 7 10:02:18 PST 2016


* Tino Reichardt <list-lede at mcmilk.de> wrote:
> * 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...


Hui, giving mem=16M to the cmdline looks cool:

<snip>
Bytes transferred = 2621444 (280004 hex)
AMAZON_SE # bootm 0x80500000
Checking Images Integrity ...
  Kernel: OK
  Rootfs: OK
## Booting image at 80500000 ...
   Image Name:   MIPS LEDE Linux-4.4.30
   Created:      2016-11-05  20:54:43 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1227403 Bytes =  1.2 MB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    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: 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: 003b1000 @ 00002000 (usable)
[    0.000000]  memory: 0012d000 @ 003b3000 (usable after init)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 01000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000000ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000000ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000000ffffff]
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
[    0.000000] Kernel command line: console=ttyLTQ0,115200 ethaddr=00:0F:C9:11:95:7B mem=16M panic=1 
[    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] Memory: 10964K/16384K available (2997K kernel code, 138K rwdata, 636K rodata, 1204K init, 206K bss, 5420K reserved, 0K cma-reserved)
[    0.000000] NR_IRQS:256
[    0.000000] CPU Clock: 266MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 14334453388 ns
[    0.000042] sched_clock: 32 bits at 133MHz, resolution 7ns, wraps every 16106127356ns
[    0.008020] Calibrating delay loop... 264.70 BogoMIPS (lpj=529408)
[    0.046985] pid_max: default: 32768 minimum: 301
[    0.051956] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.058602] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.089118] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.098998] pinctrl core: initialized pinctrl subsystem
[    0.107817] NET: Registered protocol family 16
[    0.121973] cpuidle: using governor ladder
[    0.126083] cpuidle: using governor menu
[    0.142542] pinctrl-xway 1e100b10.pinmux: Init done
[    0.150353] dma-xway 1e104100.dma: Init done - hw rev: 4, ports: 3, channels: 10
[    0.242163] clocksource: Switched to clocksource MIPS
[    0.254495] NET: Registered protocol family 2
[    0.261784] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.268875] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.275314] TCP: Hash tables configured (established 1024 bind 1024)
[    0.282468] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.288407] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.295691] NET: Registered protocol family 1
[    0.328692] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.344252] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.350255] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.367423] io scheduler noop registered
[    0.371381] io scheduler deadline registered (default)
[    0.378100] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 72, base_baud = 0) is a lantiq,asc
[    0.387240] console [ttyLTQ0] enabled
[    0.387240] console [ttyLTQ0] enabled
[    0.394543] bootconsole [early0] disabled
[    0.394543] bootconsole [early0] disabled
[    0.411122] libphy: Fixed MDIO Bus: probed
[    0.424140] libphy: ltq_mii: probed
[    0.426362] eth0 (uninitialized): no PHY found
[    0.431007] etop: mdio probe failed
[    0.440213] PPP generic driver version 2.4.2
[    0.444774] wdt 1f8803f0.watchdog: Init done
[    0.454835] NET: Registered protocol family 10
[    0.500528] NET: Registered protocol family 17
[    0.503882] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    0.516220] 8021q: 802.1Q VLAN Support v1.8
[    0.531871] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    0.540114] Rebooting in 1 seconds..
</snap>

Now I have to check, how to start the init...

Is there currently any golden way, how the init should be done on these
devices, with very small flash memory?

I also modify the .config, to fit the drivers of the allnet ;)

-- 
Best regards, TR



More information about the Lede-dev mailing list