Welcome! Log In Create A New Profile

Advanced

NSA310 not booting after flashing 2017.07 U-Boot Kirkwood

Posted by anders 
NSA310 not booting after flashing 2017.07 U-Boot Kirkwood
March 04, 2019 04:08PM
Hi All!

First of all thanks to bodhi for all your work!

Today I tried flashing Uboot to my NSA310 by following instructions from https://forum.doozan.com/read.php?3,12381

Everything went well until I rebooted and it didn't come back up. I hope someone can point me in a direction that brings this thing back to live.

The device turns on, but I do not get any packages from it at all when I on my computer tcpdump on the interface directly connected to the device (I would at least expect an arp lookup of the netconsole server ip).

The USB drive that I am trying to boot from has Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 installed.

Here is a log of what I did:

$ telnet 192.168.87.253
nsa310 login: root
Password: 
BusyBox v1.17.2 (2016-03-11 17:11:16 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ # mount
rootfs on / type rootfs (rw)
/proc on /proc type proc (rw,relatime)
/sys on /sys type sysfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mtdblock6 on /zyxel/mnt/nand type yaffs2 (ro,relatime)
/dev/sda1 on /zyxel/mnt/sysdisk type ext2 (ro,relatime,errors=continue)
/dev/loop0 on /ram_bin type ext2 (ro,relatime,errors=continue)
/dev/loop0 on /usr type ext2 (ro,relatime,errors=continue)
/dev/loop0 on /lib/security type ext2 (ro,relatime,errors=continue)
/dev/loop0 on /lib/modules type ext2 (ro,relatime,errors=continue)
/dev/ram0 on /tmp/tmpfs type tmpfs (rw,relatime,size=5120k)
/dev/ram0 on /usr/local/etc type tmpfs (rw,relatime,size=5120k)
/dev/ram0 on /usr/local/var type tmpfs (rw,relatime,size=5120k)
/dev/mtdblock4 on /etc/zyxel type yaffs2 (rw,relatime)
/dev/md0 on /i-data/ea498e69 type ext4 (rw,noatime,barrier=0,data=writeback,usrquota)
/dev/md0 on /usr/local/zy-pkgs type ext4 (rw,noatime,barrier=0,data=writeback,usrquota)
/dev/md0 on /etc/zyxel/zy-pkgs type ext4 (rw,noatime,barrier=0,data=writeback,usrquota)
/dev/md0 on /usr/local/apache/htdocs/adv,/pkg type ext4 (rw,noatime,barrier=0,data=writeback,usrquota)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/md0 on /usr/local/apache/web_framework/data/cache type ext4 (rw,noatime,barrier=0,data=writeback,usrquota)
/dev/mtdblock4 on /usr/local/apache/web_framework/data/config type yaffs2 (rw,relatime)

~ # cat /etc/fstab
/dev/ram0       /               ext2    defaults        0       0
none            /proc           proc    defaults        0       0
none            /sys            sysfs   defaults        0       0
none            /dev/pts        devpts  defaults        0       0

~ # cat /proc/cpuinfo
Processor	: Feroceon 88FR131 rev 1 (v5l)
BogoMIPS	: 1199.30
Features	: swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant	: 0x2
CPU part	: 0x131
CPU revision	: 1

Hardware	: Feroceon-KW
Revision	: 0000
Serial		: 0000000000000000
~ # cat /proc/meminfo
MemTotal:	  247952 kB
MemFree:	    7704 kB
Buffers:	   23540 kB
Cached: 	  166952 kB
SwapCached:	       0 kB
Active: 	   49508 kB
Inactive:	  157528 kB
Active(anon):	    6928 kB
Inactive(anon):    26376 kB
Active(file):	   42580 kB
Inactive(file):   131152 kB
Unevictable:	   14812 kB
Mlocked:	       0 kB
SwapTotal:	  524280 kB
SwapFree:	  524280 kB
Dirty:		       0 kB
Writeback:	       0 kB
AnonPages:	   31388 kB
Mapped: 	   12796 kB
Slab:		   13796 kB
SReclaimable:	    2984 kB
SUnreclaim:	   10812 kB
PageTables:	    1004 kB
NFS_Unstable:	       0 kB
Bounce: 	       0 kB
WritebackTmp:	       0 kB
CommitLimit:	  648256 kB
Committed_AS:	  315308 kB
VmallocTotal:	  385024 kB
VmallocUsed:	     608 kB
VmallocChunk:	  382828 kB
~ # dmesg
Linux version 2.6.31.8 (root@BuildMachine) (gcc version 4.3.2 (sdk3.3-ct-ng-1.4.1) ) #2 Fri Mar 11 17:35:20 CST 2016
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Feroceon-KW
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 65536
free_area_init_node: node 0, pgdat c0849988, node_mem_map c0868000
  Normal zone: 512 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 65024 pages, LIFO batch:15
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 65024
Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0x200000(etc),0x600000(kernel_1),0x37C0000(rootfs1),0x600000(kernel_2),0x37C0000(rootfs2) root=/dev/nfs rw init=/init
PID hash table entries: 1024 (order: 10, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 244992KB available (5304K code, 300K data, 2804K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:128
Console: colour dummy device 80x30
Calibrating delay loop... 1199.30 BogoMIPS (lpj=5996544)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 256MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB
PEX0_IO ....base f2000000, size   1MB
PEX1_MEM ....no such
PEX1_IO ....no such
INTER_REGS ....base f1000000, size   1MB
NFLASH_CS ....base fa000000, size   2MB
SPI_CS ....base f4000000, size	16MB
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size   2MB

  Marvell Development Board (LSP Version KW_LSP_5.1.3_patch18)-- RD-88F6281A  Soc: 88F6281 A1 LE

 Detected Tclk 200000000 and SysClk 400000000
Marvell USB EHCI Host controller #0: c8040740
PEX0 interface detected Link X1
pci 0000:00:01.0: reg 10 io port: [0xf0000000-0xf00000ff]
pci 0000:00:01.0: reg 18 64bit mmio: [0x40000000-0x40000fff]
pci 0000:00:01.0: reg 20 64bit mmio: [0x40004000-0x40007fff]
pci 0000:00:01.0: reg 30 32bit mmio: [0x000000-0x00ffff]
pci 0000:00:01.0: supports D1 D2
pci 0000:00:01.0: PME# supported from D0 D1 D2 D3hot D3cold
pci 0000:00:01.0: PME# disabled
PCI: bus0: Fast back to back transfers disabled
mvPexLocalBusNumSet: ERR. Invalid PEX interface 1
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
rtc mv_rtc: rtc core: registered kw-rtc as rtc0
RTC registered
cpufreq: Init kirkwood cpufreq driver
cpufreq: High frequency: 1200000KHz - Low frequency: 400000KHz
cpufreq: Setting CPU Frequency to 1200000 KHz
cpufreq: Setting PowerSaveState to off
XOR registered 4 channels
XOR 2nd invalidate WA enabled
mvCesaInit: sessions=640, queue=64, pSram=f0000000
Warning: TS unit is powered off.
gpio_dev = fd00000
LED_SET_CTL_IOC_NUM= 6702
High gpio polarity = 50
High gpio polarity = 70
Enable Interrupt
mv88f6281_wdt: Watchdog Timer timeout = 8 sec.
mv88f6281_wdt: HW Watchdog timeout    = 15 sec.
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.12)
SGI XFS with security attributes, large block/inode numbers, no debug enabled
SGI XFS Quota Management subsystem
yaffs built Mar 11 2016 17:19:52 Installing.




YAFFS-WARNING CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED selected.



msgmni has been set to 478
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
Integrated Sata device found
IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
Wake up disk0......
Wake up disk1......
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
scsi 0:0:0:0: Direct-Access		 WD5000AVDS-63U7B 01.0 PQ: 0 ANSI: 5
EnablePowerSaving
PowerSavingTime = 15
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
sd 0:0:0:0: [sda] 0-byte physical blocks
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 23 00 10 00
Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o 0 Giga ports supported
  o Single RX Queue support - ETH_DEF_RXQ=0
  o Single TX Queue support - ETH_DEF_TXQ=0
  o TCP segmentation offload (TSO) supported
  o Large Receive offload (LRO) supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Network Fast Processing (Routing) supported - (Disabled)
  o Driver ERROR statistics enabled
  o Proc tool API enabled
  o SKB Reuse supported - (Disabled)
  o SKB Recycle supported - (Disabled)
  o Rx descripors: q0=128
  o Tx descripors: q0=532
  o Loading network interface(s):

mvFpRuleDb (c8f5a000): 2048 entries, 8192 bytes
Counter=0, opIdx=6, overhead=16
Counter=1, opIdx=2, overhead=0
Counter=2, opIdx=1, overhead=18
Counter=3, opIdx=2, overhead=0
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 962 at 0x000007840000
9 cmdlinepart partitions found on MTD device nand_mtd
Using command line partition definition
Creating 9 MTD partitions on "nand_mtd":
0x000000000000-0x000000100000 : "uboot"
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
0x000000100000-0x000000180000 : "uboot_env"
0x000000180000-0x000000200000 : "key_store"
0x000000200000-0x000000280000 : "info"
 sda:
0x000000280000-0x000000480000 : "etc"
0x000000480000-0x000000a80000 : "kernel_1"
0x000000a80000-0x000004240000 : "rootfs1"
0x000004240000-0x000004840000 : "kernel_2"
 sda1 sda2
0x000004840000-0x000008000000 : "rootfs2"
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
sd 0:0:0:0: [sda] Attached SCSI disk
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
hwmon-vid: Unknown VRM version of your CPU
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
cpufreq: Setting CPU Frequency to 1200000 KHz
cpufreq: Setting PowerSaveState to off
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
Mobile IPv6
IPv6 over IPv4 tunneling driver
sit0: Disabled Privacy Extensions
ip6tnl0: Disabled Privacy Extensions
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc mv_rtc: setting system clock to 2019-02-28 17:10:02 UTC (1551373802)
Freeing init memory: 2804K
usb 1-1: new high speed USB device using ehci_marvell and address 2
In hub_port_init, and number is 0, retry 0, port 1 .....
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
r8168 Gigabit Ethernet driver 8.023.00-NAPI loaded
r8168 0000:00:01.0: no MSI. Back to INTx.
 Set LED ...
eth%d: RTL8168B/8111B at 0xd0900000, 50:67:f0:52:9e:d9, IRQ 9
r8168: This product is covered by one or more of the following patents: US5,307,459, US5,434,872, US5,732,094, US6,570,884, US6,115,776, and US6,327,625.
eth0: Identified chip type is 'RTL8168D/8111D'.
r8168  Copyright (C) 2011  Realtek NIC software team <nicfae@realtek.com>
 This program comes with ABSOLUTELY NO WARRANTY; for details, please see http://www.gnu.org/licenses/.
 This is free software, and you are welcome to redistribute it under certain conditions; see http://www.gnu.org/licenses/.
r8168: egiga0: link down
ADDRCONF(NETDEV_UP): egiga0: link is not ready
yaffs: dev is 32505862 name is "mtdblock6" ro
yaffs: passed flags ""
yaffs: Attempting MTD mount of 31.6,"mtdblock6"
yaffs_read_super: isCheckpointed 0
r8168: egiga0: link up
ADDRCONF(NETDEV_CHANGE): egiga0: link becomes ready
r8168: egiga0: link up
yaffs: dev is 32505860 name is "mtdblock4" rw
yaffs: passed flags ""
yaffs: Attempting MTD mount of 31.4,"mtdblock4"
yaffs_read_super: isCheckpointed 0
NTFS driver 2.1.29 [Flags: R/O MODULE].
tntfs: module license 'Commercial. For support email ntfs-support@tuxera.com.' taints kernel.
Disabling lock debugging due to kernel taint
Tuxera NTFS driver 3011.12.23 [Flags: R/W MODULE].
PPP generic driver version 2.4.2
PPP MPPE Compression module registered
PPP Deflate Compression module registered
NET: Registered protocol family 24
PPP BSD Compression module registered
egiga0: no IPv6 routers present
md: md0 stopped.
md: bind<sda2>
md0: detected capacity change from 0 to 499577782784
 md0: unknown partition table
EXT4-fs (md0): barriers disabled
kjournald2 starting: pid 1588, dev md0:8, commit interval 5 seconds
EXT4-fs (md0): warning: checktime reached, running e2fsck is recommended
EXT4-fs (md0): internal journal on md0:8
EXT4-fs (md0): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (md0): mounted filesystem with writeback data mode
DisablePowerSaving
TimerState = 1
EnablePowerSaving
PowerSavingTime = 15
Adding 524280k swap on /i-data/.zyxel/swap_ul6545p.  Priority:-1 extents:4 across:542712k
svc: failed to register lockdv1 RPC service (errno 97).
Uncached vma c231c5f8 (addr 40b3c000 flags 080000ff phy 04970000) from pid 5286
Uncached vma c231c548 (addr 40b3f000 flags 080000ff phy 04970000) from pid 5286
Uncached vma c231c548 (addr 406fe000 flags 080000ff phy 04970000) from pid 1367
Uncached vma c231c548 (addr 406fe000 flags 080000ff phy 04970000) from pid 1367
nfsd: peername failed (err 107)!

// Step 1.
~ #  cat /etc/fw_env.config
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundand
# environment sector is assumed present.
# Notice, that the "Number of sectors" is ignored on NOR.

# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
# NAND example
/dev/mtd1		0x0000		0x20000 	0x20000 		4

~ #  cat /proc/mtd
dev:	size   erasesize  name
mtd0: 00100000 00020000 "uboot"
mtd1: 00080000 00020000 "uboot_env"
mtd2: 00080000 00020000 "key_store"
mtd3: 00080000 00020000 "info"
mtd4: 00200000 00020000 "etc"
mtd5: 00600000 00020000 "kernel_1"
mtd6: 037c0000 00020000 "rootfs1"
mtd7: 00600000 00020000 "kernel_2"
mtd8: 037c0000 00020000 "rootfs2"

// Step 2.
/i-data/ea498e69/nfs/nas/uboot-update/tools # ./fw_printenv
bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0x200000(etc),0x600000(kernel_1),0x37C0000(rootfs1),0x600000(kernel_2),0x37C0000(rootfs2) root=/dev/nfs rw init=/init
bootcmd=nand read.e 0x2000000 $(kernel_addr) 0x600000; bootm 0x2000000
bootdelay=2
baudrate=115200
loads_echo=0
eth1addr=00:19:CB:00:51:82
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
nandEcc=1bit
kernel_addr=480000
PRODUCT_NAME=NSA-310
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=ZyXEL Communications Corp.
run_diag=yes
ethaddr=50:67:F0:52:9E:D9
MODEL_ID=A203

// Step 3.
/i-data/ea498e69/nfs/nas/uboot-update/tools # ./nanddump --noecc --omitoob -l 0x80000 -f mtd0 /dev/mtd0
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00080000...
/i-data/ea498e69/nfs/nas/uboot-update/tools # md5sum mtd0 
428d03817291278c9cec6468af72f4ff  mtd0

/i-data/ea498e69/nfs/nas/uboot-update/dump # # ../tools/nanddump --noecc --omitoob -f mtd2 /dev/mtd2
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00080000...
/i-data/ea498e69/nfs/nas/uboot-update/dump # ../tools/nanddump --noecc --omitoob -f mtd3 /dev/mtd3
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00080000...
/i-data/ea498e69/nfs/nas/uboot-update/dump # ../tools/nanddump --noecc --omitoob -f mtd4 /dev/mtd4
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00200000...
/i-data/ea498e69/nfs/nas/uboot-update/dump # ../tools/nanddump --noecc --omitoob -f mtd5 /dev/mtd5
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00600000...
/i-data/ea498e69/nfs/nas/uboot-update/dump # ../tools/nanddump --noecc --omitoob -f mtd6 /dev/mtd6
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x037c0000...
/i-data/ea498e69/nfs/nas/uboot-update/dump # ../tools/nanddump --noecc --omitoob -f mtd7 /dev/mtd7
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00600000...
/i-data/ea498e69/nfs/nas/uboot-update/dump # ../tools/nanddump --noecc --omitoob -f mtd8 /dev/mtd8
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x037c0000...

// Step 4.
/tmp # dmesg | grep mtd
Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0x200000(etc),0x600000(kernel_1),0x37C0000(rootfs1),0x600000(kernel_2),0x37C0000(rootfs2) root=/dev/nfs rw init=/init
9 cmdlinepart partitions found on MTD device nand_mtd
Creating 9 MTD partitions on "nand_mtd":
yaffs: dev is 32505862 name is "mtdblock6" ro
yaffs: Attempting MTD mount of 31.6,"mtdblock6"
yaffs: dev is 32505860 name is "mtdblock4" rw
yaffs: Attempting MTD mount of 31.4,"mtdblock4"

// Step 5./6.
/tmp # ./flash_erase /dev/mtd0 0 4
Erasing 128 Kibyte @ 60000 -- 100 % complete 

/tmp # nandwrite /dev/mtd0 uboot.2017.07-tld-1.nsa310.mtd0.kwb 
Writing data to block 0
Writing data to block 20000
Writing data to block 40000
Writing data to block 60000

/tmp # fw_printenv
Warning: Bad CRC, using default environment
bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init
bootcmd=nand read.e 0x2000000 $(kernel_addr) 0xA00000; bootm 0x2000000
bootdelay=2
baudrate=115200
nandEcc=1bit
kernel_addr=480000
MODEL_ID=A203
PRODUCT_NAME=NSA-310
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=ZyXEL Communications Corp.


// Step 8.
// The guide says  'As described in step 1, u-boot envs must be defined in /etc/fw_env.config as' ..., so I updated /etc/fw_env.config to that:
/tmp # cat /etc/fw_env.config
 # MTD device name      Device offset   Env. size       Flash sector size       Number of sectors 
 /dev/mtd0 0xc0000 0x20000 0x20000


/tmp # ./flash_erase /dev/mtd0 0xc0000 1
Erasing 128 Kibyte @ c0000 -- 100 % complete 

/tmp # nandwrite -s 786432 /dev/mtd0 uboot.2016.05-tld-1.environment.img
Writing data to block c0000

/tmp # fw_setenv arcNumber 4022
/tmp # fw_setenv machid

/tmp # fw_setenv ethaddr '50:67:F0:52:9E:D9'
/tmp # fw_setenv eth1addr '00:19:CB:00:51:82'

/tmp # fw_setenv mtdparts 'nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0x200000(etc),0x600000(kernel_1),0x37C0000(rootfs1),0x600000(kernel_2),0x37C0000(rootfs2)'

~ # fw_setenv dtb_file '/boot/dts/kirkwood-nsa310.dtb'

/tmp # fw_setenv preboot_nc 'setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole
; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi'
/tmp # fw_setenv preboot 'run preboot_nc'
/tmp # fw_setenv ipaddr    '192.168.11.253'
/tmp # fw_setenv serverip '192.168.11.200'



~ # fw_printenv
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $loa
d_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
ethact=egiga0
if_netconsole=ping $serverip
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb_addr=0x1c00000
load_initrd_addr=0x1100000
load_uimage_addr=0x800000
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
mainlineLinux=yes
mtdids=nand0=orion_nand
partition=nand0,2
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if
test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $di
sknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi;
 done
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
usb_ready_retry=15
arcNumber=4022
ethaddr=50:67:F0:52:9E:D9
eth1addr=00:19:CB:00:51:82
mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0x200000(etc),0x600000(kernel_1),0x37C0000(rootfs1),0x600000(kernel_2),0x37C0000(r
ootfs2)
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_ne
tconsole; fi
preboot=run preboot_nc
ipaddr=192.168.11.253
serverip=192.168.11.200
dtb_file=/boot/dts/kirkwood-nsa310.dtb
~ # reboot



Edited 1 time(s). Last edit at 03/05/2019 11:05AM by anders.
Re: NSA310 not booting after flashing 2017.07 U-Boot Kirkwood
March 04, 2019 05:21PM
anders,

You did everything correctly!

So now what is the box behavior? does the system LED flash and become solid green? I suspect this is the problem with mounting rootfs. So it is good to make sure you've followed the instruction to create the rootfs very closely.


Note that you have also set up netconsole. I take it that because you don't have serial console?

preboot=run preboot_nc
ipaddr=192.168.11.253
serverip=192.168.11.200

So now to observe the booting activity, and able to interrupt it to fix any error. You need to run netconsole server on a different Linux box whose IP address must be 192.168.11.200:

nc -lup 6666 192.168.11.253 6666

Start netconsole server first, and then power up the NSA310.

-----
Note: if you are running nc on Ubuntu, you'll need to install netcat traditional.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA310 not booting after flashing 2017.07 U-Boot Kirkwood
March 05, 2019 10:48AM
Hi bodhi!

> You did everything correctly!
Awesome!

> So now what is the box behavior? does the system LED flash and become solid green? I suspect this is the problem with mounting rootfs. So it is good to make sure you've followed the instruction to create the rootfs very closely.

When I press the power button the following happens with the LEDs:
* A blue one under the power button turns on and stays on.
* A red one underneath some voltage/current symbol turn on, but quickly changes to green.
* A red one underneath what I think is the disk activity symbol, turns on and quickly turns off.

Fan and hard drive spins up, and the network interface turns on.

After 2 minutes the voltage symbol changes to red (< 1 sec) and then it starts to blink in green for about 5 seconds (around 50-60 flashes I think) and then the led turns off. After this only the blue power led stays on.

If I boot without the debian usb drive inserted, after 2 minutes the green light underneath the voltage symbol turns off, and starts to blink red.

This is how I created the usb drive
# fdisk -l /dev/sda
Disk /dev/sda: 1.9 GiB, 1967128576 bytes, 3842048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xb51b2625

Device     Boot Start     End Sectors  Size Id Type
/dev/sda1           8 3842047 3842040  1.9G  c W95 FAT32 (LBA)


# mkfs.ext3 -L rootfs /dev/sda1 
mke2fs 1.44.1 (24-Mar-2018)
Creating filesystem with 480255 4k blocks and 120240 inodes
Filesystem UUID: 1a1e334b-1b17-484d-81b5-88ab6446d56b
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done 

# mount /dev/sda1 /mnt/usb
# cd /mnt/usb
# tar -xjf /path/to/Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
# ls -la /mnt/usb
total 96
drwxr-xr-x 21 root root  4096 Feb 17  2015 .
drwxr-xr-x  6 root root  4096 Mar  5 17:58 ..
drwxr-xr-x  2 root root  4096 Jul 24  2017 bin
drwxr-xr-x  3 root root  4096 Jan  1  1970 boot
drwxr-xr-x  5 root root  4096 Feb 24  2012 dev
drwxr-xr-x 57 root root  4096 Jan  1  1970 etc
drwxr-xr-x  2 root root  4096 Jan 22  2012 home
drwxr-xr-x 14 root root  4096 Jul 20  2017 lib
drwx------  2 root root 16384 Feb 24  2012 lost+found
drwxr-xr-x  2 root root  4096 Feb 24  2012 media
drwxr-xr-x  2 root root  4096 Feb 10  2015 mnt
drwxr-xr-x  2 root root  4096 Feb 24  2012 opt
drwxr-xr-x  2 root root  4096 Jan 22  2012 proc
drwx------  5 root root  4096 Jul 24  2017 root
drwxr-xr-x  2 root root  4096 Feb  8  2013 run
drwxr-xr-x  2 root root  4096 Jul 24  2017 sbin
drwxr-xr-x  2 root root  4096 Feb 24  2012 srv
drwxr-xr-x  2 root root  4096 Jan  1  2011 sys
drwxrwxrwt  2 root root  4096 Jan  1  1970 tmp
drwxr-xr-x 10 root root  4096 Feb 24  2012 usr
drwxr-xr-x 11 root root  4096 Jan  1  1970 var

# sync

> Note that you have also set up netconsole. I take it that because you don't have serial console?
Correct. I have an ethernet cable directly connected from the NAS to my 1Gbit usb-to-ethernet adapter, but for some reason it only negotiates 100Mb/s full duplex. Not a single packet from the NAS shows up in wireshark.

> Start netconsole server first, and then power up the NSA310.
Nothing shows up. I also tried with nc-traditional as you suggested.


Could the original firmware have written something to the flash when I did the graceful reboot? Maybe I should have just pulled the power plug after installing U-boot?


- Anders
Re: NSA310 not booting after flashing 2017.07 U-Boot Kirkwood
March 05, 2019 04:01PM
Anders,

Quote

Could the original firmware have written something to the flash when I did the graceful reboot? Maybe I should have just pulled the power plug after installing U-boot?

No. Once you've flashed with nand write, the new u-boot is permanent.

Quote

When I press the power button the following happens with the LEDs:
* A blue one under the power button turns on and stays on.
* A red one underneath some voltage/current symbol turn on, but quickly changes to green.
* A red one underneath what I think is the disk activity symbol, turns on and quickly turns off.

This indicated that the new u-boot is running.

-------

Let's look at your rootfs creation.

Are you root at this point?

# tar -xjf /path/to/Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2

After you've extract the rootfs, did you skip Step 4?

Quote

4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA310 not booting after flashing 2017.07 U-Boot Kirkwood
March 06, 2019 12:26AM
> Are you root at this point?
Yes

> After you've extract the rootfs, did you skip Step 4?
Yes
Re: NSA310 not booting after flashing 2017.07 U-Boot Kirkwood
March 06, 2019 01:43AM
anders,

Sorry, I forgot an important detail. Ethernet on the NSA310 does not work during u-boot booting! so netconsole will not work. The netconsole instruction was for a general case for Kirkwood u-boots. All other boxes have ethernet working.

So now in your situation. You can only rely on the LEDs light to decipher what the box is doing. If you cannot boot after trying to recreate the rootfs, then you will need to connect serial console.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA310 not booting after flashing 2017.07 U-Boot Kirkwood
March 09, 2019 09:28AM
It's alive!
Debian booted after uboot gave up setting up netconsole, but debian networking didn't work because the network interface name was enp1s0 instead of eth0. After updating /etc/networking/interfaces to enp1s0 instead of eth0 networking started to function! But after installing linux-4.20.6-kirkwood-tld-1-bodhi debian networking stopped working again.

Now there is only one strange thing. From debian I can't use fw_setenv. Any suggestions on how to fix that?
root@debian:~# fw_setenv preboot_nc
Can't open /dev/mtd0: Permission denied
Error: can't write fw_env to flash

root@debian:~# uname -a
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel GNU/Linux

root@debian:~# cat /proc/cmdline
console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0x200000(etc),0x600000(kernel_1),0x37C0000(rootfs1),0x600000(kernel_2),0x37C0000(rootfs2)

root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "uboot"
mtd1: 00080000 00020000 "uboot_env"
mtd2: 00080000 00020000 "key_store"
mtd3: 00080000 00020000 "info"
mtd4: 00a00000 00020000 "etc"
mtd5: 00a00000 00020000 "kernel_1"
mtd6: 02fc0000 00020000 "rootfs1"
mtd7: 00a00000 00020000 "kernel_2"
mtd8: 02fc0000 00020000 "rootfs2"

root@debian:~# dmesg | grep -i mtd
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0x200000(etc),0x600000(kernel_1),0x37C0000(rootfs1),0x600000(kernel_2),0x37C0000(rootfs2)
[    7.675968] 9 ofpart partitions found on MTD device orion_nand
[    7.681848] Creating 9 MTD partitions on "orion_nand":

root@debian:~# dmesg | grep -i 0x000
[    6.646732] pci 0000:01:00.0: reg 0x10: [io  0x0000-0x00ff]
[    6.646757] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x00000fff 64bit pref]
[    6.646776] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x00003fff 64bit pref]
[    6.647140] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    7.665387] Bad eraseblock 962 at 0x000007840000
[    7.687037] 0x000000000000-0x000000100000 : "uboot"
[    7.693258] 0x000000100000-0x000000180000 : "uboot_env"
[    7.699866] 0x000000180000-0x000000200000 : "key_store"
[    7.706417] 0x000000200000-0x000000280000 : "info"
[    7.712440] 0x000000280000-0x000000c80000 : "etc"
[    7.718380] 0x000000c80000-0x000001680000 : "kernel_1"
[    7.724740] 0x000001680000-0x000004640000 : "rootfs1"
[    7.731377] 0x000004640000-0x000005040000 : "kernel_2"
[    7.737867] 0x000005040000-0x000008000000 : "rootfs2"

root@debian:~# ls -l /dev/mtd*
crw------- 1 root root 90,  0 Mar  9 06:49 /dev/mtd0
crw------- 1 root root 90,  1 Mar  9 06:49 /dev/mtd0ro
crw------- 1 root root 90,  2 Mar  9 06:49 /dev/mtd1
crw------- 1 root root 90,  3 Mar  9 06:49 /dev/mtd1ro
crw------- 1 root root 90,  4 Mar  9 06:49 /dev/mtd2
crw------- 1 root root 90,  5 Mar  9 06:49 /dev/mtd2ro
crw------- 1 root root 90,  6 Mar  9 06:49 /dev/mtd3
crw------- 1 root root 90,  7 Mar  9 06:49 /dev/mtd3ro
crw------- 1 root root 90,  8 Mar  9 06:49 /dev/mtd4
crw------- 1 root root 90,  9 Mar  9 06:49 /dev/mtd4ro
crw------- 1 root root 90, 10 Mar  9 06:49 /dev/mtd5
crw------- 1 root root 90, 11 Mar  9 06:49 /dev/mtd5ro
crw------- 1 root root 90, 12 Mar  9 06:49 /dev/mtd6
crw------- 1 root root 90, 13 Mar  9 06:49 /dev/mtd6ro
crw------- 1 root root 90, 14 Mar  9 06:49 /dev/mtd7
crw------- 1 root root 90, 15 Mar  9 06:49 /dev/mtd7ro
crw------- 1 root root 90, 16 Mar  9 06:49 /dev/mtd8
crw------- 1 root root 90, 17 Mar  9 06:49 /dev/mtd8ro
brw-rw---- 1 root disk 31,  0 Mar  9 06:49 /dev/mtdblock0
brw-rw---- 1 root disk 31,  1 Mar  9 06:49 /dev/mtdblock1
brw-rw---- 1 root disk 31,  2 Mar  9 06:49 /dev/mtdblock2
brw-rw---- 1 root disk 31,  3 Mar  9 06:49 /dev/mtdblock3
brw-rw---- 1 root disk 31,  4 Mar  9 06:49 /dev/mtdblock4
brw-rw---- 1 root disk 31,  5 Mar  9 06:49 /dev/mtdblock5
brw-rw---- 1 root disk 31,  6 Mar  9 06:49 /dev/mtdblock6
brw-rw---- 1 root disk 31,  7 Mar  9 06:49 /dev/mtdblock7
brw-rw---- 1 root disk 31,  8 Mar  9 06:49 /dev/mtdblock8

root@debian:~# fw_printenv
arcNumber=4022
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-nsa310.dtb
eth1addr=00:19:CB:00:51:82
ethact=egiga0
ethaddr=50:67:F0:52:9E:D9
if_netconsole=ping $serverip
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0x200000(etc),0x600000(kernel_1),0x37C0000(rootfs1),0x600000(kernel_2),0x37C0000(rootfs2)
nc_ready=0
partition=nand0,2
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  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 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15



Entire boot:
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:54:15 -0700)
ZyXEL NSA310 1-Bay Power Media Server 


SoC:   Kirkwood 88F6281_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
MV88E1318 PHY initialized on egiga0
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.11.200 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.11.200 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.11.200 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.11.200 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.11.200 is not alive
Hit any key to stop autoboot:  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed
Unknown command 'mmc' - try 'help'

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

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	15685632  	3d7b0006-01	83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 692 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3821592 bytes read in 953 ms (3.8 MiB/s)
loading uInitrd ...
7245696 bytes read in 988 ms (7 MiB/s)
loading DTB /boot/dts/kirkwood-nsa310.dtb ...
13074 bytes read in 892 ms (13.7 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy 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 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f424000, end 0fb0cf40 ... OK
   Loading Device Tree to 0f41d000, end 0f423311 ... 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: ZyXEL NSA310
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0x200000(etc),0x600000(kernel_1),0x37C0000(rootfs1),0x600000(kernel_2),0x37C0000(rootfs2)
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 239360K/262144K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 22784K 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 : 0xd0800000 - 0xff800000   ( 752 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 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.000041] Switching to timer-based delay loop, resolution 5ns
[    0.000501] Console: colour dummy device 80x30
[    0.000535] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000557] pid_max: default: 32768 minimum: 301
[    0.000752] Security Framework initialized
[    0.000877] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000897] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001741] CPU: Testing write buffer coherency: ok
[    0.002771] Setting up static identity map for 0x100000 - 0x100058
[    0.003059] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.006318] devtmpfs: initialized
[    0.011466] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.011492] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.011880] prandom: seed boundary self test passed
[    0.015617] prandom: 100 self tests passed
[    0.015630] pinctrl core: initialized pinctrl subsystem
[    0.016780] NET: Registered protocol family 16
[    0.017364] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.018968] cpuidle: using governor ladder
[    0.019040] cpuidle: using governor menu
[    0.019636] Feroceon L2: Enabling L2
[    0.019683] Feroceon L2: Cache support initialised.
[    0.025047] No ATAGs?
[    0.034526] vgaarb: loaded
[    0.034846] SCSI subsystem initialized
[    0.035327] usbcore: registered new interface driver usbfs
[    0.035406] usbcore: registered new interface driver hub
[    0.035488] usbcore: registered new device driver usb
[    0.036768] clocksource: Switched to clocksource orion_clocksource
[    0.125360] VFS: Disk quotas dquot_6.6.0
[    0.125444] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.135971] NET: Registered protocol family 2
[    0.136715] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.136755] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.136840] TCP: Hash tables configured (established 2048 bind 2048)
[    0.136933] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.136962] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.137138] NET: Registered protocol family 1
[    0.137554] RPC: Registered named UNIX socket transport module.
[    0.137567] RPC: Registered udp transport module.
[    0.137574] RPC: Registered tcp transport module.
[    0.137581] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.137822] Unpacking initramfs...
[    0.794732] Freeing initrd memory: 7076K
[    0.795022] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.796026] audit: initializing netlink subsys (disabled)
[    0.796471] Initialise system trusted keyrings
[    0.796522] Key type blacklist registered
[    0.796617] audit: type=2000 audit(0.789:1): state=initialized audit_enabled=0 res=1
[    0.796710] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.796848] zbud: loaded
[    0.797851] NFS: Registering the id_resolver key type
[    0.797886] Key type id_resolver registered
[    0.797895] Key type id_legacy registered
[    0.797913] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.797924] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.798117] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.798308] fuse init (API version 7.26)
[    0.798654] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.798861] orangefs_init: module version upstream loaded
[    0.798873] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.556779] random: fast init done
[    6.642651] Key type asymmetric registered
[    6.642668] Asymmetric key parser 'x509' registered
[    6.642735] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    6.642746] io scheduler noop registered
[    6.642755] io scheduler deadline registered
[    6.642835] io scheduler cfq registered (default)
[    6.644126] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.645993] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    6.646015] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    6.646029] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    6.646043] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.646372] PCI: bus0: Fast back to back transfers disabled
[    6.646396] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.676844] PCI: bus1: Fast back to back transfers disabled
[    6.677053] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    6.677069] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    6.677089] pci 0000:01:00.0: BAR 6: assigned [mem 0xe0000000-0xe000ffff pref]
[    6.677105] pci 0000:01:00.0: BAR 4: assigned [mem 0xe0010000-0xe0013fff 64bit pref]
[    6.677129] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0014000-0xe0014fff 64bit pref]
[    6.677151] pci 0000:01:00.0: BAR 0: assigned [io  0x10000-0x100ff]
[    6.677167] pci 0000:00:01.0: PCI bridge to [bus 01]
[    6.677180] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    6.677196] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    6.677289] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    6.677814] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.737517] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.737745] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.797504] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.797957] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.799325] console [ttyS0] disabled
[    6.799396] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    7.510355] console [ttyS0] enabled
[    7.522248] loop: module loaded
[    7.525973] sata_mv f1080000.sata: slots 32 ports 2
[    7.533712] scsi host0: sata_mv
[    7.537357] scsi host1: sata_mv
[    7.540765] ata1: SATA max UDMA/133 irq 32
[    7.544882] ata2: SATA max UDMA/133 irq 32
[    7.549823] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    7.556287] nand: Samsung NAND 128MiB 3,3V 8-bit
[    7.560960] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.568591] Scanning device for bad blocks
[    7.665355] Bad eraseblock 962 at 0x000007840000
[    7.675937] 9 ofpart partitions found on MTD device orion_nand
[    7.681816] Creating 9 MTD partitions on "orion_nand":
[    7.687003] 0x000000000000-0x000000100000 : "uboot"
[    7.693231] 0x000000100000-0x000000180000 : "uboot_env"
[    7.699851] 0x000000180000-0x000000200000 : "key_store"
[    7.706405] 0x000000200000-0x000000280000 : "info"
[    7.712432] 0x000000280000-0x000000c80000 : "etc"
[    7.718381] 0x000000c80000-0x000001680000 : "kernel_1"
[    7.724743] 0x000001680000-0x000004640000 : "rootfs1"
[    7.731396] 0x000004640000-0x000005040000 : "kernel_2"
[    7.737898] 0x000005040000-0x000008000000 : "rootfs2"
[    7.745747] libphy: Fixed MDIO Bus: probed
[    7.750788] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.757402] ehci-pci: EHCI PCI platform driver
[    7.761926] ehci-orion: EHCI orion driver
[    7.766158] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.771767] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.779677] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    7.806795] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.813099] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    7.819968] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.827266] usb usb1: Product: EHCI Host Controller
[    7.832171] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    7.838941] usb usb1: SerialNumber: f1050000.ehci
[    7.844313] hub 1-0:1.0: USB hub found
[    7.848184] hub 1-0:1.0: 1 port detected
[    7.852738] usbcore: registered new interface driver usb-storage
[    7.859179] mousedev: PS/2 mouse device common for all mice
[    7.865075] rtc-mv f1010300.rtc: invalid RTC date, resetting to January 1st, 2013
[    7.872942] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    7.879909] ata1: SATA link down (SStatus 0 SControl F300)
[    7.885742] i2c /dev entries driver
[    7.892439] hidraw: raw HID events driver (C) Jiri Kosina
[    7.898284] drop_monitor: Initializing network drop monitor service
[    7.904818] NET: Registered protocol family 17
[    7.909393] Key type dns_resolver registered
[    7.914600] registered taskstats version 1
[    7.918749] Loading compiled-in X.509 certificates
[    7.923622] zswap: loaded using pool lzo/zbud
[    7.938071] Key type big_key registered
[    7.951480] Key type encrypted registered
[    7.957225] rtc-mv f1010300.rtc: setting system clock to 2013-01-01 23:15:52 UTC (1357082152)
[    8.206795] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.213563] ata2: SATA link down (SStatus 0 SControl F300)
[    8.216487] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[    8.428699] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    8.435461] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    8.456898] usb 1-1: Product: USB2.0 Hub
[    8.473978] hub 1-1:1.0: USB hub found
[    8.487344] hub 1-1:1.0: 4 ports detected
[    8.692068] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    8.726975] r8169 0000:01:00.0: enabling device (0140 -> 0143)
[    8.733800] r8169 0000:01:00.0 eth0: RTL8168d/8111d at 0xd0d46000, 00:00:00:00:00:30, XID 083000c0 IRQ 33
[    8.795944] r8169 0000:01:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[    8.816862] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[    8.969083] usb 1-1.3: New USB device found, idVendor=0930, idProduct=6545
[    8.976023] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.996147] usb 1-1.3: Product: DataTraveler 2.0
[    9.005716] usb 1-1.3: Manufacturer: Kingston
[    9.014719] usb 1-1.3: SerialNumber: 001372997B6DB91095FD035B
[    9.027831] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    9.044180] scsi host2: usb-storage 1-1.3:1.0
[    9.127999] r8169 0000:01:00.0 enp1s0: renamed from eth0
[    9.135803] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[   10.088032] scsi 2:0:0:0: Direct-Access     Kingston DataTraveler 2.0 PMAP PQ: 0 ANSI: 0 CCS
[   10.102878] sd 2:0:0:0: [sda] 15687680 512-byte logical blocks: (8.03 GB/7.48 GiB)
[   10.117250] sd 2:0:0:0: [sda] Write Protect is off
[   10.126933] sd 2:0:0:0: [sda] No Caching mode page found
[   10.132319] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   10.882203]  sda: sda1
[   10.889382] sd 2: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.269269] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   19.287813] 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 
[....] Synthesizing the initial hotplug events...[   21.658875] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[ ok                                             done.
[....] Waiting for /dev to be fully populated...[   22.017380] hwmon_vid: Unknown VRM version of your CPU
[   22.022604] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   22.140629] adt7475 0-002e: ADT7476 device, revision 1
[   22.191252] adt7475 0-002e: Optional features: in0 in4 fan4 pwm2 vid
[   22.202615] marvell-cesa f1030000.crypto: CESA device successfully registered
[   22.204008] orion_wdt: Initial timeout 21 sec
[   22.296293] sd 2:0:0:0: Attached scsi generic sg0 type 0
done.
[ ok ] Activating swap:.
[   23.569964] 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)
Superblock last mount time (Sat Mar  9 05:19:29 2019,
	now = Tue Jan  1 15:16:07 2013) is in the future.
