|
Andreas Heyer
Problemes 2nd SATA port on Zyxel NAS326: Something wrong with your kernel? August 27, 2021 01:59PM |
[ 594.139482] ata2: link is slow to respond, please be patient (ready=0) [ 618.581714] ata2: softreset failed (device not ready) [ 618.587496] ata2: limiting SATA link speed to 3.0 Gbps [ 618.593517] ata2: hard resetting link [ 623.784315] ata2: softreset failed (device not ready) [ 623.790097] ata2: reset failed, giving up [ 623.794976] ata2.00: disabled
[ 35.078312] pwr_en_sata0: disabling
[ 35.082529] v5.0-sata0: disabling
[ 35.086556] v12.0-sata0: disabling
[ 35.090860] pwr_en_sata1: disabling
[ 35.095139] v5.0-sata1: disabling
[ 35.099305] v12.0-sata1: disabling
[ 563.444157] ata2.00: exception Emask 0x0 SAct 0x8 SErr 0x0 action 0x6 frozen
[ 563.451951] ata2.00: failed command: WRITE FPDMA QUEUED
[ 563.458097] ata2.00: cmd 61/10:18:00:00:00/00:00:00:00:00/40 tag 3 ncq dma 8192 out
res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 563.474755] ata2.00: status: { DRDY }
[ 563.479143] ata2: hard resetting link
[ 573.509167] ata2: softreset failed (device not ready)
[ 573.514952] ata2: hard resetting link
[ 583.544193] ata2: softreset failed (device not ready)
[ 583.549973] ata2: hard resetting link
[ 593.514854] systemd-udevd[6489]: Spawned process 'ata_id --export /dev/sdb' [6490] is taking longer than 59s to complete
[ 593.526532] systemd-udevd[1784]: sdb: Worker [6489] processing SEQNUM=3632 is taking a long time
[ 594.139482] ata2: link is slow to respond, please be patient (ready=0)
[ 618.581714] ata2: softreset failed (device not ready)
[ 618.587496] ata2: limiting SATA link speed to 3.0 Gbps
[ 618.593517] ata2: hard resetting link
[ 623.784315] ata2: softreset failed (device not ready)
[ 623.790097] ata2: reset failed, giving up
[ 623.794976] ata2.00: disabled
[ 623.798685] ata2: EH complete
[ 623.802436] sd 1:0:0:0: [sdb] tag#3 FAILED Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK cmd_age=90s
[ 623.812941] sd 1:0:0:0: [sdb] tag#3 CDB: Write(16) 8a 00 00 00 00 00 00 00 00 00 00 00 00 10 00 00
[ 623.822641] blk_update_request: I/O error, dev sdb, sector 0 op 0x1:(WRITE) flags 0x8800 phys_seg 2 prio class 0
[ 623.849684] sd 1:0:0:0: [sdb] tag#9 FAILED Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK cmd_age=0s
[ 623.860115] sd 1:0:0:0: [sdb] tag#9 CDB: Write(16) 8a 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00
[ 623.869823] blk_update_request: I/O error, dev sdb, sector 0 op 0x1:(WRITE) flags 0x8800 phys_seg 32 prio class 0
[ 623.885603] sdb: detected capacity change from 7814037168 to 0
|
Re: Problemes 2nd SATA port on Zyxel NAS326: Something wrong with your kernel? August 27, 2021 05:47PM |
Admin Registered: 13 years ago Posts: 18,575 |
Quote
2. Extract the kernel and the DTB files in the archive:
cd /boot
tar -xjf linux-5.13.8-mvebu-tld-1-bodhi.tar.bz2
tar -xf linux-dtb-5.13.8-mvebu-tld-1.tar
3. And install it with dpkg. Remove flash-kernel first to avoid potential problem:
cd /boot
apt-get remove flash-kernel
dpkg -i linux-image-5.13.8-mvebu-tld-1_1.0_armhf.deb
4. Create uImage and uInitrd (kernel file initrd.img-5.13.8-mvebu-tld-1 was generated by dpkg in step 3). I am using the Zyxel NAS326 as an example here. Please replace armada-380-zyxel-nas326.dtb below with the appropriate DTB name for your box.
cd /boot
cp -a zImage-5.13.8-mvebu-tld-1 zImage.fdt
cat dts/armada-380-zyxel-nas326.dtb >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.13.8-mvebu-tld-1 -d zImage.fdt uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.13.8-mvebu-tld-1 -d initrd.img-5.13.8-mvebu-tld-1 uInitrd
|
Re: Problemes 2nd SATA port on Zyxel NAS326: Something wrong with your kernel? August 27, 2021 10:13PM |
Admin Registered: 13 years ago Posts: 18,575 |
setenv init_sata 'mw.l f1010104 c70e0ffd; ide reset' run init_sata
boot
|
Andreas Heyer
Re: Problems 2nd SATA port on Zyxel NAS326: Something wrong with your kernel? August 28, 2021 05:26AM |
|
Re: Problems 2nd SATA port on Zyxel NAS326: Something wrong with your kernel? August 28, 2021 04:03PM |
Admin Registered: 13 years ago Posts: 18,575 |
fw_printenv
|
Andreas Heyer
Re: Problems 2nd SATA port on Zyxel NAS326: Something wrong with your kernel? August 28, 2021 09:34PM |
sata_init=mw.l f1010104 c70e0ffd; sleep 3; ide reset usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; run sata_init; run usb_init; ext2load usb 0:1 $load_image_addr /boot/uImage; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run
|
Re: Problems 2nd SATA port on Zyxel NAS326: Something wrong with your kernel? August 29, 2021 03:58PM |
Admin Registered: 13 years ago Posts: 18,575 |
fw_printenv
|
Andreas Heyer
Re: Problems 2nd SATA port on Zyxel NAS326: Something wrong with your kernel? August 30, 2021 03:58AM |
CASset=max
CONTRY_TYPE=FF
FEATURE_BIT=00
MALLOC_len=5
MODEL_ID=B303
MPmode=SMP
PRODUCT_NAME=STG-328
VENDOR_NAME=MitraStar Technology Corp.
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000
bootcmd_auto=stage_boot $boot_order
bootcmd_custom=if run usb_bootcmd; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootcmd_stock_1=run set_bootargs_stock; echo Booting from NAND kernel 1 ...; nand read 0x2000000 0x00E00000 0xF00000 && bootz 0x2000000
bootcmd_stock_2=run set_bootargs_stock; echo Booting from NAND kernel 2 ...; nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000
bootdelay=3
cacheShare=no
change_boot_part=1
console=console=ttyS0,115200
core_checksum_1=d21254373dea21758e1242295d1a9579
core_checksum_2=b2e7f9d46be6914446516f2cbedfd7eb
curr_bootfrom=1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:38:32:25
eth1mtu=1500
eth2addr=00:50:43:38:a6:25
eth2mtu=1500
eth3addr=00:50:43:32:a6:38
eth3mtu=1500
ethact=egiga0
ethaddr=58:8B:F3:DB:D8:3F
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
fwversion_1=V5.10(AAZF.0)
fwversion_2=V5.21(AAZF.10)
ide_path=/
image_name=uImage
img_checksum_1=e6d8d12654063c2611c5dd4be0fccb25
img_checksum_2=ea11142db3b34adc3602086d20479a95
initrd_name=uInitrd
ipaddr=10.4.50.170
kernel_addr=${kernel_addr_1}
kernel_addr_1=0x00000000; run bootcmd_custom;
kernel_addr_2=0x08700000
kernel_addr_r=2080000
kernel_mtd_1=3
kernel_mtd_2=5
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
load_image_addr=0x02000000
load_initrd_addr=0x2900000
loadaddr=0x02000000
loads_echo=0
modelid_1=B303
modelid_2=B303
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:25:a6:38
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
next_bootfrom=1
pcieTune=no
pexMode=RC
pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
ramdisk_addr_r=2880000
revision_1=48379
revision_2=51209
romfile_checksum_1=4C07
romfile_checksum_2=7010
rootpath=/srv/nfs/
sata_delay_reset=0
sata_dma_mode=yes
script_addr_r=3000000
script_name=boot.scr
serial_number=S150Y46041116
serverip=10.4.50.38
set_bootargs_stock=setenv bootargs "console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2"
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
sysimg_mtd_1=4
sysimg_mtd_2=6
usb0Mode=host
usbActive=0
usbType=2
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext4load usb 0:1 $load_image_addr /boot/uImage; ext4load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr
usb_init=mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start
usb_set_bootargs=setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81
zld_checksum_1=ef595c7985244ff6476518eb5f9e9b85
zld_checksum_2=e861824adfedf3827be8b63e8405ce7e
|
Andreas Heyer
Re: Problems 2nd SATA port on Zyxel NAS326: Something wrong with your kernel? August 30, 2021 09:43AM |
|
Re: Problems 2nd SATA port on Zyxel NAS326: Something wrong with your kernel? August 30, 2021 04:03PM |
Admin Registered: 13 years ago Posts: 18,575 |
|
Re: Problems 2nd SATA port on Zyxel NAS326: Something wrong with your kernel? August 30, 2021 04:36PM |
Admin Registered: 13 years ago Posts: 18,575 |