Welcome! Log In Create A New Profile

Advanced

Debian on Linksys EA4500 / EA4200

Posted by megal0maniac 
Re: Linksys EA4500 / EA4200 support
April 01, 2016 03:16PM
All,

It would be easier to build new u-boot if we can find the datasheet for the switch MV88E6171. My search has not been successful.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linksys EA4500 / EA4200 support
April 01, 2016 03:45PM
Hi

I installed the new kernel, built uImage using zImage and the .dtb and booted with the Dockstar u-boot.
Unfortunately it kernel-panics but it looks like a wrong address thing.

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.5.0-kirkwood-tld-1.1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #2 PREEMPT Mon Mar 28 16:08:34 PDT 2016
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Linksys E4200v2 / EA4500
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 113416K/131072K available (6129K kernel code, 601K rwdata, 2028K rodata, 304K init, 315K bss, 17656K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07ff81c   (8159 kB)
[    0.000000]       .init : 0xc0800000 - 0xc084c000   ( 304 kB)
[    0.000000]       .data : 0xc084c000 - 0xc08e274c   ( 602 kB)
[    0.000000]        .bss : 0xc08e274c - 0xc09316a0   ( 316 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000333] Console: colour dummy device 80x30
[    0.000364] Calibrating delay loop... 1196.85 BogoMIPS (lpj=5984256)
[    0.090101] pid_max: default: 32768 minimum: 301
[    0.090217] Security Framework initialized
[    0.090296] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090315] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091218] CPU: Testing write buffer coherency: ok
[    0.091678] Setting up static identity map for 0x8200 - 0x8258
[    0.091990] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.095781] devtmpfs: initialized
[    0.100879] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.101159] prandom: seed boundary self test passed
[    0.104898] prandom: 100 self tests passed
[    0.104927] pinctrl core: initialized pinctrl subsystem
[    0.106335] NET: Registered protocol family 16
[    0.106812] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130108] cpuidle: using governor ladder
[    0.160105] cpuidle: using governor menu
[    0.160546] Feroceon L2: Enabling L2
[    0.160593] Feroceon L2: Cache support initialised.
[    0.161000] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.161108] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.166328] No ATAGs?
[    0.201580] vgaarb: loaded
[    0.201946] usbcore: registered new interface driver usbfs
[    0.202034] usbcore: registered new interface driver hub
[    0.202099] usbcore: registered new device driver usb
[    0.203221] clocksource: Switched to clocksource orion_clocksource
[    0.247975] VFS: Disk quotas dquot_6.6.0
[    0.248049] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.259714] NET: Registered protocol family 2
[    0.260523] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.260551] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.260571] TCP: Hash tables configured (established 1024 bind 1024)
[    0.260638] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.260661] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.260857] NET: Registered protocol family 1
[    0.261252] RPC: Registered named UNIX socket transport module.
[    0.261264] RPC: Registered udp transport module.
[    0.261271] RPC: Registered tcp transport module.
[    0.261278] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.261577] Unpacking initramfs...
[    0.902631] Freeing initrd memory: 7016K (c1100000 - c17da000)
[    0.902779] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.904010] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.904081] audit: initializing netlink subsys (disabled)
[    0.904135] audit: type=2000 audit(0.900:1): initialized
[    0.904483] Initialise system trusted keyring
[    0.904881] zbud: loaded
[    0.905573] NFS: Registering the id_resolver key type
[    0.905624] Key type id_resolver registered
[    0.905633] Key type id_legacy registered
[    0.905660] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.905675] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.905904] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.906439] Key type big_key registered
[    0.927306] Key type asymmetric registered
[    0.927330] Asymmetric key parser 'x509' registered
[    0.927431] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.927451] io scheduler noop registered
[    0.927466] io scheduler deadline registered
[    0.927530] io scheduler cfq registered (default)
[    0.928894] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.929577] irq: Cannot allocate irq_descs @ IRQ32, assuming pre-allocated
[    0.930000] irq: Cannot allocate irq_descs @ IRQ64, assuming pre-allocated
[    0.930907] mvebu-pcie mbus:pcie-controller: PCI host bridge to bus 0000:00
[    0.930926] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.930940] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.930954] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.931686] PCI: bus0: Fast back to back transfers disabled
[    0.931712] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.931740] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.931948] PCI: bus1: Fast back to back transfers enabled
[    0.932172] PCI: bus2: Fast back to back transfers enabled
[    0.932289] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.932308] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.932711] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.973929] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.974162] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.013896] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.014375] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.015778] console [ttyS0] disabled
[    1.015842] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    1.665751] console [ttyS0] enabled
[    1.670575] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    1.676997] nand: Hynix H27U1G8F2BTR-BC
[    1.680853] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.688482] Scanning device for bad blocks
[    1.770542] 4 cmdlinepart partitions found on MTD device orion_nand
[    1.776860] Creating 4 MTD partitions on "orion_nand":
[    1.782027] 0x000000000000-0x000000100000 : "u-boot"
[    1.788374] 0x000000100000-0x000000500000 : "uImage"
[    1.794641] 0x000000500000-0x000002500000 : "rootfs"
[    1.800907] 0x000002500000-0x000008000000 : "data"
[    1.808554] libphy: Fixed MDIO Bus: probed
[    1.813169] libphy: orion_mdio_bus: probed
[    1.817528] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.825895] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address b6:d0:5e:0f:a1:17
[    1.835324] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:00:00:00:00:00
[    1.844234] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.850821] ehci-pci: EHCI PCI platform driver
[    1.855384] ehci-orion: EHCI orion driver
[    1.859601] orion-ehci f1050000.ehci: EHCI Host Controller
[    1.865170] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    1.873016] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    1.893258] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    1.899542] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.906391] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.913670] usb usb1: Product: EHCI Host Controller
[    1.918570] usb usb1: Manufacturer: Linux 4.5.0-kirkwood-tld-1.1 ehci_hcd
[    1.925406] usb usb1: SerialNumber: f1050000.ehci
[    1.930851] hub 1-0:1.0: USB hub found
[    1.934714] hub 1-0:1.0: 1 port detected
[    1.939625] mousedev: PS/2 mouse device common for all mice
[    1.945654] i2c /dev entries driver
[    1.950399] hidraw: raw HID events driver (C) Jiri Kosina
[    1.956270] drop_monitor: Initializing network drop monitor service
[    1.962822] NET: Registered protocol family 17
[    1.967494] Distributed Switch Architecture driver version 0.1
[    1.974921] mdio_bus f1072004.mdio-bu: unknown revision 2, using base switch 0x1710
[    1.982621] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: detected a Marvell 88E6171 switch
[    2.195221] libphy: dsa slave smi: probed
[    2.253262] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.279774] Generic PHY dsa-0:10:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0:10:00, irq=-1)
[    2.379804] Generic PHY dsa-0:10:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0:10:01, irq=-1)
[    2.404274] usb 1-1: New USB device found, idVendor=0781, idProduct=5571
[    2.411028] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.418231] usb 1-1: Product: Cruzer Fit
[    2.422182] usb 1-1: Manufacturer: SanDisk
[    2.426320] usb 1-1: SerialNumber: 4C530008220226116131
[    2.479758] Generic PHY dsa-0:10:02: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0:10:02, irq=-1)
[    2.579747] Generic PHY dsa-0:10:03: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0:10:03, irq=-1)
[    2.657445] Unable to handle kernel NULL pointer dereference at virtual address 00000048
[    2.665597] pgd = c0004000
[    2.668311] [00000048] *pgd=00000000
[    2.671909] Internal error: Oops: 5 [#1] PREEMPT ARM
[    2.676892] Modules linked in:
[    2.679965] CPU: 0 PID: 1 Comm: swapper Not tainted 4.5.0-kirkwood-tld-1.1 #2
[    2.687129] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    2.693427] task: c783bb20 ti: c783c000 task.ti: c783c000
[    2.698860] PC is at phy_attached_print+0x20/0x7c
[    2.703591] LR is at dsa_slave_create+0x2f0/0x364
[    2.708314] pc : [<c045276c>]    lr : [<c059a8c4>]    psr: 60000013
[    2.708314] sp : c783ddb0  ip : c104ed44  fp : 0000000c
[    2.719838] r10: c10624c0  r9 : c101fe10  r8 : 00000000
[    2.725079] r7 : c1037000  r6 : 00000000  r5 : 00000000  r4 : 00000000
[    2.731636] r3 : 00000000  r2 : 00000000  r1 : ffffffff  r0 : c104ec00
[    2.738196] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    2.745362] Control: 0005397f  Table: 01070000  DAC: 00000053
[    2.751134] Process swapper (pid: 1, stack limit = 0xc783c190)
[    2.756994] Stack: (0xc783ddb0 to 0xc783e000)
[    2.761376] dda0:                                     c101fe10 c0453274 c10624c0 c1062000
[    2.769592] ddc0: 00000004 c1062000 c059a8c4 00000000 20000013 00000002 00000001 00000001
[    2.777806] dde0: 00000004 c1006e90 c101fe10 00000000 c08c1ad4 c679d9a0 00000001 00000004
[    2.786020] de00: 0000000c c0599268 c091e264 00000004 00000000 c1037000 c78dea00 c10475e0
[    2.794235] de20: c78dea10 00000000 c1006ea4 c1047500 c101c718 00000000 00000000 c101c678
[    2.802450] de40: c077a503 c78dd178 c101c718 00000001 c083f838 c0598a4c c78dea10 c08cd3e8
[    2.810663] de60: 00000000 00000000 c083f838 c08e2760 00000000 c0401da4 c78dea10 c08cd3e8
[    2.818878] de80: c092a060 c03fffa8 c08cd3e8 c78dea10 c78dea10 c78dea44 c08cd3e8 c08b9980
[    2.827092] dea0: c08dc1c8 c0400264 00000000 c08cd3e8 c04001fc c03fe2e0 c788ca2c c78ce250
[    2.835306] dec0: c08cd3e8 00000000 c1045be0 c03ff438 c078a296 c078a297 c08cd3e8 c083b108
[    2.843521] dee0: 00000000 c0852400 c0852400 c0400d2c c04016c4 c1047600 c083b108 c083b120
[    2.851735] df00: c1047600 c00097a0 c7804c40 c782d700 c782d700 c05d5e10 00000000 c7ffca61
[    2.859948] df20: c7ffca6a c0037e1c 00000000 60000053 00000001 c07ce29c 00000090 00000006
[    2.868162] df40: 00000006 c07ceddc 0000008f c07ceddc c0855bfc 00000006 c083f82c 00000006
[    2.876377] df60: c083f830 00000090 c084aa3c c08e2760 c083f838 c0800e3c 00000006 00000006
[    2.884590] df80: 00000000 c08005a0 00000000 c05ced14 00000000 00000000 00000000 00000000
[    2.892804] dfa0: 00000000 c05ced1c 00000000 c000f110 00000000 00000000 00000000 00000000
[    2.901019] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    2.909233] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00400000 00000000
[    2.917461] [<c045276c>] (phy_attached_print) from [<c059a8c4>] (dsa_slave_create+0x2f0/0x364)
[    2.926120] [<c059a8c4>] (dsa_slave_create) from [<c0599268>] (dsa_probe+0x81c/0xb70)
[    2.933999] [<c0599268>] (dsa_probe) from [<c0401da4>] (platform_drv_probe+0x50/0xa0)
[    2.941868] [<c0401da4>] (platform_drv_probe) from [<c03fffa8>] (driver_probe_device+0x1c8/0x41c)
[    2.950787] [<c03fffa8>] (driver_probe_device) from [<c0400264>] (__driver_attach+0x68/0x8c)
[    2.959270] [<c0400264>] (__driver_attach) from [<c03fe2e0>] (bus_for_each_dev+0x6c/0x90)
[    2.967485] [<c03fe2e0>] (bus_for_each_dev) from [<c03ff438>] (bus_add_driver+0x114/0x240)
[    2.975787] [<c03ff438>] (bus_add_driver) from [<c0400d2c>] (driver_register+0x9c/0xe0)
[    2.983831] [<c0400d2c>] (driver_register) from [<c083b120>] (dsa_init_module+0x18/0x3c)
[    2.991964] [<c083b120>] (dsa_init_module) from [<c00097a0>] (do_one_initcall+0x114/0x1d8)
[    3.000274] [<c00097a0>] (do_one_initcall) from [<c0800e3c>] (kernel_init_freeable+0x18c/0x258)
[    3.009027] [<c0800e3c>] (kernel_init_freeable) from [<c05ced1c>] (kernel_init+0x8/0xe8)
[    3.017159] [<c05ced1c>] (kernel_init) from [<c000f110>] (ret_from_fork+0x14/0x24)
[    3.024766] Code: e5902190 e590302c e3540000 e59011fc (e5922048)
[    3.030941] ---[ end trace 191d1d062b1f96ad ]---
[    3.035621] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    3.035621]
[    3.044803] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    3.044803]