Fix? yes

Superblock last write time (Sat Mar  9 05:19:42 2019,
	now = Tue Jan  1 15:16:07 2013) is in the future.
Fix? yes

Pass 1: Checking inodes, blocks, and sizes
[   24.626999] random: crng init done                             /  8.2%   
Pass 2: Checking directory structure                                           
Pass 3: Checking directory connectivity                                        
Pass 4: Checking reference counts
Pass 5: Checking group summary information                                     
rootfs: 14453/490560 files (7.3% non-contiguous), 171886/1960704 blocks        
. ok 
[   32.410291] 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[ ok  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.
[....] 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/

Cannot find device "eth0"
Failed to get interface index: No such device

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug.  These pages explain the proper
process and the information we find helpful for debugging..

exiting.
ifup: failed to bring up eth0
failed.
[   35.754088] NET: Registered protocol family 10
[   35.761201] Segment Routing with IPv6
[ 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...
1299 (syslogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NTP server: ntpd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1298 (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:



*edit*: I updated the kernel to linux-4.20.6-kirkwood-tld-1-bodhi, but now the network interface does not show up in debian.
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:54:15 -0700)
ZyXEL NSA310 1-Bay Power Media Server 


SoC:   Kirkwood 88F6281_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed
Unknown command 'mmc' - try 'help'

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

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	15685632  	3d7b0006-01	83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 722 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
4430168 bytes read in 1052 ms (4 MiB/s)
loading uInitrd ...
8181391 bytes read in 1208 ms (6.5 MiB/s)
loading DTB /boot/dts/kirkwood-nsa310.dtb ...
12568 bytes read in 862 ms (13.7 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.20.6-kirkwood-tld-1
   Created:      2019-03-09  17:19:43 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4430104 Bytes = 4.2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.20.6-kirkwood-tld-1
   Created:      2019-03-09  17:19:54 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8181327 Bytes = 7.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f340000, end 0fb0d64f ... OK
   Loading Device Tree to 0f339000, end 0f33f117 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.20.6-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Thu Jan 31 21:41:45 PST 2019
[    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: ZyXEL NSA310
[    0.000000] Memory policy: Data cache writeback
[    0.000000] random: get_random_bytes called from start_kernel+0x7c/0x4e8 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0x200000(etc),0x600000(kernel_1),0x37C0000(rootfs1),0x600000(kernel_2),0x37C0000(rootfs2)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 236340K/262144K available (9216K kernel code, 806K rwdata, 2912K rodata, 1024K init, 290K bss, 25804K 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 : 0xd0800000 - 0xff800000   ( 752 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (10208 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 807 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 291 kB)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000046] Switching to timer-based delay loop, resolution 5ns
[    0.000813] Console: colour dummy device 80x30
[    0.000865] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000891] pid_max: default: 32768 minimum: 301
[    0.001261] LSM: Security Framework initializing
[    0.001429] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001455] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002534] CPU: Testing write buffer coherency: ok
[    0.004187] Setting up static identity map for 0x100000 - 0x100058
[    0.004489] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.004768] rcu: Hierarchical SRCU implementation.
[    0.008035] devtmpfs: initialized
[    0.015239] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.015269] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.015611] prandom: seed boundary self test passed
[    0.019799] prandom: 100 self tests passed
[    0.019813] pinctrl core: initialized pinctrl subsystem
[    0.021270] NET: Registered protocol family 16
[    0.021997] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.022759] audit: initializing netlink subsys (disabled)
[    0.024026] audit: type=2000 audit(0.020:1): state=initialized audit_enabled=0 res=1
[    0.024147] cpuidle: using governor ladder
[    0.024226] cpuidle: using governor menu
[    0.025000] Feroceon L2: Enabling L2
[    0.025048] Feroceon L2: Cache support initialised.
[    0.030427] No ATAGs?
[    0.039637] vgaarb: loaded
[    0.040000] SCSI subsystem initialized
[    0.040552] usbcore: registered new interface driver usbfs
[    0.040625] usbcore: registered new interface driver hub
[    0.040686] usbcore: registered new device driver usb
[    0.040872] pps_core: LinuxPPS API ver. 1 registered
[    0.040884] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.040911] PTP clock support registered
[    0.042165] clocksource: Switched to clocksource orion_clocksource
[    0.147121] VFS: Disk quotas dquot_6.6.0
[    0.147213] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.156854] NET: Registered protocol family 2
[    0.157702] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.157736] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.157771] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.157803] TCP: Hash tables configured (established 2048 bind 2048)
[    0.157893] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.157918] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.158138] NET: Registered protocol family 1
[    0.158784] RPC: Registered named UNIX socket transport module.
[    0.158797] RPC: Registered udp transport module.
[    0.158805] RPC: Registered tcp transport module.
[    0.158813] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.159072] Unpacking initramfs...
[    0.890685] Freeing initrd memory: 7992K
[    0.891111] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.892458] Initialise system trusted keyrings
[    0.892519] Key type blacklist registered
[    0.892753] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.892849] zbud: loaded
[    0.893914] NFS: Registering the id_resolver key type
[    0.893944] Key type id_resolver registered
[    0.893953] Key type id_legacy registered
[    0.893974] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.893984] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.894294] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.894518] fuse init (API version 7.28)
[    0.894915] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.895100] orangefs_init: module version upstream loaded
[    0.895113] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    2.552172] random: fast init done
[    6.971924] Key type asymmetric registered
[    6.971943] Asymmetric key parser 'x509' registered
[    6.972017] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    6.972038] io scheduler noop registered
[    6.972048] io scheduler deadline registered
[    6.972292] io scheduler cfq registered (default)
[    6.973744] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.975649] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    6.975673] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.975688] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    6.975702] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    6.977305] PCI: bus0: Fast back to back transfers disabled
[    6.977334] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    7.003466] PCI: bus1: Fast back to back transfers disabled
[    7.003705] pci 0000:00:01.0: BAR 15: assigned [mem 0xe0000000-0xe00fffff pref]
[    7.003723] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    7.003739] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[    7.003760] pci 0000:01:00.0: BAR 6: assigned [mem 0xe0000000-0xe000ffff pref]
[    7.003777] pci 0000:01:00.0: BAR 4: assigned [mem 0xe0010000-0xe0013fff 64bit pref]
[    7.003801] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0014000-0xe0014fff 64bit pref]
[    7.003824] pci 0000:01:00.0: BAR 0: assigned [io  0x10000-0x100ff]
[    7.003841] pci 0000:00:01.0: PCI bridge to [bus 01]
[    7.003855] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    7.003875] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff pref]
[    7.003987] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    7.004569] mv_xor f1060800.xor: Marvell shared XOR driver
[    7.062979] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    7.063224] mv_xor f1060900.xor: Marvell shared XOR driver
[    7.122970] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    7.123442] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    7.124727] printk: console [ttyS0] disabled
[    7.124803] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    7.890506] printk: console [ttyS0] enabled
[    7.901855] loop: module loaded
[    7.905645] sata_mv f1080000.sata: slots 32 ports 2
[    7.913256] scsi host0: sata_mv
[    7.916879] scsi host1: sata_mv
[    7.920226] ata1: SATA max UDMA/133 irq 32
[    7.924407] ata2: SATA max UDMA/133 irq 32
[    7.929326] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    7.935828] nand: Samsung NAND 128MiB 3,3V 8-bit
[    7.940467] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.948101] Scanning device for bad blocks
[    8.045423] Bad eraseblock 962 at 0x000007840000
[    8.056036] 9 fixed-partitions partitions found on MTD device orion_nand
[    8.062792] Creating 9 MTD partitions on "orion_nand":
[    8.067956] 0x000000000000-0x000000100000 : "uboot"
[    8.074113] 0x000000100000-0x000000180000 : "uboot_env"
[    8.080466] 0x000000180000-0x000000200000 : "key_store"
[    8.087058] 0x000000200000-0x000000280000 : "info"
[    8.093022] 0x000000280000-0x000000c80000 : "etc"
[    8.098922] 0x000000c80000-0x000001680000 : "kernel_1"
[    8.105308] 0x000001680000-0x000004640000 : "rootfs1"
[    8.111822] 0x000004640000-0x000005040000 : "kernel_2"
[    8.118211] 0x000005040000-0x000008000000 : "rootfs2"
[    8.125850] libphy: Fixed MDIO Bus: probed
[    8.130696] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.137317] ehci-pci: EHCI PCI platform driver
[    8.141840] ehci-orion: EHCI orion driver
[    8.146089] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.151627] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.159580] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    8.192190] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.198535] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    8.206888] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.214187] usb usb1: Product: EHCI Host Controller
[    8.219089] usb usb1: Manufacturer: Linux 4.20.6-kirkwood-tld-1 ehci_hcd
[    8.225860] usb usb1: SerialNumber: f1050000.ehci
[    8.231208] hub 1-0:1.0: USB hub found
[    8.235072] hub 1-0:1.0: 1 port detected
[    8.239721] usbcore: registered new interface driver usb-storage
[    8.246200] mousedev: PS/2 mouse device common for all mice
[    8.252437] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    8.259536] i2c /dev entries driver
[    8.264478] ata1: SATA link down (SStatus 0 SControl F300)
[    8.271881] hidraw: raw HID events driver (C) Jiri Kosina
[    8.277707] drop_monitor: Initializing network drop monitor service
[    8.284456] NET: Registered protocol family 17
[    8.289217] Key type dns_resolver registered
[    8.294608] registered taskstats version 1
[    8.298725] Loading compiled-in X.509 certificates
[    8.303642] zswap: loaded using pool lzo/zbud
[    8.339096] Key type big_key registered
[    8.357487] Key type encrypted registered
[    8.363623] rtc-mv f1010300.rtc: setting system clock to 2019-03-09 17:24:26 UTC (1552152266)
[    8.602194] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.614037] ata2: SATA link down (SStatus 0 SControl F300)
[    8.632654] Freeing unused kernel memory: 1024K
[    8.637821] Checked W+X mappings: passed, no W+X pages found
[    8.643534] Run /init as init process
Loading, please wait...
starting version 232
[    8.749005] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    8.763150] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    8.777148] random: udevadm: uninitialized urandom read (16 bytes read)
[    8.804099] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=77.63
[    8.822298] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    8.829473] usb 1-1: Product: USB2.0 Hub
[    8.849946] hub 1-1:1.0: USB hub found
[    8.864888] hub 1-1:1.0: 4 ports detected
[    9.165130] r8169 0000:01:00.0: enabling device (0140 -> 0143)
[    9.171855] r8169 0000:01:00.0 (unnamed net_device) (uninitialized): rtl_phyar_cond == 0 (loop: 20, delay: 25).
[    9.192255] usb 1-1.3: new high-speed USB device number 3 using orion-ehci
[    9.272296] r8169: probe of 0000:01:00.0 failed with error -5
[    9.354485] usb 1-1.3: New USB device found, idVendor=0930, idProduct=6545, bcdDevice= 1.10
[    9.370381] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.384169] usb 1-1.3: Product: DataTraveler 2.0
[    9.388843] usb 1-1.3: Manufacturer: Kingston
[    9.402278] usb 1-1.3: SerialNumber: 001372997B6DB91095FD035B
[    9.415956] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    9.432482] scsi host2: usb-storage 1-1.3:1.0
[    9.674631] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[   10.483443] scsi 2:0:0:0: Direct-Access     Kingston DataTraveler 2.0 PMAP PQ: 0 ANSI: 0 CCS
[   10.499162] sd 2:0:0:0: [sda] 15687680 512-byte logical blocks: (8.03 GB/7.48 GiB)
[   10.514782] sd 2:0:0:0: [sda] Write Protect is off
[   10.522277] sd 2:0:0:0: [sda] No Caching mode page found
[   10.527626] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   11.291862]  sda: sda1
[   11.300138] sd 2: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, 19099/490560 files, 229386/1960704 blocks
done.
[   19.958933] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   19.978758] 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 
[ ok ] Synthesizing the initial hotplug events...[   22.450272] input: gpio_keys as /devices/platform/gpio_keys/input/input0
done.
[....] Waiting for /dev to be fully populated...[   22.851438] hwmon_vid: Unknown VRM version of your CPU
[   22.878316] orion_wdt: Initial timeout 21 sec
[   22.884490] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   23.009585] adt7475 0-002e: ADT7476 device, revision 1
[   23.043619] marvell-cesa f1030000.crypto: CESA device successfully registered
[   23.071985] adt7475 0-002e: Optional features: in0 in4 fan4 pwm2 vid
[   23.124354] sd 2:0:0:0: Attached scsi generic sg0 type 0
done.
[ ok ] Activating swap:.
[   24.390693] 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
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[   25.401424] random: crng init done
[   25.404916] random: 7 urandom warning(s) missed due to ratelimiting
[ 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.
[....] 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/

Cannot find device "enp1s0"
Failed to get interface index: No such device

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug.  These pages explain the proper
process and the information we find helpful for debugging..

exiting.
ifup: failed to bring up enp1s0
failed.
[   28.012576] NET: Registered protocol family 10
[   28.019894] Segment Routing with IPv6
[ 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...
1305 (syslogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1308 (klogd)
. ok 
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Sat Mar  9 09:21:47 PST 2019 on ttyS0
Linux debian 4.20.6-kirkwood-tld-1 #1 PREEMPT Thu Jan 31 21:41:45 PST 2019 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:~# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
root@debian:~# ip link set enp1s0 up
Cannot find device "enp1s0"
root@debian:~# ip link set eth0 up
Cannot find device "eth0"



Edited 2 time(s). Last edit at 03/09/2019 10:30AM by anders.
Re: NSA310 not booting after flashing 2017.07 U-Boot Kirkwood
March 09, 2019 04:36PM
anders,

> It's alive!

Cool!

> But after
> installing linux-4.20.6-kirkwood-tld-1-bodhi
> debian networking stopped working again.

Ethernet for the NSA310 is broken in mainline. Sorry I probably have forgot ot update the main post to warn people! Please use kernel linux-4.19.0-kirkwood-tld-1.


> Now there is only one strange thing. From debian I
> can't use fw_setenv.

The mtdparts variable needs to be set correctly for this device.

Since you don't have serial console, you need to adjust it using /boot/uEnv.txt as the installation instruction describe


Quote

C. Add uEnv.txt to /boot directory (Optional)

To adjust the default envs to your specific configuration, and not having to permanently alter u-boot envs NAND. Create a text file in /boot directory with the content in the format that u-boot envs are listed.

Examples:

The example below only to demonstrate the syntax in uEnv.txt (they might or might not apply to your current settings):

- Load appropriate DTB file for the kernel to run GoFlex Net box.
- Use SD card, USB and SATA for booting. The kernel and rootfs search order is as they are appeared on the list: mmc, usb, ide.
- Define that there are 8 storage devices (i.e. disk partitions).

cat /boot/uEnv.txt
dtb_file=/boot/dts/kirkwood-goflexnet.dtb
devices=mmc usb ide
disks=0 1 2 3 4 5 6 7


You uEnv.txt should be


cat /boot/uEnv.txt
mtdparts=mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0x200000(etc),0x600000(kernel_1),0x37C0000(rootfs1),0x600000(kernel_2),0x37C0000(rootfs2)

After you can use fw_setenv, set this variable in Debian permanently (and remove uEnv.txt):

fw_setenv mtdparts 'mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0x200000(etc),0x600000(kernel_1),0x37C0000(rootfs1),0x600000(kernel_2),0x37C0000(rootfs2)

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA310 not booting after flashing 2017.07 U-Boot Kirkwood
March 11, 2019 02:35PM
> Ethernet for the NSA310 is broken in mainline.
> Sorry I probably have forgot to update the main
> post to warn people! Please use kernel
> linux-4.19.0-kirkwood-tld-1.
> [...]
> cat /boot/uEnv.txt
mtdparts=mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0x200000(etc),0x600000(kernel_1),0x37C0000(rootfs1),0x600000(kernel_2),0x37C0000(rootfs2)

You rock! The mtdparts string works, and 4.19 works! Thanks a lot! :)

One last question: do you know if the eSATA port on NSA310 supports port multiplier? I'm considering buying an Icy Dock ICYCube MB561U3S-4S that houses 4 drives, and makes them available on one eSATA connector.
Re: NSA310 not booting after flashing 2017.07 U-Boot Kirkwood
March 11, 2019 04:04PM
> One last question: do you know if the eSATA port
> on NSA310 supports port multiplier? I'm
> considering buying an Icy Dock ICYCube MB561U3S-4S
> that houses 4 drives, and makes them available on
> one eSATA connector.

I don't know for a fact if port multiplier is supported on this box (I don't have this box). However, all Kirkwood boxes that I known of do support port multiplier. So chance is that this one does too.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA310 not booting after flashing 2017.07 U-Boot Kirkwood
May 17, 2019 03:15AM
Sata port multiplier on NSA310 works!
[  416.450303] ata2.15: Port Multiplier 1.2, 0x197b:0x575f r0, 15 ports, feat 0x5/0xf


FYI, I was able to boost network upload performance from around 400 Mbit/sec to 700 Mbit/sec by enabling tcp-segmentation-offload.

Without TSO:
root@debian:~# iperf3 -c 10.42.0.1
Connecting to host 10.42.0.1, port 5201
[  4] local 10.42.0.58 port 56184 connected to 10.42.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.02   sec  52.5 MBytes   431 Mbits/sec    0    195 KBytes       
[  4]   1.02-2.00   sec  48.8 MBytes   417 Mbits/sec    0    195 KBytes       
[  4]   2.00-3.02   sec  52.5 MBytes   432 Mbits/sec    0    195 KBytes       
[  4]   3.02-4.02   sec  51.2 MBytes   432 Mbits/sec    0    195 KBytes       
[  4]   4.02-5.01   sec  48.8 MBytes   414 Mbits/sec    0    195 KBytes       
[  4]   5.01-6.00   sec  51.2 MBytes   432 Mbits/sec    0    195 KBytes       
[  4]   6.00-7.02   sec  52.5 MBytes   431 Mbits/sec    0    195 KBytes       
[  4]   7.02-8.01   sec  48.8 MBytes   416 Mbits/sec    0    195 KBytes       
[  4]   8.01-9.00   sec  51.2 MBytes   432 Mbits/sec    0    195 KBytes       
[  4]   9.00-10.00  sec  51.2 MBytes   431 Mbits/sec    0    195 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   509 MBytes   427 Mbits/sec    0             sender
[  4]   0.00-10.00  sec   509 MBytes   427 Mbits/sec                  receiver

iperf Done.

root@debian:~# iperf3 -R -c 10.42.0.1
Connecting to host 10.42.0.1, port 5201
Reverse mode, remote host 10.42.0.1 is sending
[  4] local 10.42.0.58 port 56188 connected to 10.42.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  63.0 MBytes   529 Mbits/sec                  
[  4]   1.00-2.00   sec  67.1 MBytes   562 Mbits/sec                  
[  4]   2.00-3.00   sec  66.2 MBytes   556 Mbits/sec                  
[  4]   3.00-4.00   sec  63.2 MBytes   531 Mbits/sec                  
[  4]   4.00-5.00   sec  67.0 MBytes   562 Mbits/sec                  
[  4]   5.00-6.00   sec  67.0 MBytes   562 Mbits/sec                  
[  4]   6.00-7.00   sec  63.2 MBytes   531 Mbits/sec                  
[  4]   7.00-8.00   sec  66.0 MBytes   554 Mbits/sec                  
[  4]   8.00-9.00   sec  67.2 MBytes   564 Mbits/sec                  
[  4]   9.00-10.00  sec  64.6 MBytes   542 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   658 MBytes   552 Mbits/sec    0             sender
[  4]   0.00-10.00  sec   655 MBytes   549 Mbits/sec                  receiver

iperf Done.

Default settings after boot:
root@debian:~# ethtool enp1s0
Settings for enp1s0:
	Supported ports: [ TP MII ]
	Supported link modes:   10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Half 1000baseT/Full 
	Supported pause frame use: Symmetric Receive-only
	Supports auto-negotiation: Yes
	Advertised link modes:  10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Half 1000baseT/Full 
	Advertised pause frame use: Symmetric Receive-only
	Advertised auto-negotiation: Yes
	Link partner advertised link modes:  10baseT/Half 10baseT/Full 
	                                     100baseT/Half 100baseT/Full 
	                                     1000baseT/Full 
	Link partner advertised pause frame use: Symmetric Receive-only
	Link partner advertised auto-negotiation: Yes
	Speed: 1000Mb/s
	Duplex: Full
	Port: MII
	PHYAD: 0
	Transceiver: internal
	Auto-negotiation: on
	Supports Wake-on: pumbg
	Wake-on: g
	Current message level: 0x00000033 (51)
			       drv probe ifdown ifup
	Link detected: yes


root@debian:~# ethtool -k enp1s0 | grep -v fixed
Cannot get device udp-fragmentation-offload settings: Operation not supported
Features for enp1s0:
rx-checksumming: on
tx-checksumming: off
	tx-checksum-ipv4: off
	tx-checksum-ipv6: off
scatter-gather: off
	tx-scatter-gather: off
tcp-segmentation-offload: off
	tx-tcp-segmentation: off
	tx-tcp-mangleid-segmentation: off
	tx-tcp6-segmentation: off
udp-fragmentation-offload: off
generic-segmentation-offload: off [requested on]
generic-receive-offload: on
rx-vlan-offload: on
tx-vlan-offload: on
tx-nocache-copy: off
rx-fcs: off
rx-all: off

Enable TSO:
root@debian:~# ethtool -K enp1s0 tx on sg on tso on
Cannot get device udp-fragmentation-offload settings: Operation not supported
Cannot get device udp-fragmentation-offload settings: Operation not supported
Actual changes:
tx-checksumming: on
	tx-checksum-ipv4: on
	tx-checksum-ipv6: on
scatter-gather: on
	tx-scatter-gather: on
tcp-segmentation-offload: on
	tx-tcp-segmentation: on
	tx-tcp-mangleid-segmentation: on
	tx-tcp6-segmentation: on
generic-segmentation-offload: on


After enabling TSO:
root@debian:~# iperf3 -c 10.42.0.1
Connecting to host 10.42.0.1, port 5201
[  4] local 10.42.0.58 port 56742 connected to 10.42.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.01   sec  88.8 MBytes   740 Mbits/sec    0    140 KBytes       
[  4]   1.01-2.01   sec  88.8 MBytes   739 Mbits/sec    0    156 KBytes       
[  4]   2.01-3.01   sec  87.5 MBytes   738 Mbits/sec    0    156 KBytes       
[  4]   3.01-4.01   sec  88.8 MBytes   745 Mbits/sec    0    164 KBytes       
[  4]   4.01-5.01   sec  88.8 MBytes   740 Mbits/sec    0    164 KBytes       
[  4]   5.01-6.00   sec  87.5 MBytes   740 Mbits/sec    0    174 KBytes       
[  4]   6.00-7.01   sec  88.8 MBytes   742 Mbits/sec    0    174 KBytes       
[  4]   7.01-8.01   sec  88.8 MBytes   744 Mbits/sec    0    266 KBytes       
[  4]   8.01-9.00   sec  88.8 MBytes   751 Mbits/sec    0    266 KBytes       
[  4]   9.00-10.00  sec  90.0 MBytes   752 Mbits/sec    0    266 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   886 MBytes   743 Mbits/sec    0             sender
[  4]   0.00-10.00  sec   886 MBytes   743 Mbits/sec                  receiver

iperf Done.


root@debian:~# iperf3 -R -c 10.42.0.1
Connecting to host 10.42.0.1, port 5201
Reverse mode, remote host 10.42.0.1 is sending
[  4] local 10.42.0.58 port 56746 connected to 10.42.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  66.8 MBytes   559 Mbits/sec                  
[  4]   1.00-2.00   sec  68.0 MBytes   571 Mbits/sec                  
[  4]   2.00-3.00   sec  68.0 MBytes   571 Mbits/sec                  
[  4]   3.00-4.00   sec  67.5 MBytes   566 Mbits/sec                  
[  4]   4.00-5.00   sec  67.6 MBytes   568 Mbits/sec                  
[  4]   5.00-6.00   sec  68.0 MBytes   570 Mbits/sec                  
[  4]   6.00-7.00   sec  68.0 MBytes   569 Mbits/sec                  
[  4]   7.00-8.00   sec  67.5 MBytes   567 Mbits/sec                  
[  4]   8.00-9.00   sec  67.8 MBytes   568 Mbits/sec                  
[  4]   9.00-10.00  sec  67.9 MBytes   571 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   680 MBytes   570 Mbits/sec    0             sender
[  4]   0.00-10.00  sec   677 MBytes   568 Mbits/sec                  receiver

iperf Done.

Also, networking with your latest kernel works fine :)
root@debian:~# uname -a
Linux debian 5.1.0-kirkwood-tld-1 #1 PREEMPT Tue May 7 00:16:02 PDT 2019 armv5tel GNU/Linux



Edited 1 time(s). Last edit at 05/17/2019 03:44AM by anders.
Re: NSA310 not booting after flashing 2017.07 U-Boot Kirkwood
May 17, 2019 04:34AM
Hi anders,

Thanks for the really good info. That TCP Segment Offload was causing a lot of problem before.

It looks like perhaps it was fixed in the kernel.

> Also, networking with your latest kernel works
> fine :)
>
> root@debian:~# uname -a
> Linux debian 5.1.0-kirkwood-tld-1 #1 PREEMPT Tue
> May 7 00:16:02 PDT 2019 armv5tel GNU/Linux
>

Good to hear :)

I think in the next release, perhaps I can remove the patch and let TCP Segment Offload enabled by default.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA310 not booting after flashing 2017.07 U-Boot Kirkwood
June 15, 2019 04:21AM
anders,

I think something is not right in your box. Or perhaps it is the NSA310 Realtek chip performance.

Even with TSO off I got result that is about the same as your TSO on. These 2 boxes are NSA325 and GoFlex Net.


root@HomeBackup:~# iperf -n2000M -i 3 -c homembp.local
------------------------------------------------------------
Client connecting to homembp.local, TCP port 5001
TCP window size: 43.8 KByte (default)
------------------------------------------------------------
[  3] local 192.168.0.227 port 45010 connected with 192.168.0.234 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 3.0 sec   283 MBytes   792 Mbits/sec
[  3]  3.0- 6.0 sec   283 MBytes   791 Mbits/sec
[  3]  6.0- 9.0 sec   283 MBytes   791 Mbits/sec
[  3]  9.0-12.0 sec   284 MBytes   793 Mbits/sec
[  3] 12.0-15.0 sec   283 MBytes   792 Mbits/sec
[  3] 15.0-18.0 sec   280 MBytes   782 Mbits/sec
[  3] 18.0-21.0 sec   284 MBytes   793 Mbits/sec
[  3]  0.0-21.2 sec  1.95 GBytes   791 Mbits/sec

root@HomeMBP:~# iperf -s -i 3
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size:  128 KByte (default)
------------------------------------------------------------
[  4] local 192.168.0.234 port 5001 connected with 192.168.0.227 port 45010
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0- 3.0 sec   283 MBytes   790 Mbits/sec
[  4]  3.0- 6.0 sec   283 MBytes   791 Mbits/sec
[  4]  6.0- 9.0 sec   283 MBytes   792 Mbits/sec
[  4]  9.0-12.0 sec   284 MBytes   793 Mbits/sec
[  4] 12.0-15.0 sec   283 MBytes   792 Mbits/sec
[  4] 15.0-18.0 sec   280 MBytes   783 Mbits/sec
[  4] 18.0-21.0 sec   284 MBytes   793 Mbits/sec
[  4]  0.0-21.2 sec  1.95 GBytes   790 Mbits/sec

I'm going to try with TSO default to ON in the Kirkwood kernel and let you know if I can get close to 1Gbits (I can get it quite close to 1Gpbs with the Armada boxes).

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 06/15/2019 04:23AM by bodhi.
Re: NSA310 not booting after flashing 2017.07 U-Boot Kirkwood
June 15, 2019 10:02PM
It turned out that TSO does not make much difference.

It does not gain much performance that is sigificant enouhg to change the kernel to default to TSO on.

-bodhi
===========================
Forum Wiki
bodhi's corner
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: