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 
I tryd to boot your rootfs with
bootm 0x2000000 0x5100000 0x5000000
result:
U-Boot 2008.10-mpcore (Nov 11 2012 - 16:30:36)
Whitney model:(HALFDOME) release v1.2-beta2

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:  0 
Whitney # scsi init;ext2load scsi 0 0x2000000 /boot/uImage;ext2load scsi 0 0x5000000 /boot/dts/cavium-cns3xxx.dtb;ext2load scsi 0 0x5100000 /boot/uInitrd;bootm 0x2000000 0x5100000 0x5000000

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)

3349264 bytes read

2467 bytes read

4607585 bytes read
enter do_eth_down!!!
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.14.24-cns3xxxx-tld-1
   Created:      2018-03-08   2:44:05 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3349200 Bytes =  3.2 MB
   Load Address: 00008000
   Entry Point:  00008000
## Loading init Ramdisk from Legacy Image at 05100000 ...
   Image Name:   initramfs-4.14.24-cns3xxxx-tld-1
   Created:      2018-03-08   2:44:43 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4607521 Bytes =  4.4 MB
   Load Address: 00000000
   Entry Point:  00000000
   Loading Kernel Image ...

and with
bootm 0x2000000 - 0x5000000
result:
U-Boot 2008.10-mpcore (Nov 11 2012 - 16:30:36)
Whitney model:(HALFDOME) release v1.2-beta2

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:  0 
Whitney # scsi init;ext2load scsi 0 0x2000000 /boot/uImage;ext2load scsi 0 0x5000000 /boot/dts/cavium-cns3xxx.dtb;ext2load scsi 0 0x5100000 /boot/uInitrd;bootm 0x2000000 - 0x5000000

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)

3349264 bytes read

2467 bytes read

4607585 bytes read
enter do_eth_down!!!
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.14.24-cns3xxxx-tld-1
   Created:      2018-03-08   2:44:05 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3349200 Bytes =  3.2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Loading Kernel Image ...

Booting stops every time with "Loading Kernel Image ..."

Maybe I should not boot from a 2.5" disk in the USM port?
Re: (WIP) Linux Kernel 4.14.24 Seagate Business Storage NAS (CNSxxx) package
March 08, 2018 03:47PM
All,

Quote

> The modprobe/kernel paging issue still exists:

It's the same kernel as before! so it is expected.

Quote

4.14.24-cns3xxx-tld-1.with-native-rootfs.boot.log (13.1 KB)

This log is interesting! we got a lot further, even with stock rootfs.


Quote

4.14.24-cns3xxx-tld-1.with-bodhi-sda1.boot.log (11.7 KB)

This log also showed basically the same thing, but with same known error.

Quote

EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem

This is normal. It just mean that the Ext4 driver is being used to run the Ext3 rootfs, which is the default for later kernels (Ext3 native driver has been phased out for quite a while in mainline).

But when we are testing with older u-boot, it is best to use Ext3.

-------

@Mark, you need to load uInitrd. Without it, you will see problem mounting rootfs, regardless with stock or my build.

------

I will upload kernel 4.14.24-cns3xxx-tld-1.1 for testing the fix for the panic, and switch to a different SATA config.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package
March 08, 2018 03:52PM
blackdevil,

> Maybe I should not boot from a 2.5" disk in the
> USM port?

That's OK. The kernel has loaded and run so the disk can be used. You need to specify earlyprink=serial in bootargs to see more why it seems to hang.

At serial console, list the envs
printenv
and post output here in code tag.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package
March 08, 2018 03:56PM
@Mark,

Which BlackArmor box do you have, could you post the model number? I thought all Seagate BlackArmor have Marvel SoC, not Cavium SoC. Apparently you have one with Cavium!

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



Edited 1 time(s). Last edit at 03/08/2018 03:56PM by bodhi.
Here is my printenv:
U-Boot 2008.10-mpcore (Nov 11 2012 - 16:30:36)
Whitney model:(HALFDOME) release v1.2-beta2

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:  0 
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
bootcmd=setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_scsi
current_kernel=kernel1
bootcmd_scsii=scsi init;ext2load scsi 1 0x8000000 /uImage; bootm 0x8000000
boot=run bootcmd
bootcmd_scsi=scsi init;ext2load scsi 1 0x8000000 /uImage; bootm 0x8000000
num_boot_tries=0
rtclog=5211d287
stdin=serial
stdout=serial
stderr=serial
verify=n

Environment size: 1101/65532 bytes

I think with my Uboot version it is not possible to pass bootargs, I have to compile it into the kernel.
Maybe we have to change the dts file at this position:
	chosen {
		bootargs = "console=ttyS0,115200";
		stdout-path = &serial0;
	};

the serial connection is in my case 38400 and not 115200.
Maybe Marks BlackArmor box has 115200 and thats why he sees the kernel panic and I not?

edit: How can i compile the dts file?



Edited 1 time(s). Last edit at 03/08/2018 04:11PM by blackdevil.
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package
March 08, 2018 04:12PM
blackdevil,

That's strange. Because this apparently modifiable.

The bootcmd:
bootcmd=setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_scsi

Try
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root) earlyprintk=serial; run bootcmd_scsi'

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package
March 08, 2018 04:14PM
blackdevil,

> Maybe we have to change the dts file at this
> position:

No need to. That one in DTS is not used when you specified it in bootargs.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
I updated my uboot env to following:
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
loaduimage=ext2load scsi 0 0x2000000 /boot/uImage
loaddts=ext2load scsi 0 0x5000000 /boot/dts/cavium-cns3xxx.dtb
loaduinitrd=ext2load scsi 0 0x5100000 /boot/uInitrd
bootcmd_scsi=scsi init;run loaduimage;run loaddts;run loaduinitrd;bootm 0x2000000 0x5100000 0x5000000
bootcmd=setenv bootargs $(bootargs_console) $(bootargs_root) earlyprintk=serial; run bootcmd_scsi
stdin=serial
stdout=serial
stderr=serial
verify=n

Environment size: 1313/65532 bytes