Excuse my ignorance, but why is the u-boot code from Linksys and the existing Linux support for the chip not sufficient to get a working u-boot? I understand that it may not be enough, I just don't understand why.
Personally you could give me the datasheet and I'd still be lost ;)
Re: Linksys EA4500 / EA4200 support
April 01, 2016 04:01PM
Michael,

> [ 1.982621] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: detected a Marvell 88E6171 switch

Cool!

> Unfortunately it kernel-panics but it looks like a
> wrong address thing.

I think you're right! must be a wrong address. Let me post the DTS, and hopefully somebody will be able to spot my mistake.

> Excuse my ignorance, but why is the u-boot code
> from Linksys and the existing Linux support for
> the chip not sufficient to get a working u-boot? I
> understand that it may not be enough, I just don't
> understand why.

Yes, it could be enough. However, as usually is the case, stock u-boot is quite a PITA to read because it is so old :) the old design has been gone from u-boot for many years. Datasheet has a formal format so useful info can be gleamed from there. If there is no datasheet, then we'll need to dig in the Linksys u-boot deeper.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/01/2016 04:02PM by bodhi.
Re: Linksys EA4500 / EA4200 support
April 01, 2016 04:43PM
Michael,

Which DTB are you using? did you try both version I've attached above?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linksys EA4500 / EA4200 support
April 01, 2016 05:10PM
The latest log was using the dtb from the latest tarball (the one including zimage and 4.5 kernel)
Re: Linksys EA4500 / EA4200 support
April 01, 2016 05:27PM
megal0maniac Wrote:
-------------------------------------------------------
> The latest log was using the dtb from the latest
> tarball (the one including zimage and 4.5 kernel)


Yes that should be the correct one. This PHY print is just for information logging and it caused a kernel panic!!!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/01/2016 05:41PM by bodhi.
Re: Linksys EA4500 / EA4200 support
April 01, 2016 05:46PM
bodhi Wrote:
-------------------------------------------------------
> All,
>
> It would be easier to build new u-boot if we can
> find the datasheet for the switch MV88E6171. My
> search has not been successful.

NVM. I think I had found enough info for this switch chip. Probably just enough to initialize it to get ethernet working during boot.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/01/2016 07:30PM by bodhi.
Re: Linksys EA4500 / EA4200 support
April 02, 2016 03:21AM
Another version of the DTB to try with the test kernel. I also attached the DTS here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - kirkwood-ea4500.dts (4 KB)
open | download - kirkwood-ea4500.dtb (11.8 KB)
Re: Linksys EA4500 / EA4200 support
April 02, 2016 05:50PM
FYI,

There is an ongoing re-architecture effort for DSA in the kernel. It will likely to be a significant change in kernel 4.6 or 4.7 about how we specify the DTS

So perhaps we should not spend too much time figuring out how to make the switch smarter. Using OpenWrt DTS, it is a dumb switch, but it's working. So let's not worry much about this.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linksys EA4500 / EA4200 support
April 02, 2016 07:16PM
Here is a test version for the new Linksys EA4500 u-boot.

I would like everybody who has this box to try this u-boot (it is not enough with one success, since I don't have this box yet, I will need all the info I can have).

Please try with kwboot:

./kwboot  -t -B 115200 /dev/ttyUSB0 -b uboot.2015.10-tld-2.1.ea4500.mtd0.kwb  -p

Interrupt serial console at count down and:

- print the envs.
printenv

- ping the router or any node in your LAN
ping xxx.xxx.x.x

- Also observe the behavior of the LEDs during boot. How are they flashing? solid? ...

- And then let it boot all the way into Debian (the default envs will boot the Debian rootfs that is on an Ext3 partition which has been labeled rootfs)
setenv dtb_file
boot
(I assumed the DTB file was already embedded inside uImage)


Please post the entire serial console log here.


Download at Dropbox

uboot.2015.10-tld-2.1.ea4500.bodhi.tar
md5sum: ab0db0070e31f5fc3513f38733fb0df0
sha256sum: f0d884b3f748561fe10f3b3f6ffb42c90b3beef15b8576caefd63449a54f2031

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 5 time(s). Last edit at 04/03/2016 02:56AM by bodhi.
Re: Linksys EA4500 / EA4200 support
April 03, 2016 09:57AM
EDIT: Just tried booting this again with stock u-boot and it still kernel panics with the new .dtb :/
[  101.051609] mv643xx_eth_port mv643xx_eth_port.1 eth1: link up, 1000 Mb/s, full duplex, flow control disabled
[  111.669041] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[  111.704340] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[  111.712476] pgd = c12ec000
[  111.715231] [00000000] *pgd=012f5831, *pte=00000000, *ppte=00000000
[  111.721558] Internal error: Oops: 17 [#1] PREEMPT ARM
[  111.726627] Modules linked in: ipv6 arc4 evdev mwl8k mac80211 marvell_cesa des_generic orion_wdt cfg80211 kirkwood_thermal rfkill gpio_keys ext2 sg sd_mod uas usb_storage scsi_mod
[  111.742851] CPU: 0 PID: 1175 Comm: ntpdate Not tainted 4.5.0-kirkwood-tld-1.1 #2
[  111.750275] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[  111.756564] task: c66a6940 ti: c7b5e000 task.ti: c7b5e000
[  111.761999] PC is at __netif_receive_skb_core+0x2b0/0xa40
[  111.767423] LR is at __netif_receive_skb_core+0x120/0xa40
[  111.772847] pc : [<c04f80b0>]    lr : [<c04f7f20>]    psr: 60000013
[  111.772847] sp : c7b5fb38  ip : 00000000  fp : ffffffec
[  111.784372] r10: c08d4ac0  r9 : 00000000  r8 : c08502e8
[  111.789621] r7 : c111c000  r6 : 00000001  r5 : c119b9e0  r4 : 00000000
[  111.796180] r3 : c111c054  r2 : 00000000  r1 : c119b9e0  r0 : c119b9e0
[  111.802738] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[  111.809905] Control: 0005397f  Table: 012ec000  DAC: 00000051
[  111.815677] Process ntpdate (pid: 1175, stack limit = 0xc7b5e190)
[  111.821799] Stack: (0xc7b5fb38 to 0xc7b60000)
[  111.826177] fb20:                                                       0000000b c7815000
[  111.834396] fb40: 00000000 c119b9e0 c045c6a8 c04fced4 40000013 ffffffff c7b5fba4 00000000
[  111.842610] fb60: c1065000 c1065000 0000002a c0013510 00000000 c119b9e0 c7096b90 c1100e28
[  111.850825] fb80: c10bf3d0 0000f800 c103705c c08d4ac0 c119b9e0 c04fa240 c119b9e0 c08d7bc4
[  111.859039] fba0: c119b9e0 c059b2a8 c119b9e0 c1037000 c085229c c1037048 c119b9e0 c1037000
[  111.867252] fbc0: 0000f800 c04f8500 00000600 00000000 c7b5fc0c c119b9e0 00000000 00000001
[  111.875466] fbe0: 00000000 c1010600 339b02f3 00000005 00000000 00000000 d81d9600 00000019
[  111.883681] fc00: ffffffff c119b9e0 c119b9e0 c10375a0 c10375a0 c10374c0 c1037000 c119b9e0
[  111.891896] fc20: c7b5e000 c04fa240 01e8cc2a 0000001a 00000003 c04fae98 c10375a0 00000000
[  111.900109] fc40: 00000000 c045eca0 00000000 df00a8c0 2cc7fffe 00000001 00000010 ca317000
[  111.908323] fc60: 00000040 c10374c0 c7b5fe20 c08d4ac0 00000000 00000001 c7b5e000 c7b5fca8
[  111.916538] fc80: c7b5fcb0 c10375a0 00000040 c04fb330 00000000 0000012b ffffb674 c085a200
[  111.924753] fca0: c08502e8 00000000 c7b5fca8 c7b5fca8 c7b5fcb0 c7b5fcb0 c119bda0 c08e2eac
[  111.932966] fcc0: 00000003 00000008 c08e2e80 00400100 00000101 0000000a c7b5e000 c0021f30
[  111.941180] fce0: c79c89e0 00000001 ffffb673 00000004 c085a200 c11b0000 00000001 60000013
[  111.949395] fd00: 00000200 c1167d00 c106a000 c106a154 c106a150 c08c79f0 c7b5fe20 c0022198
[  111.957610] fd20: 00000000 c0022238 00000000 00000000 c119bda0 c0533c84 c08c79f0 0100a8c0
[  111.965823] fd40: c119bda0 c08c79f0 c106a000 c7990020 00380000 c7b5fe20 00007b00 c0535e0c
[  111.974038] fd60: c7b5fe20 c053683c c66a6d6c c0535094 c7b5fee4 00000038 00000000 00000040
[  111.982253] fd80: c119bda0 c7990020 c08c79f0 c119bda0 c08c79f0 00000000 c11b0424 c05366e0
[  111.990466] fda0: 00000006 c119bda0 c7990020 c055b498 00000000 c7990020 c119bda0 c7b5fee4
[  111.998681] fdc0: 14130cc0 00000000 00000030 c055cd7c 00000038 00000008 c7b5fe0c c7b5fe08
[  112.006893] fde0: 00000040 bf384608 00000000 00000000 00000000 c0535094 00000000 c7990250
[  112.015109] fe00: c08c79f0 00000000 00000000 14130cc0 00000000 00000000 ffff0000 c03787d8
[  112.023322] fe20: 00000003 00000001 00000000 00110000 00000000 c0069408 00000000 00000000
[  112.031537] fe40: df00a8c0 14130cc0 7b007b00 00000000 60000093 00000000 0dd12712 0000001a
[  112.039752] fe60: 0dd12712 0000000e c12e52c0 c7b5fefc c66a6940 00000000 c12e5318 c12e52c0
[  112.047966] fe80: c7b5e000 c00287f0 00000000 00000000 01e651cf c7b5fee4 c769f7a0 c769f7a0
[  112.056180] fea0: 00000010 002e185c c7b5e000 00000000 00035fa8 c04e2e00 00000040 c7b5ff10
[  112.064394] fec0: 00000000 c04e406c c7b5feec 00000000 c7b5ffb0 00000000 00000000 beb552e4
[  112.072608] fee0: 00000030 c7b5ff10 00000010 00000001 00000000 00000000 c7b5fee4 00000000
[  112.080822] ff00: 00000000 00000000 00000040 00000000 7b000002 14130cc0 00000000 00000000
[  112.089037] ff20: 0000003c 0000006f 0000003c c006662c 0000006f 23d283fe 000000ab 23d283fe
[  112.097251] ff40: 00000000 053724e0 ffffffff 00000000 c7b5ff90 00000000 00033e88 00000107
[  112.105465] ff60: c000f228 00000000 00033e88 00000107 c000f228 beb552b4 00000008 00000000
[  112.113679] ff80: 00000051 c037c3e0 beb552b4 c006c3ac 002e185c 00000010 00033e88 00000122
[  112.121894] ffa0: c000f228 c000f060 002e185c 00000010 00000003 beb552e4 00000030 00000000
[  112.130108] ffc0: 002e185c 00000010 00033e88 00000122 002e185c 00000000 00033e98 00035fa8
[  112.138322] ffe0: beb552c8 beb552bc 00011f10 b6dc04d4 60000010 00000003 07ffd871 07ffdc71
[  112.146550] [<c04f80b0>] (__netif_receive_skb_core) from [<c04fa240>] (netif_receive_skb_internal+0x50/0x68)
[  112.156433] [<c04fa240>] (netif_receive_skb_internal) from [<c059b2a8>] (edsa_rcv+0x20c/0x24c)
[  112.165088] [<c059b2a8>] (edsa_rcv) from [<c04f8500>] (__netif_receive_skb_core+0x700/0xa40)
[  112.173573] [<c04f8500>] (__netif_receive_skb_core) from [<c04fa240>] (netif_receive_skb_internal+0x50/0x68)
[  112.183450] [<c04fa240>] (netif_receive_skb_internal) from [<c04fae98>] (napi_gro_receive+0xc4/0x158)
[  112.192727] [<c04fae98>] (napi_gro_receive) from [<c045eca0>] (mv643xx_eth_poll+0x4e0/0x5fc)
[  112.201205] [<c045eca0>] (mv643xx_eth_poll) from [<c04fb330>] (net_rx_action+0x118/0x3a0)
[  112.209430] [<c04fb330>] (net_rx_action) from [<c0021f30>] (__do_softirq+0x134/0x2f8)
[  112.217302] [<c0021f30>] (__do_softirq) from [<c0022198>] (do_softirq+0x48/0x58)
[  112.224740] [<c0022198>] (do_softirq) from [<c0022238>] (__local_bh_enable_ip+0x90/0xd8)
[  112.232876] [<c0022238>] (__local_bh_enable_ip) from [<c0533c84>] (ip_finish_output2+0x294/0x2d4)
[  112.241796] [<c0533c84>] (ip_finish_output2) from [<c0535e0c>] (ip_output+0x8c/0xf4)
[  112.249572] [<c0535e0c>] (ip_output) from [<c05366e0>] (ip_send_skb+0x14/0x64)
[  112.256834] [<c05366e0>] (ip_send_skb) from [<c055b498>] (udp_send_skb+0x18c/0x250)
[  112.264530] [<c055b498>] (udp_send_skb) from [<c055cd7c>] (udp_sendmsg+0x4b8/0x67c)
[  112.272228] [<c055cd7c>] (udp_sendmsg) from [<c04e2e00>] (sock_sendmsg+0x34/0x48)
[  112.279744] [<c04e2e00>] (sock_sendmsg) from [<c04e406c>] (SyS_sendto+0xb8/0xdc)
[  112.287177] [<c04e406c>] (SyS_sendto) from [<c000f060>] (ret_fast_syscall+0x0/0x38)
[  112.294872] Code: ebffc602 e3500000 0affffeb e3e0600b (e59b3014)
[  112.301044] ---[ end trace 0474a36d3cd2b8ed ]---
[  112.305700] Kernel panic - not syncing: Fatal exception in interrupt
[  112.312084] ---[ end Kernel panic - not syncing: Fatal exception in interrupt

bodhi Wrote:
-------------------------------------------------------
> printenv

U-Boot 2015.10-tld-1 (Nov 06 2015 - 15:56:21 -0800)
Seagate FreeAgent DockStar

SoC:   Kirkwood 88F6282_A1
DRAM:  128 MiB (ECC not enabled)
WARNING: Caches not enabled
NAND:  128 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
DockStar> printenv
arcNumber=2097
baudrate=115200
bootcmd=run bootcmd_uenv; run bootcmd_usb; reset
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot;
bootdelay=10
console=ttyS0,115200
device=0:1
ethact=egiga0
ethaddr=b6:d0:5e:0f:a1:17
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
rootdelay=10
rootfstype=ext2
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
stderr=serial
stdin=serial
stdout=serial
uenv_import=echo importing envs ...; env import -t 0x810000
uenv_load=usb start; setenv uenv_loaded 0; for devtype in usb; do for disknum in 0; do run uenv_read_disk; done; done
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if $devtype part $disknum; then run uenv_read; fi
usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_init=usb start
usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=/dev/sda1

Environment size: 1430/131068 bytes

> - ping the router or any node in your LAN
DockStar> setenv ipaddr 192.168.0.223
DockStar> ping 192.168.0.1
Using egiga0 device
ping failed; host 192.168.0.1 is not alive

>
> - Also observe the behavior of the LEDs during
> boot. How are they flashing? solid? ...
The LEDs are all off. The switch doesn't initialise and there's no link at any stage, in u-boot or in Debian

> - And then let it boot all the way into Debian

DockStar> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Partition Map for USB device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            15631360        0001222a-01     83
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **
3214455 bytes read in 364 ms (8.4 MiB/s)
7184099 bytes read in 485 ms (14.1 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.5.0-kirkwood-tld-1.1
   Created:      1970-01-01   0:03:54 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3214391 Bytes = 3.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.5.0-kirkwood-tld-1.1
   Created:      1970-01-01   0:03:57 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7184035 Bytes = 6.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.5.0-kirkwood-tld-1.1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #2 PREEMPT Mon Mar 28 16:08:34 PDT 2016
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Linksys E4200v2 / EA4500
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 113416K/131072K available (6129K kernel code, 601K rwdata, 2028K rodata, 304K init, 315K bss, 17656K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07ff81c   (8159 kB)
[    0.000000]       .init : 0xc0800000 - 0xc084c000   ( 304 kB)
[    0.000000]       .data : 0xc084c000 - 0xc08e274c   ( 602 kB)
[    0.000000]        .bss : 0xc08e274c - 0xc09316a0   ( 316 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000335] Console: colour dummy device 80x30
[    0.000367] Calibrating delay loop... 1196.85 BogoMIPS (lpj=5984256)
[    0.090101] pid_max: default: 32768 minimum: 301
[    0.090217] Security Framework initialized
[    0.090296] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090316] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091216] CPU: Testing write buffer coherency: ok
[    0.091678] Setting up static identity map for 0x8200 - 0x8258
[    0.091989] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.095774] devtmpfs: initialized
[    0.100865] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.101141] prandom: seed boundary self test passed
[    0.104879] prandom: 100 self tests passed
[    0.104906] pinctrl core: initialized pinctrl subsystem
[    0.106320] NET: Registered protocol family 16
[    0.106796] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130105] cpuidle: using governor ladder
[    0.160107] cpuidle: using governor menu
[    0.160548] Feroceon L2: Enabling L2
[    0.160595] Feroceon L2: Cache support initialised.
[    0.161003] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.161110] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.166338] No ATAGs?
[    0.201584] vgaarb: loaded
[    0.201952] usbcore: registered new interface driver usbfs
[    0.202040] usbcore: registered new interface driver hub
[    0.202104] usbcore: registered new device driver usb
[    0.203225] clocksource: Switched to clocksource orion_clocksource
[    0.247996] VFS: Disk quotas dquot_6.6.0
[    0.248070] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.259725] NET: Registered protocol family 2
[    0.260534] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.260562] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.260582] TCP: Hash tables configured (established 1024 bind 1024)
[    0.260651] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.260676] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.260875] NET: Registered protocol family 1
[    0.261270] RPC: Registered named UNIX socket transport module.
[    0.261282] RPC: Registered udp transport module.
[    0.261289] RPC: Registered tcp transport module.
[    0.261296] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.261595] Unpacking initramfs...
[    0.902669] Freeing initrd memory: 7016K (c1100000 - c17da000)
[    0.902818] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.904043] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.904114] audit: initializing netlink subsys (disabled)
[    0.904166] audit: type=2000 audit(0.900:1): initialized
[    0.904516] Initialise system trusted keyring
[    0.904911] zbud: loaded
[    0.905602] NFS: Registering the id_resolver key type
[    0.905641] Key type id_resolver registered
[    0.905651] Key type id_legacy registered
[    0.905677] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.905692] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.905922] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.906457] Key type big_key registered
[    0.927316] Key type asymmetric registered
[    0.927340] Asymmetric key parser 'x509' registered
[    0.927440] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.927460] io scheduler noop registered
[    0.927476] io scheduler deadline registered
[    0.927541] io scheduler cfq registered (default)
[    0.928908] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.929591] irq: Cannot allocate irq_descs @ IRQ32, assuming pre-allocated
[    0.930014] irq: Cannot allocate irq_descs @ IRQ64, assuming pre-allocated
[    0.930925] mvebu-pcie mbus:pcie-controller: PCI host bridge to bus 0000:00
[    0.930944] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.930958] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.930972] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.931702] PCI: bus0: Fast back to back transfers disabled
[    0.931728] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.931756] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.931965] PCI: bus1: Fast back to back transfers enabled
[    0.932189] PCI: bus2: Fast back to back transfers enabled
[    0.932307] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.932326] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.932730] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.973938] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.974173] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.013903] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.014384] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.015782] console [ttyS0] disabled
[    1.015847] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    1.665765] console [ttyS0] enabled
[    1.670593] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    1.677011] nand: Hynix H27U1G8F2BTR-BC
[    1.680867] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.688495] Scanning device for bad blocks
[    1.770574] 4 cmdlinepart partitions found on MTD device orion_nand
[    1.776890] Creating 4 MTD partitions on "orion_nand":
[    1.782057] 0x000000000000-0x000000100000 : "u-boot"
[    1.788401] 0x000000100000-0x000000500000 : "uImage"
[    1.794663] 0x000000500000-0x000002500000 : "rootfs"
[    1.800932] 0x000002500000-0x000008000000 : "data"
[    1.808579] libphy: Fixed MDIO Bus: probed
[    1.813191] libphy: orion_mdio_bus: probed
[    1.817550] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.825922] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address b6:d0:5e:0f:a1:17
[    1.835347] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:00:00:00:00:00
[    1.844255] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.850835] ehci-pci: EHCI PCI platform driver
[    1.855398] ehci-orion: EHCI orion driver
[    1.859615] orion-ehci f1050000.ehci: EHCI Host Controller
[    1.865184] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    1.873029] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    1.893263] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    1.899550] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.906396] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.913665] usb usb1: Product: EHCI Host Controller
[    1.918565] usb usb1: Manufacturer: Linux 4.5.0-kirkwood-tld-1.1 ehci_hcd
[    1.925402] usb usb1: SerialNumber: f1050000.ehci
[    1.930848] hub 1-0:1.0: USB hub found
[    1.934711] hub 1-0:1.0: 1 port detected
[    1.939625] mousedev: PS/2 mouse device common for all mice
[    1.945649] i2c /dev entries driver
[    1.950400] hidraw: raw HID events driver (C) Jiri Kosina
[    1.956261] drop_monitor: Initializing network drop monitor service
[    1.962812] NET: Registered protocol family 17
[    1.967478] Distributed Switch Architecture driver version 0.1
[    1.979071] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: detected a Broadcom Starfighter 2 switch
[    1.988233] unable to find register: core
[    1.992270] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: couldn't create dsa switch instance (error -12)
[    2.002172] Key type dns_resolver registered
[    2.007369] registered taskstats version 1
[    2.011525] Loading compiled-in X.509 certificates
[    2.016437] zswap: loaded using pool lzo/zbud
[    2.030118] Key type encrypted registered
[    2.040519] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: detected a Broadcom Starfighter 2 switch
[    2.049785] unable to find register: core
[    2.053931] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: couldn't create dsa switch instance (error -12)
[    2.063979] hctosys: unable to open rtc device (rtc0)
[    2.071363] Freeing unused kernel memory: 304K (c0800000 - c084c000)
Loading, please wait...
[    2.149966] systemd-udevd[79]: starting version 215
[    2.165660] random: systemd-udevd urandom read with 5 bits of entropy available
[    2.253338] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.414424] usb 1-1: New USB device found, idVendor=0781, idProduct=5571
[    2.421182] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.441337] usb 1-1: Product: Cruzer Fit
[    2.448099] usb 1-1: Manufacturer: SanDisk
[    2.452222] usb 1-1: SerialNumber: 4C530008220226116131
[    2.475119] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: detected a Broadcom Starfighter 2 switch
[    2.491636] unable to find register: core
[    2.500793] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: couldn't create dsa switch instance (error -12)
[    2.529557] SCSI subsystem initialized
[    2.538031] usb-storage 1-1:1.0: USB Mass Storage device detected
[    2.544653] scsi host0: usb-storage 1-1:1.0
[    2.551295] usbcore: registered new interface driver usb-storage
[    2.561601] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: detected a Broadcom Starfighter 2 switch
[    2.570940] usbcore: registered new interface driver uas
[    2.578436] unable to find register: core
[    2.582480] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: couldn't create dsa switch instance (error -12)
[    3.544382] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.27 PQ: 0 ANSI: 6
[    3.561727] sd 0:0:0:0: [sda] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[    3.571465] sd 0:0:0:0: [sda] Write Protect is off
[    3.577080] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    3.590966] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: detected a Broadcom Starfighter 2 switch
[    3.600230] unable to find register: core
[    3.604443] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: couldn't create dsa switch instance (error -12)
[    3.617066]  sda: sda1
[    3.622942] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    3.632625] sd 0:0:0:0: Attached scsi generic sg0 type 0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Checking root file system ... fsck from util-linux 2.25.2
rootfs: clean, 30371/488640 files, 409431/1953920 blocks
done.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   14.155847] systemd-udevd[284]: starting version 215
. ok
[....] Synthesizing the initial hotplug events...[   14.431286] input: gpio_keys as /devices/platform/gpio_keys/input/input0
done.
[   14.523852] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: detected a Broadcom Starfighter 2 switch
[   14.533053] unable to find register: core
[....] Waiting for /dev to be fully populated...[   14.559196] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: couldn't create dsa switch instance (error -12)
[   14.644142] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: detected a Broadcom Starfighter 2 switch
[   14.662321] unable to find register: core
[   14.670797] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: couldn't create dsa switch instance (error -12)
[   14.769111] orion_wdt: Initial timeout 21 sec
[   14.796020] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: detected a Broadcom Starfighter 2 switch
[   14.815741] unable to find register: core
[   14.819833] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: couldn't create dsa switch instance (error -12)
[   14.863486] marvell-cesa f1030000.crypto: CESA device successfully registered
[   14.876619] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: detected a Broadcom Starfighter 2 switch
[   14.892349] unable to find register: core
[   14.902374] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: couldn't create dsa switch instance (error -12)
done.
[   15.448716] random: nonblocking pool is initialized
[ ok ] Activating swap...done.
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 30371/488640 files, 409431/1953920 blocks
done.
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Loading kernel modules...done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[   18.941794] NET: Registered protocol family 10
[....] Configuring network interfaces...wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to bring up wlan1.
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

RTNETLINK answers: Cannot assign requested address
Listening on LPF/eth1/00:00:00:00:00:00
Sending on   LPF/eth1/00:00:00:00:00:00
Sending on   Socket/fallback
DHCPREQUEST on eth1 to 255.255.255.255 port 67
send_packet: Network is down
dhclient.c:2255: Failed to send 300 byte long packet over eth1 interface.
receive_packet failed on eth1: Network is down
[   94.603103] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
DHCPREQUEST on eth1 to 255.255.255.255 port 67
send_packet: Network is down
dhclient.c:2255: Failed to send 300 byte long packet over eth1 interface.
DHCPREQUEST on eth1 to 255.255.255.255 port 67
send_packet: Network is down
dhclient.c:2255: Failed to send 300 byte long packet over eth1 interface.
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 5
send_packet: Network is down
dhclient.c:1966: Failed to send 300 byte long packet over eth1 interface.
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13
send_packet: Network is down
dhclient.c:1966: Failed to send 300 byte long packet over eth1 interface.
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 14
send_packet: Network is down
dhclient.c:1966: Failed to send 300 byte long packet over eth1 interface.
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 16
send_packet: Network is down
dhclient.c:1966: Failed to send 300 byte long packet over eth1 interface.
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13
send_packet: Network is down
dhclient.c:1966: Failed to send 300 byte long packet over eth1 interface.
No DHCPOFFERS received.
Trying recorded lease 192.168.0.154
connect: Network is unreachable
bound: renewal in 161 seconds.
RTNETLINK answers: Network is unreachable
Failed to bring up eth0.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1284 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1282 (klogd)
. ok
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting OpenBSD Secure Shell server: sshd.

Debian GNU/Linux 8 debian ttyS0

debian login:

As you can see, we have the same issue as before. This is with the latest .dtb built into uImage and the latest test kernel (4.5.0) and the latest u-boot.
The obvious issue is "PHY reset timed out" just before egiga0 is "initialised"



Edited 1 time(s). Last edit at 04/03/2016 10:06AM by megal0maniac.
Re: Linksys EA4500 / EA4200 support
April 03, 2016 02:58PM
megal0maniac,

It's the wrong u-boot image. It should show:

U-Boot 2015.10-tld-2 (Apr 01 2016 - 13:42:11 -0700)
Linksys EA4500

Did you download the image from above?
http://forum.doozan.com/read.php?2,26854,27288#msg-27288

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/03/2016 03:00PM by bodhi.
Re: Linksys EA4500 / EA4200 support
April 04, 2016 01:00AM
Ah, sorry about that. I must have accidentally used the Dockstar one the 2nd time (when I pasted the logs) but the result is similar.
This is the output using the correct u-boot:
U-Boot 2015.10-tld-2.1 (Apr 02 2016 - 17:01:55 -0700)
Linksys EA4500

SoC:   Kirkwood 88F6282_A1
DRAM:  128 MiB (ECC not enabled)
WARNING: Caches not enabled
NAND:  128 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
SMI busy timeout
MV88E61XX Initialized
Hit any key to stop autoboot:  0
EA4500>
Switch does not initialise. The rest of the log is the same
Re: Linksys EA4500 / EA4200 support
April 05, 2016 01:34PM
There is still one piece of information that I could not find: PHY_BASE_ADR. Not sure where the PHY base address of this switch. It could be 0x0A.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linksys EA4500 / EA4200 support
April 06, 2016 05:05AM
bodhi, I found that there were issues with your .dtb
I got "couldn't create dsa switch instance (error -12)" when using your .dtb with stock u-boot.
With the OpenWRT .dtb I don't get this and the switch works.

I'm not sure why we're using a different .dtb when the existing one works?
Re: Linksys EA4500 / EA4200 support
April 06, 2016 05:17AM
megal0maniac,

> bodhi, I found that there were issues with your
> .dtb
> I got "couldn't create dsa switch instance (error
> -12)" when using your .dtb with stock u-boot.
> With the OpenWRT .dtb I don't get this and the
> switch works.
>
> I'm not sure why we're using a different .dtb when
> the existing one works?

The new DTB can only be used with new kernel (tld-2.1), because it exposes the DSA switch with the added node, using the mv88e61xx driver. The OpenWrt DTS does not have DSA node (that's why the switch is a dumb switch). The new DTS was based on the Viper one that bobbafett posted.

In any case, the kernel panic in the "print" call made it impossible to verify if the new DTS is working or not. FWIW, your dmesg showed the normal probe output for DSA switch before this panic occured.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/06/2016 05:18AM by bodhi.
Re: Linksys EA4500 / EA4200 support
April 11, 2016 12:51AM
Anybody knows the stock login credentials? root/root does not work.

I've got the box and hooked up serial console today :)
__  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** WNC BOARD: Viper R2.2 LE **
 ** For Development Only. Not For Demo **

U-Boot 1.1.4 (Sep 15 2011 - 15:46:36) Marvell version: 3.5.9

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB20

Soc: 88F6282 A1CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz 

DRAM (DDR2) CAS Latency = 6 tRP = 6 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 128MB 
DRAM Total size 128MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB

Updating boot_count ... done

Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)
u_env Offset: 00080000
s_env Offset: 000a0000

Streaming disabled 
Write allocate disabled

Module 0 is RGMII

USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
PEX 1: PCI Express Root Complex Interface
PEX interface detected Link X1
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0 
Viper>> 
Viper>> boot

NAND read: device 0 offset 0x1c00000, size 0x300000

Reading data from 0x1eff800 -- 100% complete.
 3145728 bytes read: OK
## Booting image at 02000000 ...
   Image Name:   Linux-2.6.35.8
   Created:      2014-07-16   8:28:04 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2692516 Bytes =  2.6 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.35.8 (root@build-vm) (gcc version 4.2.0 20070413 (prerelease) (CodeSourcery Sourcery G++ Lite 2007q1-21)) #1 Wed Jul 16 01:28:01 PDT 2014
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Feroceon-KW

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linksys EA4500 / EA4200 support
April 11, 2016 03:21AM
"root" is rarely if ever used in commercial routers, no common user knows what "root" is.

stock user is usually "admin" or "Admin"

and passwords are "admin" "1234" "0000" or similar.

according to wikidevi, that router's user/pwd is "admin" and "admin"

https://wikidevi.com/wiki/Linksys_EA4500
Re: Linksys EA4500 / EA4200 support
April 11, 2016 04:28AM
bobafetthotmail Wrote:
-------------------------------------------------------
> "root" is rarely if ever used in commercial
> routers, no common user knows what "root" is.

True. I was hoping that there is a hidden root account.

> stock user is usually "admin" or "Admin"
>
> and passwords are "admin" "1234" "0000" or
> similar.
>
> according to wikidevi, that router's user/pwd is
> "admin" and "admin"
>
> https://wikidevi.com/wiki/Linksys_EA4500

I'm out of luck! I think the previous owner has changed password. I'll have to wait to reset it in Debian.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linksys EA4500 / EA4200 support
April 11, 2016 05:04AM
Reset button is working?
Re: Linksys EA4500 / EA4200 support
April 11, 2016 05:34AM
bobafetthotmail Wrote:
-------------------------------------------------------
> Reset button is working?

Duh! I forgot this is commercial router afterall :)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linksys EA4500 / EA4200 support
April 12, 2016 03:46AM
I pulled the rootfs from a firmware image, but /etc/passwd and /etc/shadow both live in /tmp and I'm not sure how they're created. So unfortunately no luck there.
Amusingly, there are a number of comments in shell scripts like "TODO: Figure out what this does and why"
It's like they didn't even finish the product before it shipped :)
Re: Linksys EA4500 / EA4200 support
April 12, 2016 06:00AM
> Amusingly, there are a number of comments in shell
> scripts like "TODO: Figure out what this does and
> why"
> It's like they didn't even finish the product
> before it shipped :)

I've seen worse in other products, comments like "This would never work" :))

Re new u-boot:

The current problem I've found is the switch driver in main-line u-boot does not have full functionality! that why the test u-boot did not activate the ethernet PHY.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/12/2016 06:00AM by bodhi.
Re: Linksys EA4500 / EA4200 support
April 13, 2016 09:15PM
So far my current u-boot build works OK. The only thing remains not working is network during boot. This is uncharted territory, since we don't have a working Ethernet switch driver in main-line u-boot. I found a patch for the Marvell 6176 switch, but that is also not quite ready.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/13/2016 09:41PM by bodhi.
Re: Linksys EA4500 / EA4200 support
April 14, 2016 02:24AM
> The only thing remains not working is network during boot.

you mean the switch? Wasn't the "WAN" eth port connected to the SoC directly?

It's not so bad if the WAN port can work for netconsole.
Re: Linksys EA4500 / EA4200 support
April 14, 2016 03:20AM
bobafetthotmail Wrote:
-------------------------------------------------------
> > The only thing remains not working is network
> during boot.
>
> you mean the switch? Wasn't the "WAN" eth port
> connected to the SoC directly?
>
> It's not so bad if the WAN port can work for
> netconsole.

No it does not, if the switch is not active then everything is dead (at least that what it seems to me). We can't bring the PHY up since the PHY is in the switch (there is no separate network PHY like in a typical NAS, WAN port is one of the ports in the switch). It will need more works in u-boot to do what OpenWrt DTS does in the kernel for the driver to work.

Yes, I do agree we just need Ethernet, we could not care less if the switch is a dumb switch :) Once we can have that, the kernel will take care of the DSA part.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/14/2016 03:21AM by bodhi.
Re: Linksys EA4500 / EA4200 support
April 14, 2016 05:59PM
I'm looking for this MV88E6171 switch data sheet but can't find it! anybody has idea how to find?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linksys EA4500 / EA4200 support
April 15, 2016 01:46PM
best thing I find with some low-level info about these switches is the comments in this github https://github.com/mmilburn/marvell-switch

It seems to have more data than what I can see from linux mainline driver.

Backtracking the patch the guy talks about in his github (that is a broken link) I get here where the same guy is discussing the issue and posting more info with other devs. https://github.com/Chadster766/McWRT/issues/20
Re: Linksys EA4500 / EA4200 support
April 15, 2016 03:00PM
Looks like I've partially solved this Ethernet issue :) will do a little more testing to confirm. Yes, I've also read both threads above before.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/16/2016 05:26AM by bodhi.
Re: Linksys EA4500 / EA4200 support
April 16, 2016 04:55AM
I've adapted a driver patch that the author has tested on the mv88e6176 switch. And it partially works! The remaining issue is how to power up this mv88e6171 PHYs from a cold start.

Below is kwboot from a warm start, where stock u-boot has been used to boot the new kernel version 4.5.0-kirkwood-tld-1.1 (with the EA4500 DTS uploaded by Michael). The driver works in this warm start case, but when the box is cold started, there was no power to the PHY so the ports are all dead!

This is much similar to the NSA325 and NSA320s/310S problem with stock u-boot, where a PHY write sequence is needed to power it up. This was solved in the new u-boot for the network chip mv88e8138s.

Warm start with Ethernet cable on LAN 1 (port 0)
U-Boot 2015.10-tld-2.3 (Apr 16 2016 - 01:49:43 -0700)
Linksys EA4500

SoC:   Kirkwood 88F6282_A1
DRAM:  128 MiB (ECC not enabled)
WARNING: Caches not enabled
NAND:  128 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   Phy 16 found
Phy 17 not found
PHY reset timed out
egiga0, egiga1
mv88e61xx_switch initialized
Hit any key to stop autoboot:  0 
EA4500> 
EA4500> ping 192.168.0.220
Using egiga0 device
host 192.168.0.220 is alive
EA4500> ping 192.168.0.1
Using egiga0 device
host 192.168.0.1 is alive
EA4500> reset

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: