Hi Andrew and list, On 28-07-17 18:33, Andrew Lunn wrote: > So far, i've not been able to reproduce this. I have 6282 based QNAP > NAS box, with a single disk. Since this is a kernel hacking box, i > tftpboot and don't use an initrd. I've been using the > mvebu_v5_defconfig kernel configuration and i have tried v4.13-rc2, > v4.12, v4.10.0 and v3.9.30. And i have sid for user space.
I'm one of the persons that reported the issue. I have both a 6281 and a 6282 based device. The 6281 based device (QNAP TS-219) is on Debian stretch state Juli 25th with kernel linux-image-4.9.0-3-marvell 4.9.30-2+deb9u2 and initramfs mudules set to most. The 6282 based device (QNAP TS-221) is stuck on jessie with kernel linux-image-4.3.0-0.bpo.1-kikwood 4.3.5-1~bpo8+1. Both devices are in use for personal use, so when the OS is up and running there are processes active causing network and disk activity. The way I test is by creating an initrd and vmlinuz from the 6281 device for the 6282 device using the attached script putting the files on a FAT based USB key mounted under /mnt and booting with the u-boot commands printed. The command is not complete, it is missing the USB init parts. Then I move de USB key and the disks over to the 6282 based device and boot with the vmlinuz and initrd from the USB key. Last test was done by installing (but not flashing) the same kernel image on both systems and just moving initrd and vmlinuz over with the USB key. As you can see from the script I did try TFTP booting as well. I do recall having the issues then as well, though it has been a while. Would it be possible for you to try with a USB key? Also are you just booting the kernel or are there processes active? I did notice the last time the system felt sluggish but it took a while for error messages to appear. > Andrew GRTNX, RobJE
#!/bin/bash vers=4.9.0-3 plat=marvell tftproot=$HOME tmp=$(tempfile) devio > $tmp 'wl 0xe3a01c08,4' 'wl 0xe381105b,4' # TS-11x, TS-21x and TS-219P cat /boot/vmlinuz-${vers}-${plat} >> $tmp cat /usr/lib/linux-image-${vers}-${plat}/kirkwood-ts219-6282.dtb >> $tmp mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -d $tmp $tftproot/vmlinuz-${vers}-${plat}.uboot dd if=/boot/initrd.img-${vers}-${plat} of=$tftproot/initrd.img-${vers}-${plat}.uboot ibs=9437184 conv=sync sudo mv $tftproot/vmlinuz-${vers}-${plat}.uboot /mnt/twai.vmlinuz sudo mv $tftproot/initrd.img-${vers}-${plat}.uboot /mnt/twai.initrd cat - << _EOT_ setenv bootargs console=ttyS0,115200n8 earlyprintk root=/dev/ram rw initrd=0xa00000,0x8fffff tftpboot 0xa00000 twai.initrd tftpboot 0x800000 twai.vmlinuz bootm 0x800000 setenv bootargs console=ttyS0,115200n8 earlyprintk root=/dev/ram rw initrd=0xa00000,0x8fffff fatload 0xa00000 twai.initrd fatload 0x800000 twai.vmlinuz bootm 0x800000 _EOT_