but nothing changed :-(
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 
scanning bus for devices...
Supprt LBA48 addressing.
  Device 0: (0:0) Vendor: ATA Prod.: WDC WD5000AAKS-0 Rev: 01.0
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

3349264 bytes read

2467 bytes read

4607585 bytes read
enter do_eth_down!!!
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.14.24-cns3xxxx-tld-1
   Created:      2018-03-08   2:44:05 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3349200 Bytes =  3.2 MB
   Load Address: 00008000
   Entry Point:  00008000
## Loading init Ramdisk from Legacy Image at 05100000 ...
   Image Name:   initramfs-4.14.24-cns3xxxx-tld-1
   Created:      2018-03-08   2:44:43 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4607521 Bytes =  4.4 MB
   Load Address: 00000000
   Entry Point:  00000000
   Loading Kernel Image ... 
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package
March 08, 2018 04:40PM
blackdevil,

Try using the addresses that we use for Kirkwood.

load_dtb_addr=0x1c00000
load_initrd_addr=0x1100000
load_uimage_addr=0x800000

If this does not work. I need to look more closely at the the envs above and the previous serial bootlog that you had for 3.18.5 (to see if this stock u-boot is picky about these load addresses).

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

nothing changed:
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
loaduimage=ext2load scsi 0 0x800000 /boot/uImage
loaddts=ext2load scsi 0 0x1c00000 /boot/dts/cavium-cns3xxx.dtb
loaduinitrd=ext2load scsi 0 0x1100000 /boot/uInitrd
bootcmd_scsi=scsi init;run loaduimage;run loaddts;run loaduinitrd;bootm 0x800000 0x1100000 0x1c00000

Environment size: 1311/65532 bytes
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 
scanning bus for devices...
Supprt LBA48 addressing.
  Device 0: (0:0) Vendor: ATA Prod.: WDC WD5000AAKS-0 Rev: 01.0
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

3349264 bytes read

2467 bytes read

4607585 bytes read
enter do_eth_down!!!
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.14.24-cns3xxxx-tld-1
   Created:      2018-03-08   2:44:05 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3349200 Bytes =  3.2 MB
   Load Address: 00008000
   Entry Point:  00008000
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.14.24-cns3xxxx-tld-1
   Created:      2018-03-08   2:44:43 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4607521 Bytes =  4.4 MB
   Load Address: 00000000
   Entry Point:  00000000
   Loading Kernel Image ... 

Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package
March 08, 2018 05:54PM
blackdevil,

Your box's u-boot must be a different version from Mark's box. It looks like yours does not have FDT support.

So keep these addresses

load_initrd_addr=0x1100000
load_uimage_addr=0x800000

But you should append the DTB to zImage and make a new uImage in your rootfs. Use this Kirkwood example (assuming the rootfs was mounted at sdb1 on another Linux box):

Become root and append the cns3xx DTB to zImage:
su -
cd /media/sdb1/boot
mv uImage uImage.orig
cp -a zImage-4.15.2-kirkwood-tld-1  zImage.fdt
cat dts/kirkwood-goflexnet.dtb  >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.15.2-kirkwood-tld-1 -d zImage.fdt  uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.15.2-kirkwood-tld-1 -d initrd.img-4.15.2-kirkwood-tld-1 uInitrd


And boot with

setenv bootcmd_scsi 'scsi init;run loaduimage;run loaduinitrd;bootm 0x800000 0x1100000'

UPDATE:

Nope, Mark's box u-boot does not have FDT support either :)

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



Edited 1 time(s). Last edit at 03/08/2018 05:58PM by bodhi.
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package
March 08, 2018 05:59PM
So basically we have to append DTB to uImage to boot properly (regardless whether there is uInitrd used in booting or not)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
bodhi Wrote:
-------------------------------------------------------
> So basically we have to append DTB to uImage to
> boot properly (regardless whether there is uInitrd
> used in booting or not)

Ah, good to know! I'll give this a try in about an hour.
bodhi Wrote:
-------------------------------------------------------
> @Mark,
>
> Which BlackArmor box do you have, could you post
> the model number? I thought all Seagate BlackArmor
> have Marvel SoC, not Cavium SoC. Apparently you
> have one with Cavium!

Yes, it's definitely Cavium. It was marketed as a Seagate Business Storage 4-Bay NAS, model # SRN04D.
bodhi Wrote:
-------------------------------------------------------

> But you should append the DTB to zImage and make a
> new uImage in your rootfs. Use this Kirkwood
> example (assuming the rootfs was mounted at sdb1
> on another Linux box):

Hmm. Nothing I do will get me a bootable kernel when I append the dtb to the zImage and create an uImage from it. It gets to "done booting the kernel" and stops there:

setenv bootargs mem=256M root=/dev/sda1 ro console=ttyS0,38400; seten6
Whitney # tftpboot 0x2000000 disks/seagate/uImage-4.14.24-cns3xxx-tld-1
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.14.24-cns3xxx-tld-1'.
Load address: 0x2000000
Loading: T T #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #####
done
Bytes transferred = 3351731 (3324b3 hex)
Whitney # tftpboot 0x5000000 disks/seagate/uInitrd-4.14.24
TFTP from server 192.168.3.140; our IP address is 192.168.3.17
Filename 'disks/seagate/uInitrd-4.14.24'.
Load address: 0x5000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###################################################
done
Bytes transferred = 12907433 (c4f3a9 hex)
Whitney # bootm 0x2000000 0x5000000
enter do_eth_down!!!
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.14.24-cns3xxxx-tld-1
   Created:      2018-03-09   1:15:49 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3351667 Bytes =  3.2 MB
   Load Address: 00800000
   Entry Point:  00800000
## Loading init Ramdisk from Legacy Image at 05000000 ...
   Image Name:   uInitrd
   Created:      2018-03-07  14:09:10 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    12907369 Bytes = 12.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

I followed the same instructions you gave blackdevil above.
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package
March 08, 2018 08:47PM
MarkTurner Wrote:
-------------------------------------------------------
> bodhi Wrote:
> -------------------------------------------------------
> > @Mark,
> >
> > Which BlackArmor box do you have, could you
> post
> > the model number? I thought all Seagate
> BlackArmor
> > have Marvel SoC, not Cavium SoC. Apparently you
> > have one with Cavium!
>
> Yes, it's definitely Cavium. It was marketed as a
> Seagate Business Storage 4-Bay NAS, model #
> SRN04D.


OK. So it is not a BlackArmor.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package
March 08, 2018 08:53PM
MarkTurner Wrote:
-------------------------------------------------------
> bodhi Wrote:
> -------------------------------------------------------
>
> > But you should append the DTB to zImage and make
> a
> > new uImage in your rootfs. Use this Kirkwood
> > example (assuming the rootfs was mounted at
> sdb1
> > on another Linux box):
>
> Hmm. Nothing I do will get me a bootable kernel
> when I append the dtb to the zImage and create an
> uImage from it. It gets to "done booting the
> kernel" and stops there:
>
>
> setenv bootargs mem=256M root=/dev/sda1 ro
> console=ttyS0,38400; seten6
> Whitney # tftpboot 0x2000000
> disks/seagate/uImage-4.14.24-cns3xxx-tld-1
> 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.14.24-cns3xxx-tld-1'.
> Load address: 0x2000000
> Loading: T T
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>          #####
> done
> Bytes transferred = 3351731 (3324b3 hex)
> Whitney # tftpboot 0x5000000
> disks/seagate/uInitrd-4.14.24
> TFTP from server 192.168.3.140; our IP address is
> 192.168.3.17
> Filename 'disks/seagate/uInitrd-4.14.24'.
> Load address: 0x5000000
> Loading:
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> #################################################################
>         
> ###################################################
> done
> Bytes transferred = 12907433 (c4f3a9 hex)
> Whitney # bootm 0x2000000 0x5000000
> enter do_eth_down!!!
> ## Booting kernel from Legacy Image at 02000000
> ...
>    Image Name:   Linux-4.14.24-cns3xxxx-tld-1
>    Created:      2018-03-09   1:15:49 UTC
>    Image Type:   ARM Linux Kernel Image
> (uncompressed)
>    Data Size:    3351667 Bytes =  3.2 MB
>    Load Address: 00800000
>    Entry Point:  00800000
> ## Loading init Ramdisk from Legacy Image at
> 05000000 ...
>    Image Name:   uInitrd
>    Created:      2018-03-07  14:09:10 UTC
>    Image Type:   ARM Linux RAMDisk Image (gzip
> compressed)
>    Data Size:    12907369 Bytes = 12.3 MB
>    Load Address: 00000000
>    Entry Point:  00000000
>    Loading Kernel Image ... OK
> OK
> 
> Starting kernel ...
> 
> Uncompressing Linux... done, booting the kernel.
> 
>
>
> I followed the same instructions you gave
> blackdevil above.

Please post the log of what you did to prepare the kernel files. uInitrd seems wrong.

I am pretty sure that is part of the problem, or perhaps the whole problem.

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



Edited 1 time(s). Last edit at 03/08/2018 09:34PM by bodhi.
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package
March 09, 2018 05:35AM
I am uploading a new kernel for testing. This time we will use a different booting method that hopefully will make it a lot easier.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Bodhi, can you share your steps to make your kernels, please?

I should also point out that somewhere recently your kernels went from being named cns3xxx to cns3xxxx. :)
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package
March 09, 2018 04:13PM
All, here is the single kernel file that you can use to boot the box. I hope this stock u-boot does not have the memory limitation that old u-boots had.

Instead of repackaging the whole kernel tarball for each testing version, I thought it is simpler to do this until the test kernel has booted OK (or we want to take a pause and let everybody build their own kernel, if wishes to do so) then I'll upload the kernel package for that version. It will be just like the package for 1st version, which contains everything you'd need to build your own kernel.

Dowload at Dropbox

uImage.4.14.24-cns3xxxx-tld-1.1.tar

md5sum
bd0a905db0523f7d51fc373cda0c654b
sha256sum
e4c7d1313749c589dc418ab9f3efc365fc1111948e1c4c8060305c7c9f927da8


This tarball contain the uImage file
uImage.4.14.24-cns3xxxx-tld-1.1


How to run this kernel

1. Download the uImage tarball and extract it to the /boot folder on the rootfs Debian-4.14.24-cns3xxxx-tld-1-rootfs-bodhi.tar.bz2. Assuming the rootfs is mounted at /media/sdb1

cd /media/sdb1/boot
cp -a uImage.4.14.24-cns3xxxx-tld-1.1 uImage
sync


2. Booting.

Attach the rootfs to your box, Power up and interrupt serial console.

Assuming your envs are like what blackdevil posted above:
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

Set this env
setenv bootcmd_scsi 'scsi init;ext2load scsi 1 0x8000000 /uImage; bootm 0x8000000'

And then boot it
boot
or
run bootcmd

Please post serial console log here.

-------

Note: I had a typo in the kernel name cns3xxxx :) next version it will be back to cns3xxx

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Hi bodhi,
thank you for the new uImage. It stops loading at "Loading Multi-File Image ..."

Any suggestions?

Whitney # setenv bootcmd_scsi 'scsi init;ext2load scsi 0 0x8000000 /uImage; bootm 0x8000000'
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 
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)

** Unable to read "/uImage" from scsi 0:1 **
enter do_eth_down!!!
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Whitney # setenv bootcmd_scsi 'scsi init;ext2load scsi 0 0x8000000 /boot/uImage; bootm 0x8000000'
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 
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)

7941720 bytes read
enter do_eth_down!!!
## Booting kernel from Legacy Image at 08000000 ...
   Image Name:   Linux-4.14.24-cns3xxxx-tld-1.1
   Created:      2018-03-09  11:02:09 UTC
   Image Type:   ARM Linux Multi-File Image (uncompressed)
   Data Size:    7941656 Bytes =  7.6 MB
   Load Address: 00008000
   Entry Point:  00008000
   Contents:
      Image 0: 3334547 Bytes =  3.2 MB
      Image 1: 4607096 Bytes =  4.4 MB
## Loading init Ramdisk from multi component Legacy Image at 08000000 ...
   Loading Multi-File Image ... 
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package
March 09, 2018 04:42PM
blackdevil,

Thanks for trying.

> It stops loading at
> "Loading Multi-File Image ..."

Damn! this stock u-boot is not cooperating :)

I'll come back in a few hours.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
I got the exact same results as blackdevil. :-/
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package
March 09, 2018 10:36PM
All, here is the kernel files that you can use to boot the box.This stock u-boot does have the memory limitation that old u-boots had. So I had to scrap the idea booting with 1 image (as previously posted).

Instead of repackaging the whole kernel tarball for each testing version, I thought it is simpler to do this until the test kernel has booted OK (or we want to take a pause and let everybody build their own kernel, if wishes to do so) then I'll upload the kernel package for that version. It will be just like the package for 1st version, which contains everything you'd need to build your own kernel.

Dowload at Dropbox

uImage.4.14.24-cns3xxxx-tld-1.1.tar

md5sum
9eef6e623403d0205f41a3c39fdb614c
sha256sum
72d135746a554fe86bb18fbdea71bc655f4f220f2f12308aff0cc4c6b2109f01


This tarball contain 2 files
-rw-r--r--  1 root root 3.2M Mar  9 19:55 uImage.4.14.24-cns3xxxx-tld-1.1
-rw-r--r--  1 root root 4.4M Mar  9 19:56 uInitrd.4.14.24-cns3xxxx-tld-1.1


How to run this kernel

1. Download the tarball and extract it to the /boot folder on the rootfs Debian-4.14.24-cns3xxxx-tld-1-rootfs-bodhi.tar.bz2. Assuming the rootfs is mounted at /media/sdb1

cd /media/sdb1/boot
cp -a uImage.4.14.24-cns3xxxx-tld-1.1 uImage
cp -a uInitrd.4.14.24-cns3xxxx-tld-1.1 uInitrd
sync


2. Booting.

Attach the rootfs to your box, Power up and interrupt serial console.

Assuming your envs are like what blackdevil posted above:
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

Set this env
setenv bootcmd_scsi 'scsi init; ext2load scsi 1 0x8000000 /uImage; ext2load scsi 1 0x1100000 /uInitrd; bootm 0x8000000 0x1100000'

And then boot it
boot
or
run bootcmd

Please post serial console log here.

-------

Note: I had a typo in the kernel name cns3xxxx :) next version it will be back to cns3xxx

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Hi bodhi,
I tryed your new uImage and uInitrd, with the same results like every time.

Whitney # scsi init; ext2load scsi 0 0x8000000 /boot/uImage; ext2load scsi 0 0x1100000 /boot/uInitrd; bootm 0x8000000 0x1100000

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)

3334547 bytes read

4607096 bytes read
enter do_eth_down!!!
## Booting kernel from Legacy Image at 08000000 ...
   Image Name:   Linux-4.14.24-cns3xxxx-tld-1.1
   Created:      2018-03-10   3:55:35 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3334483 Bytes =  3.2 MB
   Load Address: 00008000
   Entry Point:  00008000
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.14.24-cns3xxxx-tld-1
   Created:      2018-03-10   3:56:04 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4607032 Bytes =  4.4 MB
   Load Address: 00000000
   Entry Point:  00000000
   Loading Kernel Image ...

Maybe we should try to get kernel 4.4 working? Or a current kernel without DTB and than "just" add the DTB stuff?
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package
March 10, 2018 03:42AM
blackdevil,

Try booting with only the uImage

setenv bootcmd_scsi 'scsi init; ext2load scsi 1 0x8000000 /uImage; bootm 0x8000000'

See how far you got with it. You should get to the same point as Mark did, or further.

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

I tryed and the same result :-(

Whitney # setenv bootcmd_scsi 'scsi init; ext2load scsi 0 0x8000000 /boot/uImage; bootm 0x8000000'
Whitney # 
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)

3334547 bytes read
enter do_eth_down!!!
## Booting kernel from Legacy Image at 08000000 ...
   Image Name:   Linux-4.14.24-cns3xxxx-tld-1.1
   Created:      2018-03-10   3:55:35 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3334483 Bytes =  3.2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Loading Kernel Image ... 
Boot the old 4.4 Kernel result:
Whitney # setenv bootcmd_scsi 'scsi init; ext2load scsi 0 0x8000000 /boot/uImage2; bootm 0x8000000'
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)

2824840 bytes read
enter do_eth_down!!!
## Booting kernel from Legacy Image at 08000000 ...
   Image Name:   Linux-4.4.88-eric+
   Created:      2017-09-14  13:37:27 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2824776 Bytes =  2.7 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 0x900
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 4.4.88-eric+ (root@seagate-dev) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #7 SMP Thu Sep 14 13:36:19 UTC 2017
CPU: ARMv6-compatible processor [410fb024] revision 4 (ARMv7), cr=00c5787d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Seagate CNS3420 NAS
Ignoring tag cmdline (using the default kernel command line)
Memory policy: Data cache writealloc
PERCPU: Embedded 11 pages/cpu @cfddd000 s16140 r8192 d20724 u45056
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: root=/dev/sda3 rw init=/sbin/init mem=256M console=ttyS0,38400
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: 254196K/262144K available (3931K kernel code, 146K rwdata, 1168K rodata, 204K init, 100K bss, 7948K reserved, 0K cma-reserved)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
    lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc0502fb4   (5100 kB)
      .init : 0xc0503000 - 0xc0536000   ( 204 kB)
      .data : 0xc0536000 - 0xc055a9d0   ( 147 kB)
       .bss : 0xc055a9d0 - 0xc0573d88   ( 101 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 0x82a0 - 0x82d8
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
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: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
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: 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
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
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
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.
PCIe: Port[0] Enable PCIe LTSSM
PCIe: Port[0] Check data link layer...
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1: SATA link down (SStatus 0 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
sd 1: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.
VFS: Cannot open root device "sda3" or unknown-block(8,3): error -6
Please append a correct "root=" boot option; here are the available partitions:
0800       488386584 sda  driver: sd
  0801         9765888 sda1 c8b55e97-01
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,3)
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.4.88-eric+ #7
Hardware name: Seagate CNS3420 NAS
Backtrace: 
[<c001316c>] (dump_backtrace) from [<c0013364>] (show_stack+0x18/0x1c)
 r7:c052785c r6:60000093 r5:00000000 r4:c05443e8
[<c001334c>] (show_stack) from [<c01ef460>] (dump_stack+0x94/0xb0)
[<c01ef3cc>] (dump_stack) from [<c009c318>] (panic+0x94/0x1fc)
 r7:c052785c r6:c0495c24 r5:cf0d0000 r4:c055ae88
[<c009c288>] (panic) from [<c0504318>] (mount_block_root+0x214/0x2cc)
 r3:00000000 r2:0000002e r1:cf841ec0 r0:c0495bb8
 r7:c052785c
[<c0504104>] (mount_block_root) from [<c0504430>] (mount_root+0x60/0x7c)
 r10:c05035fc r9:c052783c r8:0000007a r7:c0500bd8 r6:c0527838 r5:c0527871
 r4:00000003
[<c05043d0>] (mount_root) from [<c0504588>] (prepare_namespace+0x13c/0x1a0)
 r5:c0527871 r4:c055aa04
[<c050444c>] (prepare_namespace) from [<c0503ec8>] (kernel_init_freeable+0x194/0x1e4)
 r6:c0527838 r5:c055a9e0 r4:00000008
[<c0503d34>] (kernel_init_freeable) from [<c03d9220>] (kernel_init+0x10/0xf0)
 r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c03d9210
 r4:00000000
[<c03d9210>] (kernel_init) from [<c000f7d8>] (ret_from_fork+0x14/0x3c)
 r5:c03d9210 r4:00000000
CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.88-eric+ #7
Hardware name: Seagate CNS3420 NAS
Backtrace: 
[<c001316c>] (dump_backtrace) from [<c0013364>] (show_stack+0x18/0x1c)
 r7:cf85ff50 r6:60000193 r5:00000000 r4:c05443e8
[<c001334c>] (show_stack) from [<c01ef460>] (dump_stack+0x94/0xb0)
[<c01ef3cc>] (dump_stack) from [<c001605c>] (handle_IPI+0x17c/0x1bc)
 r7:cf85ff50 r6:00000000 r5:00000001 r4:c055ac10
[<c0015ee0>] (handle_IPI) from [<c00094b8>] (gic_handle_irq+0x8c/0xa0)
 r7:c0538548 r6:cf85ff50 r5:000003ff r4:fb00410c
[<c000942c>] (gic_handle_irq) from [<c0013e74>] (__irq_svc+0x54/0x70)
Exception stack(0xcf85ff50 to 0xcf85ff98)
ff40:                                     00000ad4 00000000 00000000 00000000
ff60: cf85e000 00000000 c05382dc c0538280 c0531220 00000001 c03de6bc cf85ffac
ff80: cf85ffb0 cf85ffa0 c0010230 c0010234 60000013 ffffffff
 r10:c03de6bc r9:00000001 r8:c0531220 r7:cf85ff84 r6:ffffffff r5:60000013
 r4:c0010234
[<c0010204>] (arch_cpu_idle) from [<c005a0b0>] (default_idle_call+0x28/0x34)
[<c005a088>] (default_idle_call) from [<c005a1c4>] (cpu_startup_entry+0x108/0x198)
[<c005a0bc>] (cpu_startup_entry) from [<c0015c3c>] (secondary_start_kernel+0xf0/0x10c)
 r7:c055ac38
[<c0015b4c>] (secondary_start_kernel) from [<00009568>] (0x9568)
 r5:00000051 r4:0f84400a
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,3)

Maybe we should change the load address from 00008000 to
Load Address: 02000000
   Entry Point:  02000000
Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package
March 10, 2018 05:16AM
blackdevil,

> I tryed and the same result :-(
>
> Whitney # setenv bootcmd_scsi 'scsi init; ext2load
> scsi 0 0x8000000 /boot/uImage; bootm 0x8000000'

This address is apparently hardcoded in stock u-boot. Try

setenv bootcmd_scsi 'scsi init; ext2load scsi 0 0x02000000 /boot/uImage; bootm 0x02000000'

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

Your Email:


Subject:


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