Welcome! Log In Create A New Profile

Advanced

NSA325 not booting after uBoot installation from stock rom

Posted by FiLoU 
NSA325 not booting after uBoot installation from stock rom
March 14, 2019 04:06PM
Hello Forum,
I've tried to flash my NSA325 from stock rom to Debian. Based on what I've read I thought I have to flash first the uBoot, which was successfully. My serial interface boots up with

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
ZyXEL NSA325 2-Bay Power Media Server

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0

I'm trying to use the NSA325 internal SATA drive for the debian package. So I've created one primary partition and formated with EXT3 format and define the name of harddisk "rootfs".

And then begins my adventure. Based on the situation I don't have any linux system running (except a VM), I've tried it with a USB SATA adapter, Windows and ext3 driver for write access. Formating was done with Easeus Partition Master. Then I've unzip the file linux-4.20.6-kirkwood-tld-1-bodhi.tar.bz2 and unzip the DTS folder below \boot on my ext3 paritiion and even unzip linux-image-4.20.6-kirkwood-tld-1_1.0_armel.deb and paste the folder etc, usr, lib and boot.

Now the start of my NAS fails with the following output
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: Bus 0: OK Bus 1: not available
  Device 0: Model: ST500LM000-1EJ162  Firm: DEM7 Ser#: W372BHJ5
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
Unknown command 'mmc' - try 'help'

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            30461952        28833e54-01     0c Boot

## 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 ...
reading /boot/uEnv.txt
** Unable to read file /boot/uEnv.txt **

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

Part    Start Sector    Num Sectors     UUID            Type
  1     63              976768002       dc8bfeba-01     83
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
reading /boot/uImage
** Unable to read file /boot/uImage **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: ST500LM000-1EJ162  Firm: DEM7 Ser#: W372BHJ5
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
device ide 0:1
** File not found /boot/uImage **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc
Unknown command 'mmc' - try 'help'
device mmc 0:1
** Bad device mmc 0 **
device mmc 1:1
** Bad device mmc 1 **
device mmc 2:1
** Bad device mmc 2 **
device mmc 3:1
** Bad device mmc 3 **
loading uImage ...
reading /boot/uImage
** Unable to read file /boot/uImage **
loading uInitrd ...
reading /boot/uInitrd
** Unable to read file /boot/uInitrd **
loading DTB /boot/dts/kirkwood-pogo_e02.dtb ...
reading /boot/dts/kirkwood-pogo_e02.dtb
** Unable to read file /boot/dts/kirkwood-pogo_e02.dtb **
Wrong Image Format for bootm command
Error occured, error code = 112
ERROR: can't get kernel image!

Before I've restarted I've read the fw_printenv

/e-data/F05C-9247/test/tools # fw_printenv
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
loads_echo=0
ipaddr=10.4.52.165
serverip=10.4.52.7
rootpath=/srv/ubuntu
netmask=255.255.255.0
nandEcc=1bit
kernel_addr=C80000
MODEL_ID=AA03
PRODUCT_NAME=NSA-325
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=MitraStar Technology Corp.
run_diag=yes
ethaddr=C8:6C:87:6F:54:8D
arcNumber=4495
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3
mtdparts=mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
dtb_file=/boot/dts/kirkwood-nsa325.dtb

Inside the description of how to install Debian, I didn't understand how to use this commands:

apt-get remove flash-kernel 
dpkg -i linux-image-4.20.6-kirkwood-tld-1_1.0_armel.deb
With the Zyxel stock rom I couldn't run this command and on my VM I was afraid overwrite my original kernel inside the VM. This explain why I did all the extracting manually.

Now the Box doesn't boot anymore. Any hint would be really appreciated :-)


Best regards
Filou



Edited 1 time(s). Last edit at 03/14/2019 04:10PM by FiLoU.
Re: NSA325 not booting after uBoot installation from stock rom
March 14, 2019 05:28PM
FiLoU,

You've used the wrong section of the instruction. The rootfs Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 is all you need to install.

Quote

Latest released kernel: linux-4.20.6-kirkwood-tld-1-bodhi.tar.bz2 (03 Feb 2019)
Latest released rootfs: Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (24 Jul 2017)

Note: If this is your first time installation, then you need rootfs Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (this has kernel 4.12.1-kirkwood-tld-1 already installed).


Quote

Updated 24 Jul 2017:

Basic Debian stretch Kirkwood rootfs for most Kirwood plugs:

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

Download at Dropbox:

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

md5:
bf3d29569943875df348fb5ca03b348c
sha256:
4ed5714fdb123cdb40e973f3d0754e91cd199b75a9874018f2b5dc9cfa8ae8bb

So recreate the rootfs using the tarball Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 as instructed in the 24 Jul 2017 section.

After the system is running, you can then upgrade the kernel to the latest (4.20.6-kirkwood-tld-1).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA325 not booting after uBoot installation from stock rom
March 15, 2019 06:45PM
Hi bodhi,
thanks for your help. I'm a step forward now.
I've extracted the file to my SATA harddisk. Debian starts partly... It reports
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  LABEL=rootfs does not exist.  Dropping to a shell!

BusyBox v1.22.1 (Debian 1:1.22.0-19+b3) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)

If I'm doing the same procedure (format as EXT4, label partition with rootfs, extract the files) with a USB key, Debian boots up completely. After login as root, I can't do any change, because system reports write protected.

Best regards
filou



Edited 1 time(s). Last edit at 03/15/2019 06:46PM by FiLoU.
Re: NSA325 not booting after uBoot installation from stock rom
March 15, 2019 07:31PM
FiLoU Wrote:
-------------------------------------------------------
> Hi bodhi,
> thanks for your help. I'm a step forward now.
> I've extracted the file to my SATA harddisk.
> Debian starts partly... It reports
>
> Begin: Running /scripts/local-block ... done.
> done.
> Gave up waiting for root file system device. 
> Common problems:
>  - Boot args (cat /proc/cmdline)
>    - Check rootdelay= (did the system wait long
> enough?)
>  - Missing modules (cat /proc/modules; ls /dev)
> ALERT!  LABEL=rootfs does not exist.  Dropping to
> a shell!
> 
> BusyBox v1.22.1 (Debian 1:1.22.0-19+b3) built-in
> shell (ash)
> Enter 'help' for a list of built-in commands.
> 
> (initramfs) 
> 
>
>
> If I'm doing the same procedure (format as EXT4,
> label partition with rootfs, extract the files)
> with a USB key, Debian boots up completely. After
> login as root, I can't do any change, because
> system reports write protected.
>
> Best regards
> filou

Filou,

Boot with USB rootfs. Log into Debian,

dmesg

And then mount the HDD. And

fdisk -l
e2label /dev/sda1 # (or whichever device is the HDD if it is not sda1)
ls -lart /media/sda1/boot  # (or whichever mount point is fir the HDD.

Please post the log here.

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



Edited 2 time(s). Last edit at 03/15/2019 07:34PM by bodhi.
Re: NSA325 not booting after uBoot installation from stock rom
March 16, 2019 03:31AM
Hi bodhi,
it's really weired. It looks the harddisk is not recognized by debian. If I'm disconnecting usb drive, boot NAS newly and wait until the message
Begin: Running /scripts/local-block ... done.
and conenct the usb key, Linux goes ahead with booting. If I'm login with the root user and try to find the harddisk, I can't see any SATA harddisk. But partially linux boot from...
The result of ls /dev/sd* is just my usb key sda and sda1
The result of fdisk -l shown also only the /dev/mtdblock0-3 and sda.
Here is the console log:
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
ZyXEL NSA325 2-Bay Power Media Server

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: Bus 0: not available  Bus 1: OK
  Device 1: Model: ST500LM000-1EJ162  Firm: DEM7 Ser#: W372BHJ5
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
Unknown command 'mmc' - try 'help'
## 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

## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **

Partition Map for IDE device 1  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            976771072       dc8bfeba-01     83
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: Bus 0: not available  Bus 1: OK
  Device 1: Model: ST500LM000-1EJ162  Firm: DEM7 Ser#: W372BHJ5
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
device ide 0:1
** Bad device ide 0 **
device ide 1:1
1 bytes read in 87 ms (0 Bytes/s)
Found bootable drive on ide 1
loading uImage ...
3821592 bytes read in 780 ms (4.7 MiB/s)
loading uInitrd ...
7245696 bytes read in 4649 ms (1.5 MiB/s)
loading DTB /boot/dts/kirkwood-pogo_e02.dtb ...
10444 bytes read in 167 ms (60.5 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 1f424000, end 1fb0cf40 ... OK
   Loading Device Tree to 1f41e000, end 1f4238cb ... OK
Using machid 0x831 from environment

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: CloudEngines Pogoplug E02
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 499276K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 25012K 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 : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 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.000006] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000036] Switching to timer-based delay loop, resolution 5ns
[    0.000411] Console: colour dummy device 80x30
[    0.000439] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000457] pid_max: default: 32768 minimum: 301
[    0.000616] Security Framework initialized
[    0.000715] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000731] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001443] CPU: Testing write buffer coherency: ok
[    0.002317] Setting up static identity map for 0x100000 - 0x100058
[    0.002525] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.005195] devtmpfs: initialized
[    0.008325] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.008348] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.008679] prandom: seed boundary self test passed
[    0.011537] prandom: 100 self tests passed
[    0.011551] pinctrl core: initialized pinctrl subsystem
[    0.012506] NET: Registered protocol family 16
[    0.012850] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.014161] cpuidle: using governor ladder
[    0.014223] cpuidle: using governor menu
[    0.014558] Feroceon L2: Enabling L2
[    0.014595] Feroceon L2: Cache support initialised.
[    0.014886] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.018218] No ATAGs?
[    0.025068] vgaarb: loaded
[    0.025319] SCSI subsystem initialized
[    0.025683] usbcore: registered new interface driver usbfs
[    0.025740] usbcore: registered new interface driver hub
[    0.025786] usbcore: registered new device driver usb
[    0.026639] clocksource: Switched to clocksource orion_clocksource
[    0.095537] VFS: Disk quotas dquot_6.6.0
[    0.095613] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.103699] NET: Registered protocol family 2
[    0.104316] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.104372] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.104424] TCP: Hash tables configured (established 4096 bind 4096)
[    0.104491] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.104513] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.104657] NET: Registered protocol family 1
[    0.104993] RPC: Registered named UNIX socket transport module.
[    0.105004] RPC: Registered udp transport module.
[    0.105010] RPC: Registered tcp transport module.
[    0.105015] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.105207] Unpacking initramfs...
[    0.605626] Freeing initrd memory: 7076K
[    0.605739] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.606517] audit: initializing netlink subsys (disabled)
[    0.606986] Initialise system trusted keyrings
[    0.607031] Key type blacklist registered
[    0.607113] audit: type=2000 audit(0.600:1): state=initialized audit_enabled=0 res=1
[    0.607192] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.607246] zbud: loaded
[    0.608007] NFS: Registering the id_resolver key type
[    0.608029] Key type id_resolver registered
[    0.608035] Key type id_legacy registered
[    0.608049] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.608057] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.608222] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.608378] fuse init (API version 7.26)
[    0.608669] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.608866] orangefs_init: module version upstream loaded
[    0.608875] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.556645] random: fast init done
[    4.967645] Key type asymmetric registered
[    4.967660] Asymmetric key parser 'x509' registered
[    4.967717] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    4.967726] io scheduler noop registered
[    4.967733] io scheduler deadline registered
[    4.967796] io scheduler cfq registered (default)
[    4.968817] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    4.970230] mv_xor f1060800.xor: Marvell shared XOR driver
[    5.027205] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.027400] mv_xor f1060900.xor: Marvell shared XOR driver
[    5.087203] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.087558] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    5.088533] console [ttyS0] disabled
[    5.088591] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    5.688696] console [ttyS0] enabled
[    5.698749] loop: module loaded
[    5.702584] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    5.709025] nand: Samsung NAND 128MiB 3,3V 8-bit
[    5.713658] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.721295] Scanning device for bad blocks
[    5.807500] Bad eraseblock 777 at 0x000006120000
[    5.833725] Bad eraseblock 982 at 0x000007ac0000
[    5.842715] 4 cmdlinepart partitions found on MTD device orion_nand
[    5.849026] Creating 4 MTD partitions on "orion_nand":
[    5.854185] 0x000000000000-0x000000100000 : "u-boot"
[    5.860110] 0x000000100000-0x000000500000 : "uImage"
[    5.865985] 0x000000500000-0x000002500000 : "rootfs"
[    5.872054] 0x000002500000-0x000008000000 : "data"
[    5.879101] libphy: Fixed MDIO Bus: probed
[    5.883848] libphy: orion_mdio_bus: probed
[    5.888312] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    5.895600] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.902229] ehci-pci: EHCI PCI platform driver
[    5.906779] ehci-orion: EHCI orion driver
[    5.910946] orion-ehci f1050000.ehci: EHCI Host Controller
[    5.916481] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    5.924338] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    5.956664] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    5.962894] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    5.969737] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.977001] usb usb1: Product: EHCI Host Controller
[    5.981895] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    5.988641] usb usb1: SerialNumber: f1050000.ehci
[    5.993950] hub 1-0:1.0: USB hub found
[    5.997800] hub 1-0:1.0: 1 port detected
[    6.002267] usbcore: registered new interface driver usb-storage
[    6.008627] mousedev: PS/2 mouse device common for all mice
[    6.356665] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    6.548093] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    6.554835] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.562030] usb 1-1: Product: USB2.0 Hub
[    6.566751] hub 1-1:1.0: USB hub found
[    6.570843] hub 1-1:1.0: 4 ports detected
[    7.046665] rtc-mv f1010300.rtc: internal RTC not ticking
[    7.052223] i2c /dev entries driver
[    7.056758] hidraw: raw HID events driver (C) Jiri Kosina
[    7.062462] drop_monitor: Initializing network drop monitor service
[    7.068958] NET: Registered protocol family 17
[    7.073482] Key type dns_resolver registered
[    7.078361] registered taskstats version 1
[    7.082471] Loading compiled-in X.509 certificates
[    7.087342] zswap: loaded using pool lzo/zbud
[    7.099679] Key type big_key registered
[    7.111023] Key type encrypted registered
[    7.116272] hctosys: unable to open rtc device (rtc0)
[    7.124747] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
[   32.466663] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
Begin: Running /scripts/local-block ... done.
[   32.618725] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5581
[   32.625656] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   32.633624] usb 1-1.2: Product: Ultra
[   32.637349] usb 1-1.2: Manufacturer: SanDisk
[   32.641638] usb 1-1.2: SerialNumber: 4C531001470601122344
[   32.654123] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[   32.675143] scsi host0: usb-storage 1-1.2:1.0
[   32.680814] usbcore: registered new interface driver uas
[   33.687927] scsi 0:0:0:0: Direct-Access     SanDisk  Ultra            1.00 PQ: 0 ANSI: 6
[   33.700899] sd 0:0:0:0: [sda] 30464000 512-byte logical blocks: (15.6 GB/14.5 GiB)
[   33.717276] sd 0:0:0:0: [sda] Write Protect is off
[   33.724370] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   33.747336]  sda: sda1
[   33.759386] sd 0:0:0:0: [sda] Attached SCSI removable disk
Begin: Running /scripts/local-block ... done.
done.
Warning: fsck not present, so skipping root file system
[   34.598537] 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
/etc/init.d/rc: 100: /etc/init.d/rc: log_action_msg: not found
INIT: Entering runlevel: 2
/etc/init.d/rc: 100: /etc/init.d/rc: log_action_msg: not found

Debian GNU/Linux 9 (none) ttyS0
(none) login: root

Here is the result of demsgdme
root@(none):/media# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: CloudEngines Pogoplug E02
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c0d9e084, node_mem_map dfbf9000
[    0.000000]   Normal zone: 1024 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 499276K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 25012K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
                   lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
                   modules : 0xbf000000 - 0xc0000000   (  16 MB)
                     .text : 0xc0008000 - 0xc0900000   (9184 kB)
                     .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
                     .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
                      .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000006] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000036] Switching to timer-based delay loop, resolution 5ns
[    0.000411] Console: colour dummy device 80x30
[    0.000439] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000457] pid_max: default: 32768 minimum: 301
[    0.000616] Security Framework initialized
[    0.000715] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000731] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001443] CPU: Testing write buffer coherency: ok
[    0.002317] Setting up static identity map for 0x100000 - 0x100058
[    0.002525] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.005195] devtmpfs: initialized
[    0.008325] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.008348] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.008679] prandom: seed boundary self test passed
[    0.011537] prandom: 100 self tests passed
[    0.011551] pinctrl core: initialized pinctrl subsystem
[    0.012506] NET: Registered protocol family 16
[    0.012850] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.014161] cpuidle: using governor ladder
[    0.014223] cpuidle: using governor menu
[    0.014558] Feroceon L2: Enabling L2
[    0.014595] Feroceon L2: Cache support initialised.
[    0.014886] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.018218] No ATAGs?
[    0.025068] vgaarb: loaded
[    0.025319] SCSI subsystem initialized
[    0.025463] libata version 3.00 loaded.
[    0.025683] usbcore: registered new interface driver usbfs
[    0.025740] usbcore: registered new interface driver hub
[    0.025786] usbcore: registered new device driver usb
[    0.026639] clocksource: Switched to clocksource orion_clocksource
[    0.095537] VFS: Disk quotas dquot_6.6.0
[    0.095613] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.103699] NET: Registered protocol family 2
[    0.104316] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.104372] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.104424] TCP: Hash tables configured (established 4096 bind 4096)
[    0.104491] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.104513] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.104657] NET: Registered protocol family 1
[    0.104993] RPC: Registered named UNIX socket transport module.
[    0.105004] RPC: Registered udp transport module.
[    0.105010] RPC: Registered tcp transport module.
[    0.105015] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.105025] PCI: CLS 0 bytes, default 32
[    0.105207] Unpacking initramfs...
[    0.605626] Freeing initrd memory: 7076K
[    0.605739] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.606517] audit: initializing netlink subsys (disabled)
[    0.606986] Initialise system trusted keyrings
[    0.607031] Key type blacklist registered
[    0.607113] audit: type=2000 audit(0.600:1): state=initialized audit_enabled=0 res=1
[    0.607192] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.607246] zbud: loaded
[    0.608007] NFS: Registering the id_resolver key type
[    0.608029] Key type id_resolver registered
[    0.608035] Key type id_legacy registered
[    0.608049] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.608057] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.608222] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.608378] fuse init (API version 7.26)
[    0.608669] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.608866] orangefs_init: module version upstream loaded
[    0.608875] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.556645] random: fast init done
[    4.967645] Key type asymmetric registered
[    4.967660] Asymmetric key parser 'x509' registered
[    4.967717] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    4.967726] io scheduler noop registered
[    4.967733] io scheduler deadline registered
[    4.967796] io scheduler cfq registered (default)
[    4.968817] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    4.970230] mv_xor f1060800.xor: Marvell shared XOR driver
[    5.027205] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.027400] mv_xor f1060900.xor: Marvell shared XOR driver
[    5.087203] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.087558] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    5.088533] console [ttyS0] disabled
[    5.088591] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    5.688696] console [ttyS0] enabled
[    5.698749] loop: module loaded
[    5.702584] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    5.709025] nand: Samsung NAND 128MiB 3,3V 8-bit
[    5.713658] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.721295] Scanning device for bad blocks
[    5.807500] Bad eraseblock 777 at 0x000006120000
[    5.833725] Bad eraseblock 982 at 0x000007ac0000
[    5.842715] 4 cmdlinepart partitions found on MTD device orion_nand
[    5.849026] Creating 4 MTD partitions on "orion_nand":
[    5.854185] 0x000000000000-0x000000100000 : "u-boot"
[    5.860110] 0x000000100000-0x000000500000 : "uImage"
[    5.865985] 0x000000500000-0x000002500000 : "rootfs"
[    5.872054] 0x000002500000-0x000008000000 : "data"
[    5.879101] libphy: Fixed MDIO Bus: probed
[    5.883848] libphy: orion_mdio_bus: probed
[    5.888312] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    5.895600] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.902229] ehci-pci: EHCI PCI platform driver
[    5.906779] ehci-orion: EHCI orion driver
[    5.910946] orion-ehci f1050000.ehci: EHCI Host Controller
[    5.916481] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    5.924338] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    5.956664] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    5.962894] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    5.969737] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.977001] usb usb1: Product: EHCI Host Controller
[    5.981895] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    5.988641] usb usb1: SerialNumber: f1050000.ehci
[    5.993950] hub 1-0:1.0: USB hub found
[    5.997800] hub 1-0:1.0: 1 port detected
[    6.002267] usbcore: registered new interface driver usb-storage
[    6.008627] mousedev: PS/2 mouse device common for all mice
[    6.356665] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    6.548093] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    6.554835] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.562030] usb 1-1: Product: USB2.0 Hub
[    6.566751] hub 1-1:1.0: USB hub found
[    6.570843] hub 1-1:1.0: 4 ports detected
[    7.046665] rtc-mv f1010300.rtc: internal RTC not ticking
[    7.052223] i2c /dev entries driver
[    7.056758] hidraw: raw HID events driver (C) Jiri Kosina
[    7.062462] drop_monitor: Initializing network drop monitor service
[    7.068958] NET: Registered protocol family 17
[    7.073482] Key type dns_resolver registered
[    7.078361] registered taskstats version 1
[    7.082471] Loading compiled-in X.509 certificates
[    7.087342] zswap: loaded using pool lzo/zbud
[    7.099679] Key type big_key registered
[    7.111023] Key type encrypted registered
[    7.116272] hctosys: unable to open rtc device (rtc0)
[    7.121643] PM: Hibernation image not present or could not be loaded.
[    7.124747] Freeing unused kernel memory: 1024K
[   32.466663] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[   32.618725] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5581
[   32.625656] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   32.633624] usb 1-1.2: Product: Ultra
[   32.637349] usb 1-1.2: Manufacturer: SanDisk
[   32.641638] usb 1-1.2: SerialNumber: 4C531001470601122344
[   32.654123] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[   32.675143] scsi host0: usb-storage 1-1.2:1.0
[   32.680814] usbcore: registered new interface driver uas
[   33.687927] scsi 0:0:0:0: Direct-Access     SanDisk  Ultra            1.00 PQ: 0 ANSI: 6
[   33.700899] sd 0:0:0:0: [sda] 30464000 512-byte logical blocks: (15.6 GB/14.5 GiB)
[   33.717276] sd 0:0:0:0: [sda] Write Protect is off
[   33.722093] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[   33.724370] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   33.747336]  sda: sda1
[   33.759386] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   34.598537] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   98.886916] random: crng init done


If I'm booting directly from usb, it dmesg looks like
root@(none):~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: CloudEngines Pogoplug E02
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c0d9e084, node_mem_map dfbf9000
[    0.000000]   Normal zone: 1024 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 499276K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 25012K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
                   lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
                   modules : 0xbf000000 - 0xc0000000   (  16 MB)
                     .text : 0xc0008000 - 0xc0900000   (9184 kB)
                     .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
                     .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
                      .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000006] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000036] Switching to timer-based delay loop, resolution 5ns
[    0.000411] Console: colour dummy device 80x30
[    0.000439] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000458] pid_max: default: 32768 minimum: 301
[    0.000617] Security Framework initialized
[    0.000716] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000732] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001445] CPU: Testing write buffer coherency: ok
[    0.002319] Setting up static identity map for 0x100000 - 0x100058
[    0.002527] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.005196] devtmpfs: initialized
[    0.008330] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.008353] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.008685] prandom: seed boundary self test passed
[    0.011542] prandom: 100 self tests passed
[    0.011556] pinctrl core: initialized pinctrl subsystem
[    0.012513] NET: Registered protocol family 16
[    0.012861] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.014176] cpuidle: using governor ladder
[    0.014237] cpuidle: using governor menu
[    0.014574] Feroceon L2: Enabling L2
[    0.014611] Feroceon L2: Cache support initialised.
[    0.014901] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.018235] No ATAGs?
[    0.025082] vgaarb: loaded
[    0.025333] SCSI subsystem initialized
[    0.025479] libata version 3.00 loaded.
[    0.025699] usbcore: registered new interface driver usbfs
[    0.025757] usbcore: registered new interface driver hub
[    0.025803] usbcore: registered new device driver usb
[    0.026655] clocksource: Switched to clocksource orion_clocksource
[    0.095554] VFS: Disk quotas dquot_6.6.0
[    0.095628] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.103702] NET: Registered protocol family 2
[    0.104316] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.104373] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.104424] TCP: Hash tables configured (established 4096 bind 4096)
[    0.104490] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.104511] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.104653] NET: Registered protocol family 1
[    0.104993] RPC: Registered named UNIX socket transport module.
[    0.105003] RPC: Registered udp transport module.
[    0.105009] RPC: Registered tcp transport module.
[    0.105014] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.105024] PCI: CLS 0 bytes, default 32
[    0.105205] Unpacking initramfs...
[    0.605714] Freeing initrd memory: 7076K
[    0.605827] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.606602] audit: initializing netlink subsys (disabled)
[    0.607069] Initialise system trusted keyrings
[    0.607113] Key type blacklist registered
[    0.607193] audit: type=2000 audit(0.600:1): state=initialized audit_enabled=0 res=1
[    0.607274] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.607332] zbud: loaded
[    0.608095] NFS: Registering the id_resolver key type
[    0.608119] Key type id_resolver registered
[    0.608125] Key type id_legacy registered
[    0.608139] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.608147] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.608313] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.608467] fuse init (API version 7.26)
[    0.608760] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.608956] orangefs_init: module version upstream loaded
[    0.608965] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.556660] random: fast init done
[    4.967725] Key type asymmetric registered
[    4.967739] Asymmetric key parser 'x509' registered
[    4.967796] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    4.967805] io scheduler noop registered
[    4.967811] io scheduler deadline registered
[    4.967876] io scheduler cfq registered (default)
[    4.968894] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    4.970305] mv_xor f1060800.xor: Marvell shared XOR driver
[    5.027224] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.027416] mv_xor f1060900.xor: Marvell shared XOR driver
[    5.087223] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.087577] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    5.088555] console [ttyS0] disabled
[    5.088614] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    5.688727] console [ttyS0] enabled
[    5.698758] loop: module loaded
[    5.702592] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    5.709027] nand: Samsung NAND 128MiB 3,3V 8-bit
[    5.713662] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.721298] Scanning device for bad blocks
[    5.807485] Bad eraseblock 777 at 0x000006120000
[    5.833710] Bad eraseblock 982 at 0x000007ac0000
[    5.842703] 4 cmdlinepart partitions found on MTD device orion_nand
[    5.849013] Creating 4 MTD partitions on "orion_nand":
[    5.854171] 0x000000000000-0x000000100000 : "u-boot"
[    5.860095] 0x000000100000-0x000000500000 : "uImage"
[    5.865967] 0x000000500000-0x000002500000 : "rootfs"
[    5.872034] 0x000002500000-0x000008000000 : "data"
[    5.879086] libphy: Fixed MDIO Bus: probed
[    5.883835] libphy: orion_mdio_bus: probed
[    5.888326] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    5.895611] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.902243] ehci-pci: EHCI PCI platform driver
[    5.906792] ehci-orion: EHCI orion driver
[    5.910962] orion-ehci f1050000.ehci: EHCI Host Controller
[    5.916494] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    5.924351] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    5.956681] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    5.962915] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    5.969758] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.977022] usb usb1: Product: EHCI Host Controller
[    5.981916] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    5.988662] usb usb1: SerialNumber: f1050000.ehci
[    5.993977] hub 1-0:1.0: USB hub found
[    5.997820] hub 1-0:1.0: 1 port detected
[    6.002286] usbcore: registered new interface driver usb-storage
[    6.008648] mousedev: PS/2 mouse device common for all mice
[    6.356681] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    6.548108] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    6.554849] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.562042] usb 1-1: Product: USB2.0 Hub
[    6.566767] hub 1-1:1.0: USB hub found
[    6.570858] hub 1-1:1.0: 4 ports detected
[    6.896674] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    7.046675] rtc-mv f1010300.rtc: internal RTC not ticking
[    7.052228] i2c /dev entries driver
[    7.056795] hidraw: raw HID events driver (C) Jiri Kosina
[    7.062689] drop_monitor: Initializing network drop monitor service
[    7.069298] NET: Registered protocol family 17
[    7.073868] Key type dns_resolver registered
[    7.078361] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5581
[    7.085279] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.093125] registered taskstats version 1
[    7.093128] Loading compiled-in X.509 certificates
[    7.093167] zswap: loaded using pool lzo/zbud
[    7.110158] Key type big_key registered
[    7.122131] Key type encrypted registered
[    7.130950] usb 1-1.2: Product: Ultra
[    7.134630] usb 1-1.2: Manufacturer: SanDisk
[    7.138970] usb 1-1.2: SerialNumber: 4C531001470601122344
[    7.145172] hctosys: unable to open rtc device (rtc0)
[    7.150477] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    7.157098] scsi host0: usb-storage 1-1.2:1.0
[    7.162196] PM: Hibernation image not present or could not be loaded.
[    7.165352] Freeing unused kernel memory: 1024K
[    7.478640] usbcore: registered new interface driver uas
[    8.167566] scsi 0:0:0:0: Direct-Access     SanDisk  Ultra            1.00 PQ: 0 ANSI: 6
[    8.180538] sd 0:0:0:0: [sda] 30464000 512-byte logical blocks: (15.6 GB/14.5 GiB)
[    8.197043] sd 0:0:0:0: [sda] Write Protect is off
[    8.201868] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[    8.204166] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.223716]  sda: sda1
[    8.240904] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   17.771797] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[  150.749804] random: crng init done


Creating a new mountpoint is actually not possible if I'm booting from USB Key. System tells me, write protected. How can I get rid of this? In fstab file I'm having this line:
LABEL=rootfs    /               ext3    noatime,errors=remount-ro 0 1
t

I could see inside the boot procedure the line "loading DTB /boot/dts/kirkwood-pogo_e02.dtb ... " Should be here not normally the file "kirkwood-nsa325.dtb"? But how to change?

Thank you.

Best regards
filou



Edited 1 time(s). Last edit at 03/16/2019 03:33AM by FiLoU.
Re: NSA325 not booting after uBoot installation from stock rom
March 16, 2019 03:58AM
FiLoU,

Quote

> it's really weired. It looks the harddisk is not
> recognized by debian.

> [ 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:
> CloudEngines Pogoplug E02


Not weird at all! You are booting with the Pogoplug E02 DTB. This box has no SATA.


> I could see inside the boot procedure the line
> "loading DTB /boot/dts/kirkwood-pogo_e02.dtb ... "
> Should be here not normally the file
> "kirkwood-nsa325.dtb"? But how to change?

And you've figured out the problem..

So now in serial console, you can adjust the u-boot env to the correct DTB. But you also have another env wrong: mtdparts.

With the USB rootfs plugged in. Power up, interrupt serial console and

setenv mtdparts='mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)'
setenv dtb_file '/boot/dts/kirkwood-nsa325.dtb'
boot

After the kerne starts booting, check the first few line of kernel log. It should show machine model is NSA325

> [    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:

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA325 not booting after uBoot installation from stock rom
March 16, 2019 04:35AM
HI bodhi,
thank you very much!
System boots now correctly.
Just to avoid another guy just read this thread and try the same thing... In your last post you wrote:

setenv mtdparts='mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)'

but this will trip error message because of = character. With this command everything ist fine.
setenv mtdparts 'mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)'

Finally I had to do this again because of forgotten saveenv command before boot :-)

Thanks again. I'me really happy having the NAS up and running.


Best regards
filou



Edited 3 time(s). Last edit at 03/16/2019 04:45AM by FiLoU.
Re: NSA325 not booting after uBoot installation from stock rom
March 16, 2019 03:40PM
> Thanks again. I'me really happy having the NAS up
> and running.

Cool!

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

Your Email:


Subject:


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