Welcome! Log In Create A New Profile

Advanced

Install Linux Kernel 4.16.1 Kirkwood on Linksys EA4500

Posted by Ron Nelson 
I would love to have Debian on my old ea4500. Unfortunately, I have no idea how to even begin to install this. Your instructions seem to require Debian already installed, but I currently am using a modified version of the linksys stock firmware that has an ssh server running on it. Sorry for my ignorance and lack of knowledge
-Ron



Edited 1 time(s). Last edit at 06/22/2018 06:38PM by bodhi.
Re: Install Linux Kernel 4.16.1 Kirkwood on Linksys EA4500
June 22, 2018 06:53PM
Hi Ron,

> Sorry for my
> ignorance and lack of knowledge

Not at all!

Usually for a Kirkwood box (such as this one) that I'm supporting has 2-part installation:

New kernel and rootfs:
https://forum.doozan.com/read.php?2,12096

New u-boot:
https://forum.doozan.com/read.php?3,12381

And you would install both from stock OS.

However, for this EA4500 box, I only have the kernel and rootfs released: Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2.
https://forum.doozan.com/read.php?2,12096

Quote

Updated 24 Jul 2017:

Basic Debian stretch Kirkwood rootfs for most Kirwood plugs:

- tarball size: 188M
- install size: 488M
- The init system used in this rootfs is sysvinit . To boot with systemd, see note 2 below.
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, isc-dhcp-client, dialog, bzip2, nfs server/client, iperf, ethtool, sysvinit-core, sysvinit, and sysvinit-utils.
- see LED controls in /etc/rc.local, and /etc/init.d/halt
- see some useful aliases in /root/.profile
- root password: root

Download at Dropbox:

Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2

md5:
bf3d29569943875df348fb5ca03b348c
sha256:
4ed5714fdb123cdb40e973f3d0754e91cd199b75a9874018f2b5dc9cfa8ae8bb

But I don't have the new u-boot working yet. My effort was stopped at one point when I did not have time to finish it (other commitments). And then it was left at about 90% compeletion status. Not a lot of users have this box, so I did not have motivation to come back to it.

It is doable to run the Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 rootfs with stock u-boot. I just need to find some time to get my box of the shelf and boot it again :)

This is the working thread, where you could find how to boot the new rootfs with stock u-boot:
https://forum.doozan.com/read.php?2,26854,page=1

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
So I've read through that whole specific ea4500 thread a couple of times, and my understanding is that I need a serial connection to a Linux box. (Raspberry pi should be fine?) get the most recent dtb that you posted, then use stock u-boot to load the kernel and dtb. That's where I have no idea what I'm doing. Well to be honest, I don't know what I'm doing with any of this. Do I have to use a tftp server for this? Is there any other way? Then I guess I should put your rootfs on a flash drive. What filesystem? Also, I don't really have experience setting serial connections to a computer. What kind of USB dongle do I need?

I'm struggling, but learning lots in the process.
Now that I'm back home and have access to this beast, how does one open it? I've got the silver strip with the Cisco logo off, but that's about it.
Re: Install Linux Kernel 4.16.1 Kirkwood on Linksys EA4500
June 23, 2018 05:03PM
Ron,

> my understanding is
> that I need a serial connection to a Linux box.
> (Raspberry pi should be fine?)

The best way to hack embedded Linux is serial console. Yes, use rPi to connect. Run picocom on the rPi terminal.

> get the most recent
> dtb that you posted, then use stock u-boot to load
> the kernel and dtb.

No need to. When you create the Debian rootfs as I mentioned, you have a completed system that has the EA4500 DTB already:

Quote

However, for this EA4500 box, I only have the kernel and rootfs released: Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2.
https://forum.doozan.com/read.php?2,12096

> Do I have to use
> a tftp server for this?

No, either serial console connected, or SSH in to stock OS.

> Then I guess I should put your rootfs on a flash
> drive. What filesystem?

See the instruction to create rootfs Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2.


> Also, I don't really have
> experience setting serial connections to a
> computer. What kind of USB dongle do I need?

A serial module converter. See Wiki thread:
https://forum.doozan.com/read.php?2,23630

Quote

Serial Console & JTAG console

Repair Pogo E02 with Raspberry PI (JTAG) and OpenOCD
Serial Port connector - what are people using to make it work
Serial Console hookup - GoFlex Net (external link)
Serial Console hookup - Pogoplug E02 and Pogoplug Pro V3 (external link)
OSX Serial/Net Console
Use Phone Jack - Phone Jack Serial Console Pics
Adding serial connector to Pogoplug Mobile (external link)
WD Mycloud EX2100/4100 Serial Console pic1, also pic2, pic3
Dreamplug Serial Console
How to unbrick your box using serial console with kwboot

"Serial Port connector - what are people using to make it work" is the thread where you can find which converter to buy.

> I'm struggling, but learning lots in the process.

There is a lot to learn. But base on the questions you posted, I have no doubt you will get this running successfully.

And to open the box: there are 4 screws hidden behind the rubber feet on the bottom.

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



Edited 1 time(s). Last edit at 06/23/2018 05:06PM by bodhi.
For the serial console, I have one of these for my odroid-xu4 (faster rPi clone). Could I use that? Will I need to solder it on to the router's header?
Re: Install Linux Kernel 4.16.1 Kirkwood on Linksys EA4500
June 23, 2018 07:50PM
Ron Nelson Wrote:
-------------------------------------------------------
> For the serial console, I have one of
> these
> for my odroid-xu4 (faster rPi clone). Could I use
> that? Will I need to solder it on to the router's
> header?

That's a good USB serial module converter to use.

Open the EA4500, see if you can use the existing header. If not, you would need 3 male-female test wire to plug in temporarily.

It does look like the correct header. But just from the picture (it does not say whether it is a JST 2.0), I'm not sure.

UPDATE:

Ah, looks to be the right size:
Quote

Molex 5268-04a(2.5mm pitch) is mounted on the PCB.

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



Edited 2 time(s). Last edit at 06/23/2018 07:54PM by bodhi.
Re: Install Linux Kernel 4.16.1 Kirkwood on Linksys EA4500
June 23, 2018 07:58PM
Please be careful, do not connect 3.3.V! Only connect 3 wire TX,RX, GND.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
So I followed the instructions to get the rootfs on a flash drive, which went well. I also got the serial connection up. From the Viper>> prompt, I used the setenv commands listed near the start of the ea4500 thread. When I actually tried to boot, I got an error about the filesystem or the drive or something. The results are as follows:
Hit any key to stop autoboot:  0 
Viper>> setenv bootargs_usb 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10'
Viper>> setenv load_usb 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1  0x1100000 /boot/uInitrd'
Viper>> setenv bootcmd_usb 'setenv bootargs $(bootargs_usb); run load_usb; bootm 0x800000 0x1100000'
Viper>> setenv bootcmd 'run bootcmd_usb'
Viper>> boot
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - usb 0:1 **
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - usb 0:1 **
## Booting image at 00800000 ...
Bad Magic Number
Viper>>
I'm using a GPT partition label. Should I have used msdos instead?
Re: Install Linux Kernel 4.16.1 Kirkwood on Linksys EA4500
June 24, 2018 04:51PM
Ron,

> I'm using a GPT partition label. Should I have
> used msdos instead?

Exactly! this stock u-boot is quite old. You need to reformat your USB with MBR partition.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
I've tried these steps countless times now. Something goes wrong every single time. Often uboot gives me a bad CRC error when loading the Ramdisk image. Other times it all goes fine, but nothing happens after Uncompressing Linux... done, booting the kernel, like this:
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ 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
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>> setenv bootargs_usb 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10'
Viper>> setenv load_usb 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1  0x1100000 /boot/uInitrd'
Viper>> setenv bootcmd_usb 'setenv bootargs $(bootargs_usb); run load_usb; bootm 0x800000 0x1100000'
Viper>> setenv auto_recovery no
Viper>> saveenv
Saving Environment to NAND...
Erasing Nand...offset 0x80000... Writing to Nand... done
Viper>> run bootcmd_usb
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
.
......
............
.........................
...................................................
......................................................................................................
.........................................................................................................................................................................

3834397 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
.................................................................................................................................................................................................................
.....................................................................................................................................................................................................................................................................................................

7245696 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2018-07-06  21:30:30 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3834333 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes =  6.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
each time something like this happens, I reformat and try again, but something always goes wrong. I have tried multiple flash drives. One time It went correctly, and I got into debian. However, the ethernet port wasn't connected, so I plugged it in and rebooted, only to get bad CRC errors on reboot. When I plugged the flash drive into my rPi, I ran fsck and it found a zillion error on the disk. When it was finished with it, there were barely any files left. I'm out of ideas.
Re: Install Linux Kernel 4.16.1 Kirkwood on Linksys EA4500
July 06, 2018 06:09PM
Ron,

Do the same procedure, with these envs,

setenv bootargs_usb 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
setenv load_usb 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1  0x02100000 /boot/uInitrd'
setenv bootcmd_usb 'setenv bootargs $(bootargs_usb); run load_usb; bootm 0x800000 0x02100000'

And pls post the serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
I guess I must have been using the wrong envs, because those worked like a charm, mostly. Only thing is, networking isn't really working. It seems to be requesting an ip address on eth0, but I think I read that eth0 represents all 4 LAN ports, and that eth1 is the WAN port. Anyways, I can reboot without the filesystem getting horribly corrupted, so I have tried it in both the WAN port and LAN port 1. I must note that it is not connected to an actual router, but rather a WiFi extender that has an ethernet port. I was going to give you that output you requested, but there was so much that I couldn't scroll up that far in GTKTerm. Here is all I was able to copy.
[    7.466801] 9 ofpart partitions found on MTD device orion_nand
[    7.472680] Creating 9 MTD partitions on "orion_nand":
[    7.477844] 0x000000000000-0x000000080000 : "u-boot"
[    7.484110] 0x000000080000-0x0000000a0000 : "u_env"
[    7.490226] 0x0000000a0000-0x0000000c0000 : "s_env"
[    7.496437] 0x000000200000-0x0000004a0000 : "kernel"
[    7.502760] 0x0000004a0000-0x000001c00000 : "rootfs"
[    7.509172] 0x000001c00000-0x000001ea0000 : "alt_kernel"
[    7.515662] 0x000001ea0000-0x000003600000 : "alt_rootfs"
[    7.522325] 0x000003600000-0x000008000000 : "syscfg"
[    7.528963] 0x0000000c0000-0x000000200000 : "unused"
[    7.536339] libphy: Fixed MDIO Bus: probed
[    7.541374] libphy: orion_mdio_bus: probed
[    7.545772] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.553751] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 48:f8:b3:99:29:7e
[    7.562661] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.569233] ehci-pci: EHCI PCI platform driver
[    7.573790] ehci-orion: EHCI orion driver
[    7.578011] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.583584] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.591552] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    7.620455] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.626728] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    7.633582] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.640854] usb usb1: Product: EHCI Host Controller
[    7.645753] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    7.652504] usb usb1: SerialNumber: f1050000.ehci
[    7.657974] hub 1-0:1.0: USB hub found
[    7.661840] hub 1-0:1.0: 1 port detected
[    7.666374] usbcore: registered new interface driver usb-storage
[    7.672786] mousedev: PS/2 mouse device common for all mice
[    7.678666] i2c /dev entries driver
[    7.683489] hidraw: raw HID events driver (C) Jiri Kosina
[    7.689258] drop_monitor: Initializing network drop monitor service
[    7.695861] NET: Registered protocol family 17
[    7.700472] Key type dns_resolver registered
[    7.705507] registered taskstats version 1
[    7.709624] Loading compiled-in X.509 certificates
[    7.714525] zswap: loaded using pool lzo/zbud
[    7.728653] Key type big_key registered
[    7.741843] Key type encrypted registered
[    7.747283] hctosys: unable to open rtc device (rtc0)
[    7.755795] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[    8.020508] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.254009] mv88e6085 f1072004.mdio-bus-mii:10: switch 0x171 detected: Marvell 88E6171, revision 2
[    8.272706] usb 1-1: New USB device found, idVendor=090c, idProduct=1000
[    8.272716] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    8.272722] usb 1-1: Product: USB DISK
[    8.272727] usb 1-1: Manufacturer: SMI Corporation
[    8.273527] usb-storage 1-1:1.0: USB Mass Storage device detected
[    8.280634] scsi host0: usb-storage 1-1:1.0
[    8.587139] usbcore: registered new interface driver uas
[    8.683836] libphy: mv88e6xxx SMI: probed
[    8.687935] DSA: switch 0 0 parsed
[    8.691378] DSA: tree 0 parsed
[    9.588046] Generic PHY mv88e6xxx-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=mv88e6xxx-0:00, irq=-1)
[    9.610666] Generic PHY mv88e6xxx-0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=mv88e6xxx-0:01, irq=-1)
[    9.633191] Generic PHY mv88e6xxx-0:02: attached PHY driver [Generic PHY] (mii_bus:phy_addr=mv88e6xxx-0:02, irq=-1)
[    9.655723] Generic PHY mv88e6xxx-0:03: attached PHY driver [Generic PHY] (mii_bus:phy_addr=mv88e6xxx-0:03, irq=-1)
[    9.678252] Generic PHY mv88e6xxx-0:04: attached PHY driver [Generic PHY] (mii_bus:phy_addr=mv88e6xxx-0:04, irq=-1)
Begin: Loading essential drivers ... done.
[   10.045558] scsi 0:0:0:0: Direct-Access     SMI      USB DISK         1100 PQ: 0 ANSI: 0 CCS
[   10.059879] sd 0:0:0:0: [sda] 7886848 512-byte logical blocks: (4.04 GB/3.76 GiB)
[   10.074881] sd 0:0:0:0: [sda] Write Protect is off
[   10.083355] sd 0:0:0:0: [sda] No Caching mode page found
[   10.088745] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   10.109125] random: crng init done
[   10.112721]  sda: sda1
[   10.121752] sd 0:0:0:0: [sda] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
[   19.833892] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   19.854871] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
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.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[   22.052225] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[ ok                                             done.
[....] Waiting for /dev to be fully populated...[   22.328783] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   22.430998] orion_wdt: Initial timeout 21 sec
[   22.520820] marvell-cesa f1030000.crypto: CESA device successfully registered
[   22.753762] Marvell TOPDOG(R) 802.11 Wireless Network Driver version 0.13
[   22.781137] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   22.890199] mwl8k 0000:01:00.0: Direct firmware load for mwl8k/helper_8366.fw failed with error -2
[   22.906407] 0000:01:00.0: Error requesting helper fw mwl8k/helper_8366.fw
[   22.920628] mwl8k 0000:02:00.0: Direct firmware load for mwl8k/helper_8366.fw failed with error -2
[   22.937362] 0000:02:00.0: Error requesting helper fw mwl8k/helper_8366.fw
done.
[ ok ] Activating swap:.
[   23.946417] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 14458/246512 files, 156085/985600 blocks
. ok 
[   24.225659] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[   27.032668] mv643xx_eth: no PHY
[   27.032711] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/48:f8:b3:99:29:7e
Sending on   LPF/eth0/48:f8:b3:99:29:7e
Sending on   Socket/fallback
DHCPREQUEST of 192.168.0.14 on eth0 to 255.255.255.255 port 67
[  107.768334] NET: Registered protocol family 10
[  107.776275] Segment Routing with IPv6
DHCPREQUEST of 192.168.0.14 on eth0 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.0.14 on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
No DHCPOFFERS received.
Trying recorded lease 192.168.0.14
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.

--- 192.168.0.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

No working leases in persistent database - sleeping.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ 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...
1360 (syslogd)
. ok 
[ 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 NTP server: ntpd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1363 (klogd)
. ok 
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: 
Re: Install Linux Kernel 4.16.1 Kirkwood on Linksys EA4500
July 06, 2018 08:59PM
Ron,

Cool that you have booted into Debian successfully! Yes, the envs were the problem. I've also specified "earlyprintk=serial" just in case I need to see the kernel booting progress, but I knew that the loading address was the problem.

This is the correct behavior for the DSA switch.

[    8.687935] DSA: switch 0 0 parsed
[    8.691378] DSA: tree 0 parsed
[    9.588046] Generic PHY mv88e6xxx-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=mv88e6xxx-0:00, irq=-1)
[    9.610666] Generic PHY mv88e6xxx-0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=mv88e6xxx-0:01, irq=-1)
[    9.633191] Generic PHY mv88e6xxx-0:02: attached PHY driver [Generic PHY] (mii_bus:phy_addr=mv88e6xxx-0:02, irq=-1)
[    9.655723] Generic PHY mv88e6xxx-0:03: attached PHY driver [Generic PHY] (mii_bus:phy_addr=mv88e6xxx-0:03, irq=-1)
[    9.678252] Generic PHY mv88e6xxx-0:04: attached PHY driver [Generic PHY] (mii_bus:phy_addr=mv88e6xxx-0:04, irq=-1)
And the link was up
[   27.032711] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled


So try this. Plug the ethernet cable into the first LAN port (0 or 1 depending how you call it). And reboot. If the ethernet is not running, unplug the ethernet cable and then plug it back in. Observe the dmesg log and see if the link is down and then up.

If no DHCP offer happens then try using a static IP address, and repeat the above.

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



Edited 1 time(s). Last edit at 07/06/2018 09:03PM by bodhi.
Ethernet isn't cooperating, and I am guessing/hoping it's just because of that darn WiFi extender that it is plugged into. That Ethernet port has caused other problems in the past. Maybe sometime I'll move all this stuff upstairs and get a direct connection. The link does not go up and down in the dmesg log if I briefly unplug it and plug it back in. An all around better solution would be connecting to WiFi. I don't see wlan0 when I run ifconfig. Are those drivers working yet? In the mean time, I tried my DWA-131 USB WiFi adapter, by putting a USB hub with it and the flash drive. It still booted with the drive on a hub. In past, on Debian I have had to install the firmware-realtek package to make it work. It has no dependencies. I put it on to the rootfs drive and then installed it on the router using dpkg -i. I remembered to create a new initrd when it updated the initramfs. After a reboot, I was not seeing wlan0 in ifconfig. Here is dmesg:
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Linksys Viper (E4200v2 / EA4500)
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat c0d9e084, node_mem_map c7ef9000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
[    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: 108948K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 22124K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
                   lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
                   modules : 0xbf000000 - 0xc0000000   (  16 MB)
                     .text : 0xc0008000 - 0xc0900000   (9184 kB)
                     .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
                     .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
                      .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    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.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007906] Switching to timer-based delay loop, resolution 5ns
[    0.014323] Console: colour dummy device 80x30
[    0.018903] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.029513] pid_max: default: 32768 minimum: 301
[    0.034378] Security Framework initialized
[    0.038700] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.045379] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053336] CPU: Testing write buffer coherency: ok
[    0.059285] Setting up static identity map for 0x100000 - 0x100058
[    0.065776] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.074108] devtmpfs: initialized
[    0.082191] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.092153] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.098728] prandom: seed boundary self test passed
[    0.107391] prandom: 100 self tests passed
[    0.111607] pinctrl core: initialized pinctrl subsystem
[    0.118064] NET: Registered protocol family 16
[    0.122996] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.131506] cpuidle: using governor ladder
[    0.135734] cpuidle: using governor menu
[    0.140170] Feroceon L2: Enabling L2
[    0.143844] Feroceon L2: Cache support initialised.
[    0.149179] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.164147] No ATAGs?
[    0.173351] vgaarb: loaded
[    0.178835] SCSI subsystem initialized
[    0.182824] libata version 3.00 loaded.
[    0.183109] usbcore: registered new interface driver usbfs
[    0.188773] usbcore: registered new interface driver hub
[    0.194219] usbcore: registered new device driver usb
[    0.200437] clocksource: Switched to clocksource orion_clocksource
[    0.295667] VFS: Disk quotas dquot_6.6.0
[    0.299730] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.317333] NET: Registered protocol family 2
[    0.322542] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.329574] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.336027] TCP: Hash tables configured (established 1024 bind 1024)
[    0.342533] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.348437] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.354946] NET: Registered protocol family 1
[    0.359778] RPC: Registered named UNIX socket transport module.
[    0.365826] RPC: Registered udp transport module.
[    0.370624] RPC: Registered tcp transport module.
[    0.375394] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.381907] PCI: CLS 0 bytes, default 32
[    0.382136] Unpacking initramfs...
[    1.067757] Freeing initrd memory: 7544K
[    1.071990] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.079531] audit: initializing netlink subsys (disabled)
[    1.085535] Initialise system trusted keyrings
[    1.090083] Key type blacklist registered
[    1.094229] audit: type=2000 audit(1.074:1): state=initialized audit_enabled=0 res=1
[    1.102209] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    1.108781] zbud: loaded
[    1.112400] NFS: Registering the id_resolver key type
[    1.117534] Key type id_resolver registered
[    1.121838] Key type id_legacy registered
[    1.125928] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.132716] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.139319] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    1.146628] fuse init (API version 7.26)
[    1.151004] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.157727] orangefs_init: module version upstream loaded
[    1.163222] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.560444] random: fast init done
[    6.986034] Key type asymmetric registered
[    6.990206] Asymmetric key parser 'x509' registered
[    6.995507] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    7.003094] io scheduler noop registered
[    7.007087] io scheduler deadline registered
[    7.011549] io scheduler cfq registered (default)
[    7.017543] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    7.026832] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    7.035480] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    7.041838] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    7.048772] pci_bus 0000:00: root bus resource [bus 00-ff]
[    7.054338] pci_bus 0000:00: scanning bus
[    7.054379] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    7.054417] pci 0000:00:01.0: calling pci_fixup_ide_bases+0x0/0x40
[    7.054652] pci 0000:00:02.0: [11ab:6282] type 01 class 0x060400
[    7.054683] pci 0000:00:02.0: calling pci_fixup_ide_bases+0x0/0x40
[    7.054888] pci_bus 0000:00: fixups for bus
[    7.054902] PCI: bus0: Fast back to back transfers disabled
[    7.060573] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    7.060582] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    7.068640] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 0
[    7.068648] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    7.076731] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    7.076870] pci_bus 0000:01: scanning bus
[    7.076912] pci 0000:01:00.0: [11ab:2a41] type 00 class 0x020000
[    7.076953] pci 0000:01:00.0: reg 0x10: [mem 0x90000000-0x9000ffff 64bit]
[    7.076976] pci 0000:01:00.0: reg 0x18: [mem 0x90010000-0x9001ffff 64bit]
[    7.077026] pci 0000:01:00.0: calling pci_fixup_ide_bases+0x0/0x40
[    7.100496] pci_bus 0000:01: fixups for bus
[    7.100508] PCI: bus1: Fast back to back transfers disabled
[    7.106139] pci_bus 0000:01: bus scan returning with max=01
[    7.106150] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    7.106164] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 1
[    7.106310] pci_bus 0000:02: scanning bus
[    7.106348] pci 0000:02:00.0: [11ab:2a42] type 00 class 0x020000
[    7.106387] pci 0000:02:00.0: reg 0x10: [mem 0x98000000-0x9800ffff 64bit]
[    7.106411] pci 0000:02:00.0: reg 0x18: [mem 0x98010000-0x9801ffff 64bit]
[    7.106460] pci 0000:02:00.0: calling pci_fixup_ide_bases+0x0/0x40
[    7.130491] pci_bus 0000:02: fixups for bus
[    7.130503] PCI: bus2: Fast back to back transfers disabled
[    7.136137] pci_bus 0000:02: bus scan returning with max=02
[    7.136147] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    7.136159] pci_bus 0000:00: bus scan returning with max=02
[    7.136172] pci 0000:00:01.0: fixup irq: got 0
[    7.136180] pci 0000:00:01.0: assigning IRQ 00
[    7.136190] pci 0000:00:02.0: fixup irq: got 0
[    7.136197] pci 0000:00:02.0: assigning IRQ 00
[    7.136295] pci 0000:01:00.0: fixup irq: got 31
[    7.136303] pci 0000:01:00.0: assigning IRQ 31
[    7.136387] pci 0000:02:00.0: fixup irq: got 32
[    7.136396] pci 0000:02:00.0: assigning IRQ 32
[    7.136436] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    7.143404] pci 0000:00:02.0: BAR 14: assigned [mem 0xe0100000-0xe01fffff]
[    7.150340] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe000ffff 64bit]
[    7.157739] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0010000-0xe001ffff 64bit]
[    7.165130] pci 0000:00:01.0: PCI bridge to [bus 01]
[    7.170167] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    7.177045] pci 0000:02:00.0: BAR 0: assigned [mem 0xe0100000-0xe010ffff 64bit]
[    7.184443] pci 0000:02:00.0: BAR 2: assigned [mem 0xe0110000-0xe011ffff 64bit]
[    7.191835] pci 0000:00:02.0: PCI bridge to [bus 02]
[    7.196863] pci 0000:00:02.0:   bridge window [mem 0xe0100000-0xe01fffff]
[    7.203797] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    7.209963] pcieport 0000:00:01.0: enabling bus mastering
[    7.210040] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    7.216232] pcieport 0000:00:02.0: enabling bus mastering
[    7.216694] mv_xor f1060800.xor: Marvell shared XOR driver
[    7.281201] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    7.289049] mv_xor f1060900.xor: Marvell shared XOR driver
[    7.351195] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    7.359262] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    7.367074] console [ttyS0] disabled
[    7.370845] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    7.379880] console [ttyS0] enabled
[    7.387018] bootconsole [earlycon0] disabled
[    7.404129] loop: module loaded
[    7.408158] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    7.414617] nand: Hynix H27U1G8F2BTR-BC
[    7.418475] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.426117] Scanning device for bad blocks
[    7.496792] 9 ofpart partitions found on MTD device orion_nand
[    7.502668] Creating 9 MTD partitions on "orion_nand":
[    7.507832] 0x000000000000-0x000000080000 : "u-boot"
[    7.514085] 0x000000080000-0x0000000a0000 : "u_env"
[    7.520204] 0x0000000a0000-0x0000000c0000 : "s_env"
[    7.526407] 0x000000200000-0x0000004a0000 : "kernel"
[    7.532742] 0x0000004a0000-0x000001c00000 : "rootfs"
[    7.539149] 0x000001c00000-0x000001ea0000 : "alt_kernel"
[    7.545647] 0x000001ea0000-0x000003600000 : "alt_rootfs"
[    7.552288] 0x000003600000-0x000008000000 : "syscfg"
[    7.558915] 0x0000000c0000-0x000000200000 : "unused"
[    7.566290] libphy: Fixed MDIO Bus: probed
[    7.571326] libphy: orion_mdio_bus: probed
[    7.575733] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.583715] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 48:f8:b3:99:29:7e
[    7.592625] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.599206] ehci-pci: EHCI PCI platform driver
[    7.603766] ehci-orion: EHCI orion driver
[    7.607982] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.613555] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.621457] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    7.650480] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.656768] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    7.663616] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.670896] usb usb1: Product: EHCI Host Controller
[    7.675794] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    7.682546] usb usb1: SerialNumber: f1050000.ehci
[    7.688013] hub 1-0:1.0: USB hub found
[    7.691884] hub 1-0:1.0: 1 port detected
[    7.696407] usbcore: registered new interface driver usb-storage
[    7.702830] mousedev: PS/2 mouse device common for all mice
[    7.708712] i2c /dev entries driver
[    7.713520] hidraw: raw HID events driver (C) Jiri Kosina
[    7.719286] drop_monitor: Initializing network drop monitor service
[    7.725884] NET: Registered protocol family 17
[    7.730487] Key type dns_resolver registered
[    7.735521] registered taskstats version 1
[    7.739639] Loading compiled-in X.509 certificates
[    7.744538] zswap: loaded using pool lzo/zbud
[    7.758861] Key type big_key registered
[    7.772067] Key type encrypted registered
[    7.777496] hctosys: unable to open rtc device (rtc0)
[    7.782933] PM: Hibernation image not present or could not be loaded.
[    7.786012] Freeing unused kernel memory: 1024K
[    8.050533] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.262360] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    8.269127] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    8.290551] usb 1-1: Product: USB2.0 Hub
[    8.297962] hub 1-1:1.0: USB hub found
[    8.306366] hub 1-1:1.0: 4 ports detected
[    8.330707] mv88e6085 f1072004.mdio-bus-mii:10: switch 0x171 detected: Marvell 88E6171, revision 2
[    8.563387] libphy: mv88e6xxx SMI: probed
[    8.567484] DSA: switch 0 0 parsed
[    8.586972] DSA: tree 0 parsed
[    8.630522] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[    8.793229] usb 1-1.3: New USB device found, idVendor=07d1, idProduct=3303
[    8.800158] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.807557] usb 1-1.3: Product: 11n Adapter
[    8.811803] usb 1-1.3: Manufacturer: Manufacturer Realtek 
[    8.817335] usb 1-1.3: SerialNumber: 00e04c000001
[    8.920472] usb 1-1.4: new high-speed USB device number 4 using orion-ehci
[    9.172599] usb 1-1.4: New USB device found, idVendor=090c, idProduct=1000
[    9.179520] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    9.186918] usb 1-1.4: Product: USB DISK
[    9.190901] usb 1-1.4: Manufacturer: SMI Corporation
[    9.198406] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    9.205171] scsi host0: usb-storage 1-1.4:1.0
[    9.230636] usbcore: registered new interface driver uas
[    9.613383] Generic PHY mv88e6xxx-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=mv88e6xxx-0:00, irq=-1)
[    9.631119] Generic PHY mv88e6xxx-0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=mv88e6xxx-0:01, irq=-1)
[    9.648820] Generic PHY mv88e6xxx-0:02: attached PHY driver [Generic PHY] (mii_bus:phy_addr=mv88e6xxx-0:02, irq=-1)
[    9.666565] Generic PHY mv88e6xxx-0:03: attached PHY driver [Generic PHY] (mii_bus:phy_addr=mv88e6xxx-0:03, irq=-1)
[    9.689007] Generic PHY mv88e6xxx-0:04: attached PHY driver [Generic PHY] (mii_bus:phy_addr=mv88e6xxx-0:04, irq=-1)
[   11.008322] scsi 0:0:0:0: Direct-Access     SMI      USB DISK         1100 PQ: 0 ANSI: 0 CCS
[   11.022044] sd 0:0:0:0: [sda] 7886848 512-byte logical blocks: (4.04 GB/3.76 GiB)
[   11.036250] sd 0:0:0:0: [sda] Write Protect is off
[   11.045608] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[   11.046414] sd 0:0:0:0: [sda] No Caching mode page found
[   11.055910] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   11.072529] random: crng init done
[   11.076078]  sda: sda1
[   11.083647] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   19.991419] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   20.012418] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   22.218076] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   22.462181] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   22.596537] orion_wdt: Initial timeout 21 sec
[   22.694847] marvell-cesa f1030000.crypto: CESA device successfully registered
[   22.927404] Marvell TOPDOG(R) 802.11 Wireless Network Driver version 0.13
[   23.001164] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   23.008967] pci 0000:00:01.0: enabling bus mastering
[   23.045095] pci 0000:00:02.0: enabling bus mastering
[   23.046978] mwl8k 0000:01:00.0: Direct firmware load for mwl8k/helper_8366.fw failed with error -2
[   23.063441] 0000:01:00.0: Error requesting helper fw mwl8k/helper_8366.fw
[   23.080613] mwl8k 0000:02:00.0: Direct firmware load for mwl8k/helper_8366.fw failed with error -2
[   23.097377] 0000:02:00.0: Error requesting helper fw mwl8k/helper_8366.fw
[   24.125195] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   26.746278] mv643xx_eth: no PHY
[   26.746322] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   27.442609] NET: Registered protocol family 10
[   27.450591] Segment Routing with IPv6

Re: Install Linux Kernel 4.16.1 Kirkwood on Linksys EA4500
July 07, 2018 05:23PM
Ron,

> Ethernet isn't cooperating, and I am
> guessing/hoping it's just because of that darn
> WiFi extender that it is plugged into.

Could be.

> Maybe sometime I'll move all this stuff
> upstairs and get a direct connection.

During testing, I would do this and then later move it back to where it is intended. Direct connect to a swich or a router is best.

I've just taken my box off the shelf and boot it. Everything is working, with ethernet connected to Lan 1:
root@EA4500:~# uname -a
Linux EA4500 4.17.2-kirkwood-tld-1 #1 PREEMPT Sun Jun 17 23:16:03 PDT 2018 armv5tel GNU/Linux

This is why the wlan did not work in your box.
[   23.046978] mwl8k 0000:01:00.0: Direct firmware load for mwl8k/helper_8366.fw failed with error -2
You need to install
apt-get  install firmware-libertas

=====

I think it is best that you upgrade the kernel to 4.17.2-kirkwood-tld-1 so that we are on the same version, it would make it easier for us to see any problem clearly.

Quote

Updated 23 June 2018:

Kernel linux-4.17.2-kirkwood-tld-1 package has been uploaded.

Latest Linux kernel 4.x general release information can be found at:
LinuxChanges log

Download at Dropbox:

linux-4.17.2-kirkwood-tld-1-bodhi.tar.bz2

md5:
cba58ed6f52efe2ea3fffa7e397b725a
sha256:
d4a3558072982dd8663cc54cb863998e15708916ad04b874a584909a3cb376a6

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
I got it connected to my working router in the first eth port. It still does not work. The only thing I can see is that during boot, it saya
Sorry, accidentally hit send.
Anyways, it says this:
DHCPREQUEST of 192.168.0.14 on eth0 to 255.255.255.255 port 67
My working router is set to give out IP addresses between 192.168.1.2 and 192.168.1.254. Why would it request 192.168.0.14? It definitely does not have an IP address when it finishes booting.
Re: Install Linux Kernel 4.16.1 Kirkwood on Linksys EA4500
July 07, 2018 10:41PM
Ok, it's time for me to see your entire serial console log!

Power up, interrupt serial console and set up your envs like you would. And then

printenv
boot

Let it boot and log in. And

cat /proc/mtd
cat /etc/fw_env.config
fw_printenv
ifconfig -a

Pls post the entire log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Sure,
bootdelay=0
baudrate=115200
loads_echo=0
ipaddr=192.168.1.10
serverip=192.168.1.254
rootpath=/mnt/ARM_FS
netmask=255.255.255.0
run_diag=yes
boot_part=1
boot_part_ready=3
console=console=ttyS0,115200
badcount=0
bootbadcount=0
uenvbadcount=0
senvbadcount=0
buffbadcount=0
fs_bootargs=unused
mtdparts=mtdparts=nand_mtd:512k(uboot)ro,128k@512k(u_env),128k@640k(s_env),26m@2m(kernel),26m@2m(rootfs)fs,26m@28m(alt_kernel),26m@28m(alt_rootfs)fs,74m@54m(syscfg)
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
fs_bootargs_root=root=/dev/mtdblock4 ro rootfstype=jffs2
alt_fs_bootargs_root=root=/dev/mtdblock6 ro rootfstype=jffs2
mfg_fs_bootargs_root=root=/dev/mtdblock6 ro rootfstype=jffs2
usb_fs_bootargs_root=root=/dev/sda1 rw rootfstype=ext2
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
nfsboot=tftp 0x2000000 uImage; setenv bootargs $(console) $(mtdparts) $(bootargs_root) nfsroot=$(serverip):$(rootpath) ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x2000000;
nandboot=nand read.e 0x2000000 0x200000 0x300000; setenv bootargs $(console) $(mtdparts) $(fs_bootargs_root) serial_number=$(sn) uuid=$(uuid) hw_version=$(hw) device_mac=$(mac) factory_date=$(date) wps_pin=$(wps); bootm 0x2000000;
altnandboot=nand read.e 0x2000000 0x1c00000 0x300000; setenv bootargs $(console) $(mtdparts) $(alt_fs_bootargs_root) serial_number=$(sn) uuid=$(uuid) hw_version=$(hw) device_mac=$(mac) factory_date=$(date) wps_pin=$(wps); bootm 0x2000000;
mfgboot=nand read.e 0x2000000 0x1c00000 0x300000; setenv bootargs $(console) $(mtdparts) $(mfg_fs_bootargs_root) serial_number=$(sn) uuid=$(uuid) hw_version=$(hw) device_mac=$(mac) factory_date=$(date) wps_pin=$(wps); bootm 0x2000000;
usbboot=usb start;ext2load usb 0:1 2000000 /uImage; setenv bootargs $(console) $(mtdparts) $(usb_fs_bootargs_root) rootdelay=10; bootm 0x2000000;
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
lcd0_enable=0
lcd0_params=640x480-16@60
ethmtu=1500
eth1mtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
mtdparts_version=4
envsaved=yes
ethact=egiga0
auto_recovery=no
bootargs_usb=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
load_usb=usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x02100000 /boot/uInitrd
bootcmd_usb=setenv bootargs $(bootargs_usb); run load_usb; bootm 0x800000 0x02100000
bootcmd=run bootcmd_usb
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no
pcieTune1=no
layout=ver.0.0.7
model=EA4500
hw=RGWM-C4_0GA
edal_key=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
mac=48:F8:B3:99:29:7E
ethaddr=48:F8:B3:99:29:7E
eth1addr=48:F8:B3:99:29:7F
date=2013/09/18
sn=12A10609312967
uuid=F6EC3F5891A460B41EDFAAA8D9AF2404
wps=21300455

Environment size: 3200/131068 bytes

/proc/mtd:

dev:    size   erasesize  name
mtd0: 00080000 00020000 "u-boot"
mtd1: 00020000 00020000 "u_env"
mtd2: 00020000 00020000 "s_env"
mtd3: 002a0000 00020000 "kernel"
mtd4: 01760000 00020000 "rootfs"
mtd5: 002a0000 00020000 "alt_kernel"
mtd6: 01760000 00020000 "alt_rootfs"
mtd7: 04a00000 00020000 "syscfg"
mtd8: 00140000 00020000 "unused"

/etc/fw_env.config

# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000

fw_printenv (this one doesn't seem so good)

Cannot read bad block mark: Invalid argument

ifconfig -a

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::4af8:b3ff:fe99:297e  prefixlen 64  scopeid 0x20<link>
        ether 48:f8:b3:99:29:7e  txqueuelen 1000  (Ethernet)
        RX packets 555  bytes 59836 (58.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 34  bytes 5736 (5.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 35  

ethernet1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 48:f8:b3:99:29:7e  txqueuelen 1000  (Ethernet)
        RX packets 555  bytes 45406 (44.3 KiB)
        RX errors 0  dropped 19  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ethernet2: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 48:f8:b3:99:29:7e  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ethernet3: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 48:f8:b3:99:29:7e  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ethernet4: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 48:f8:b3:99:29:7e  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

internet: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 48:f8:b3:99:29:7e  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 3  bytes 252 (252.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3  bytes 252 (252.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp1s0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 48:f8:b3:99:29:80  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp2s0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 48:f8:b3:99:29:82  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Re: Install Linux Kernel 4.16.1 Kirkwood on Linksys EA4500
July 08, 2018 12:36AM
Ron,

That's not the entire serial log. Entire serial log means from u-boot banner to the last command output (copy/paste your terminal session here).

There are a lot going on in the serial log that hopefully will tell the story.

And error about fw_printenv was because the content of fw_env.config should look like:

# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors

# Linksys EA4500 
/dev/mtd1 00080000 0x20000 0x20000

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Install Linux Kernel 4.16.1 Kirkwood on Linksys EA4500
July 08, 2018 12:43AM
Your Wifi is runing:

wlp1s0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 48:f8:b3:99:29:80  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp2s0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 48:f8:b3:99:29:82  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

But your ethernet is not assigned IP

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::4af8:b3ff:fe99:297e  prefixlen 64  scopeid 0x20<link>
        ether 48:f8:b3:99:29:7e  txqueuelen 1000  (Ethernet)
        RX packets 555  bytes 59836 (58.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 34  bytes 5736 (5.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

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



Edited 1 time(s). Last edit at 07/08/2018 12:45AM by bodhi.
Sorry, here you go,
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ 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
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>> printenv
bootdelay=0
baudrate=115200
loads_echo=0
ipaddr=192.168.1.10
serverip=192.168.1.254
rootpath=/mnt/ARM_FS
netmask=255.255.255.0
run_diag=yes
boot_part=1
boot_part_ready=3
console=console=ttyS0,115200
badcount=0
bootbadcount=0
uenvbadcount=0
senvbadcount=0
buffbadcount=0
fs_bootargs=unused
mtdparts=mtdparts=nand_mtd:512k(uboot)ro,128k@512k(u_env),128k@640k(s_env),26m@2m(kernel),26m@2m(rootfs)fs,26m@28m(alt_kernel),26m@28m(alt_rootfs)fs,74m@54m(syscfg)
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
fs_bootargs_root=root=/dev/mtdblock4 ro rootfstype=jffs2
alt_fs_bootargs_root=root=/dev/mtdblock6 ro rootfstype=jffs2
mfg_fs_bootargs_root=root=/dev/mtdblock6 ro rootfstype=jffs2
usb_fs_bootargs_root=root=/dev/sda1 rw rootfstype=ext2
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
nfsboot=tftp 0x2000000 uImage; setenv bootargs $(console) $(mtdparts) $(bootargs_root) nfsroot=$(serverip):$(rootpath) ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x2000000;
nandboot=nand read.e 0x2000000 0x200000 0x300000; setenv bootargs $(console) $(mtdparts) $(fs_bootargs_root) serial_number=$(sn) uuid=$(uuid) hw_version=$(hw) device_mac=$(mac) factory_date=$(date) wps_pin=$(wps); bootm 0x2000000;
altnandboot=nand read.e 0x2000000 0x1c00000 0x300000; setenv bootargs $(console) $(mtdparts) $(alt_fs_bootargs_root) serial_number=$(sn) uuid=$(uuid) hw_version=$(hw) device_mac=$(mac) factory_date=$(date) wps_pin=$(wps); bootm 0x2000000;
mfgboot=nand read.e 0x2000000 0x1c00000 0x300000; setenv bootargs $(console) $(mtdparts) $(mfg_fs_bootargs_root) serial_number=$(sn) uuid=$(uuid) hw_version=$(hw) device_mac=$(mac) factory_date=$(date) wps_pin=$(wps); bootm 0x2000000;
usbboot=usb start;ext2load usb 0:1 2000000 /uImage; setenv bootargs $(console) $(mtdparts) $(usb_fs_bootargs_root) rootdelay=10; bootm 0x2000000;
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
lcd0_enable=0
lcd0_params=640x480-16@60
ethmtu=1500
eth1mtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
mtdparts_version=4
envsaved=yes
ethact=egiga0
auto_recovery=no
bootargs_usb=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
load_usb=usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x02100000 /boot/uInitrd
bootcmd_usb=setenv bootargs $(bootargs_usb); run load_usb; bootm 0x800000 0x02100000
bootcmd=run bootcmd_usb
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no
pcieTune1=no
layout=ver.0.0.7
model=EA4500
hw=RGWM-C4_0GA
edal_key=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
mac=48:F8:B3:99:29:7E
ethaddr=48:F8:B3:99:29:7E
eth1addr=48:F8:B3:99:29:7F
date=2013/09/18
sn=12A10609312967
uuid=F6EC3F5891A460B41EDFAAA8D9AF2404
wps=21300455

Environment size: 3200/131068 bytes
Viper>> boot
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
.
......
............
.........................
...................................................
......................................................................................................
.........................................................................................................................................................................

3834397 bytes read
....
.
...................
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
...................................................................................................................................................................................................................................................................................................................................................

7723083 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2018-07-06  21:30:30 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3834333 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      1970-01-01   0:38:31 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7723019 Bytes =  7.4 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Linksys Viper (E4200v2 / EA4500)
[    0.000000] bootconsole [earlycon0] enabled
[    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=LABEL=rootfs rootdelay=10 earlyprintk=serial
[    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: 108948K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 22124K 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 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    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.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007906] Switching to timer-based delay loop, resolution 5ns
[    0.014324] Console: colour dummy device 80x30
[    0.018904] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.029513] pid_max: default: 32768 minimum: 301
[    0.034378] Security Framework initialized
[    0.038699] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.045379] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053336] CPU: Testing write buffer coherency: ok
[    0.059285] Setting up static identity map for 0x100000 - 0x100058
[    0.065775] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.074106] devtmpfs: initialized
[    0.082195] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.092152] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.098723] prandom: seed boundary self test passed
[    0.107383] prandom: 100 self tests passed
[    0.111598] pinctrl core: initialized pinctrl subsystem
[    0.118061] NET: Registered protocol family 16
[    0.122988] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.131493] cpuidle: using governor ladder
[    0.135720] cpuidle: using governor menu
[    0.140154] Feroceon L2: Enabling L2
[    0.143835] Feroceon L2: Cache support initialised.
[    0.149169] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.164138] No ATAGs?
[    0.173338] vgaarb: loaded
[    0.178827] SCSI subsystem initialized
[    0.183101] usbcore: registered new interface driver usbfs
[    0.188774] usbcore: registered new interface driver hub
[    0.194221] usbcore: registered new device driver usb
[    0.200437] clocksource: Switched to clocksource orion_clocksource
[    0.295764] VFS: Disk quotas dquot_6.6.0
[    0.299834] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.317419] NET: Registered protocol family 2
[    0.322624] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.329652] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.336104] TCP: Hash tables configured (established 1024 bind 1024)
[    0.342611] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.348516] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.355035] NET: Registered protocol family 1
[    0.359864] RPC: Registered named UNIX socket transport module.
[    0.365913] RPC: Registered udp transport module.
[    0.370709] RPC: Registered tcp transport module.
[    0.375472] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.382215] Unpacking initramfs...
[    1.067909] Freeing initrd memory: 7544K
[    1.072147] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.079694] audit: initializing netlink subsys (disabled)
[    1.085702] Initialise system trusted keyrings
[    1.090248] Key type blacklist registered
[    1.094394] audit: type=2000 audit(1.074:1): state=initialized audit_enabled=0 res=1
[    1.102362] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    1.108930] zbud: loaded
[    1.112556] NFS: Registering the id_resolver key type
[    1.117687] Key type id_resolver registered
[    1.121992] Key type id_legacy registered
[    1.126075] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.132864] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.139466] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.146773] fuse init (API version 7.26)
[    1.151150] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.157873] orangefs_init: module version upstream loaded
[    1.163361] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.560444] random: fast init done
[    6.986551] Key type asymmetric registered
[    6.991020] Asymmetric key parser 'x509' registered
[    6.996016] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    7.003598] io scheduler noop registered
[    7.007589] io scheduler deadline registered
[    7.012050] io scheduler cfq registered (default)
[    7.018049] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    7.027347] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    7.035998] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    7.042356] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    7.049290] pci_bus 0000:00: root bus resource [bus 00-ff]
[    7.055422] PCI: bus0: Fast back to back transfers disabled
[    7.061099] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    7.069167] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    7.100510] PCI: bus1: Fast back to back transfers disabled
[    7.130502] PCI: bus2: Fast back to back transfers disabled
[    7.136434] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    7.143394] pci 0000:00:02.0: BAR 14: assigned [mem 0xe0100000-0xe01fffff]
[    7.150333] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe000ffff 64bit]
[    7.157730] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0010000-0xe001ffff 64bit]
[    7.165121] pci 0000:00:01.0: PCI bridge to [bus 01]
[    7.170159] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    7.177037] pci 0000:02:00.0: BAR 0: assigned [mem 0xe0100000-0xe010ffff 64bit]
[    7.184435] pci 0000:02:00.0: BAR 2: assigned [mem 0xe0110000-0xe011ffff 64bit]
[    7.191827] pci 0000:00:02.0: PCI bridge to [bus 02]
[    7.196863] pci 0000:00:02.0:   bridge window [mem 0xe0100000-0xe01fffff]
[    7.203798] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    7.210040] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    7.216691] mv_xor f1060800.xor: Marvell shared XOR driver
[    7.281201] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    7.289046] mv_xor f1060900.xor: Marvell shared XOR driver
[    7.351196] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    7.359262] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    7.367078] console [ttyS0] disabled
[    7.370853] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    7.379889] console [ttyS0] enabled
[    7.379889] console [ttyS0] enabled
[    7.387028] bootconsole [earlycon0] disabled
[    7.387028] bootconsole [earlycon0] disabled
[    7.404162] loop: module loaded
[    7.408185] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    7.414644] nand: Hynix H27U1G8F2BTR-BC
[    7.418502] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.426144] Scanning device for bad blocks
[    7.496825] 9 ofpart partitions found on MTD device orion_nand
[    7.502704] Creating 9 MTD partitions on "orion_nand":
[    7.507868] 0x000000000000-0x000000080000 : "u-boot"
[    7.514124] 0x000000080000-0x0000000a0000 : "u_env"
[    7.520241] 0x0000000a0000-0x0000000c0000 : "s_env"
[    7.526460] 0x000000200000-0x0000004a0000 : "kernel"
[    7.532802] 0x0000004a0000-0x000001c00000 : "rootfs"
[    7.539213] 0x000001c00000-0x000001ea0000 : "alt_kernel"
[    7.545709] 0x000001ea0000-0x000003600000 : "alt_rootfs"
[    7.552350] 0x000003600000-0x000008000000 : "syscfg"
[    7.558981] 0x0000000c0000-0x000000200000 : "unused"
[    7.566352] libphy: Fixed MDIO Bus: probed
[    7.571389] libphy: orion_mdio_bus: probed
[    7.575793] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.583771] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 48:f8:b3:99:29:7e
[    7.592686] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.599266] ehci-pci: EHCI PCI platform driver
[    7.603827] ehci-orion: EHCI orion driver
[    7.608046] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.613617] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.621489] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    7.650479] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.656766] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    7.663616] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.670896] usb usb1: Product: EHCI Host Controller
[    7.675795] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    7.682545] usb usb1: SerialNumber: f1050000.ehci
[    7.688014] hub 1-0:1.0: USB hub found
[    7.691884] hub 1-0:1.0: 1 port detected
[    7.696408] usbcore: registered new interface driver usb-storage
[    7.702831] mousedev: PS/2 mouse device common for all mice
[    7.708707] i2c /dev entries driver
[    7.713530] hidraw: raw HID events driver (C) Jiri Kosina
[    7.719292] drop_monitor: Initializing network drop monitor service
[    7.725892] NET: Registered protocol family 17
[    7.730495] Key type dns_resolver registered
[    7.735526] registered taskstats version 1
[    7.739640] Loading compiled-in X.509 certificates
[    7.744540] zswap: loaded using pool lzo/zbud
[    7.758785] Key type big_key registered
[    7.772059] Key type encrypted registered
[    7.777482] hctosys: unable to open rtc device (rtc0)
[    7.786001] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[    8.050545] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.295075] mv88e6085 f1072004.mdio-bus-mii:10: switch 0x171 detected: Marvell 88E6171, revision 2
[    8.306386] usb 1-1: New USB device found, idVendor=090c, idProduct=1000
[    8.306395] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    8.306401] usb 1-1: Product: USB DISK
[    8.306407] usb 1-1: Manufacturer: SMI Corporation
[    8.307217] usb-storage 1-1:1.0: USB Mass Storage device detected
[    8.314209] scsi host0: usb-storage 1-1:1.0
[    8.630244] usbcore: registered new interface driver uas
[    8.722558] libphy: mv88e6xxx SMI: probed
[    8.726663] DSA: switch 0 0 parsed
[    8.730083] DSA: tree 0 parsed
[    9.620288] Generic PHY mv88e6xxx-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=mv88e6xxx-0:00, irq=-1)
[    9.644943] Generic PHY mv88e6xxx-0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=mv88e6xxx-0:01, irq=-1)
[    9.665128] Generic PHY mv88e6xxx-0:02: attached PHY driver [Generic PHY] (mii_bus:phy_addr=mv88e6xxx-0:02, irq=-1)
[    9.687657] Generic PHY mv88e6xxx-0:03: attached PHY driver [Generic PHY] (mii_bus:phy_addr=mv88e6xxx-0:03, irq=-1)
[    9.710143] Generic PHY mv88e6xxx-0:04: attached PHY driver [Generic PHY] (mii_bus:phy_addr=mv88e6xxx-0:04, irq=-1)
Begin: Loading essential drivers ... done.
[   10.120863] scsi 0:0:0:0: Direct-Access     SMI      USB DISK         1100 PQ: 0 ANSI: 0 CCS
[   10.134817] sd 0:0:0:0: [sda] 7886848 512-byte logical blocks: (4.04 GB/3.76 GiB)
[   10.149318] sd 0:0:0:0: [sda] Write Protect is off
[   10.159682] sd 0:0:0:0: [sda] No Caching mode page found
[   10.167893] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   10.183560] random: crng init done
[   10.187112]  sda: sda1
[   10.195687] sd 0:0:0:0: [sda] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
rootfs: clean, 14601/246512 files, 172291/985600 blocks
done.
[   20.053327] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   20.073790] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
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.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[   22.234267] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[ ok                                             done.
[....] Waiting for /dev to be fully populated...[   22.521431] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   22.695185] marvell-cesa f1030000.crypto: CESA device successfully registered
[   22.752483] orion_wdt: Initial timeout 21 sec
[   22.902175] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   23.072034] Marvell TOPDOG(R) 802.11 Wireless Network Driver version 0.13
[   24.070571] ieee80211 phy0: Command RF_ANTENNA error 0x2
[   24.075921] ieee80211 phy0: failed to set # of RX antennas
[   24.090498] ieee80211 phy0: Command RF_ANTENNA error 0x2
[   24.095837] ieee80211 phy0: failed to set # of TX antennas
[   24.120496] ieee80211 phy0: 88w8366 v48, 48f8b3992980, STA firmware 4.1.0.3
[   24.139643] ieee80211 phy1: Command RF_ANTENNA error 0x2
[   24.150554] ieee80211 phy1: failed to set # of RX antennas
[   24.160600] ieee80211 phy1: Command RF_ANTENNA error 0x2
[   24.165950] ieee80211 phy1: failed to set # of TX antennas
[   24.172120] mwl8k 0000:01:00.0 wlp1s0: renamed from wlan0
[   24.178279] ieee80211 phy1: 88w8366 v48, 48f8b3992982, STA firmware 4.1.0.3
[   24.244930] mwl8k 0000:02:00.0 wlp2s0: renamed from wlan0
done.
[ ok ] Activating swap:.
[   24.938978] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is w[ ok le..
[....] Cleaning up temporary files...[....] Cleanin[ ok p...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[   27.747206] mv643xx_eth: no PHY
[   27.747249] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/48:f8:b3:99:29:7e
Sending on   LPF/eth0/48:f8:b3:99:29:7e
Sending on   Socket/fallback
DHCPREQUEST of 192.168.0.14 on eth0 to 255.255.255.255 port 67
[  101.084047] NET: Registered protocol family 10
[  101.092262] Segment Routing with IPv6
DHCPREQUEST of 192.168.0.14 on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
Trying recorded lease 192.168.0.14
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.

--- 192.168.0.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

No working leases in persistent database - sleeping.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ 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...
1351 (syslogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-dae[ o. 
[....] Not starting NFS kernel daemon: no exports. [wa (warning).
[ ok ] Starting NTP server: ntpd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1350 (klogd)
. ok 
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Wed Dec 31 16:03:20 PST 1969 on ttyS0
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00020000 "u-boot"
mtd1: 00020000 00020000 "u_env"
mtd2: 00020000 00020000 "s_env"
mtd3: 002a0000 00020000 "kernel"
mtd4: 01760000 00020000 "rootfs"
mtd5: 002a0000 00020000 "alt_kernel"
mtd6: 01760000 00020000 "alt_rootfs"
mtd7: 04a00000 00020000 "syscfg"
mtd8: 00140000 00020000 "unused"
root@debian:~# cat /etc/fw_env.config
# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd1 00080000 0x20000 0x20000
root@debian:~# fw_printenv
Environment does not fit into available sectors
root@debian:~# ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::4af8:b3ff:fe99:297e  prefixlen 64  scopeid 0x20<link>
        ether 48:f8:b3:99:29:7e  txqueuelen 1000  (Ethernet)
        RX packets 535  bytes 42058 (41.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 55  bytes 10093 (9.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 35  

ethernet1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 48:f8:b3:99:29:7e  txqueuelen 1000  (Ethernet)
        RX packets 535  bytes 28148 (27.4 KiB)
        RX errors 0  dropped 28  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ethernet2: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 48:f8:b3:99:29:7e  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ethernet3: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 48:f8:b3:99:29:7e  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ethernet4: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 48:f8:b3:99:29:7e  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

internet: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 48:f8:b3:99:29:7e  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 4  bytes 364 (364.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4  bytes 364 (364.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp1s0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 48:f8:b3:99:29:80  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp2s0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 48:f8:b3:99:29:82  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
The reason WiFi was working is that I manually copied firmware-libertas over on to the rootfs and installed it with dpkg like I tried to do with firmware-realtek
Re: Install Linux Kernel 4.16.1 Kirkwood on Linksys EA4500
July 08, 2018 04:59PM
Ron,

What is is in your resolv.conf?
cat /etc/resolv.conf

If this resolv.conf looks good, then you should try using a static IP to see if it is OK.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
All the file contains is this:
nameserver 192.168.1.1
Should it have more? I've never had to edit it to get internet before.
Re: Install Linux Kernel 4.16.1 Kirkwood on Linksys EA4500
July 08, 2018 06:07PM
Ron Nelson Wrote:
-------------------------------------------------------
> All the file contains is this:
>
> nameserver 192.168.1.1
>
> Should it have more? I've never had to edit it to
> get internet before.

That looks good. Usually nameserver is your router.

So try static IP to make sure ethernet works first.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Install Linux Kernel 4.16.1 Kirkwood on Linksys EA4500
July 09, 2018 01:08AM
Ron,

Quote

And error about fw_printenv was because the content of fw_env.config should look like:

# MTD device name Device offset Env. size Flash sector size Number of sectors

# Linksys EA4500
/dev/mtd1 00080000 0x20000 0x20000

Pls get the listing of envs in Debian:
fw_printenv

and also

cat /etc/network/interfaces

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
As you can see in the big log above, the changed fw_env.config did not fix fw_printenv. It just resulted in a different error message. Here's my /etc/network/interfaces:
auto lo eth0
iface lo inet loopback
iface eth0 inet static
        address 192.168.1.254
        netmask 255.255.255.0
        gateway 192.168.1.1
        network 192.168.1.1
With that setup, it get's the IP address, but can't ping the router, or anything other than itself. The ping output looks like this:
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.254 icmp_seq=1 Destination Host Unreachable
From 192.168.1.254 icmp_seq=2 Destination Host Unreachable
From 192.168.1.254 icmp_seq=3 Destination Host Unreachable
From 192.168.1.254 icmp_seq=4 Destination Host Unreachable
Is it weird that the message is coming from it's own address?

One very odd thing I noticed was that ifconfig doesn't show a HWaddr for eth0. Is the thing listed under "ether" it's MAC address? That's what I used when I set aside it's IP address in the router config.
In the config webpage for my current router, it's not in the list of clients.
Re: Install Linux Kernel 4.16.1 Kirkwood on Linksys EA4500
July 09, 2018 04:50PM
Ron,

> From 192.168.1.254 icmp_seq=3 Destination Host
> Unreachable

> Is it weird that the message is coming from it's
> own address?
>

That's normal. It showed the box is 192.168.1.254. And it's trying to reach the router (Destination Host), but there is no connection.

Ah! I've missed that error "Environment does not fit into available sectors". I can see why. You did not have the mtdparts in bootargs.

Do the same procedure, but adjust these 2 envs in serial console.
setenv mtdparts 'mtdparts=orion_nand:512k(uboot)ro,128k@512k(u_env),128k@640k(s_env),26m@2m(kernel),26m@2m(rootfs)fs,26m@28m(alt_kernel),26m@28m(alt_rootfs)fs,74m@54m(syscfg)'
setenv bootargs_usb 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $(mtdparts) earlyprintk=serial'

And then boot.

Now keep your static IP, and see if the network is up. Also run fw_printenv again.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
I did that, but nothing changed. Still has IP address. Still no internet. fw_printenv still gives "Environment does not fit into available sectors".
Viper>> printenv  
bootdelay=0
baudrate=115200
loads_echo=0
ipaddr=192.168.1.10
serverip=192.168.1.254
rootpath=/mnt/ARM_FS
netmask=255.255.255.0
run_diag=yes
boot_part=1
boot_part_ready=3
console=console=ttyS0,115200
badcount=0
bootbadcount=0
uenvbadcount=0
senvbadcount=0
buffbadcount=0
fs_bootargs=unused
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
fs_bootargs_root=root=/dev/mtdblock4 ro rootfstype=jffs2
alt_fs_bootargs_root=root=/dev/mtdblock6 ro rootfstype=jffs2
mfg_fs_bootargs_root=root=/dev/mtdblock6 ro rootfstype=jffs2
usb_fs_bootargs_root=root=/dev/sda1 rw rootfstype=ext2
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
nfsboot=tftp 0x2000000 uImage; setenv bootargs $(console) $(mtdparts) $(bootargs_root) nfsroot=$(serverip):$(rootpath) ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x2000000;
nandboot=nand read.e 0x2000000 0x200000 0x300000; setenv bootargs $(console) $(mtdparts) $(fs_bootargs_root) serial_number=$(sn) uuid=$(uuid) hw_version=$(hw) device_mac=$(mac) factory_date=$(date) wps_pin=$(wps); bootm 0x2000000;
altnandboot=nand read.e 0x2000000 0x1c00000 0x300000; setenv bootargs $(console) $(mtdparts) $(alt_fs_bootargs_root) serial_number=$(sn) uuid=$(uuid) hw_version=$(hw) device_mac=$(mac) factory_date=$(date) wps_pin=$(wps); bootm 0x2000000;
mfgboot=nand read.e 0x2000000 0x1c00000 0x300000; setenv bootargs $(console) $(mtdparts) $(mfg_fs_bootargs_root) serial_number=$(sn) uuid=$(uuid) hw_version=$(hw) device_mac=$(mac) factory_date=$(date) wps_pin=$(wps); bootm 0x2000000;
usbboot=usb start;ext2load usb 0:1 2000000 /uImage; setenv bootargs $(console) $(mtdparts) $(usb_fs_bootargs_root) rootdelay=10; bootm 0x2000000;
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
lcd0_enable=0
lcd0_params=640x480-16@60
ethmtu=1500
eth1mtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
mtdparts_version=4
envsaved=yes
ethact=egiga0
auto_recovery=no
load_usb=usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x02100000 /boot/uInitrd
bootcmd_usb=setenv bootargs $(bootargs_usb); run load_usb; bootm 0x800000 0x02100000
bootcmd=run bootcmd_usb
mtdparts=mtdparts=orion_nand:512k(uboot)ro,128k@512k(u_env),128k@640k(s_env),26m@2m(kernel),26m@2m(rootfs)fs,26m@28m(alt_kernel),26m@28m(alt_rootfs)fs,74m@54m(syscfg)
bootargs_usb=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $(mtdparts) earlyprintk=serial
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no
pcieTune1=no
layout=ver.0.0.7
model=EA4500
hw=RGWM-C4_0GA
edal_key=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
mac=48:F8:B3:99:29:7E
ethaddr=48:F8:B3:99:29:7E
eth1addr=48:F8:B3:99:29:7F
date=2013/09/18
sn=12A10609312967
uuid=F6EC3F5891A460B41EDFAAA8D9AF2404
wps=21300455

Environment size: 3214/131068 bytes
Viper>> boot

Author:

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: