Welcome! Log In Create A New Profile

Advanced

Problem booting NSA310S with latest config 4.10.x

Posted by mpmc 
Hi Bodhi,

I seem to be running into an issue with your latest .config on 4.10.8, the disk doesn't appear to be detected.

Marvell>>
Marvell>> usb start
(Re)start USB...
USB:   scanning bus for devices... 3 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
Marvell>> fatload usb 0 0x800000 boot.uImage-nsa310s_
reading boot.uImage-nsa310s_
...........................................................................................................................................................................................................................................................................................................................

3232240 bytes read
Marvell>> setenv bootargs 'console=ttyS0,115200 root=/dev/sda2 coherent_pool=2M'
Marvell>> bootm 0x800000
## Booting image at 00800000 ...
   Image Name:   Linux Kernel for NSA310S
   Created:      2017-04-01  20:30:18 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3232176 Bytes =  3.1 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.10.8-c1-nsa310 (root@mark-desktop2) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 PREEMPT Sat Apr 1 20:29:14 BST 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 NSA310S
[    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=/dev/sda2 coherent_pool=2M
[    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: 250492K/262144K available (6178K kernel code, 615K rwdata, 1680K rodata, 300K init, 306K bss, 11652K 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 - 0xc0610dc8   (6180 kB)
[    0.000000]       .init : 0xc07e3000 - 0xc082e000   ( 300 kB)
[    0.000000]       .data : 0xc082e000 - 0xc08c7ddc   ( 616 kB)
[    0.000000]        .bss : 0xc08c7ddc - 0xc0914910   ( 307 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000009] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000570] Console: colour dummy device 80x30
[    0.000603] Calibrating delay loop... 990.41 BogoMIPS (lpj=4952064)
[    0.090098] pid_max: default: 32768 minimum: 301
[    0.090330] Security Framework initialized
[    0.090350] AppArmor: AppArmor disabled by boot time parameter
[    0.090481] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090499] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091548] CPU: Testing write buffer coherency: ok
[    0.092454] Setting up static identity map for 0x8200 - 0x8258
[    0.092748] mvebu-soc-id: MVEBU SoC ID=0x6702, Rev=0x3
[    0.096327] devtmpfs: initialized
[    0.102493] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.102521] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.102800] prandom: seed boundary self test passed
[    0.107530] prandom: 100 self tests passed
[    0.107542] pinctrl core: initialized pinctrl subsystem
[    0.108843] NET: Registered protocol family 16
[    0.110868] DMA: preallocated 2048 KiB pool for atomic coherent allocations
[    0.140104] cpuidle: using governor ladder
[    0.170102] cpuidle: using governor menu
[    0.170558] Feroceon L2: Enabling L2
[    0.170601] Feroceon L2: Cache support initialised.
[    0.171000] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.177306] No ATAGs?
[    0.211708] vgaarb: loaded
[    0.212043] usbcore: registered new interface driver usbfs
[    0.212127] usbcore: registered new interface driver hub
[    0.212193] usbcore: registered new device driver usb
[    0.213283] clocksource: Switched to clocksource orion_clocksource
[    0.266223] VFS: Disk quotas dquot_6.6.0
[    0.266312] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.277990] NET: Registered protocol family 2
[    0.278903] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.278948] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.278982] TCP: Hash tables configured (established 2048 bind 2048)
[    0.279048] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.279073] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.279263] NET: Registered protocol family 1
[    0.279770] RPC: Registered named UNIX socket transport module.
[    0.279783] RPC: Registered udp transport module.
[    0.279791] RPC: Registered tcp transport module.
[    0.279799] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.280189] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.281097] audit: initializing netlink subsys (disabled)
[    0.281576] Initialise system trusted keyrings
[    0.281793] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.281869] zbud: loaded
[    0.283028] NFS: Registering the id_resolver key type
[    0.283066] Key type id_resolver registered
[    0.283076] Key type id_legacy registered
[    0.283095] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.283105] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.283459] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.283880] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.284149] orangefs_init: module version upstream loaded
[    2.553291] random: fast init done
[    5.221561] Key type asymmetric registered
[    5.221576] Asymmetric key parser 'x509' registered
[    5.221658] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    5.221671] io scheduler noop registered
[    5.221680] io scheduler deadline registered
[    5.221715] io scheduler cfq registered (default)
[    5.223089] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    5.225284] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    5.225306] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    5.225322] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    5.225337] pci_bus 0000:00: root bus resource [bus 00-ff]
[    5.225716] PCI: bus0: Fast back to back transfers disabled
[    5.225744] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    5.225942] PCI: bus1: Fast back to back transfers enabled
[    5.226024] pci 0000:00:01.0: PCI bridge to [bus 01]
[    5.226617] mv_xor f1060800.xor: Marvell shared XOR driver
[    5.284179] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.284422] mv_xor f1060900.xor: Marvell shared XOR driver
[    5.344155] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.344657] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    5.346076] console [ttyS0] disabled
[    5.346143] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 10416666) is a 16550A
[    5.954752] console [ttyS0] enabled
[    5.959471] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    5.965835] nand: Samsung NAND 128MiB 3,3V 8-bit
[    5.970431] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.977992] Scanning device for bad blocks
[    6.018060] Bad eraseblock 354 at 0x000002c40000
[    6.090593] 9 ofpart partitions found on MTD device orion_nand
[    6.096421] Creating 9 MTD partitions on "orion_nand":
[    6.101538] 0x000000000000-0x000000100000 : "uboot"
[    6.107895] 0x000000100000-0x000000180000 : "uboot_env"
[    6.114560] 0x000000180000-0x000000200000 : "key_store"
[    6.121141] 0x000000200000-0x000000280000 : "info"
[    6.127226] 0x000000280000-0x000000c80000 : "etc"
[    6.133277] 0x000000c80000-0x000001680000 : "kernel_1"
[    6.139829] 0x000001680000-0x000004640000 : "rootfs1"
[    6.146625] 0x000004640000-0x000005040000 : "kernel_2"
[    6.153178] 0x000005040000-0x000008000000 : "rootfs2"
[    6.161172] libphy: Fixed MDIO Bus: probed
[    6.166213] libphy: orion_mdio_bus: probed
[    6.170306] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@1: Whitelisted compatible string. Please remove
[    6.181765] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    6.283506] mv643xx_eth: Set the PHY to fix link down
[    6.284354] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 28:28:5d:1f:2c:d4
[    6.298189] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.304730] ehci-pci: EHCI PCI platform driver
[    6.309214] ehci-orion: EHCI orion driver
[    6.313436] orion-ehci f1050000.ehci: EHCI Host Controller
[    6.318923] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    6.326775] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    6.353324] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    6.359568] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    6.366355] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.373568] usb usb1: Product: EHCI Host Controller
[    6.378430] usb usb1: Manufacturer: Linux 4.10.8-c1-nsa310 ehci_hcd
[    6.384687] usb usb1: SerialNumber: f1050000.ehci
[    6.390097] hub 1-0:1.0: USB hub found
[    6.393924] hub 1-0:1.0: 1 port detected
[    6.398776] mousedev: PS/2 mouse device common for all mice
[    6.404707] i2c /dev entries driver
[    6.410745] ht1382 0-0068: rtc core: registered ht1382 as rtc0
[    6.418958] hidraw: raw HID events driver (C) Jiri Kosina
[    6.424739] drop_monitor: Initializing network drop monitor service
[    6.431249] NET: Registered protocol family 17
[    6.435910] Key type dns_resolver registered
[    6.440963] registered taskstats version 1
[    6.445078] Loading compiled-in X.509 certificates
[    6.449905] zswap: loaded using pool lzo/zbud
[    6.456849] Key type big_key registered
[    6.462910] Key type encrypted registered
[    6.469497] ht1382 0-0068: setting system clock to 2017-04-01 13:44:47 UTC (1491054287)
[    6.478124] VFS: Cannot open root device "sda2" or unknown-block(0,0): error -6
[    6.485555] Please append a correct "root=" boot option; here are the available partitions:
[    6.493921] 1f00            1024 mtdblock0
[    6.493926]  (driver?)
[    6.500437] 1f01             512 mtdblock1
[    6.500440]  (driver?)
[    6.507109] 1f02             512 mtdblock2
[    6.507114]  (driver?)
[    6.513647] 1f03             512 mtdblock3
[    6.513651]  (driver?)
[    6.520161] 1f04           10240 mtdblock4
[    6.520164]  (driver?)
[    6.526685] 1f05           10240 mtdblock5
[    6.526689]  (driver?)
[    6.533199] 1f06           48896 mtdblock6
[    6.533202]  (driver?)
[    6.539722] 1f07           10240 mtdblock7
[    6.539726]  (driver?)
[    6.546255] 1f08           48896 mtdblock8
[    6.546259]  (driver?)
[    6.552768] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    6.560995] CPU: 0 PID: 1 Comm: swapper Not tainted 4.10.8-c1-nsa310 #1
[    6.567573] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    6.573840] [<c0016914>] (unwind_backtrace) from [<c0012a08>] (show_stack+0x10/0x14)
[    6.581557] [<c0012a08>] (show_stack) from [<c00d4d30>] (panic+0xb0/0x250)
[    6.588414] [<c00d4d30>] (panic) from [<c07e42f4>] (mount_block_root+0x210/0x288)
[    6.595873] [<c07e42f4>] (mount_block_root) from [<c07e4460>] (mount_root+0xf4/0x120)
[    6.603673] [<c07e4460>] (mount_root) from [<c07e45b4>] (prepare_namespace+0x128/0x188)
[    6.611648] [<c07e45b4>] (prepare_namespace) from [<c07e3e7c>] (kernel_init_freeable+0x1fc/0x250)
[    6.620486] [<c07e3e7c>] (kernel_init_freeable) from [<c060b9d8>] (kernel_init+0x8/0xf0)
[    6.628547] [<c060b9d8>] (kernel_init) from [<c000efd0>] (ret_from_fork+0x14/0x24)
[    6.636091] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    6.783308] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    6.994908] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    7.001596] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    7.023302] usb 1-1: Product: USB2.0 Hub
[    7.034012] hub 1-1:1.0: USB hub found
[    7.043311] hub 1-1:1.0: 4 ports detected
[    7.373312] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[    7.544282] usb 1-1.1: New USB device found, idVendor=0781, idProduct=5567
[    7.551143] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.573302] usb 1-1.1: Product: Cruzer Blade
[    7.577567] usb 1-1.1: Manufacturer: SanDisk
[    7.581818] usb 1-1.1: SerialNumber: 4C530499901204110043

Yet using the mvebu_v5_defconfig + your patch, it boots without issue..

Marvell>> setenv bootargs 'console=ttyS0,115200 root=/dev/sda2 coherent_pool=2M'
Marvell>> printenv
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
MODEL_ID=AD03
PRODUCT_NAME=STG-315
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=MitraStar Technology Corp.
run_diag=yes
ethaddr=28:28:5D:1F:2C:D4
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
ethact=egiga0
arcNumber=4931
bootcmd=ide reset; ext2load ide 0:1 0x800000 /boot.uImage; bootm 0x800000
console=console=console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot),0x7f00000@0x100000(root)
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=yes
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
disaMvPnp=no
enaAutoRecovery=yes
kernel_addr=0x4640000
pcieTune=no
bootargs=console=ttyS0,115200 root=/dev/sda3 coherent_pool=2M

nvironment size: 1446/131068 bytes
Marvell>> usb start
(Re)start USB...
USB:   scanning bus for devices... 3 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
Marvell>> fatload usb 0 0x800000 boot.uImage-nsa310s
reading boot.uImage-nsa310s
..................................................................................................................................................................................................................................................................................

2817976 bytes read
Marvell>> bootm 0x800000
## Booting image at 00800000 ...
   Image Name:   Linux Kernel for NSA310Sx
   Created:      2017-04-01  21:32:37 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2817912 Bytes =  2.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.10.8-mnsa310 (root@mark-desktop2) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 PREEMPT Sat Apr 1 22:21:44 BST 2017
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
CPU: VIVT data cache, VIVT instruction cache
OF: fdt:Machine model: Zyxel NSA310S
Memory policy: Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: console=ttyS0,115200 root=/dev/sda3 coherent_pool=2M
ID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 251604K/262144K available (5473K kernel code, 274K rwdata, 1356K rodata, 208K init, 666K bss, 10540K reserved, 0K cma-reserved, 0K highmem)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
    lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc0560778   (5474 kB)
      .init : 0xc06de000 - 0xc0712000   ( 208 kB)
      .data : 0xc0712000 - 0xc0756a40   ( 275 kB)
       .bss : 0xc0756a40 - 0xc07fd328   ( 667 kB)
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
        Build-time adjustment of leaf fanout to 32.
NR_IRQS:16 nr_irqs:16 16
clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
Console: colour dummy device 80x30
Calibrating delay loop... 990.41 BogoMIPS (lpj=4952064)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x81e0 - 0x8238
mvebu-soc-id: MVEBU SoC ID=0x6702, Rev=0x3
devtmpfs: initialized
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 256 (order: -1, 3072 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 2048 KiB pool for atomic coherent allocations
cpuidle: using governor menu
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.
[Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource orion_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
workingset: timestamp_bits=30 max_order=16 bucket_order=0
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
pci_bus 0000:00: root bus resource [bus 00-ff]
PCI: bus0: Fast back to back transfers disabled
pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
PCI: bus1: Fast back to back transfers enabled
pci 0000:00:01.0: PCI bridge to [bus 01]
mv_xor f1060800.xor: Marvell shared XOR driver
mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
mv_xor f1060900.xor: Marvell shared XOR driver
mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
console [ttyS0] disabled
f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 10416666) is a 16550A
console [ttyS0] enabled
loop: module loaded
sata_mv f1080000.sata: slots 32 ports 2
scsi host0: sata_mv
scsi host1: sata_mv
ata1: SATA max UDMA/133 irq 32
ata2: SATA max UDMA/133 irq 32
nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
nand: Samsung NAND 128MiB 3,3V 8-bit
nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
Scanning device for bad blocks
Bad eraseblock 354 at 0x000002c40000
9 ofpart partitions found on MTD device orion_nand
Creating 9 MTD partitions on "orion_nand":
0x000000000000-0x000000100000 : "uboot"
0x000000100000-0x000000180000 : "uboot_env"
0x000000180000-0x000000200000 : "key_store"
0x000000200000-0x000000280000 : "info"
0x000000280000-0x000000c80000 : "etc"
0x000000c80000-0x000001680000 : "kernel_1"
0x000001680000-0x000004640000 : "rootfs1"
0x000004640000-0x000005040000 : "kernel_2"
0x000005040000-0x000008000000 : "rootfs2"
libphy: Fixed MDIO Bus: probed
libphy: orion_mdio_bus: probed
[Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@1: Whitelisted compatible string. Please remove
mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth: Set the PHY to fix link down
mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 28:28:5d:1f:2c:d4
libertas_sdio: Libertas SDIO driver
libertas_sdio: Copyright Pierre Ossman
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-orion: EHCI orion driver
orion-ehci f1050000.ehci: EHCI Host Controller
orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
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
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
orion_wdt: Initial timeout 25 sec
marvell-cesa f1030000.crypto: CESA device successfully registered
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
oprofile: no performance counters
oprofile: using timer interrupt.
NET: Registered protocol family 10
Segment Routing with IPv6
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
input: gpio_keys as /devices/platform/gpio_keys/input/input0
hctosys: unable to open rtc device (rtc0)
ALSA device list:
  No soundcards found.
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
ata1.00: ATA-8: WDC WD5000AAKX-001CA0, 15.01H15, max UDMA/133
ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access     ATA      WDC WD5000AAKX-0 1H15 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 sda3
sd 0:0:0:0: [sda] Attached SCSI disk
usb 1-1: new high-speed USB device number 2 using orion-ehci
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
ata2: SATA link down (SStatus 0 SControl F300)
random: fast init done
EXT4-fs (sda3): couldn't mount as ext3 due to feature incompatibilities
EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) readonly on device 8:3.
devtmpfs: mounted
usb 1-1.1: new high-speed USB device number 3 using orion-ehci
Freeing unused kernel memory: 208K
This architecture does not have kernel memory protection.
usb-storage 1-1.1:1.0: USB Mass Storage device detected
scsi host2: usb-storage 1-1.1:1.0
systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
systemd[1]: Detected architecture 'arm'.

Welcome to Debian GNU/Linux 8 (jessie)!

systemd[1]: Failed to insert module 'autofs4'
systemd[1]: Set hostname to <nsa310s>.
systemd[1]: /etc/mtab is not a symlink or not pointing to /proc/self/mounts. This is not supported anymore. Please make sure to replace this file by a symlink to avoid incorrect or misleading mount(8) output.
scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 6
sd 2:0:0:0: [sdb] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
 sdb: sdb1
sd 2:0:0:0: [sdb] Attached SCSI removable disk
systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
systemd[1]: Expecting device dev-ttyS0.device...
         Expecting device dev-ttyS0.device...
systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
systemd[1]: Started Forward Password Requests to Wall Directory Watch.
systemd[1]: Starting Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Reached target Paths.
         Expecting device dev-disk-by\x2duuid-a822733c\x2dfd7...e1ba9.device...
         Expecting device dev-disk-by\x2duuid-ca5fe0f9\x2d22e...d54f2.device...
[  OK  ] Created slice Root Slice.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on Delayed Shutdown Socket.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Listening on Journal Socket.
[  OK  ] Created slice System Slice.
         Starting File System Check on Root Device...
[  OK  ] Created slice system-systemd\x2dfsck.slice.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
         Starting Increase datagram queue length...
         Mounting Debug File System...
         Starting udev Coldplug all Devices...
         Starting Create Static Device Nodes in /dev...
         Starting Load Kernel Modules...
[  OK  ] Reached target Slices.
[  OK  ] Started Increase datagram queue length.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Mounted Debug File System.
         Starting Apply Kernel Variables...
[  OK  ] Listening on Syslog Socket.
         Starting Journal Service...
[  OK  ] Started Journal Service.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started udev Kernel Device Mansystemd-udevd[1338]: starting version 215
ager.
         Starting Copy rules generated while the root was ro...
[  OK  ] Started Copy rules generated while the root was ro.
systemd-fsck[841]: /dev/sda3: clean, 29628/30408704 files, 2119124/121608192 blocks
[  OK  ] Started File System Check on Root Device.
         Starting Remount Root and Kernel File Systems...
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Found device WDC_WD5000AAKX-001CA0 1.
[  OK  ] Found device WDC_WD5000AAKX-001CA0 2.
[  OK  ] Created slice system-ifup.slice.
         Activating swap /dev/disk/by-uuid/a822733c-fd78-4573...42ba51fe1ba9...
         Starting File System Check on /dev/disk/by-uuid/ca5f...e257e81d54f2...
Adding 975868k swap on /dev/sda2.  Priority:-1 extents:1 across:975868k
[  OK  ] Activated swap /dev/disk/by-uuid/a822733c-fd78-4573-a6e3-42ba51fe1ba9.
[  OK  ] Reached target Swap.
[  OK  ] Started File System Check on /dev/disk/by-uuid/ca5fe...8-e257e81d54f2.
EXT4-fs (sda3): re-mounted. Opts: errors=remount-ro
[  OK  ] Started Remount Root and Kernel File Systems.
         Starting Various fixups to make systemd work better on Debian...
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /boot...
[  OK  ] Started Various fixups to make systemd work better on Debian.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Mounted /boot.
[  OK  ] Reached target Local File Systems.
[  OK  ] Reached target Remote File Systems.
         Starting Trigger Flushing of Journal to Persistent Storage...
         Starting Create Volatile Files and Directories...
         Starting LSB: Raise network interfaces....
systemd-journald[1129]: Received request to flush runtime journal from PID 1
[  OK  ] Started Trigger Flushing of Journal to Persistent Storage.
[  OK  ] Started Create Volatile Files and Directories.
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
mv643xx_eth: Set the PHY back to auto-negotiation mode
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
random: crng init done
[  OK  ] Started LSB: Raise network interfaces..
         Starting ifup for eth0...
[  OK  ] Started ifup for eth0.
[  OK  ] Reached target Network.
[  OK  ] Reached target Network is Online.
         Starting LSB: RPC portmapper replacement...
[  OK  ] Started LSB: RPC portmapper replacement.
[  OK  ] Reached target RPC Port Mapper.
         Starting LSB: NFS support files common to client and server...
[  OK  ] Started LSB: NFS support files common to client and server.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Timers.
[  OK  ] Reached target Basic System.
         Starting OpenBSD Secure Shell server...
[  OK  ] Started OpenBSD Secure Shell server.
         Starting Deferred execution scheduler...
[  OK  ] Started Deferred execution scheduler.
         Starting Regular background program processing daemon...
[  OK  ] Started Regular background program processing daemon.
         Starting /etc/rc.local Compatibility...
         Starting Login Service...
         Starting LSB: exim Mail Transport Agent...
         Starting D-Bus System Message Bus...
[  OK  ] Started D-Bus System Message Bus.
         Starting System Logging Service...
         Starting Permit User Sessions...
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started Login Service.
[  OK  ] Started Permit User Sessions.
         Starting Getty on tty1...
[  OK  ] Started Getty on tty1.
         Starting Serial Getty on ttyS0...
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started System Logging Service.
[  OK  ] Started LSB: exim Mail Transport Agent.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

Debian GNU/Linux 8 nsa310s ttyS0

nsa310s login: mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

Not sure what the problem is, it's really strange..

The only thing I changed in your config was to disable lirc_rpi (as it won't build) and in the mvebu config, I just enabled cgroups..

Any ideas?



Edited 1 time(s). Last edit at 04/02/2017 04:05PM by bodhi.
Re: Linux Kernel 4.10.0 Kirkwood package and Debian rootfs
April 01, 2017 06:10PM
mpmc,

The config-4.10.0-kirkwood-tld-1 should not be a problem with detecting the HDD. You are booting without initrd? is that correct?

Marvell>> bootm 0x800000
## Booting image at 00800000 ...
   Image Name:   Linux Kernel for NSA310S
   Created:      2017-04-01  20:30:18 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3232176 Bytes =  3.1 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

If you use my kernel config, you should boot with uImage and uInitrd. So load the uInitrd at 0x1100000, and

fatload usb 0 0x1100000 <path to uInitrd>
bootm 0x800000 0x1100000

By the way, you are still running stock u-boot! I'd strongly recommend installing the latest u-boot. Try kwboot with serial console to make sure you have a recovery path, and then install. You're missing out too many good features running stock u-boot.

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

Subject:


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