Welcome! Log In Create A New Profile

Advanced

(WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package

Posted by bodhi 
(WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package
May 28, 2015 02:03PM
Linux Kernel and Rootfs for Cavium CNS3xxx (Seagate Business Sorage NAS, Seagate BlackArmor NAS).

This is an experimental release for the Cavium CNS3xxx kernel and rootfs. Please try this testing kernel and rootfs (expect some missing features), and provide feedbacks so it can be fixed/added.

Latest kernel: linux-4.14.24-cns3xxxx-tld-1.bodhi.tar.bz2 (Updated Mar 06, 2018)
Latest rootfs: Debian-4.14.24-cns3xxxx-tld-1-rootfs-bodhi.tar.bz2 (Updated Mar 08, 2018)

Credits: blackdevil, Yama, Val532, tommy79, and MarkTurner for providing information and testing the kernel.


========================
Updated Mar 08, 2018

Basic Debian stretch Cavium CNS3xxx rootfs:

- tarball size: 170M
- install size: 441M
- 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 some useful aliases in /root/.profile
- root password: root

Download at Dropbox:
Debian-4.14.24-cns3xxxx-tld-1-rootfs-bodhi.tar.bz2

md5:
c8fbf5b4d9c41fdb90a54d4e75c83bd7
sha256:
1ec662dc7f8f1d457a8832e8b8afd801eb701dad2dda4ee4b13b9b7139f9df37

And remember to check the hash of what you download, as always.

Installation:

Installation can be done on any Linux box, with a fresh USB drive or HDD drive (at the moment, if the rootf is on USB, then the kernel files need to be loaded with tftp during boot).

Note: all steps below must be done while logging in as root user (not sudo). If you are not the root user then don't continue, because the rootfs will not work.

1. Format a new USB drive with a single Ext3 partition, and label it rootfs.

2. Mount the drive on a Linux box. cd to top level directory and extract it. It is assuming the USB drive is mounted at /media/sdb1

cd /media/sdb1 
tar -xjf Debian-4.14.24-cns3xxxx-tld-1-rootfs-bodhi.tar.bz2
sync

3. Done. Take this USB rootfs to your CNS3xxx box and cold start. Further setup in u-boot envs is needed to boot this rootfs at this time (we are still booting with stock u-boot).

After booted into Debian, see Note 1 below. It is very important that you do Note1 steps to secure your box.

Note1:

After logging in this rootf the first time, remember to generate new SSH key to make it your own unique rootfs. And also update your rootfs to get the latest Debian package security updates:

rm /etc/ssh/ssh_host*
ssh-keygen -A



========================
Updated Mar 06, 2018

Kernel 4.14.24-cns3xxxx-tld-1 package has been uploaded.

Download at Dropbox
linux-4.14.24-cns3xxxx-tld-1.bodhi.tar.bz2

md5:
7f800133abd369154af9ea7376e2da3f
sha256:
16d25a445d04ffc43d762d4f85853be6f94d09538f751f12d5c7b7795bd758fa

There are 6 files in this tarball:

linux-image-4.14.24-cns3xxxx-tld-1_1.0_armel.deb
linux-headers-4.14.24-cns3xxxx-tld-1_1.0_armel.deb
config-4.14.24-cns3xxx-tld-1
zImage-4.14.24-cns3xxxx-tld-1
linux-dtb-4.14.24-cns3xxx-tld-1.tar
linux-4.14.24-cns3xxxx-tld-1.patch


========================
Updated May 28, 2015

Credit: OpenWrt developers for the patches which I've modified (slightly) and incorporated in kernel.

Download at Dropbox
linux-3.18.5-cns3xxxx-tld-2-bodhi.tar.bz2
md5
1d13f10257299b2c448e7a1e8bf72b7c

There are 5 files in this tarball:

linux-image-3.18.5-cns3xxx-tld-2_2.0_armel.deb
config-3.18.5-cns3xxx-tld-2
zImage-3.18.5-cns3xxx-tld-2
linux-headers-3.18.5-cns3xxx-tld-2_2.0_armel.deb
linux-3.18.5-cns3xxx-tld-2.patch

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



Edited 6 time(s). Last edit at 03/09/2018 03:01PM by bodhi.
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
May 28, 2015 04:29PM
I made a template of uboot commands based on several posts in the original thread for this device:
#Next two lines only for tftp booting
setenv serverip 192.168.1.102;setenv tftp_serverip 192.168.1.102; setenv ipaddr 192.168.1.103
setenv bootcmd_load 'tftp 0x800000 uImage;tftp 0x1100000 uInitrd'

#Next one line only for loading from drive
setenv bootcmd_load 'scsi init;fatload scsi 0 0x800000 /uImage;fatload scsi 0 0x1100000 /uInitrd'

setenv stdin serial;setenv stdout serial;setenv stderr serial;setenv verify n;setenv num_boot_tries 3;setenv bootargs_console console=ttyS0,38400
setenv bootdelay 15;setenv bootargs_root root=/dev/sda2 rootwait mem=256M;setenv arcNumber 2776
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root);run bootcmd_load;bootm 0x800000 0x1100000'
run bootcmd

I couldn't run the kernel provided above, even after setting arcNumber, I had to also set mem=256M.
It booted up till the root device was needed "Waiting for /dev/sda2 to be ready" or something.
Above there was something like "SCSI ... initiated", still it did not load the drive.
I even loaded the uInitrd but the kernel complained, that there is no "RAMDISK starting at 0"

Sorry, I can't provide any logs atm, and I wont be able to next two weeks.
I hope you guys can test around with that info.
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
May 28, 2015 06:20PM
Interrupt u-boot, at the prompt:

ide reset

Does this show the hard disk initialize?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
May 29, 2015 02:15AM
The same root works on the kernel v2.6.

I am also loading the uImage from the same device but other partition, so uboot recognizes the hard drive, but not the kernel.

Like blackdevil said, the kernel v3 might be missing the sata drivers. Don't know how easy it will be to port the Seagate sata drivers to the newer kernel.
I would upload the patches, but I am not at home.
Anyway, iamnewbie linked em^^

blackdevil Wrote:
-------------------------------------------------------
> ...
> The newer Kernel will not work because there are
> many sata patches.
> ...

iamnewbie Wrote:
-------------------------------------------------------
> ...
> Here is some Sourcecodes from the NAS(410MB) http://www.seagate.com/files/www-content/support-content/external-products/business-storage/2-bay/_shared/downloads/seagate-nas-sources.tgz
> Firmware Link: http://www.seagate.com/files/www-content/support-content/external-products/business-storage/2-bay/_shared/downloads/seagate_nas-update-1400319-2bay.zip
>
> and here from Seagate Central http://www.seagate.com/files/www-content/support-content/external-products/seagate-central/_shared/downloads/seagate-central-firmware-gpl-source-code.zip
> ...


I'm not at home for two weeks now. Can test after that again.
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
May 29, 2015 03:07AM
Ah. I've missed that kernel configuration switch. The SATA patch was in fact incorporated, but I missed turning it on in the kernel configuration. That's why it's still a test kernel!

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
May 31, 2015 09:36AM
Hi,

I made some test, and it's not good for the moment.

I do not understand why, but it's seems like i can see the sata controler and usb3 controler.

I build my own kernel with patch and config you give, and i add some option (based on config for kirkwood kernel).

So now i have that :

[    0.000000] Booting Linux on physical CPU 0x900
[    0.000000] Linux version 3.18.5-cns3xxx-test-3 (root@debian-compile) (gcc version 4.9.2 ( 4.9.2-10) ) #8 SMP PREEMPT Sun May 31 17:01:32 CEST 2015
[    0.000000] CPU: ARMv6-compatible processor [410fb024] revision 4 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: Cavium Networks CNS3420 Validation Board
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] PERCPU: Embedded 9 pages/cpu @cfdeb000 s8192 r8192 d20480 u36864
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: root=/dev/sda1 mem=256M console=ttyS0,38400
[    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: 245904K/262144K available (4959K kernel code, 271K rwdata, 1684K rodata, 204K init, 187K bss, 16240K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0684f8c   (6644 kB)
[    0.000000]       .init : 0xc0685000 - 0xc06b8000   ( 204 kB)
[    0.000000]       .data : 0xc06b8000 - 0xc06fbd40   ( 272 kB)
[    0.000000]        .bss : 0xc06fbd40 - 0xc072ab68   ( 188 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836480000000ns
[    0.000000] Console: colour dummy device 80x30
[    0.200000] console [ttyS0] enabled
[    0.210000] Calibrating delay loop... 277.70 BogoMIPS (lpj=1388544)
[    0.290000] pid_max: default: 32768 minimum: 301
[    0.300000] Security Framework initialized
[    0.310000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.320000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.330000] Initializing cgroup subsys net_cls
[    0.340000] CPU: Testing write buffer coherency: ok
[    0.350000] missing device node for CPU 0
[    0.360000] CPU0: thread -1, cpu 0, socket -1, mpidr 900
[    0.370000] Setting up static identity map for 0x4ddd58 - 0x4ddda4
[    0.440000] Brought up 1 CPUs
[    0.440000] SMP: Total of 1 processors activated (277.70 BogoMIPS).
[    0.450000] CPU: All CPU(s) started in SVC mode.
[    0.460000] devtmpfs: initialized
[    0.480000] prandom: seed boundary self test passed
[    0.500000] prandom: 100 self tests passed
[    0.510000] regulator-dummy: no parameters
[    0.520000] NET: Registered protocol family 16
[    0.530000] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.570000] cpuidle: using governor ladder
[    0.610000] cpuidle: using governor menu
[    0.620000] L2C: DT/platform modifies aux control register: 0x02040000 -> 0x02540000
[    0.630000] L2C-310 cache controller enabled, 8 ways, 256 kB
[    0.640000] L2C-310: CACHE_ID 0x410000c4, AUX_CTRL 0x06540000
[    0.660000] vgaarb: loaded
[    0.670000] SCSI subsystem initialized
[    0.680000] usbcore: registered new interface driver usbfs
[    0.690000] usbcore: registered new interface driver hub
[    0.700000] usbcore: registered new device driver usb
[    0.710000] Switched to clocksource freerun
[    0.730000] NET: Registered protocol family 2
[    0.750000] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.770000] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    0.790000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.810000] TCP: reno registered
[    0.820000] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.840000] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.860000] NET: Registered protocol family 1
[    0.870000] RPC: Registered named UNIX socket transport module.
[    0.890000] RPC: Registered udp transport module.
[    0.900000] RPC: Registered tcp transport module.
[    0.920000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.940000] Unpacking initramfs...
[    1.840000] Freeing initrd memory: 6592K (c1100000 - c1770000)
[    1.860000] futex hash table entries: 256 (order: 2, 16384 bytes)
[    1.880000] Initialise system trusted keyring
[    1.890000] VFS: Disk quotas dquot_6.5.2
[    1.900000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.930000] NFS: Registering the id_resolver key type
[    1.940000] Key type id_resolver registered
[    1.950000] Key type id_legacy registered
[    1.970000] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.990000] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    2.000000] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    2.030000] msgmni has been set to 493
[    2.040000] Key type big_key registered
[    2.050000] alg: No test for stdrng (krng)
[    2.070000] Key type asymmetric registered
[    2.080000] Asymmetric key parser 'x509' registered
[    2.090000] bounce: pool size: 64 pages
[    2.110000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    2.130000] io scheduler noop registered
[    2.140000] io scheduler deadline registered
[    2.150000] io scheduler cfq registered (default)
[    2.170000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    2.190000] serial8250: ttyS0 at MMIO 0x78000000 (irq = 45, base_baud = 1500000) is a 16550A
[    2.210000] platform ahci.0: Driver ahci requests probe deferral
[    2.230000] physmap platform flash device: 08000000 at 10000000
[    2.270000] physmap-flash physmap-flash.0: map_probe failed
[    2.300000] libphy: Fixed MDIO Bus: probed
[    2.310000] usbcore: registered new interface driver usb-storage
[    2.330000] mousedev: PS/2 mouse device common for all mice
[    2.350000] i2c /dev entries driver
[    2.360000] hidraw: raw HID events driver (C) Jiri Kosina
[    2.380000] TCP: cubic registered
[    2.390000] NET: Registered protocol family 17
[    2.400000] Key type dns_resolver registered
[    2.410000] PCIe: Port[0] Enable PCIe LTSSM
[    2.430000] PCIe: Port[0] Check data link layer...
[    2.950000] Device not found.
[    2.960000] PCIe: Port[1] Enable PCIe LTSSM
[    2.970000] PCIe: Port[1] Check data link layer...
[    3.500000] Device not found.
[    3.500000] Registering SWP/SWPB emulation handler
[    3.520000] Loading compiled-in X.509 certificates
[    3.530000] registered taskstats version 1
[    3.550000] platform ahci.0: Driver ahci requests probe deferral
[    3.570000] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    3.590000] Freeing unused kernel memory: 204K (c0685000 - c06b8000)
Loading, please wait...
[    3.690000] udevd[59]: starting version 175
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: Assembling all MD arrays ... mdadm: No devices listed in conf file were found.
F[    4.260000] device-mapper: uevent: version 1.0.3
ailure: failed t[    4.280000] device-mapper: ioctl: 4.28.0-ioctl (2014-09-17) initialised: dm-devel@redhat.com
o assemble all arrays.
done.
done.
Begin: Waiting for root file system ... done.
Gave up waiting for root device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
   - Check root= (did the system wait for the right device?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  /dev/sd[   36.770000] usbcore: registered new interface driver usbhid
a1 does not exis[   36.790000] usbhid: USB HID core driver
t.  Dropping to a shell!
(initramfs) [  110.230000] random: nonblocking pool is initialized

So i think there are a probleme with pcie patch, or i made a stupid mistake with my config file ^^.

bodhi can you help me ^^.

PS: i think we had a probleme with pcie because on your first kernel i have that :

Linux version 4.0.0-cns3xxx-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #3 SMP PREEMPT Sun May 24 22:13:49 PDT 2015
CPU: ARMv6-compatible processor [410fb024] revision 4 (ARMv7), cr=00c5787d

PCIe: Port[0] Enable PCIe LTSSM
PCIe: Port[0] Check data link layer...
Link up.

and now that :

[    2.410000] PCIe: Port[0] Enable PCIe LTSSM
[    2.430000] PCIe: Port[0] Check data link layer...
[    2.950000] Device not found.
[    2.960000] PCIe: Port[1] Enable PCIe LTSSM
[    2.970000] PCIe: Port[1] Check data link layer...
[    3.500000] Device not found.

Edit 2:

I tried to boot with kernel build by blackdevil with original source from seagate (on post http://forum.doozan.com/read.php?2,17868,20426#msg-20426) and it seems i am right when i thinks patch are not good.

I think patch taken from OpenWrt work only for the original board and our system is very different than the original board, so it's what sata pcie and other does not work.

there is a bootlog from this kernel :

Whitney # bootm 0x800000
enter do_eth_down!!!
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-2.6.35.13-cavm1.whitney-ec
   Created:      2015-03-04  21:33:17 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3247244 Bytes =  3.1 MB
   Load Address: 02000000
   Entry Point:  02000000
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.35.13-cavm1.whitney-econa (blackdevil@anakondalaptop) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-12ubuntu1) ) #25 Wed Mar 4 22:33:11 CET 2015
[    0.000000] Whitney release v1.1-beta5
[    0.000000] CPU: ARMv6-compatible processor [410fb024] revision 4 (ARMv7), cr=00c5387d
[    0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: Cavium Networks CNS3420 Validation Board
[    0.000000] Ignoring unrecognised tag 0x00000000
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: root=/dev/sda1 mem=256M console=ttyS0,38400
[    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] allocated 1310720 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 256MB = 256MB total
[    0.000000] Memory: 251620k/251620k available, 10524k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     DMA     : 0xfde00000 - 0xffe00000   (  32 MB)
[    0.000000]     vmalloc : 0xb0800000 - 0xe0000000   ( 760 MB)
[    0.000000]     lowmem  : 0xa0000000 - 0xb0000000   ( 256 MB)
[    0.000000]     modules : 0x9f000000 - 0xa0000000   (  16 MB)
[    0.000000]       .init : 0xa0008000 - 0xa002a000   ( 136 kB)
[    0.000000]       .text : 0xa002a000 - 0xa05d6000   (5808 kB)
[    0.000000]       .data : 0xa0636000 - 0xa066cc60   ( 220 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU-based detection of stalled CPUs is disabled.
[    0.000000]  Verbose stalled-CPUs detection is disabled.
[    0.000000] NR_IRQS:160
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [ttyS0] enabled
[    0.020000] Calibrating delay loop... 279.34 BogoMIPS (lpj=1396736)
[    0.260000] pid_max: default: 32768 minimum: 301
[    0.270000] Mount-cache hash table entries: 512
[    0.280000] Initializing cgroup subsys ns
[    0.290000] Initializing cgroup subsys cpuacct
[    0.300000] Initializing cgroup subsys memory
[    0.310000] Initializing cgroup subsys devices
[    0.320000] Initializing cgroup subsys freezer
[    0.330000] Initializing cgroup subsys net_cls
[    0.340000] Initializing cgroup subsys blkio
[    0.350000] CPU: Testing write buffer coherency:
[    0.360000] ok
[    0.360000] CNS3XXX: no. of cores (2) greater than configured maximum of 1 - clipping
[    0.380000] CPU1: Booted secondary processor
[    0.380000] <0> DP-core moving to WFI
[    0.380000] cvm_nas_init: cvm_nas_task init
[    0.390000] cvm_nas_init: proc init success
[    0.400000] devtmpfs: initialized
[    0.420000] ------------[ cut here ]------------
[    0.430000] WARNING: at arch/arm/mm/dma-mapping.c:165 consistent_init+0x44/0xc8()
[    0.440000] Modules linked in:
[    0.450000] [<a00310e0>] (unwind_backtrace+0x0/0xe4) from [<a0475ec8>] (dump_stack+0x18/0x1c)
[    0.460000] [<a0475ec8>] (dump_stack+0x18/0x1c) from [<a0046434>] (warn_slowpath_common+0x54/0x6c)
[    0.470000] [<a0046434>] (warn_slowpath_common+0x54/0x6c) from [<a0046470>] (warn_slowpath_null+0x24/0x2c)
[    0.480000] [<a0046470>] (warn_slowpath_null+0x24/0x2c) from [<a000b5f4>] (consistent_init+0x44/0xc8)
[    0.490000] [<a000b5f4>] (consistent_init+0x44/0xc8) from [<a002a4c4>] (do_one_initcall+0x5c/0x1a4)
[    0.500000] [<a002a4c4>] (do_one_initcall+0x5c/0x1a4) from [<a0008a70>] (kernel_init+0xc8/0x178)
[    0.510000] [<a0008a70>] (kernel_init+0xc8/0x178) from [<a002be94>] (kernel_thread_exit+0x0/0x8)
[    0.520000] ---[ end trace 1b75b31a2719ed1c ]---
[    0.530000] NET: Registered protocol family 16
[    0.540000] L310 cache controller enabled
[    0.550000] l2x0: 8 ways, CACHE_ID 0x410000c4, AUX_CTRL 0x02540000, Cache size: 262144 B
[    0.560000] cns_rdma_init: start
[    0.570000] cns_rdma_init: reg1: virt=0xaf015568
[    0.580000] cns_rdma_init: pre-allocating rdma_sg: 32*280=8960
[    0.590000] cns_rdma_init: q1: virt=0xaf012a00, phy=0x2f012a00 -> 0x2f012bf0
[    0.600000] cns_rdma_init: done, err=0
[    0.610000] Cavium feature enabled: SOP,
[    0.640000] bio: create slab <bio-0> at 0
[    0.660000] vgaarb: loaded
[    0.670000] SCSI subsystem initialized
[    0.680000] usbcore: registered new interface driver usbfs
[    0.690000] usbcore: registered new interface driver hub
[    0.700000] usbcore: registered new device driver usb
[    0.880000] raid6: int32x1     58 MB/s
[    1.060000] raid6: int32x2     73 MB/s
[    1.240000] raid6: int32x4     68 MB/s
[    1.420000] raid6: int32x8     71 MB/s
[    1.600000] raid6: CNS-RAID   397 MB/s
[    1.610000] raid6: using algorithm CNS-RAID (397 MB/s)
[    1.620000] Switching to clocksource timer1
[    1.630000] Slow work thread pool: Starting up
[    1.640000] Slow work thread pool: Ready
[    1.650000] FS-Cache: Loaded
[    1.680000] NET: Registered protocol family 2
[    1.690000] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    1.700000] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    1.710000] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    1.720000] TCP: Hash tables configured (established 8192 bind 8192)
[    1.730000] TCP reno registered
[    1.740000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.750000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.760000] NET: Registered protocol family 1
[    1.770000] RPC: Registered udp transport module.
[    1.780000] RPC: Registered tcp transport module.
[    1.790000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.800000] CNS3XXX PCIe Host Control Driver
[    1.810000] ===============================
[    1.820000] CNS3XXX PCIe support both internal and external clock.
[    1.830000] However, incorrect selection may result in system hang.
[    1.840000] If booting hangs, please select choose
[    1.850000] CONFIG_CNS3XXX_INTERNAL_CLOCK_SOURCE
[    1.860000] instead.
[    1.860000] ===============================
[    1.870000] PCI-E0 uses external clock source.
[    1.880000] PCIe: Port[0] Enable PCIe LTSSM
[    1.890000] PCIe: Port[0] Check data link layer...
[    1.900000] Link up.
[    1.910000] PCIe: Set Bridge Max_Payload_Size to 128 byte
[    1.920000] PCIe: Set Bridge Max_Read_Request_Size to 128 byte
[    1.930000] PCIe: Set Device Max_Payload_Size to 128 byte
[    1.940000] PCIe: Set Device Max_Read_Request_Size to 128 byte
[    1.950000] PCI: bus0: Fast back to back transfers disabled
[    1.960000] PCI: bus1: Fast back to back transfers disabled
[    1.970000] PCIe0: Bridge found.
[    1.980000] PCI: enabling device 0000:00:00.0 (0140 -> 0143)
[    1.990000] PCIe0 map irq: 0000:00:00.00 slot 0, pin 1, irq: 87
[    2.000000] PCIe0 map irq: 0000:01:00.00 slot 0, pin 1, irq: 61
[    2.010000] pci 0000:00:00.0: BAR 8: assigned [mem 0xa0000000-0xa00fffff]
[    2.020000] pci 0000:01:00.0: BAR 0: assigned [mem 0xa0000000-0xa0007fff 64bit]
[    2.030000] pci 0000:01:00.0: BAR 0: set to [mem 0xa0000000-0xa0007fff 64bit] (PCI address [0xa0000000-0xa0007fff]
[    2.050000] VFS: Disk quotas dquot_6.5.2
[    2.060000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.070000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.080000] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    2.090000] NTFS driver 2.1.29 [Flags: R/W].
[    2.100000] fuse init (API version 7.14)
[    2.110000] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
[    2.120000] SGI XFS Quota Management subsystem
[    2.130000] GFS2 (built Mar  4 2015 20:04:16) installed
[    2.140000] msgmni has been set to 491
[    2.150000] alg: No test for stdrng (krng)
[    2.160000] io scheduler noop registered
[    2.170000] io scheduler deadline registered (default)
[    2.190000] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    2.200000] serial8250: ttyS0 at MMIO 0x78000000 (irq = 45) is a 16550A
[    2.220000] brd: module loaded
[    2.230000] loop: module loaded
[    2.240000] drbd: initialized. Version: 8.3.8 (api:88/proto:86-94)
[    2.250000] drbd: built-in
[    2.260000] drbd: registered as block device major 147
[    2.270000] drbd: minor_table @ 0xaf18f3a0
[    2.280000] Loading iSCSI transport class v2.0-870.
[    2.290000] iscsi: registered transport (tcp)
[    2.310000] cns3xxx_spi_probe: setup CNS3XXX SPI Controller in polling mode, w/o DMA
[    2.330000] SPI bit rate = 116/64 Mhz
[    2.340000] m25p80 spi1.0: found mx25l4005a, expected m25p80
[    2.350000] m25p80 spi1.0: mx25l4005a (512 Kbytes)
[    2.360000] Creating 3 MTD partitions on "spi1.0":
[    2.370000] 0x000000000000-0x000000030000 : "SPI-UBoot"
[    2.380000] 0x000000030000-0x000000040000 : "SPI-UBootEnv"
[    2.390000] 0x000000040000-0x000000080000 : "SPI-FileSystem"
[    2.400000] CNS3XXX AHCI SATA low-level driver
[    2.410000] SATA Port0 Spread-spectrum : Disable
[    2.420000] SATA Port0 Spread-spectrum : Enable
[    2.430000] SATA Port1 Spread-spectrum : Disable
[    2.440000] SATA Port1 Spread-spectrum : Enable
[    2.470000] cns3xxx-ahci cns3xxx-ahci.0: forcing PORTS_IMPL to 0x3
[    2.480000] CPU clock : 700
[    2.490000] *** Timer 1ms: 100000(0x186a0) ***
[    2.500000] *** Set to: 350000(0x55730) ***
[    2.510000] cns3xxx-ahci cns3xxx-ahci.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl SATA mode
[    2.520000] cns3xxx-ahci cns3xxx-ahci.0: flags: ncq sntf pm led clo only pmp pio slum part
[    2.530000] scsi0 : cns3xxx-ahci
[    2.540000] scsi1 : cns3xxx-ahci
[    2.550000] ata1: SATA max UDMA/133 ahci bar m16777216@0x83000000 port 0x83000100 irq 65
[    2.560000] ata2: SATA max UDMA/133 ahci bar m16777216@0x83000000 port 0x83000180 irq 65
[    2.580000] tun: Universal TUN/TAP device driver, 1.6
[    2.590000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    2.600000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.610000]
[    2.610000]  drivers/usb/host/ehci-cns3xxx.c cns3xxx_ehci_probe
[    2.620000] cns3xxx-ehci cns3xxx-ehci.0: CNS3XXX EHCI Host Controller
[    2.630000] cns3xxx-ehci cns3xxx-ehci.0: new USB bus registered, assigned bus number 1
[    2.640000]
[    2.640000]  drivers/usb/host/ehci-cns3xxx.c cns3xxx_ehci_init
[    2.650000] cns3xxx_ehci_init,***Threshold OUT=0x60,IN=0x60 ***
[    2.690000] cns3xxx-ehci cns3xxx-ehci.0: irq 64, io mem 0x82000000
[    2.720000] cns3xxx-ehci cns3xxx-ehci.0: USB 0.0 started, EHCI 1.00
[    2.730000] hub 1-0:1.0: USB hub found
[    2.740000] hub 1-0:1.0: 1 port detected
[    2.750000] Initializing USB Mass Storage driver...
[    2.760000] usbcore: registered new interface driver usb-storage
[    2.770000] USB Mass Storage support registered.
[    2.780000] mice: PS/2 mouse device common for all mice
[    2.790000] CNS3XXX Real Time Clock, (c) 2009 Cavium Networks
[    2.800000] rtc irq:23
[    2.810000] cns3xxx-rtc cns3xxx-rtc: rtc core: registered cns3xxx-rtc as rtc0
[    2.820000] i2c /dev entries driver
[    2.840000] adt7475 0-002e: ADT7473 device, revision 0
[    2.850000] adt7475 0-002e: Optional features: fan4 pwm2
[    2.860000] CNS3XXX Watchdog Timer, noboot=0 margin=60 sec (nowayout= 0)
[    2.870000] watchdog: cns3xxx_wdt_probe
[    2.880000] watchdog irq = 30
[    2.890000] watchdog start_regs  = 0xB0820600
[    2.960000] Watchdog timer frequency : 349.97MHz.
[    2.970000] ata1: SATA link down (SStatus 0 SControl 300)
[    2.980000] ata2: SATA link down (SStatus 0 SControl 300)
[    2.990000] md: linear personality registered for level -1
[    3.000000] md: raid0 personality registered for level 0
[    3.010000] md: raid1 personality registered for level 1
[    3.020000] xor: measuring software checksum speed
[    3.080000]    arm4regs  :   932.800 MB/sec
[    3.140000]    8regs     :   434.000 MB/sec
[    3.200000]    32regs    :   492.000 MB/sec
[    3.260000]    CNS-RAID  :   932.800 MB/sec
[    3.270000] xor: using function: CNS-RAID (932.800 MB/sec)
[    3.280000] md: raid6 personality registered for level 6
[    3.290000] md: raid5 personality registered for level 5
[    3.300000] md: raid4 personality registered for level 4
[    3.310000] device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
[    3.320000] sdhci: Secure Digital Host Controller Interface driver
[    3.330000] sdhci: Copyright(c) Pierre Ossman
[    3.340000] sdhci-cns3xxx, (c) 2009 Cavium Networks
[    3.350000] mmc0: SDHCI controller on cns3xxx [sdhci-cns3xxx.0] using PIO
[    3.360000] n1_ssl_config_device: symbol_get failed
[    3.370000]  Cavium device is not initialized1
[    3.390000] TCP cubic registered
[    3.390000] NET: Registered protocol family 17
[    3.400000] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 4
[    3.430000] cns3xxx-rtc cns3xxx-rtc: setting system clock to 2015-05-31 16:45:35 UTC (1433090735)
[    3.670000] mmc0: new high speed SD card at address 0007
[    3.680000] mmcblk0: mmc0:0007 SD256 246 MiB
[    3.690000]  mmcblk0: p1 p2 p3 p4
[   16.070000] md: Waiting for all devices to be available before autodetect
[   16.080000] md: If you don't use raid, use raid=noautodetect
[   16.090000] md: Autodetecting RAID arrays.
[   16.100000] md: Scanned 0 and added 0 devices.
[   16.110000] md: autorun ...
[   16.120000] md: ... autorun DONE.
[   16.130000] Root-NFS: No NFS server available, giving up.
[   16.140000] VFS: Unable to mount root fs via NFS, trying floppy.
[   16.150000] VFS: Cannot open root device "sda1" or unknown-block(2,0)
[   16.160000] Please append a correct "root=" boot option; here are the available partitions:
[   16.170000] 1f00             192 mtdblock0 (driver?)
[   16.180000] 1f01              64 mtdblock1 (driver?)
[   16.200000] 1f02             256 mtdblock2 (driver?)
[   16.210000] b300          251904 mmcblk0 driver: mmcblk
[   16.230000]   b301            9765 mmcblk0p1
[   16.240000]   b302           10240 mmcblk0p2
[   16.250000]   b303          214016 mmcblk0p3
[   16.260000]   b304           17408 mmcblk0p4
[   16.270000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[   16.280000] [<a00310e0>] (unwind_backtrace+0x0/0xe4) from [<a0475ec8>] (dump_stack+0x18/0x1c)
[   16.290000] [<a0475ec8>] (dump_stack+0x18/0x1c) from [<a04764ec>] (panic+0x5c/0xdc)
[   16.300000] [<a04764ec>] (panic+0x5c/0xdc) from [<a0008ee0>] (mount_block_root+0x1d4/0x218)
[   16.310000] [<a0008ee0>] (mount_block_root+0x1d4/0x218) from [<a00090fc>] (mount_root+0xe0/0x124)
[   16.320000] [<a00090fc>] (mount_root+0xe0/0x124) from [<a00092a4>] (prepare_namespace+0x164/0x1c4)
[   16.330000] [<a00092a4>] (prepare_namespace+0x164/0x1c4) from [<a0008ae4>] (kernel_init+0x13c/0x178)
[   16.340000] [<a0008ae4>] (kernel_init+0x13c/0x178) from [<a002be94>] (kernel_thread_exit+0x0/0x8)
[   16.350000] kernel BUG at arch/arm/kernel/amp.c:318!
[   16.360000] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[   16.370000] pgd = a0004000
[   16.380000] [00000000] *pgd=00000000
[   16.390000] Internal error: Oops: 805 [#1]
[   16.390000] last sysfs file:
[   16.390000] Modules linked in:
[   16.390000] CPU: 0    Tainted: G        W    (2.6.35.13-cavm1.whitney-econa #25)
[   16.390000] PC is at __bug+0x24/0x30
[   16.390000] LR is at release_console_sem+0x188/0x1a0
[   16.390000] pc : [<a002e680>]    lr : [<a0047284>]    psr: 60000013
[   16.390000] sp : af02bef0  ip : af02be28  fp : af02befc
[   16.390000] r10: a05499e3  r9 : af38b1a2  r8 : 00008000
[   16.390000] r7 : 00000000  r6 : a0023bb8  r5 : af38b000  r4 : a066d378
[   16.390000] r3 : 00000000  r2 : a063d3b4  r1 : a063d398  r0 : 0000003e
[   16.390000] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[   16.390000] Control: 00c5787d  Table: 2000400a  DAC: 00000017
[   16.390000] Process swapper (pid: 1, stack limit = 0xaf02a268)
[   16.390000] Stack: (0xaf02bef0 to 0xaf02c000)
[   16.390000] bee0:                                     af02bf0c af02bf00 a002ffa8 a002e668
[   16.390000] bf00: af02bf2c af02bf10 a04764f8 a002ff9c a0476590 af02bf34 af38b000 af38b000
[   16.390000] bf20: af02bf94 af02bf40 a0008ee0 a04764a0 a054997f af02bf48 00000000 00000000
[   16.390000] bf40: 00000000 00000000 6e6b6e75 2d6e776f 636f6c62 2c32286b 00002930 00000000
[   16.390000] bf60: af02bf84 00000000 00000000 00000000 00000000 a002be94 00000013 00000000
[   16.390000] bf80: 00000000 00000000 af02bfb4 af02bf98 a00090fc a0008d18 a000a1c4 a0009d54
[   16.390000] bfa0: a066cf38 a0023bcd af02bfd4 af02bfb8 a00092a4 a0009028 af02bfd4 af02bfc8
[   16.390000] bfc0: a002339c a002339c af02bff4 af02bfd8 a0008ae4 a000914c 00000000 00000000
[   16.390000] bfe0: 00000000 a00089a8 00000000 af02bff8 a002be94 a00089b4 e2833090 ebfffad2
[   16.390000] [<a002e680>] (__bug+0x24/0x30) from [<a002ffa8>] (smp_send_stop+0x18/0x20)
[   16.390000] [<a002ffa8>] (smp_send_stop+0x18/0x20) from [<a04764f8>] (panic+0x68/0xdc)
[   16.390000] [<a04764f8>] (panic+0x68/0xdc) from [<a0008ee0>] (mount_block_root+0x1d4/0x218)
[   16.390000] [<a0008ee0>] (mount_block_root+0x1d4/0x218) from [<a00090fc>] (mount_root+0xe0/0x124)
[   16.390000] [<a00090fc>] (mount_root+0xe0/0x124) from [<a00092a4>] (prepare_namespace+0x164/0x1c4)
[   16.390000] [<a00092a4>] (prepare_namespace+0x164/0x1c4) from [<a0008ae4>] (kernel_init+0x13c/0x178)
[   16.390000] [<a0008ae4>] (kernel_init+0x13c/0x178) from [<a002be94>] (kernel_thread_exit+0x0/0x8)
[   16.390000] Code: e59f0010 e1a01003 eb111fbb e3a03000 (e5833000)
[   16.400000] ---[ end trace 1b75b31a2719ed1e ]---
[   16.410000] Kernel panic - not syncing: Attempted to kill init!
[   16.420000] [<a00310e0>] (unwind_backtrace+0x0/0xe4) from [<a0475ec8>] (dump_stack+0x18/0x1c)
[   16.430000] [<a0475ec8>] (dump_stack+0x18/0x1c) from [<a04764ec>] (panic+0x5c/0xdc)
[   16.440000] [<a04764ec>] (panic+0x5c/0xdc) from [<a0049394>] (do_exit+0x68/0x610)
[   16.450000] [<a0049394>] (do_exit+0x68/0x610) from [<a002ebfc>] (die+0x2a0/0x2e0)
[   16.460000] [<a002ebfc>] (die+0x2a0/0x2e0) from [<a0475f28>] (__do_kernel_fault.part.4+0x5c/0x7c)
[   16.470000] [<a0475f28>] (__do_kernel_fault.part.4+0x5c/0x7c) from [<a00328e8>] (do_page_fault+0x1d4/0x1ec)
[   16.480000] [<a00328e8>] (do_page_fault+0x1d4/0x1ec) from [<a00329c4>] (do_translation_fault+0x24/0xa0)
[   16.490000] [<a00329c4>] (do_translation_fault+0x24/0xa0) from [<a002a304>] (do_DataAbort+0x3c/0xd0)
[   16.500000] [<a002a304>] (do_DataAbort+0x3c/0xd0) from [<a002aa8c>] (__dabt_svc+0x4c/0x60)
[   16.510000] Exception stack(0xaf02bea8 to 0xaf02bef0)
[   16.520000] bea0:                   0000003e a063d398 a063d3b4 00000000 a066d378 af38b000
[   16.530000] bec0: a0023bb8 00000000 00008000 af38b1a2 a05499e3 af02befc af02be28 af02bef0
[   16.540000] bee0: a0047284 a002e680 60000013 ffffffff
[   16.550000] [<a002aa8c>] (__dabt_svc+0x4c/0x60) from [<a002e680>] (__bug+0x24/0x30)
[   16.560000] [<a002e680>] (__bug+0x24/0x30) from [<a002ffa8>] (smp_send_stop+0x18/0x20)
[   16.570000] [<a002ffa8>] (smp_send_stop+0x18/0x20) from [<a04764f8>] (panic+0x68/0xdc)
[   16.580000] [<a04764f8>] (panic+0x68/0xdc) from [<a0008ee0>] (mount_block_root+0x1d4/0x218)
[   16.590000] [<a0008ee0>] (mount_block_root+0x1d4/0x218) from [<a00090fc>] (mount_root+0xe0/0x124)
[   16.600000] [<a00090fc>] (mount_root+0xe0/0x124) from [<a00092a4>] (prepare_namespace+0x164/0x1c4)
[   16.610000] [<a00092a4>] (prepare_namespace+0x164/0x1c4) from [<a0008ae4>] (kernel_init+0x13c/0x178)
[   16.620000] [<a0008ae4>] (kernel_init+0x13c/0x178) from [<a002be94>] (kernel_thread_exit+0x0/0x8)
[   16.630000] kernel BUG at arch/arm/kernel/amp.c:318!
[   16.640000] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[   16.650000] pgd = a0004000
[   16.660000] [00000000] *pgd=00000000
[   16.670000] Internal error: Oops: 805 [#2]
[   16.670000] last sysfs file:
[   16.670000] Modules linked in:
[   16.670000] CPU: 0    Tainted: G      D W    (2.6.35.13-cavm1.whitney-econa #25)
[   16.670000] PC is at __bug+0x24/0x30
[   16.670000] LR is at release_console_sem+0x188/0x1a0
[   16.670000] pc : [<a002e680>]    lr : [<a0047284>]    psr: 60000113
[   16.670000] sp : af02bc88  ip : af02bbc0  fp : af02bc94
[   16.670000] r10: a002e680  r9 : 00000000  r8 : af028be0
[   16.670000] r7 : 00000000  r6 : 0000000b  r5 : af02a000  r4 : a066d378
[   16.670000] r3 : 00000000  r2 : a063d3b4  r1 : a063d398  r0 : 0000003e
[   16.670000] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[   16.670000] Control: 00c5787d  Table: 2000400a  DAC: 00000015
[   16.670000] Process swapper (pid: 1, stack limit = 0xaf02a268)
[   16.670000] Stack: (0xaf02bc88 to 0xaf02c000)
[   16.670000] bc80:                   af02bca4 af02bc98 a002ffa8 a002e668 af02bcc4 af02bca8
[   16.670000] bca0: a04764f8 a002ff9c af02bca8 af02bccc af028be0 af02a000 af02bd14 af02bcd8
[   16.670000] bcc0: a0049394 a04764a0 a054e38c 0000002b af028e24 a063ea64 af02bd04 00000001
[   16.670000] bce0: af02bce0 af02bce0 00000000 00000001 a002e682 af02bd5a 00000000 00000017
[   16.670000] bd00: 00000000 a002e680 af02bd8c af02bd18 a002ebfc a0049338 af02a268 0000000b
[   16.670000] bd20: a054aa88 00000008 6502bea8 30663935 20303130 30613165 33303031 31626520
[   16.670000] bd40: 62663131 33652062 30333061 28203030 33383565 30303033 a0002029 a047657c
[   16.670000] bd60: a0569e6c 00000000 00000805 00000000 af02bea8 00000805 20000113 00000000
[   16.670000] bd80: af02bda4 af02bd90 a0475f28 a002e968 af02bea8 af02bea8 af02bddc af02bda8
[   16.670000] bda0: a00328e8 a0475ed8 00000009 0000000a a0034ae0 00000805 00000805 00000000
[   16.670000] bdc0: af02bea8 00008000 20000113 a05499e3 af02bdfc af02bde0 a00329c4 a0032720
[   16.670000] bde0: a00329a0 00000805 a063a68c 00000000 af02bea4 af02be00 a002a304 a00329ac
[   16.670000] be00: a002aad8 a002a00c a063d394 a063d398 a063d3b4 60000013 00000001 0000000f
[   16.670000] be20: af02be75 00000003 0000003e 00000000 a066d89d af02bec4 af02be28 af02be50
[   16.670000] be40: a0047284 a004770c 60000013 ffffffff a0030d58 00000000 00000032 60000013
[   16.670000] be60: af02bf48 205b0000 36312020 3035332e 5d303030 a0020020 00000013 00000000
[   16.670000] be80: 00000000 00000000 ffffffff af02bedc a0023bb8 00000000 af02befc af02bea8
[   16.670000] bea0: a002aa8c a002a2d4 0000003e a063d398 a063d3b4 00000000 a066d378 af38b000
[   16.670000] bec0: a0023bb8 00000000 00008000 af38b1a2 a05499e3 af02befc af02be28 af02bef0
[   16.670000] bee0: a0047284 a002e680 60000013 ffffffff af02bf0c af02bf00 a002ffa8 a002e668
[   16.670000] bf00: af02bf2c af02bf10 a04764f8 a002ff9c a0476590 af02bf34 af38b000 af38b000
[   16.670000] bf20: af02bf94 af02bf40 a0008ee0 a04764a0 a054997f af02bf48 00000000 00000000
[   16.670000] bf40: 00000000 00000000 6e6b6e75 2d6e776f 636f6c62 2c32286b 00002930 00000000
[   16.670000] bf60: af02bf84 00000000 00000000 00000000 00000000 a002be94 00000013 00000000
[   16.670000] bf80: 00000000 00000000 af02bfb4 af02bf98 a00090fc a0008d18 a000a1c4 a0009d54
[   16.670000] bfa0: a066cf38 a0023bcd af02bfd4 af02bfb8 a00092a4 a0009028 af02bfd4 af02bfc8
[   16.670000] bfc0: a002339c a002339c af02bff4 af02bfd8 a0008ae4 a000914c 00000000 00000000
[   16.670000] bfe0: 00000000 a00089a8 00000000 af02bff8 a002be94 a00089b4 e2833090 ebfffad2
[   16.670000] [<a002e680>] (__bug+0x24/0x30) from [<a002ffa8>] (smp_send_stop+0x18/0x20)
[   16.670000] [<a002ffa8>] (smp_send_stop+0x18/0x20) from [<a04764f8>] (panic+0x68/0xdc)
[   16.670000] [<a04764f8>] (panic+0x68/0xdc) from [<a0049394>] (do_exit+0x68/0x610)
[   16.670000] [<a0049394>] (do_exit+0x68/0x610) from [<a002ebfc>] (die+0x2a0/0x2e0)
[   16.670000] [<a002ebfc>] (die+0x2a0/0x2e0) from [<a0475f28>] (__do_kernel_fault.part.4+0x5c/0x7c)
[   16.670000] [<a0475f28>] (__do_kernel_fault.part.4+0x5c/0x7c) from [<a00328e8>] (do_page_fault+0x1d4/0x1ec)
[   16.670000] [<a00328e8>] (do_page_fault+0x1d4/0x1ec) from [<a00329c4>] (do_translation_fault+0x24/0xa0)
[   16.670000] [<a00329c4>] (do_translation_fault+0x24/0xa0) from [<a002a304>] (do_DataAbort+0x3c/0xd0)
[   16.670000] [<a002a304>] (do_DataAbort+0x3c/0xd0) from [<a002aa8c>] (__dabt_svc+0x4c/0x60)
[   16.670000] Exception stack(0xaf02bea8 to 0xaf02bef0)
[   16.670000] bea0:                   0000003e a063d398 a063d3b4 00000000 a066d378 af38b000
[   16.670000] bec0: a0023bb8 00000000 00008000 af38b1a2 a05499e3 af02befc af02be28 af02bef0
[   16.670000] bee0: a0047284 a002e680 60000013 ffffffff
[   16.670000] [<a002aa8c>] (__dabt_svc+0x4c/0x60) from [<a002e680>] (__bug+0x24/0x30)
[   16.670000] [<a002e680>] (__bug+0x24/0x30) from [<a002ffa8>] (smp_send_stop+0x18/0x20)
[   16.670000] [<a002ffa8>] (smp_send_stop+0x18/0x20) from [<a04764f8>] (panic+0x68/0xdc)
[   16.670000] [<a04764f8>] (panic+0x68/0xdc) from [<a0008ee0>] (mount_block_root+0x1d4/0x218)
[   16.670000] [<a0008ee0>] (mount_block_root+0x1d4/0x218) from [<a00090fc>] (mount_root+0xe0/0x124)
[   16.670000] [<a00090fc>] (mount_root+0xe0/0x124) from [<a00092a4>] (prepare_namespace+0x164/0x1c4)
[   16.670000] [<a00092a4>] (prepare_namespace+0x164/0x1c4) from [<a0008ae4>] (kernel_init+0x13c/0x178)
[   16.670000] [<a0008ae4>] (kernel_init+0x13c/0x178) from [<a002be94>] (kernel_thread_exit+0x0/0x8)
[   16.670000] Code: e59f0010 e1a01003 eb111fbb e3a03000 (e5833000)
[   16.680000] ---[ end trace 1b75b31a2719ed1f ]---
[   16.690000] Fixing recursive fault but reboot is needed!

and we can see two CPU.



Edited 2 time(s). Last edit at 05/31/2015 10:56AM by Val532.
Attachments:
open | download - config-3.18.5-cns3xxx-test-3 (126.8 KB)
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
June 01, 2015 11:06PM
@Val,

Which device is your rootfs? on USB or HDD?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
June 02, 2015 12:21AM
@bodhi

I use your last rootfs (jessie) on usb key.

So now i can boot into debian with 2.35 kernel with only one CPU (i have a boot log on my other computer) but with 2.35 and the second core active it does not work (the boot log is again on my other computer).

But with 3.18 kernel, i cannot see Sata or USB3 device on boot log so i can not boot into debian neither usb or sata rootfs.
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
June 02, 2015 02:18AM
Val,

Let me take a closer look and respond.

Also, pls pastebin or post your .config file.

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



Edited 1 time(s). Last edit at 06/02/2015 02:31AM by bodhi.
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
June 02, 2015 06:07AM
@Val,

1. What is these config options set to?

CONFIG_SATA_AHCI
CONFIG_SATA_AHCI_PLATFORM

2. Did you use the patch in the tarball as is?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
June 02, 2015 09:06AM
So for 3.18 kernel, i use the patch has it, whitout any modification.

For :
CONFIG_SATA_AHCI
CONFIG_SATA_AHCI_PLATFORM
It juste for test, i test a lot of combination in hope to see it work ^^.

For the log and config file, i share it when i recover my computer ^^.
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
June 02, 2015 11:03AM
Val532 Wrote:
-------------------------------------------------------
> So for 3.18 kernel, i use the patch has it,
> whitout any modification.
>
> For :
> CONFIG_SATA_AHCI
> CONFIG_SATA_AHCI_PLATFORM
>
> It juste for test, i test a lot of combination in
> hope to see it work ^^.
>
> For the log and config file, i share it when i
> recover my computer ^^.

Both of these should be =y.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
June 04, 2015 03:29PM
Hello, some interesting data :

Bootlog :

2.6.35.13 without modification, no SMP, no rootfs :
http://pastebin.com/eBjxRxap

2.6.35.13 without modification, no SMP, with rootfs :
http://pastebin.com/yfZbgDN0


2.6.35.13 without modification, with SMP (working two CPU active, but some kind of freez), with rootfs :
http://pastebin.com/PwzmK0xg


2.6.35.13 with udev patch, no SMP, with rootfs : *only working kernel i've found
http://pastebin.com/AK6HxpZa

3.18.5 orginal from *.deb you provied : (if i correctly remember)
http://pastebin.com/baDCQCeL

I have no time until this week-end to do more test.

In my opinion, it lack some driver code in 3.18 kernel and SMP code does not work (no idea for what) and in 2.6.35 kernel the SMP is broken.
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
June 04, 2015 10:48PM
Val532,

> In my opinion, it lack some driver code in 3.18
> kernel and SMP code does not work (no idea for
> what) and in 2.6.35 kernel the SMP is broken.

I think we already knew these facts previously. What I am interested in is in your rebuild of 3.18.5 with my unmodified patch, what the config file looks like. Was AHCI enabled? that would determine whether you can boot with HDD rootfs. I've missed this in my .config, so HDD will not work using the test kernel as is.

Once you've done that and boot into Debian 3.18.5 successfully, then we'll look at USB 3.0 issue, and then SMP.

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



Edited 1 time(s). Last edit at 06/04/2015 10:54PM by bodhi.
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
June 08, 2015 04:10PM
Hi,

I think we have a big probleme, where is the sata driver ?!?

In 2.35 kernel source i found in drivers/ata cns3xxx_ahci.c and not in 3.18 source.

I think it's not needed to search anoter reason for what it does not work.

There are some missing code, i will try to add it and test.
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
June 08, 2015 09:46PM
Val532 Wrote:
-------------------------------------------------------
> Hi,
>
> I think we have a big probleme, where is the sata
> driver ?!?
>
> In 2.35 kernel source i found in drivers/ata
> cns3xxx_ahci.c and not in 3.18 source.
>
> I think it's not needed to search anoter reason
> for what it does not work.
>
> There are some missing code, i will try to add it
> and test.

I don't think it is missing. A different driver was used. Val, I can only help making it work if you tried what I've suggested :) Otherwise, I have no idea how to help remotely.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
June 09, 2015 07:35AM
So, it's the result of the test you ask, with:
CONFIG_SATA_AHCI = y
CONFIG_SATA_AHCI_PLATFORM = y

And it's the same as befor, so it's what i think We need the driver.
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
July 13, 2015 01:52PM
So Bodhi?
Val said, that it doesn't recognizes the drives even with both options set to y.

I wasn't able to compile from source.
First it was asking for the two files:
  • tools/be_byteshift.h
  • tools/le_byteshift.h

After I found em and typed the full paths in scripts/sortextable.c many unknown type errors appeared:
  HOSTCC  scripts/sortextable
In file included from scripts/sortextable.c:31:0:
/home/yama/Downloads/kernel/linux-headers-3.18.5-cns3xxx-tld-2_2.0_armel/usr/src/linux-headers-3.18.5-cns3xxx-tld-2/include/linux/unaligned/be_byteshift.h:6:1: error: unknown type name ‘u16’
 static inline u16 __get_unaligned_be16(const u8 *p)
 ^
/home/yama/Downloads/kernel/linux-headers-3.18.5-cns3xxx-tld-2_2.0_armel/usr/src/linux-headers-3.18.5-cns3xxx-tld-2/include/linux/unaligned/be_byteshift.h:6:1: error: unknown type name ‘u8’
/home/yama/Downloads/kernel/linux-headers-3.18.5-cns3xxx-tld-2_2.0_armel/usr/src/linux-headers-3.18.5-cns3xxx-tld-2/include/linux/unaligned/be_byteshift.h:11:1: error: unknown type name ‘u32’
 static inline u32 __get_unaligned_be32(const u8 *p)
...
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
July 13, 2015 04:32PM
Yama,

> So Bodhi?
> Val said, that it doesn't recognizes the drives
> even with both options set to y.

That's what I will need to look at when I have time. The OpenWrt patch indicates that the cnsxxx SATA driver was deprecated, and the mainline AHCI driver should be used.

> I wasn't able to compile from source.

Not sure why. I think Val did compile OK with the patch. Are you using the same config file?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
July 15, 2015 02:36PM
bodhi Wrote:
-------------------------------------------------------
> Not sure why. I think Val did compile OK with the
> patch. Are you using the same config file?

Yes, just added cross-compile prefix and set the two lines for sata to y
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
July 16, 2015 04:48AM
I've tried this some time ago since I have this device too but it doesn't come with your and the other mentioned kernel.
I couldn't yet find the reason
could it be because the initramfs wasn't created after installing the kernel? (so I used the img for initrd creation)
but why the other kernel doesn't boot?
I've changed some things mentioned here in earlier posts but no luck ;-(



Edited 1 time(s). Last edit at 07/16/2015 12:11PM by pengu.
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
August 09, 2015 01:16AM
hey, i just came into posession of a seagate central, i'm willing to help test the kernel if needed, i've no experience with the linux kernel though

i tried the latest kernel and so far i've got to a initrd prompt with the boot flags above.

edit: i'm probably formatting this wrong but this is what i get:
this is with the generic AHCI driver enabled, i might have a bootenv set wrong.

Begin: Waiting for root file system ...
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2: SATA link down (SStatus 0 SControl 300)
ata1.00: ATA-8: TOSHIBA MK6465GSXN, GH101M, max UDMA/100
ata1.00: 1250263728 sectors, multi 16: LBA48 NCQ (depth 31/32)
ata1.00: configured for UDMA/100
done.
Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev)
chvt: can't open console

so it looks like the drivers might work, not really sure though.
removed my initrd and i've got to the point where it goes to boot and busybox-syslogd fails to start
edit... again: it fails to start due to devtempfs not existing.



Edited 5 time(s). Last edit at 08/09/2015 02:06AM by luke10050.
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
August 09, 2015 02:30AM
Hi luke10050,

> ata1: SATA link up 3.0 Gbps (SStatus 123 SControl
> 300)
> ata2: SATA link down (SStatus 0 SControl 300)
> ata1.00: ATA-8: TOSHIBA MK6465GSXN, GH101M, max
> UDMA/100
> ata1.00: 1250263728 sectors, multi 16: LBA48 NCQ
> (depth 31/32)
> ata1.00: configured for UDMA/100
> done.

It is very encouraging! it means that the ACHI driver in the kernel is working. Now the issue you're having is mounting the rootfs. Please do these:

- List your envs in serial console.
printenv

- Mount your rootfs on another Linux box, and if it is mounted as sdb1 then
mount
df -h

- If it is mounted as /media/sdb1 then
e2label /dev/sdb1
cat /media/sdb1/fstab
fdisk -l

Basically, you want to match your SATA rootfs characteristics with what being set in u-boot envs. What has been shown above is the SATA drive was recognized and running. The rootfs mounting issue is affected by the way it is formatted, labeled, and u-boot envs settings.

And post the bootlog here, too!

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
August 09, 2015 02:46AM
ok, here is a copy of the most complete bootlog i've got so far

this is with no initrd, that could be part of the problem, i recompiled with devtempfs support and its not flashing up as many errors anymore.

Quote

Cirrus model:(SENTINEL) release v1.3

CPU: Cavium Networks CNS3000
ID Code: 410fb024 (Part number: 0xB02, Revision number: 4)
CPU ID: 900
Chip Version: c

DRAM: 512 MB
Parallel Flash: 0 kB
Flash Manufacturer: MX
Serial Flash: 512 kB
Serial Flash:
Bank # 1: Nb pages: 2048 Page Size: 256
Size: 524288 bytes, Logical address: 0x60000000
Area 0: 60000000 to 60FFFFFF SPI flash
In: serial
Out: serial
Err: serial
CPU works at 700 MHz (700/1/1)
DDR2 Speed is 400 MHz
Restoring RTC
Hit any
Whitney #
Whitney #
Whitney # riu  un se  bootcmd
Unknown command 'riun' - try 'help'
Whitney # run bootcmd

Initialize SCSI
AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part
set feature error!
scanning bus for devices...
Supprt LBA48 addressing.
timeout exit!
Device 0: (0:0) Vendor: ATA Prod.: TOSHIBA MK6465GS Rev: GH10
Type: Hard Disk
ted: 2015-08-09 8:16:32 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2296600 Bytes = 2.2 MB
Load Address: 02000000
Entry Point: 02000000
Loading Koot@remote) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-12ubuntu1) ) #4 PREEMPT Sun Aug 9 18:16:28 AEST 2015
CPU: ARMv6-compatible processor [410fb024] revision 4 (ARMv7), cr=00c5787d
CP/ VIPT nng data IPT aliatructionMachine:Networks Validatd
Memor: Data cteback
CPU: All CPU(s) started in SVC mode.
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
Kernel command line: console=ttyS0,38400 root=/dev/sda3 rootwait mem=256M noinitrd
PID 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: 255156K/262144K available (3259K kernel code, 139K rwdata, 1020K rodata, 152K init, 77K bss, 6988K reserved)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xffe00048 kB)
loc : 0x - 0xff0( 744 MBowmem :000 - 0x ( 256 module000000 -000 (
 .xc000800he hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x334f88 - 0x334fd4
devtmpfs: initialized
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
L2C: DT/platform modifies aux control register: 0x02040000 -> 0x02540000
L2C-310 cache controller enabled, 8 ways, 256 kB
L2C-310: CACHE_ID 0x410000c4, AUX_CTRL 0x06540000
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switched to clocksource freerun
FS-Cache: Loaded
futex hash table entries: 256 (order: -1, 3072 bytes)
msgmni has been set to 498
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x78000000 (irq = 45, base_baud = 1500000) is a 16550A
brd: module loaded
loop: module loaded
mGine mflash driver, (c) 2008 mGine Co.
ahci ahci.0: forcing PORTS_IMPL to 0x3
ahci ahci.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl platform mode
ahci ahci.0: flags: ncq sntf pm led clo only pmp pio slum part ccc
scsi host0: ahci_platform
scsi host1: ahci_platform
ata1: SATA max UDMA/133 mmio [mem 0x83000000-0x83ffffff] port 0x100 irq 65
ata2: SATA max UDMA/133 mmio [mem 0x83000000-0x83ffffff] port 0x180 irq 65
physmap platform flash device: 08000000 at 10000000
physmap-flash physmap-flash.0: map_probe failed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-platform: EHCI generic platform driver
ehci-platform ehci-platform.0: EHCI Host Controller
ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
ehci-platform ehci-platform.0: irq 64, io mem 0x82000000
ehci-platform ehci-platform.0: 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
mousedev: PS/2 mouse device common for all mice
I2O subsystem v1.325
i2o: max drivers = 8
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
usbcore: registered new interface driver usbhid
sd 0:0:0] Attachdisk
ot found Port[1]PCIe LTS: Port[1data lin.. not fouEXT3-fs error: cmount be unsuppoional fe240)
EXda3): erldn't mouse of ued optioures (24EXT4-fs recoverye
(sda3): filesystordered e. Opts:
VFS: Moot (ext4tem) on :3.
: mounteng unuse memory:0436000 00)
iled forfs on /slinux: file or y
version ting[in9m] Usinle-styleent bootevel S.


[....] Synthesizing the initial hotplug events...[?25l
[ ok [?12l[?25hdone.

k done.

EXT4-fs (sda3): re-mounted. Opts: errors=remount-ro

[....] Activating lvm and md swap...[?25l
[ ok [?12l[?25hdone.dress family not supported by protocol

Cannot find device "lo"

Failed to bring up lo.

Can't initialize context: address family not supported


If you think you have received this message dleaning up temporary files...[?25l
[ ok [?12l[?25h.

INIT: Entering runlevel: 2

[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1486 (syslogd)
[?25l[ortmanot runn[?25lwa9m
(wa[39;49m
[....] Ning NFS aemon: ns. ...
[[33mwarn[?12l[?25h33m(warn9;49m

^[....] SNTP serv[?25l
[ 49m

....] Starting OpenBSD [?12l[?25h[?1l>
[?1049l[detached from 1104.pts-0.OpenWrt]
root@OpenWrt:~# killall screen
root@OpenWrt:~#
root@OpenWrt:~# killall screen
root@OpenWrt:~# screen /dev/ttyS0 38400
/var/run/utmp: No such file or directory

[!p[?3;4l>[?1049h[?1h=(B

U-Boot 2008.10-mpcore (Nov 27 2012 - 02:15:26)
Cirrus model:(SENTINEL) release v1.3

CPU: Cavium Networks CNS3000
ID Code: 410fb024 (Part number: 0xB02, Revision number: 4)
CPU ID: 900
Chip Version: c

DRAM: 512 MB
Parallel Flash: 0 kB
Flash Manufacturer: MX
Serial Flash: 512 kB
Serial Flash:
Bank # 1: Nb pages: 2048 Page Size: 256
Size: 524288 bytes, Logical address: 0x60000000
Area 0: 60000000 to 60FFFFFF SPI flash
In: serial
Out: serial
Err: serial
CPU works at 700 MHz (700/1/1)
DDR2 Speed is 400 MHz
Restoring RTC
Hit any key to stop autoboot: 15  0
Whitney # print boo    ev nv bootcmd
bootcmd=setenv bootargs $(bootargs_console) $(bootargs_root);run bootcmd_load;bootm 0x800000
Whitney # run bootcmd

Initialize SCSI
AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part
set feature error!
scanning bus for devices...
Supprt LBA48 addressing.
timeout exit!
Device 0: (0:0) Vendor: ATA Prod.: TOSHIBA MK6465GS Rev: GH10
Type: Hard Disk
Supports 48-bit addressing
Capacity: 610480.3 MB = 596.1 GB (1250263728 x 512)
reading /uImage

2296664 bytes read
reading /uInitrd

6535284 bytes read
enter do_eth_down!!!
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-3.18.5-tld-2
Created: 2015-08-09 8:16:32 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2296600 Bytes = 2.2 MB
Load Address: 02000000
Entry Point: 02000000
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 3.18.5-tld-2 (root@remote) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-12ubuntu1) ) #4 PREEMPT Sun Aug 9 18:16:28 AEST 2015
CPU: ARMv6-compatible processor [410fb024] revision 4 (ARMv7), cr=00c5787d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Cavium Networks CNS3420 Validation Board
Memory policy: Data cache writeback
CPU: All CPU(s) started in SVC mode.
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
Kernel command line: console=ttyS0,38400 root=/dev/sda3 rootwait mem=256M noinitrd
PID 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: 255156K/262144K available (3259K kernel code, 139K rwdata, 1020K rodata, 152K init, 77K bss, 6988K reserved)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xffe00000 (2048 kB)
vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc0435f7c (4280 kB)
.init : 0xc0436000 - 0xc045c000 ( 152 kB)
.data : 0xc045c000 - 0xc047ee40 ( 140 kB)
.bss : 0xc047ee40 - 0xc0492328 ( 78 kB)
Preemptible hierarchical RCU implementation.
Additional per-CPU info printed with stalls.
NR_IRQS:16 nr_irqs:16 16
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836480000000ns
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating delay loop... 277.70 BogoMIPS (lpj=1388544)
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 0x334f88 - 0x334fd4
devtmpfs: initialized
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
L2C: DT/platform modifies aux control register: 0x02040000 -> 0x02540000
L2C-310 cache controller enabled, 8 ways, 256 kB
L2C-310: CACHE_ID 0x410000c4, AUX_CTRL 0x06540000
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switched to clocksource freerun
FS-Cache: Loaded
futex hash table entries: 256 (order: -1, 3072 bytes)
msgmni has been set to 498
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x78000000 (irq = 45, base_baud = 1500000) is a 16550A
brd: module loaded
loop: module loaded
mGine mflash driver, (c) 2008 mGine Co.
ahci ahci.0: forcing PORTS_IMPL to 0x3
ahci ahci.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl platform mode
ahci ahci.0: flags: ncq sntf pm led clo only pmp pio slum part ccc
scsi host0: ahci_platform
scsi host1: ahci_platform
ata1: SATA max UDMA/133 mmio [mem 0x83000000-0x83ffffff] port 0x100 irq 65
ata2: SATA max UDMA/133 mmio [mem 0x83000000-0x83ffffff] port 0x180 irq 65
physmap platform flash device: 08000000 at 10000000
physmap-flash physmap-flash.0: map_probe failed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-platform: EHCI generic platform driver
ehci-platform ehci-platform.0: EHCI Host Controller
ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
ehci-platform ehci-platform.0: irq 64, io mem 0x82000000
ehci-platform ehci-platform.0: 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
mousedev: PS/2 mouse device common for all mice
I2O subsystem v1.325
i2o: max drivers = 8
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
PCIe: Port[0] Enable PCIe LTSSM
PCIe: Port[0] Check data link layer...
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2: SATA link down (SStatus 0 SControl 300)
ata1.00: ATA-8: TOSHIBA MK6465GSXN, GH101M, max UDMA/100
ata1.00: 1250263728 sectors, multi 16: LBA48 NCQ (depth 31/32)
ata1.00: configured for UDMA/100
scsi 0:0:0:0: Direct-Access ATA TOSHIBA MK6465GS 1M PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 1250263728 512-byte logical blocks: (640 GB/596 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
Device not found.
PCIe: Port[1] Enable PCIe LTSSM
PCIe: Port[1] Check data link layer...
Device not found.
EXT3-fs (sda3): error: couldn't mount because of unsupported optional features (240)
EXT2-fs (sda3): error: couldn't mount because of unsupported optional features (244)
EXT4-fs (sda3): recovery complete
EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 8:3.
devtmpfs: mounted
Freeing unused kernel memory: 152K (c0436000 - c045c000)
Mount failed for selinuxfs on /sys/fs/selinux: No such file or directory
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevderror getting socket: Address family not supported by protocol
error initializing udev control socketerror initializing udev control socket
[....] 1 ...[?25l
[warn[?12l[?25h (warning).
[....] Waiting 15 seconds and trying to continue anyway ...[?25l
[warn[?12l[?25h (warning).
[....] Synthesizing the initial hotplug events...[?25l
[ ok [?12l[?25hdone.
[....] Waiting for /dev to be fully populated...error getting socket: Address family not supported by protocol
[?25l[ ok 
[?12l[?25hdone.
[....] Activating swap...[?25l
[ ok [?12l[?25hdone.
random: nonblocking pool is initialized
EXT4-fs (sda3): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
/run/rootdev: clean, 14364/303104 files, 183406/1210880 blocks (check in 4 mounts)
[?25l[ ok 
[?12l[?25hdone.
EXT4-fs (sda3): re-mounted. Opts: errors=remount-ro
[....] Activating lvm and md swap...[?25l
[ ok [?12l[?25hdone.
[....] Checking file systems...fsck from util-linux 2.25.2
[?25l[ ok 
[?12l[?25hdone.
[....] Cleaning up temporary files... /tmp[?25l
[ ok [?12l[?25h.
[....] Loading kernel modules...[?25l
[ ok [?12l[?25hdone.
[....] Mounting local filesystems...[?25l
[ ok [?12l[?25hdone.
[....] Activating swapfile swap...[?25l
[ ok [?12l[?25hdone.
[....] Cleaning up temporary files...[?25l
[ ok [?12l[?25h.
[....] Setting kernel variables ...[?25l
[ ok [?12l[?25hdone.
[....] Configuring network interfaces...error getting socket: Address family not supported by protocol
Cannot find device "lo"
Failed to bring up lo.
Can't initialize context: address family not supported

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.
Failed to bring up eth0.
[?25l[ ok 
[?12l[?25hdone.
rpcbind: cannot create socket for local
rpcbind: cannot create socket for udp
rpcbind: cannot create socket for tcp
rpcbind: cannot create socket for udp6
rpcbind: cannot create socket for tcp6
[....] Starting rpcbind daemon...[?25l
[ ok [?12l[?25h.
[....] Starting NFS common utilities: statd
[....] Not starting: portmapper is not running ...[?25l
[warn[?12l[?25h (warning).
[....] Cleaning up temporary files...[?25l
[ ok [?12l[?25h.
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
[?25l[FAIL
[?12l[?25h failed!
[....] Starting system message bus: dbusFailed to start message bus: Failed to open socket: Address family not supported by protocol
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1485 (klogd)
[?25l[ ok 
[?12l[?25h.
[....] Starting NTP server: ntpd[?25l
[ ok [?12l[?25h.
[....] Starting NFS common utilities: statd
[....] Not starting: portmapper is not running ...[?25l
[warn[?12l[?25h (warning).
[....] Not starting NFS kernel daemon: no exports. ...[?25l
[warn[?12l[?25h (warning).
[....] Starting OpenBSD Secure Shell server: sshd[?25l
[ ok [?12l[?25h.
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemonTimeout reached while wating for return value
Could not receive return value from daemon process.
[?25l[warn
[?12l[?25h (warning).
[....] startpar: service(s) returned failure: busybox-syslogd dbus ...[?25l
[FAIL[?12l[?25h failed!
¡þȬæÊ(ÃÍøzçàîø

my bootlog is pretty mangled due to using putty to log the output from screen as i dont believe the system i'm running screen on has enough space to log the output (400kb of flash free)

my boot args are:
Quote

Whitney # printenv
baudrate=38400
ethaddr=00:11:22:4F:54:54
ipaddr=192.168.1.2
serverip=192.168.1.100
port=0
netboot_cmd=tftp 0x4000000 bootpImage; go 0x4000000
boardtest_state_memory=none
cpu_clock=700
netmask=255.255.0.0
bootfile="/tftpboot/uImage"
tftp_bsize=512
udp_frag_size=512
whitney_state=saved
mfgtest_state=final_tested_ok
netboot=0
mfgmodel=Seagate Central
model_name=cirrus_v1
current_kernel=kernel1
rtclog=54bf9589
filesize=63B874
bootargs=console ttyS0,38400 mem=256M root=/dev/sda3 rw noinitrd
bootcmd_load=scsi init;fatload scsi 0 0x800000 /uImage;fatload scsi 0 0x1100000 /uInitrd
num_boot_tries=3
bootargs_console=console=ttyS0,38400
bootdelay=15
arcNumber=2776
bootargs_root=root=/dev/sda3 rootwait mem=256M noinitrd
bootcmd=setenv bootargs $(bootargs_console) $(bootargs_root);run bootcmd_load;bootm 0x800000
stdin=serial
stdout=serial
stderr=serial
verify=n

note my filesystem is on /dev/sda3 on a MBR disk
df -h displays a 4.5GB filesystem as /dev/sda3, kernel is on a 20mb partition (/dev/sda1, fat32 formatted)

/etc/fstab in sdc3 is
aha! i've found the codeview!
/dev/root      /     ext2    noatime,errors=remount-ro
/tmpfs         /tmp    tmpfs   defaults

and i cant easily get fdisk -l
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
August 09, 2015 02:56AM
It looks like you've actually booted into Debian. The serial console putput is too magled to be sure, though. Try hitting the <Return> key many times to see if you get the Debian prompt.

And also you have a network problem. It seems eth0 was not up.

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



Edited 1 time(s). Last edit at 08/09/2015 03:01AM by bodhi.
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
August 09, 2015 03:00AM
Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
[FAIL]

i think this is my main problem at this point :/ not sure if it recovers, its like it changes baud rate right at the end as the output suddenly gets garbled, but it does not respond at all to the enter key, i've also seen it go "nothing left to do in this stage of init" or something like that
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
August 09, 2015 03:03AM
I vaguely remembered something peculiar about baud rate. Have you tried a different one?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
August 09, 2015 03:10AM
looks like third time's the charm bodhi

tried 9600, then 19200, finally tried 115200 and i've got a login prompt!

note, i've got SMP disabled in my kernel, i figured its just more to go wrong.
i also have no network devices at all but details right!

edit: dropped my baud rate to 9600 as my dodgy unshielded cable says no to 115200. looks like a working os



Edited 1 time(s). Last edit at 08/09/2015 03:14AM by luke10050.
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
August 09, 2015 03:43AM
luke10050,

> edit: dropped my baud rate to 9600 as my dodgy
> unshielded cable says no to 115200. looks like a
> working os

Cool! pls post your config so I can compare to my current one.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package
August 09, 2015 05:12AM
here you go, its not much different to yours if i remember, think i just changed sata, SMP and a few debugging options
do you want the uImage or zImage too?

i think i see the problem, TCP/IP Networking is disabled

that got me the loopback adaptor but still no ethernet, i've got no idea how to troubleshoot this.

edit: thats the config you wanted right?



Edited 3 time(s). Last edit at 08/09/2015 06:09PM by luke10050.
Attachments:
open | download - kernel.config (55.7 KB)
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: