Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 10, 2018 05:20PM |
Registered: 6 years ago Posts: 18 |
+ memory { + /* 256MB at address 0 */ + reg = <0x00000000 0x10000000>; + };
/* * Memory map */ #define CNS3XXX_FLASH_BASE 0x10000000 /* Flash/SRAM Memory Bank 0 */ #define CNS3XXX_FLASH_SIZE SZ_256M #define CNS3XXX_DDR2SDRAM_BASE 0x20000000 /* DDR2 SDRAM Memory */ #define CNS3XXX_SPI_FLASH_BASE 0x60000000 /* SPI Serial Flash Memory */ #define CNS3XXX_SWITCH_BASE 0x70000000 /* Switch and HNAT Control */ #define CNS3XXX_SWITCH_BASE_VIRT 0xFFF00000 #define CNS3XXX_PPE_BASE 0x70001000 /* HANT */ #define CNS3XXX_PPE_BASE_VIRT 0xFFF50000 #define CNS3XXX_EMBEDDED_SRAM_BASE 0x70002000 /* HANT Embedded SRAM */ #define CNS3XXX_EMBEDDED_SRAM_BASE_VIRT 0xFFF60000 #define CNS3XXX_SSP_BASE 0x71000000 /* Synchronous Serial Port - SPI/PCM/I2C */ #define CNS3XXX_SSP_BASE_VIRT 0xFFF01000 #define CNS3XXX_DMC_BASE 0x72000000 /* DMC Control (DDR2 SDRAM) */ #define CNS3XXX_DMC_BASE_VIRT 0xFFF02000 #define CNS3XXX_SMC_BASE 0x73000000 /* SMC Control */ #define CNS3XXX_SMC_BASE_VIRT 0xFFF03000
CONFIG_CMDLINE="root=/dev/ram0 rw init=/sbin/init mem=256M console=ttyS0,38400"
CONFIG_CMDLINE="root=/dev/ram0 rw init=/sbin/init mem=512M console=ttyS0,38400"
config CNS3XXX_HIGH_PHYS_OFFSET bool "High physical base address for the CNS3XXX platform" depends on MMU default y help CNS3XXX boards have the RAM available at 0x20000000, 256MB of which being mirrored at 0x00000000. If the board supports 512MB of RAM, this option allows the memory to be accessed contiguously at the high physical offset.
static __init void cns3420_fixup(struct machine_desc *desc, struct tag *tags, char **cmdline, struct meminfo *mi) { mi->nr_banks = 1; mi->bank[0].start = PHYS_OFFSET; mi->bank[0].size = SZ_512M; mi->bank[0].node = 0; }
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 10, 2018 06:04PM |
Admin Registered: 13 years ago Posts: 18,997 |
> static __init void cns3420_fixup(struct > machine_desc *desc, > struct tag *tags, char **cmdline, > struct meminfo *mi) > { > mi->nr_banks = 1; > mi->bank[0].start = PHYS_OFFSET; > mi->bank[0].size = SZ_512M; > mi->bank[0].node = 0; > } >
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 10, 2018 06:09PM |
Registered: 6 years ago Posts: 18 |
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 10, 2018 07:15PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 10, 2018 08:40PM |
Admin Registered: 13 years ago Posts: 18,997 |
-rw-r--r-- 1 root root 3333299 Mar 10 17:41 uImage.4.14.24-cns3xxx-tld-1.2
cd /media/sdb1/boot cp -a uImage.4.14.24-cns3xxx-tld-1.2 uImage sync
Whitney # printenv bootargs=root=/dev/mtdblock0 mem=256M console=ttyS0 baudrate=38400 port=0 netboot_cmd=tftp 0x4000000 bootpImage; go 0x4000000 boardtest_state_memory=none model_name=whitney_2bay cpu_clock=700 mfgmodel=halfdome bootfile="/tftpboot/uImage" tftp_bsize=512 udp_frag_size=512 whitney_state=saved serial_number=5564S01001G3330032CJ0A1 opid=Z13020128 hddlocation=C ethaddr=00:10:75:38:D0:CC serialNo=NA6F0QHW ethaddr0=00:10:75:38:D0:CC ethaddr1=00:10:75:38:D0:CD modelname=1BW5P2-500 mfgtest_state=final_tested_ok raclient_securityKey=ZnV30cQdeHJH12DIVbHKKA== raclient_leaseExpires=2014-09-20T11:19:43Z preboot=run if_netconsole start_netconsole netmask=255.255.255.0 bootargs_console=console=ttyS0,38400 bootargs_root=root=/dev/sda1 rootwait bootdelay=15 current_kernel=kernel1 bootcmd_scsii=scsi init;ext2load scsi 1 0x8000000 /uImage; bootm 0x8000000 boot=run bootcmd num_boot_tries=0 rtclog=5211d287 bootcmd=setenv bootargs $(bootargs_console) $(bootargs_root) earlyprintk=serial; run bootcmd_scsi stdin=serial stdout=serial stderr=serial verify=n
setenv bootcmd_scsi 'scsi init; ext2load scsi 1 0x02000000 /uImage; bootm 0x02000000'
bootor
run bootcmd
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 10, 2018 09:23PM |
Registered: 6 years ago Posts: 18 |
Whitney # tftp 0x02000000 uImage41424 TFTP from server 192.168.1.1; our IP address is 192.168.1.154 Filename 'uImage41424'. Load address: 0x2000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ## done Bytes transferred = 3333299 (32dcb3 hex) Whitney # bootm 0x02000000 enter do_eth_down!!! ## Booting kernel from Legacy Image at 02000000 ... Image Name: Linux-4.14.24-cns3xxx-tld-1.2 Created: 2018-03-11 1:41:05 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3333235 Bytes = 3.2 MB Load Address: 00008000 Entry Point: 00008000 Loading Kernel Image ...
Uncompressing Linux... done, booting the kernel.
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 11, 2018 08:55AM |
Registered: 6 years ago Posts: 42 |
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 11, 2018 12:20PM |
Registered: 6 years ago Posts: 42 |
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 11, 2018 01:36PM |
Registered: 6 years ago Posts: 18 |
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 11, 2018 05:07PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 12, 2018 07:15PM |
Registered: 6 years ago Posts: 18 |
bootargs=console=ttyS0,38400 mem=512M@0x20000000 root=/dev/sda3 rootwait
tftp 0x28000000 /uImage // uImage with the 22000000 LOADADDR bootm 0x28000000
root@seagate-dev:~# cat /proc/meminfo MemTotal: 514240 kB MemFree: 440380 kB MemAvailable: 480040 kB ... root@seagate-dev:~# cat /proc/iomem 10000000-17ffffff : physmap-flash.0 20000000-3fffffff : System RAM 20008000-2050efb3 : Kernel code 20542000-205812e7 : Kernel data
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 12, 2018 08:17PM |
Registered: 6 years ago Posts: 42 |
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 12, 2018 08:20PM |
Registered: 6 years ago Posts: 42 |
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 12, 2018 08:57PM |
Registered: 6 years ago Posts: 42 |
Whitney # setenv serverip 192.168.3.140; setenv ipaddr 192.168.3.17 Whitney # setenv bootargs mem=512M@0x20000000 root=/dev/md127 rootwait console=ttyS0,38400; setenv arcNumber 2776 Whitney # tftpboot 0x2000000 disks/seagate/uImage-4.4.120-jmt-1.2 Initialize PHY s/w auto-polling phy_id: 1c Initialize RTL8211 phy_id: 1c Initialize RTL8211 TFTP from server 192.168.3.140; our IP address is 192.168.3.17 Filename 'disks/seagate/uImage-4.4.120-jmt-1.2'. Load address: 0x2000000 Loading: T T ################################################################# [snip] done Bytes transferred = 3146120 (300188 hex) Whitney # tftpboot 0x1100000 disks/seagate/uInitrd-4.4.120-jmt-1.2 TFTP from server 192.168.3.140; our IP address is 192.168.3.17 Filename 'disks/seagate/uInitrd-4.4.120-jmt-1.2'. Load address: 0x1100000 Loading: ################################################################# [snip] done Bytes transferred = 7470144 (71fc40 hex) Whitney # bootm 0x2000000 0x1100000 enter do_eth_down!!! ## Booting kernel from Legacy Image at 02000000 ... Image Name: Linux-4.4.120-jmt-1.2 Created: 2018-03-13 1:47:27 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3146056 Bytes = 3 MB Load Address: 22000000 Entry Point: 22000000 ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initrd-4.4.120-jmt-1.2 Created: 2018-03-13 1:40:17 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7470080 Bytes = 7.1 MB Load Address: 00000000 Entry Point: 00000000 Loading Kernel Image ... OK OK Starting kernel ...
Whitney # setenv serverip 192.168.3.140; setenv ipaddr 192.168.3.17 Whitney # setenv bootargs mem=512M@0x80000000 root=/dev/md127 rootwait console=ttyS0,38400; setenv arcNumber 2776 Whitney # tftpboot 0x8000000 disks/seagate/uImage-4.4.120-jmt-1.2 Initialize PHY s/w auto-polling phy_id: 1c Initialize RTL8211 phy_id: 1c Initialize RTL8211 TFTP from server 192.168.3.140; our IP address is 192.168.3.17 Filename 'disks/seagate/uImage-4.4.120-jmt-1.2'. Load address: 0x8000000 Loading: T T T ################################################################# [snip] done Bytes transferred = 3146120 (300188 hex) Whitney # tftpboot 0x1100000 disks/seagate/uInitrd-4.4.120-jmt-1.2 TFTP from server 192.168.3.140; our IP address is 192.168.3.17 Filename 'disks/seagate/uInitrd-4.4.120-jmt-1.2'. Load address: 0x1100000 Loading: ################################################################# [snip] done Bytes transferred = 7470144 (71fc40 hex) Whitney # bootm 0x8000000 0x1100000 enter do_eth_down!!! ## Booting kernel from Legacy Image at 08000000 ... Image Name: Linux-4.4.120-jmt-1.2 Created: 2018-03-13 1:47:27 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3146056 Bytes = 3 MB Load Address: 22000000 Entry Point: 22000000 ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initrd-4.4.120-jmt-1.2 Created: 2018-03-13 1:40:17 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7470080 Bytes = 7.1 MB Load Address: 00000000 Entry Point: 00000000 Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux... done, booting the kernel.
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 12, 2018 09:07PM |
Registered: 6 years ago Posts: 18 |
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 12, 2018 09:16PM |
Registered: 6 years ago Posts: 18 |
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 12, 2018 09:54PM |
Registered: 6 years ago Posts: 42 |
Whitney # setenv serverip 192.168.3.140; setenv ipaddr 192.168.3.17 Whitney # setenv bootargs mem=512M@0x20000000 root=/dev/md127 rootwait console=ttyS0,38400 Whitney # scsi init 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 scanning bus for devices... Supprt LBA48 addressing. Device 0: (0:0) Vendor: ATA Prod.: WDC WD40EFRX-68N Rev: 82.0 Type: Hard Disk Supports 48-bit addressing Capacity: 3815447.8 MB = 3726.0 GB (7814037168 x 512) Supprt LBA48 addressing. Device 1: (1:0) Vendor: ATA Prod.: WDC WD40EFRX-68N Rev: 82.0 Type: Hard Disk Supports 48-bit addressing Capacity: 3815447.8 MB = 3726.0 GB (7814037168 x 512) Whitney # ext2load scsi 0:2 0x28000000 /uImage; bootm 0x28000000 3146120 bytes read enter do_eth_down!!! ## Booting kernel from Legacy Image at 28000000 ... Image Name: Linux-4.4.120-jmt-1.2 Created: 2018-03-13 1:47:27 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3146056 Bytes = 3 MB Load Address: 22000000 Entry Point: 22000000 Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux... done, booting the kernel. Booting Linux on physical CPU 0x900 Initializing cgroup subsys cpu ...
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 12, 2018 11:02PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 18, 2018 06:36PM |
Registered: 6 years ago Posts: 18 |
dhcp setenv serverip 192.168.1.1; setenv bootargs 'console=ttyS0,38400 mem=512M@0x20000000 root=/dev/sda3 rootwait'; tftp 0x28000000 uImage; bootm 0x28000000
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 18, 2018 08:09PM |
Registered: 6 years ago Posts: 42 |
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 18, 2018 08:14PM |
Registered: 6 years ago Posts: 42 |
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 18, 2018 08:46PM |
Registered: 6 years ago Posts: 42 |
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 19, 2018 11:04AM |
Registered: 10 years ago Posts: 46 |
Whitney # setenv loaduimage 'ext2load scsi 0 0x28000000 /boot/uImage.tommy' Whitney # setenv bootcmd_scsi 'scsi init;run loaduimage;bootm 0x28000000' 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: (1:0) Vendor: ATA Prod.: HGST HTS725050A7 Rev: GH2Z Type: Hard Disk Supports 48-bit addressing Capacity: 476940.0 MB = 465.7 GB (976773168 x 512) 3019912 bytes read enter do_eth_down!!! ## Booting kernel from Legacy Image at 28000000 ... Image Name: Linux-4.4.121-tommy Created: 2018-03-18 23:01:24 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3019848 Bytes = 2.9 MB Load Address: 22000000 Entry Point: 22000000 Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux... done, booting the kernel. Booting Linux on physical CPU 0x900 Initializing cgroup subsys cpu Initializing cgroup subsys cpuacct Linux version 4.4.121-tommy (root@debian9) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #26 SMP Sun Mar 18 23:57:36 CET 2018 CPU: ARMv6-compatible processor [410fb024] revision 4 (ARMv7), cr=00c5787d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache Machine: Seagate CNS3420 NAS bootconsole [earlycon0] enabled Memory policy: Data cache writealloc
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 19, 2018 12:37PM |
Registered: 6 years ago Posts: 18 |
> Whitney # setenv loaduimage 'ext2load scsi 0 > 0x28000000 /boot/uImage.tommy' > Whitney # setenv bootcmd_scsi 'scsi init;run > loaduimage;bootm 0x28000000' > 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: (1:0) Vendor: ATA Prod.: HGST > HTS725050A7 Rev: GH2Z > Type: Hard Disk > Supports 48-bit addressing > Capacity: 476940.0 MB = 465.7 GB > (976773168 x 512) > > 3019912 bytes read > enter do_eth_down!!! > ## Booting kernel from Legacy Image at 28000000 > ... >
mem=512M@0x20000000to your boot params, otherwise it won't boot. See my previous posts.
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 19, 2018 12:42PM |
Registered: 6 years ago Posts: 18 |
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 19, 2018 01:09PM |
Registered: 10 years ago Posts: 46 |
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 19, 2018 01:29PM |
Registered: 6 years ago Posts: 18 |
setenv bootargs 'console=ttyS0,38400 mem=512M@0x20000000 root=/dev/sdXX rootwait' ext2load scsi 0 0x28000000 /boot/uImage.tommy bootm 0x28000000
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 19, 2018 02:50PM |
Registered: 10 years ago Posts: 46 |
Whitney # setenv bootargs 'console=ttyS0,38400 mem=512M@0x20000000 root=/dev/sda1 rootwait' Whitney # setenv loaduimage 'ext2load scsi 0 0x28000000 /boot/uImage.tommy' Whitney # setenv bootcmd_scsi 'scsi init;run loaduimage;bootm 0x28000000' Whitney # run bootcmd_scsi 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: (1:0) Vendor: ATA Prod.: HGST HTS725050A7 Rev: GH2Z Type: Hard Disk Supports 48-bit addressing Capacity: 476940.0 MB = 465.7 GB (976773168 x 512) 3019912 bytes read enter do_eth_down!!! ## Booting kernel from Legacy Image at 28000000 ... Image Name: Linux-4.4.121-tommy Created: 2018-03-18 23:01:24 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3019848 Bytes = 2.9 MB Load Address: 22000000 Entry Point: 22000000 Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux... done, booting the kernel. Booting Linux on physical CPU 0x900 Initializing cgroup subsys cpu Initializing cgroup subsys cpuacct Linux version 4.4.121-tommy (root@debian9) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #26 SMP Sun Mar 18 23:57:36 CET 2018 CPU: ARMv6-compatible processor [410fb024] revision 4 (ARMv7), cr=00c5787d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache Machine: Seagate CNS3420 NAS Memory policy: Data cache writealloc PERCPU: Embedded 12 pages/cpu @dfbd9000 s17004 r8192 d23956 u49152 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048 Kernel command line: console=ttyS0,38400 mem=512M@0x20000000 root=/dev/sda1 rootwait PID hash table entries: 2048 (order: 1, 8192 bytes) Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) Memory: 513692K/524288K available (4211K kernel code, 159K rwdata, 1256K rodata, 212K init, 101K bss, 10596K reserved, 0K cma-reserved) Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xe0800000 - 0xff800000 ( 496 MB) lowmem : 0xc0000000 - 0xe0000000 ( 512 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0xc0008000 - 0xc055ef9c (5468 kB) .init : 0xc055f000 - 0xc0594000 ( 212 kB) .data : 0xc0594000 - 0xc05bbe10 ( 160 kB) .bss : 0xc05bbe10 - 0xc05d5348 ( 102 kB) Hierarchical RCU implementation. Build-time adjustment of leaf fanout to 32. NR_IRQS:16 nr_irqs:16 16 clocksource: freerun: mask: 0xffffffffffff max_cycles: 0x179dd7f66, max_idle_ns: 28210892933900 ns smp_twd: clock not found -2 sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns Console: colour dummy device 80x30 console [ttyS0] enabled Calibrating local timer... 347.93MHz. 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) Initializing cgroup subsys io Initializing cgroup subsys devices Initializing cgroup subsys net_cls CPU: Testing write buffer coherency: ok Setting up static identity map for 0x200082a0 - 0x200082fc Brought up 2 CPUs SMP: Total of 2 processors activated (555.41 BogoMIPS). devtmpfs: initialized VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 4 clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns futex hash table entries: 512 (order: 2, 16384 bytes) NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations cpuidle: using governor ladder cpuidle: using governor menu 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 clocksource: Switched to clocksource freerun FS-Cache: Loaded NET: Registered protocol family 2 TCP established hash table entries: 4096 (order: 2, 16384 bytes) TCP bind hash table entries: 4096 (order: 3, 32768 bytes) TCP: Hash tables configured (established 4096 bind 4096) UDP hash table entries: 256 (order: 1, 8192 bytes) UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) NET: Registered protocol family 1 Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) 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 loop: module loaded mGine mflash driver, (c) 2008 mGine Co. zram: Added device: zram0 ahci ahci.0: SSS flag set, parallel bus scan disabled ahci ahci.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl platform mode ahci ahci.0: flags: ncq sntf stag pm led clo only pmp pio slum part ccc scsi host0: ahci scsi host1: ahci 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 libphy: Fixed MDIO Bus: probed libphy: CNS3xxx MII Bus: probed eth0: RGMII PHY 0 on cns3xxx Switch ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci-pci: EHCI PCI platform driver ehci-platform: EHCI generic platform driver ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver ohci-pci: OHCI PCI platform driver ohci-platform: OHCI generic platform driver usbcore: registered new interface driver usb-storage mousedev: PS/2 mouse device common for all mice CNS3XXX Real Time Clock, (c) 2009 Cavium Networks rtc irq:23 rtc rtc0: invalid alarm value: 1900-1-20 0:0:0 cns3xxx-rtc cns3xxx-rtc: rtc core: registered cns3xxx-rtc as rtc0 i2c /dev entries driver adt7475 0-002e: ADT7473 device, revision 0 adt7475 0-002e: Optional features: fan4 pwm2 usbcore: registered new interface driver usbhid usbhid: USB HID core driver Initializing XFRM netlink socket NET: Registered protocol family 17 NET: Registered protocol family 15 bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this. PCI-E0 uses external clock source. ata1: SATA link down (SStatus 0 SControl 300) PCIe: Port[0] Enable PCIe LTSSM PCIe: Port[0] Check data link layer... ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300) ata2.00: ATA-8: HGST HTS725050A7E630, GH2ZB550, max UDMA/133 ata2.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32) ata2.00: configured for UDMA/133 scsi 1:0:0:0: Direct-Access ATA HGST HTS725050A7 B550 PQ: 0 ANSI: 5 sd 1:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB) sd 1:0:0:0: [sda] 4096-byte physical blocks sd 1:0:0:0: [sda] Write Protect is off sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA sda: sda1 Device not found. sd 1:0:0:0: [sda] Attached SCSI disk EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) VFS: Mounted root (ext3 filesystem) on device 8:1. devtmpfs: mounted Freeing unused kernel memory: 212K Starting init: /etc/init exists but couldn't execute it (error -13) Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance. CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.4.121-tommy #26 Hardware name: Seagate CNS3420 NAS Backtrace: [<c00131f0>] (dump_backtrace) from [<c00133e8>] (show_stack+0x18/0x1c) r7:00000000 r6:60000093 r5:00000000 r4:c05a36c8 [<c00133d0>] (show_stack) from [<c01f41a0>] (dump_stack+0x94/0xb0) [<c01f410c>] (dump_stack) from [<c009fc20>] (panic+0x94/0x1fc) r7:00000000 r6:00000000 r5:c041ea40 r4:c05bc1e8 [<c009fb90>] (panic) from [<c041eb0c>] (kernel_init+0xcc/0xf0) r3:00000000 r2:0000000e r1:df516000 r0:c04e8498 r7:00000000 [<c041ea40>] (kernel_init) from [<c000f870>] (ret_from_fork+0x14/0x24) r5:c041ea40 r4:00000000 CPU0: stopping CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.4.121-tommy #26 Hardware name: Seagate CNS3420 NAS Backtrace: [<c00131f0>] (dump_backtrace) from [<c00133e8>] (show_stack+0x18/0x1c) r7:c0595f10 r6:60000193 r5:00000000 r4:c05a36c8 [<c00133d0>] (show_stack) from [<c01f41a0>] (dump_stack+0x94/0xb0) [<c01f410c>] (dump_stack) from [<c0016350>] (handle_IPI+0x17c/0x1bc) r7:c0595f10 r6:00000000 r5:00000000 r4:c05bc060 [<c00161d4>] (handle_IPI) from [<c00094b8>] (gic_handle_irq+0x8c/0xa0) r7:c0596550 r6:c0595f10 r5:000003ff r4:ff00010c [<c000942c>] (gic_handle_irq) from [<c0013df4>] (__irq_svc+0x54/0x70) Exception stack(0xc0595f10 to 0xc0595f58) 5f00: 00000001 00000000 00000000 00000000 5f20: c0594000 c059627c 00000000 00000000 c05962dc c058e2a0 c04246b8 c0595f6c 5f40: c0595f70 c0595f60 c00102b0 c00102b4 60000013 ffffffff r10:c04246b8 r9:c058e2a0 r8:c05962dc r7:c0595f44 r6:ffffffff r5:60000013 r4:c00102b4 [<c0010284>] (arch_cpu_idle) from [<c005afe4>] (default_idle_call+0x28/0x34) [<c005afbc>] (default_idle_call) from [<c005b21c>] (cpu_startup_entry+0x1d8/0x250) [<c005b044>] (cpu_startup_entry) from [<c041ea28>] (rest_init+0x6c/0x84) r7:c0596220 [<c041e9bc>] (rest_init) from [<c055fcc0>] (start_kernel+0x340/0x3b4) [<c055f980>] (start_kernel) from [<20008078>] (0x20008078) ---[ end Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 19, 2018 03:23PM |
Registered: 10 years ago Posts: 46 |
Whitney # setenv bootargs 'console=ttyS0,38400 mem=512M@0x20000000 root=/dev/sda1';setenv loaduimage 'ext2load scsi 0 0x28000000 /boot/uImage';setenv bootcmd_scsi 'scsi init;run loaduimage;bootm 0x28000000' Whitney # run bootcmd_scsi 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 scanning bus for devices... Supprt LBA48 addressing. timeout exit! Device 0: (1:0) Vendor: ATA Prod.: HGST HTS725050A7 Rev: GH2Z Type: Hard Disk Supports 48-bit addressing Capacity: 476940.0 MB = 465.7 GB (976773168 x 512) 3019912 bytes read enter do_eth_down!!! ## Booting kernel from Legacy Image at 28000000 ... Image Name: Linux-4.4.121-tommy Created: 2018-03-18 23:01:24 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3019848 Bytes = 2.9 MB Load Address: 22000000 Entry Point: 22000000 Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux... done, booting the kernel. Booting Linux on physical CPU 0x900 Initializing cgroup subsys cpu Initializing cgroup subsys cpuacct Linux version 4.4.121-tommy (root@debian9) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #26 SMP Sun Mar 18 23:57:36 CET 2018 CPU: ARMv6-compatible processor [410fb024] revision 4 (ARMv7), cr=00c5787d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache Machine: Seagate CNS3420 NAS Memory policy: Data cache writealloc PERCPU: Embedded 12 pages/cpu @dfbd9000 s17004 r8192 d23956 u49152 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048 Kernel command line: console=ttyS0,38400 mem=512M@0x20000000 root=/dev/sda1 PID hash table entries: 2048 (order: 1, 8192 bytes) Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) Memory: 513692K/524288K available (4211K kernel code, 159K rwdata, 1256K rodata, 212K init, 101K bss, 10596K reserved, 0K cma-reserved) Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xe0800000 - 0xff800000 ( 496 MB) lowmem : 0xc0000000 - 0xe0000000 ( 512 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0xc0008000 - 0xc055ef9c (5468 kB) .init : 0xc055f000 - 0xc0594000 ( 212 kB) .data : 0xc0594000 - 0xc05bbe10 ( 160 kB) .bss : 0xc05bbe10 - 0xc05d5348 ( 102 kB) Hierarchical RCU implementation. Build-time adjustment of leaf fanout to 32. NR_IRQS:16 nr_irqs:16 16 clocksource: freerun: mask: 0xffffffffffff max_cycles: 0x179dd7f66, max_idle_ns: 28210892933900 ns smp_twd: clock not found -2 sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns Console: colour dummy device 80x30 console [ttyS0] enabled Calibrating local timer... 347.98MHz. 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) Initializing cgroup subsys io Initializing cgroup subsys devices Initializing cgroup subsys net_cls CPU: Testing write buffer coherency: ok Setting up static identity map for 0x200082a0 - 0x200082fc Brought up 2 CPUs SMP: Total of 2 processors activated (555.41 BogoMIPS). devtmpfs: initialized VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 4 clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns futex hash table entries: 512 (order: 2, 16384 bytes) NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations cpuidle: using governor ladder cpuidle: using governor menu 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 clocksource: Switched to clocksource freerun FS-Cache: Loaded NET: Registered protocol family 2 TCP established hash table entries: 4096 (order: 2, 16384 bytes) TCP bind hash table entries: 4096 (order: 3, 32768 bytes) TCP: Hash tables configured (established 4096 bind 4096) UDP hash table entries: 256 (order: 1, 8192 bytes) UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) NET: Registered protocol family 1 Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) 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 loop: module loaded mGine mflash driver, (c) 2008 mGine Co. zram: Added device: zram0 ahci ahci.0: SSS flag set, parallel bus scan disabled ahci ahci.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl platform mode ahci ahci.0: flags: ncq sntf stag pm led clo only pmp pio slum part ccc scsi host0: ahci scsi host1: ahci 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 libphy: Fixed MDIO Bus: probed libphy: CNS3xxx MII Bus: probed eth0: RGMII PHY 0 on cns3xxx Switch ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci-pci: EHCI PCI platform driver ehci-platform: EHCI generic platform driver ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver ohci-pci: OHCI PCI platform driver ohci-platform: OHCI generic platform driver usbcore: registered new interface driver usb-storage mousedev: PS/2 mouse device common for all mice CNS3XXX Real Time Clock, (c) 2009 Cavium Networks rtc irq:23 rtc rtc0: invalid alarm value: 1900-1-20 0:0:0 cns3xxx-rtc cns3xxx-rtc: rtc core: registered cns3xxx-rtc as rtc0 i2c /dev entries driver adt7475 0-002e: ADT7473 device, revision 0 adt7475 0-002e: Optional features: fan4 pwm2 usbcore: registered new interface driver usbhid usbhid: USB HID core driver Initializing XFRM netlink socket NET: Registered protocol family 17 NET: Registered protocol family 15 bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this. PCI-E0 uses external clock source. PCIe: Port[0] Enable PCIe LTSSM PCIe: Port[0] Check data link layer...ata1: SATA link down (SStatus 0 SControl 300) ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300) ata2.00: ATA-8: HGST HTS725050A7E630, GH2ZB550, max UDMA/133 ata2.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32) ata2.00: configured for UDMA/133 scsi 1:0:0:0: Direct-Access ATA HGST HTS725050A7 B550 PQ: 0 ANSI: 5 sd 1:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB) sd 1:0:0:0: [sda] 4096-byte physical blocks sd 1:0:0:0: [sda] Write Protect is off sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA Device not found. sda: sda1 sd 1:0:0:0: [sda] Attached SCSI disk EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) VFS: Mounted root (ext3 filesystem) on device 8:1. devtmpfs: mounted Freeing unused kernel memory: 212K systemd[1]: System time before build time, advancing clock. ip_tables: (C) 2000-2006 Netfilter Core Team random: systemd: uninitialized urandom read (16 bytes read, 24 bits of entropy available) systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN) systemd[1]: Detected architecture arm. Welcome to Debian GNU/Linux 9 (stretch)! systemd[1]: Set hostname to <seagate-dev>. random: systemd: uninitialized urandom read (16 bytes read, 29 bits of entropy available) random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 32 bits of entropy available) random: systemd-cryptse: uninitialized urandom read (16 bytes read, 34 bits of entropy available) random: systemd-gpt-aut: uninitialized urandom read (16 bytes read, 34 bits of entropy available) random: systemd-gpt-aut: uninitialized urandom read (16 bytes read, 34 bits of entropy available) random: systemd: uninitialized urandom read (16 bytes read, 42 bits of entropy available) random: systemd: uninitialized urandom read (16 bytes read, 42 bits of entropy available) random: systemd: uninitialized urandom read (16 bytes read, 42 bits of entropy available) random: systemd: uninitialized urandom read (16 bytes read, 42 bits of entropy available) systemd[1]: Listening on Journal Socket (/dev/log). [ OK ] Listening on Journal Socket (/dev/log). systemd[1]: Listening on udev Kernel Socket. [ OK ] Listening on udev Kernel Socket. systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. [ OK ] Listening on /dev/initctl Compatibility Named Pipe. systemd[1]: Listening on Journal Socket. [ OK ] Listening on Journal Socket. systemd[1]: Reached target Swap. [ OK ] Reached target Swap. systemd[1]: Listening on Syslog Socket. [ OK ] Listening on Syslog Socket. systemd[1]: Created slice User and Session Slice. [ OK ] Created slice User and Session Slice. systemd[1]: Created slice System Slice. [ OK ] Created slice System Slice. systemd[1]: Starting Load Kernel Modules... Starting Load Kernel Modules... systemd[1]: Mounting Debug File System... Mounting Debug File System... systemd[1]: Created slice system-getty.slice. [ OK ] Created slice system-getty.slice. systemd[1]: Starting Remount Root and Kernel File Systems... Starting Remount Root and Kernel File Systems... systemd[1]: Reached target Slices. [ OK ] Reached target Slices. systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ OK ] Started Forward Password Requests to Wall Directory Watch. systemd[1]: Created slice system-serial\x2dgetty.slice. [ OK ] Created slice system-serial\x2dgetty.slice. systemd[1]: Reached target Remote File Systems. [ OK ] Reached target Remote File Systems. systemd[1]: Started Dispatch Password Requests to Console Directory Watch. [ OK ] Started Dispatch Password Requests to Console Directory Watch. systemd[1]: Reached target Encrypted Volumes. [ OK ] Reached target Encrypted Volumes. systemd[1]: Reached target Paths. [ OK ] Reached target Paths. systemd[1]: Starting Create list of required static device nodes for the current kernel... Starting Create list of required st…ce nodes for the current kernel... systemd[1]: Mounting POSIX Message Queue File System... Mounting POSIX Message Queue File System... systemd[1]: Listening on udev Control Socket. [ OK ] Listening on udev Control Socket. systemd[1]: dev-hugepages.mount: Couldn't determine result for ConditionVirtualization=!private-users, assuming failed: No such file or directory systemd[1]: Starting Journal Service... Starting Journal Service... systemd[1]: Mounted POSIX Message Queue File System. [ OK ] Mounted POSIX Message Queue File System. systemd[1]: Mounted Debug File System. [ OK ] Mounted Debug File System. systemd[1]: Started Load Kernel Modules. [ OK ] Started Load Kernel Modules. systemd[1]: Started Remount Root and Kernel File Systems. [ OK ] Started Remount Root and Kernel File Systems. systemd[1]: Started Create list of required static device nodes for the current kernel. [ OK ] Started Create list of required sta…vice nodes for the current kernel. systemd[1]: Started Journal Service. [ OK ] Started Journal Service. Starting Create Static Device Nodes in /dev... Starting Flush Journal to Persistent Storage... Starting Load/Save Random Seed... Starting udev Coldplug all Devices... Starting Apply Kernel Variables... [ OK ] Started Load/Save Random Seed. [ OK ] Started Create Static Device Nodes in /dev. [ OK ] Started Apply Kernel Variables. Starting udev Kernel Device Manager... [ OK ] Reached target Local File Systems (Pre). [ OK ] Reached target Local File Systems. Starting Raise network interfaces... [ OK ] Started udev Coldplug all Devices. systemd-journald[488]: Received request to flush runtime journal from PID 1 [ OK ] Started Flush Journal to Persistent Storage. [ OK ] Started udev Kernel Device Manager. Starting Create Volatile Files and Directories... [ OK ] Started Create Volatile Files and Directories. Starting Update UTMP about System Boot/Shutdown... Starting Network Time Synchronization... [ OK ] Found device /dev/ttyS0. [ OK ] Started Network Time Synchronization. [ OK ] Started Update UTMP about System Boot/Shutdown. [ OK ] Reached target System Initialization. [ OK ] Listening on D-Bus System Message Bus Socket. [ OK ] Reached target Sockets. [ OK ] Started Daily Cleanup of Temporary Directories. [ OK ] Reached target Basic System. [ OK ] Started Regular background program processing daemon. Starting Login Service... [ OK ] Started D-Bus System Message Bus. Starting System Logging Service... [ OK ] Reached target System Time Synchronized. [ OK ] Started Login Service. [ OK ] Started System Logging Service. random: nonblocking pool is initialized Stopping Network Time Synchronization... [ OK ] Stopped Network Time Synchronization. Starting Network Time Synchronization... [ OK ] Started Network Time Synchronization. Stopping Network Time Synchronization... [ OK ] Stopped Network Time Synchronization. Starting Network Time Synchronization... [ OK ] Started Raise network interfaces. [ OK ] Reached target Network. Starting OpenBSD Secure Shell server... Starting Permit User Sessions... [ OK ] Reached target Network is Online. [ OK ] Started Daily apt download activities. [ OK ] Started Daily apt upgrade and clean activities. [ OK ] Reached target Timers. [ OK ] Started Network Time Synchronization. [ OK ] Started Permit User Sessions. [ OK ] Started Serial Getty on ttyS0. [ OK ] Started Getty on tty1. [ OK ] Reached target Login Prompts. [ OK ] Started OpenBSD Secure Shell server. [ 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 9 seagate-dev ttyS0 seagate-dev login: eth0: link up, speed 1000 Mb/s, full duplex Debian GNU/Linux 9 seagate-dev ttyS0 seagate-dev login: root
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package March 19, 2018 04:18PM |
Admin Registered: 13 years ago Posts: 18,997 |