Welcome! Log In Create A New Profile

Advanced

Boot problems with GoFlexNet – kernel command ignored, USB not available

Posted by Balduin 
Boot problems with GoFlexNet – kernel command ignored, USB not available
April 02, 2017 05:02PM
Hi!

I'm trying to get Debian running on a Seagate GoFlex Net. For this I setup a serial connection to the GoFlex and booted an up-to date version of Uboot to load the Linux image.

The initial problem was to find a working USB thumb drive. With the first couple I tried loading files did not work. Only after a number of attempts followed by USB resets did it succeed. Any ideas why certain drives are problematic?

Even now, with a drive, I cannot Linux to run. The proper command line is not passed to Linux. At least not reliably. Additionally Linux does not seem to see the USB drive as a valid device for its root filesystem. It finds and initializes the USB hub and the thumb drive but does not show it among the valid boot partitions.


I'd appreciate any help or suggestions in solving this.
Below are the full logs of the whole boot process.

Best regards,
Baldiun



Quote
UBoot-Init
$ ./kwboot -b uboot.2016.05-tld-1.goflexnet.mtd0.kwb -p -t /dev/ttyUSB0
Sending boot message. Please reboot the target...|
Sending boot image...
0 % [......................................................................]
[...]
99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:27:19 -0700)
Seagate GoFlex Net

SoC: Kirkwood 88F6281_A1
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 0

Quote
Original Env from flash
GoFlexNet> printenv
arcNumber=2097
baudrate=115200
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset
bootdelay=3
console=ttyS0,115200
ethact=egiga0
ethaddr=00:10:75:26:6E:79
fileaddr=800000
filesize=ad6
force_rescue=0
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
rescue_installed=0
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
stderr=serial
stdin=serial
stdout=serial
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
usb_device=0:1
usb_init=run usb_scan
usb_root=/dev/sda1
usb_rootdelay=10
usb_rootfstype=ext2
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done
usb_scan_1=usb=0:1 dev=sda1
usb_scan_2=usb=1:1 dev=sdb1
usb_scan_3=usb=2:1 dev=sdc1
usb_scan_4=usb=3:1 dev=sdd1
usb_scan_list=1 2 3 4
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params

Environment size: 2375/131068 bytes


Quote
New env from USB
GoFlexNet> usb start
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found


GoFlexNet> ext4load usb 0:1 0x800000 /uboot.env
2774 bytes read in 258 ms (9.8 KiB/s)


GoFlexNet> env import -t 0x800000 2774


GoFlexNet> printenv
arcNumber=2097
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
console=ttyS0,115200
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-goflexnet.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
fileaddr=800000
filesize=ad6
force_rescue=0
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
machid=0x831
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
preboot_nc=run if_netconsole start_netconsole
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
rescue_installed=0
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
usb_device=0:1
usb_init=run usb_scan
usb_ready_retry=15
usb_root=/dev/sda1
usb_rootdelay=10
usb_rootfstype=ext2
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done
usb_scan_1=usb=0:1 dev=sda1
usb_scan_2=usb=1:1 dev=sdb1
usb_scan_3=usb=2:1 dev=sdc1
usb_scan_4=usb=3:1 dev=sdd1
usb_scan_list=1 2 3 4
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params

Environment size: 4762/131068 bytes

Quote
Booting
GoFlexNet> boot

Reset IDE: ide_preinit failed
Unknown command 'mmc' - try 'help'

Partition Map for USB device 0 -- Partition Type: DOS

Part Start Sector Num Sectors UUID Type
1 2048 1740800 e7e603aa-01 83
2 1742848 259040 e7e603aa-02 82
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 231 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3166793 bytes read in 375 ms (8.1 MiB/s)
loading uInitrd ...
7179935 bytes read in 448 ms (15.3 MiB/s)
loading DTB /boot/dts/kirkwood-goflexnet.dtb ...
11897 bytes read in 548 ms (20.5 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-4.4.0-kirkwood-tld-1
Created: 2017-03-02 14:24:57 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3166729 Bytes = 3 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-4.4.0-kirkwood-tld-1
Created: 2016-02-19 7:33:04 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 7179871 Bytes = 6.8 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
Booting using the fdt blob at 0x1c00000
Loading Kernel Image ... OK
Loading Ramdisk to 07439000, end 07b11e5f ... OK
Loading Device Tree to 07433000, end 07438e78 ... OK
Using machid 0x831 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Jan 25 20:35:24 PST 2016
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine model: Seagate GoFlex Net
[ 0.000000] bootconsole [earlycon0] enabled
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk root=/dev/sda1 rootdelay=10
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 120632K/131072K available (6007K kernel code, 573K rwdata, 1992K rodata, 296K init, 312K bss, 10440K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc07d7ef4 (8000 kB)
[ 0.000000] .init : 0xc07d8000 - 0xc0822000 ( 296 kB)
[ 0.000000] .data : 0xc0822000 - 0xc08b169c ( 574 kB)
[ 0.000000] .bss : 0xc08b169c - 0xc08ff9d0 ( 313 kB)
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[ 0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[ 0.008279] Console: colour dummy device 80x30
[ 0.012845] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[ 0.100932] pid_max: default: 32768 minimum: 301
[ 0.105755] Security Framework initialized
[ 0.110069] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.116815] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.124818] Initializing cgroup subsys io
[ 0.129002] Initializing cgroup subsys devices
[ 0.133573] Initializing cgroup subsys freezer
[ 0.138189] Initializing cgroup subsys net_cls
[ 0.142821] CPU: Testing write buffer coherency: ok
[ 0.148325] Setting up static identity map for 0x8200 - 0x8258
[ 0.154573] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[ 0.163643] devtmpfs: initialized
[ 0.172236] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.182720] prandom: seed boundary self test passed
[ 0.191530] prandom: 100 self tests passed
[ 0.195756] pinctrl core: initialized pinctrl subsystem
[ 0.202541] NET: Registered protocol family 16
[ 0.207534] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.238052] cpuidle: using governor ladder
[ 0.268050] cpuidle: using governor menu
[ 0.272497] Feroceon L2: Enabling L2
[ 0.276212] Feroceon L2: Cache support initialised.
[ 0.281629] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[ 0.297376] No ATAGs?
[ 0.329571] vgaarb: loaded
[ 0.333014] usbcore: registered new interface driver usbfs
[ 0.338744] usbcore: registered new interface driver hub
[ 0.344236] usbcore: registered new device driver usb
[ 0.350514] clocksource: Switched to clocksource orion_clocksource
[ 0.412591] NET: Registered protocol family 2
[ 0.417870] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.425090] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.431594] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.438124] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.444107] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.450706] NET: Registered protocol family 1
[ 0.455523] RPC: Registered named UNIX socket transport module.
[ 0.461605] RPC: Registered udp transport module.
[ 0.466417] RPC: Registered tcp transport module.
[ 0.471243] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.478179] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.485917] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.492257] audit: initializing netlink subsys (disabled)
[ 0.497808] audit: type=2000 audit(0.480:1): initialized
[ 0.503642] Initialise system trusted keyring
[ 0.508454] zbud: loaded
[ 0.511414] VFS: Disk quotas dquot_6.6.0
[ 0.515493] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.523168] NFS: Registering the id_resolver key type
[ 0.528357] Key type id_resolver registered
[ 0.532699] Key type id_legacy registered
[ 0.536836] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.543680] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 0.550369] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.558072] Key type big_key registered
[ 0.573427] Key type asymmetric registered
[ 0.577641] Asymmetric key parser 'x509' registered
[ 0.582802] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 0.590332] io scheduler noop registered
[ 0.594546] io scheduler deadline registered
[ 0.598976] io scheduler cfq registered (default)
[ 0.605186] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[ 0.613418] irq: Cannot allocate irq_descs @ IRQ33, assuming pre-allocated
[ 0.620867] irq: Cannot allocate irq_descs @ IRQ65, assuming pre-allocated
[ 0.628394] mv_xor f1060800.xor: Marvell shared XOR driver
[ 0.671207] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[ 0.678852] mv_xor f1060900.xor: Marvell shared XOR driver
[ 0.721205] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[ 0.729124] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.737065] console [ttyS0] disabled
[ 0.740862] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[ 0.749988] console [ttyS0] enabled
[ 0.749988] console [ttyS0] enabled
[ 0.757125] bootconsole [earlycon0] disabled
[ 0.757125] bootconsole [earlycon0] disabled
[ 0.767291] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[ 0.773714] nand: Micron MT29F2G08AAD
[ 0.777394] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 0.785024] Scanning device for bad blocks
[ 1.010775] libphy: Fixed MDIO Bus: probed
[ 1.015218] libphy: orion_mdio_bus: probed
[ 1.020071] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 2.101213] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:26:6e:79
[ 2.110103] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.116721] ehci-pci: EHCI PCI platform driver
[ 2.121281] ehci-orion: EHCI orion driver
[ 2.125490] orion-ehci f1050000.ehci: EHCI Host Controller
[ 2.131063] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[ 2.138920] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[ 2.160547] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[ 2.166830] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 2.173679] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.180951] usb usb1: Product: EHCI Host Controller
[ 2.185849] usb usb1: Manufacturer: Linux 4.4.0-kirkwood-tld-1 ehci_hcd
[ 2.192512] usb usb1: SerialNumber: f1050000.ehci
[ 2.197976] hub 1-0:1.0: USB hub found
[ 2.201831] hub 1-0:1.0: 1 port detected
[ 2.206759] mousedev: PS/2 mouse device common for all mice
[ 2.520548] usb 1-1: new high-speed USB device number 2 using orion-ehci
[ 2.678053] usb 1-1: New USB device found, idVendor=8564, idProduct=1000
[ 2.684818] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.692013] usb 1-1: Product: Mass Storage Device
[ 2.696741] usb 1-1: Manufacturer: JetFlash
[ 2.700968] usb 1-1: SerialNumber: RSAI4ECI
[ 3.220542] rtc-mv f1010300.rtc: internal RTC not ticking
[ 3.226188] i2c /dev entries driver
[ 3.232289] hidraw: raw HID events driver (C) Jiri Kosina
[ 3.238131] drop_monitor: Initializing network drop monitor service
[ 3.244723] NET: Registered protocol family 17
[ 3.249461] Key type dns_resolver registered
[ 3.254665] registered taskstats version 1
[ 3.258828] Loading compiled-in X.509 certificates
[ 3.263744] zswap: loaded using pool lzo/zbud
[ 3.269221] Key type encrypted registered
[ 3.273819] hctosys: unable to open rtc device (rtc0)
[ 3.280369] Waiting 10 sec before mounting root device...
[ 13.290727] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
[ 13.298074] Please append a correct "root=" boot option; here are the available partitions:
[ 13.306522] 1f00 262144 mtdblock0 (driver?)
[ 13.311656] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 13.319957] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.0-kirkwood-tld-1 #1
[ 13.326945] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[ 13.333272] [<c0016784>] (unwind_backtrace) from [<c00129f8>] (show_stack+0x10/0x14)
[ 13.341056] [<c00129f8>] (show_stack) from [<c00c2200>] (panic+0x80/0x214)
[ 13.347972] [<c00c2200>] (panic) from [<c07d9280>] (mount_block_root+0x204/0x24c)
[ 13.355494] [<c07d9280>] (mount_block_root) from [<c07d93b4>] (mount_root+0xec/0x118)
[ 13.363367] [<c07d93b4>] (mount_root) from [<c07d9504>] (prepare_namespace+0x124/0x184)
[ 13.371407] [<c07d9504>] (prepare_namespace) from [<c07d8e9c>] (kernel_init_freeable+0x208/0x258)
[ 13.380325] [<c07d8e9c>] (kernel_init_freeable) from [<c05b16b4>] (kernel_init+0x8/0xe4)
[ 13.388458] [<c05b16b4>] (kernel_init) from [<c000f090>] (ret_from_fork+0x14/0x24)
[ 13.396069] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Re: Boot problems with GoFlexNet – kernel command ignored, USB not available
April 02, 2017 05:57PM
Balduin,

First, let me say that you're doing everything in a nice way :) kwboot the box with serial console and load u-boot envs from disk. It's the safest way to install u-boot: alway kwboot first if you can.

> It finds and initializes the USB hub
> and the thumb drive but does not show it among the
> valid boot partitions.

Problem is with your USB rootfs. Make sure you followed the instruction in the kernel/rootfs thread very closely.

1. Step 4 should be skipped because you are booting with FDT kernel, and the new u-boot.

Quote

4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).

So reverse that step by restoring original uImage. Mount the USB drive on another LInux box and (if it was mounted as sdb1):
cd /media/sdb1/boot
mv uImage uImage.goflexnet
mv uImage.orig uImage

2. And doublecheck that this USB rootfs partition is labeled as rootfs.
e2label /dev/sdb1

3. umount and sync
sync

Try booting again.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Boot problems with GoFlexNet – kernel command ignored, USB not available
April 02, 2017 07:02PM
Btw, USB drives that are used for booting should be of high quality, such as Sandisk brand.

Lot of generic or low quality brand USB flash drives tend to have problem with uboot. And doing a few "usb reset" might help with those. Better yet, I have added this env that will help in those cases:

usb_ready_retry

Set it to the number of seconds that you want uboot to wait for the drive to power up.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Boot problems with GoFlexNet – kernel command ignored, USB not available
April 04, 2017 07:34AM
bodhi Wrote:
-------------------------------------------------------
> Problem is with your USB rootfs. Make sure you fol
> lowed the instruction in the kernel/rootfs thread
> very closely.
>
> 1. Step 4 should be skipped because you are booting
> with FDT kernel, and the new u-boot.
Ahh, my fault. I read these instructions as "step4 is optional with newer versions of Uboot" and figured it would not hurt to append the DTB.

After restoring the plain kernel image the boot works now :-)
Thanks a lot for your help!

Could you please elaborate what exactly went wrong there? As far as I understand the process Uboot will load the kernel, the initrd and the DTB to ram and then boot the kernel passing the other two and the boot cmdline as parameters. Why does the concatenated DTB disturb this process and why was the kernel able to initialize the USB subsystem but not boot from it? During my previous attempts (somehow using the wrong cmdline) the USB drive was likely mounted as /dev/sda and this was what the kernel was supposed to use as rootfs.


BTW, there are still some USB-related I/O errors during the boot-up sequence but they don't seem to have any negative impact. A full log is at the end of this post. Never mind the DHCP failure as I did not connect the GoFlex to a network yet.


bodhi Wrote:
-------------------------------------------------------
> Btw, USB drives that are used for booting should be
> of high quality, such as Sandisk brand.
>
> Lot of generic or low quality brand USB flash drives
> tend to have problem with uboot. And doing a few
> "usb reset" might help with those.
For me it was quite the opposite. I tried with a Sandisk drive first and failed miserably. It would take like 10 reset cycles just to load the very small DTB let alone the kernel and initrd. Now with a Transcent drive I have no problems with Uboot only those errors the kernel reports during bootup.


> Better yet, I have added this env that will help in those cases:
>
> usb_ready_retry
>
> Set it to the number of seconds that you want uboot
> to wait for the drive to power up.
Been there, done that ;-)

I found other posts around this forum that mentioned the option and even setting it to values near a minute did not really help with the Sandisk USB drive. It doesn't seem to be a problem with powering up but rather with reading. When I connect the same USB drive to my laptop it works flawlessly and fsck cannot find any problems or bad sectors. Maybe the FlexNet's USB hardware is a bit picky...


Best regards,
Balduin


Quote
Linux bootup
GoFlexNet> boot

Reset IDE: ide_preinit failed
Unknown command 'mmc' - try 'help'

Partition Map for USB device 0 -- Partition Type: DOS

Part Start Sector Num Sectors UUID Type
1 2048 1740800 e7e603aa-01 83
2 1742848 259040 e7e603aa-02 82
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 231 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3154896 bytes read in 378 ms (8 MiB/s)
loading uInitrd ...
7179935 bytes read in 451 ms (15.2 MiB/s)
loading DTB /boot/dts/kirkwood-goflexnet.dtb ...
11897 bytes read in 549 ms (20.5 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-4.4.0-kirkwood-tld-1
Created: 2016-02-19 5:55:25 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3154832 Bytes = 3 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-4.4.0-kirkwood-tld-1
Created: 2016-02-19 7:33:04 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 7179871 Bytes = 6.8 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
Booting using the fdt blob at 0x1c00000
Loading Kernel Image ... OK
Loading Ramdisk to 07439000, end 07b11e5f ... OK
Loading Device Tree to 07433000, end 07438e78 ... OK
Using machid 0x831 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Jan 25 20:35:24 PST 2016
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine model: Seagate GoFlex Net
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 113620K/131072K available (6007K kernel code, 573K rwdata, 1992K rodata, 296K init, 312K bss, 17452K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc07d7ef4 (8000 kB)
[ 0.000000] .init : 0xc07d8000 - 0xc0822000 ( 296 kB)
[ 0.000000] .data : 0xc0822000 - 0xc08b169c ( 574 kB)
[ 0.000000] .bss : 0xc08b169c - 0xc08ff9d0 ( 313 kB)
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[ 0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[ 0.000333] Console: colour dummy device 80x30
[ 0.000363] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[ 0.090105] pid_max: default: 32768 minimum: 301
[ 0.090215] Security Framework initialized
[ 0.090292] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.090313] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.091120] Initializing cgroup subsys io
[ 0.091154] Initializing cgroup subsys devices
[ 0.091178] Initializing cgroup subsys freezer
[ 0.091210] Initializing cgroup subsys net_cls
[ 0.091296] CPU: Testing write buffer coherency: ok
[ 0.091772] Setting up static identity map for 0x8200 - 0x8258
[ 0.092086] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[ 0.095875] devtmpfs: initialized
[ 0.101050] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.101518] prandom: seed boundary self test passed
[ 0.105277] prandom: 100 self tests passed
[ 0.105304] pinctrl core: initialized pinctrl subsystem
[ 0.106721] NET: Registered protocol family 16
[ 0.107175] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.130108] cpuidle: using governor ladder
[ 0.160107] cpuidle: using governor menu
[ 0.160534] Feroceon L2: Enabling L2
[ 0.160581] Feroceon L2: Cache support initialised.
[ 0.160973] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[ 0.166135] No ATAGs?
[ 0.201627] vgaarb: loaded
[ 0.202010] usbcore: registered new interface driver usbfs
[ 0.202092] usbcore: registered new interface driver hub
[ 0.202158] usbcore: registered new device driver usb
[ 0.203261] clocksource: Switched to clocksource orion_clocksource
[ 0.259077] NET: Registered protocol family 2
[ 0.259899] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.259926] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.259946] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.260015] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.260039] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.260240] NET: Registered protocol family 1
[ 0.260651] RPC: Registered named UNIX socket transport module.
[ 0.260664] RPC: Registered udp transport module.
[ 0.260672] RPC: Registered tcp transport module.
[ 0.260679] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.260969] Unpacking initramfs...
[ 0.908120] Freeing initrd memory: 7012K (c7439000 - c7b12000)
[ 0.908251] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.909384] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.909458] audit: initializing netlink subsys (disabled)
[ 0.909516] audit: type=2000 audit(0.900:1): initialized
[ 0.909877] Initialise system trusted keyring
[ 0.910273] zbud: loaded
[ 0.910575] VFS: Disk quotas dquot_6.6.0
[ 0.910638] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.911193] NFS: Registering the id_resolver key type
[ 0.911239] Key type id_resolver registered
[ 0.911249] Key type id_legacy registered
[ 0.911276] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.911291] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 0.911514] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.912040] Key type big_key registered
[ 0.932431] Key type asymmetric registered
[ 0.932456] Asymmetric key parser 'x509' registered
[ 0.932557] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 0.932578] io scheduler noop registered
[ 0.932594] io scheduler deadline registered
[ 0.932657] io scheduler cfq registered (default)
[ 0.934156] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[ 0.934851] irq: Cannot allocate irq_descs @ IRQ33, assuming pre-allocated
[ 0.935279] irq: Cannot allocate irq_descs @ IRQ65, assuming pre-allocated
[ 0.935825] mv_xor f1060800.xor: Marvell shared XOR driver
[ 0.973972] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[ 0.974213] mv_xor f1060900.xor: Marvell shared XOR driver
[ 1.013946] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[ 1.014457] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 1.015889] console [ttyS0] disabled
[ 1.015954] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[ 1.615435] console [ttyS0] enabled
[ 1.620385] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[ 1.626805] nand: Micron MT29F2G08AAD
[ 1.630485] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.638114] Scanning device for bad blocks
[ 1.861083] 4 cmdlinepart partitions found on MTD device orion_nand
[ 1.867399] Creating 4 MTD partitions on "orion_nand":
[ 1.872570] 0x000000000000-0x000000100000 : "u-boot"
[ 1.878865] 0x000000100000-0x000000500000 : "uImage"
[ 1.885159] 0x000000500000-0x000002500000 : "rootfs"
[ 1.891408] 0x000002500000-0x000010000000 : "data"
[ 1.898920] libphy: Fixed MDIO Bus: probed
[ 1.903432] libphy: orion_mdio_bus: probed
[ 1.912508] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 2.993954] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:26:6e:79
[ 3.002853] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.009475] ehci-pci: EHCI PCI platform driver
[ 3.014032] ehci-orion: EHCI orion driver
[ 3.018247] orion-ehci f1050000.ehci: EHCI Host Controller
[ 3.023814] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[ 3.031671] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[ 3.053296] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[ 3.059562] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 3.066410] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.073685] usb usb1: Product: EHCI Host Controller
[ 3.078589] usb usb1: Manufacturer: Linux 4.4.0-kirkwood-tld-1 ehci_hcd
[ 3.085253] usb usb1: SerialNumber: f1050000.ehci
[ 3.090752] hub 1-0:1.0: USB hub found
[ 3.094617] hub 1-0:1.0: 1 port detected
[ 3.099578] mousedev: PS/2 mouse device common for all mice
[ 3.413296] usb 1-1: new high-speed USB device number 2 using orion-ehci
[ 3.570802] usb 1-1: New USB device found, idVendor=8564, idProduct=1000
[ 3.577567] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.584761] usb 1-1: Product: Mass Storage Device
[ 3.589490] usb 1-1: Manufacturer: JetFlash
[ 3.593717] usb 1-1: SerialNumber: RSAI4ECI
[ 4.113292] rtc-mv f1010300.rtc: internal RTC not ticking
[ 4.118928] i2c /dev entries driver
[ 4.125046] hidraw: raw HID events driver (C) Jiri Kosina
[ 4.130860] drop_monitor: Initializing network drop monitor service
[ 4.137453] NET: Registered protocol family 17
[ 4.142201] Key type dns_resolver registered
[ 4.147390] registered taskstats version 1
[ 4.151550] Loading compiled-in X.509 certificates
[ 4.156455] zswap: loaded using pool lzo/zbud
[ 4.169798] Key type encrypted registered
[ 4.174464] hctosys: unable to open rtc device (rtc0)
[ 4.181867] Freeing unused kernel memory: 296K (c07d8000 - c0822000)
Loading, please wait...
[ 4.259203] systemd-udevd[83]: starting version 215
[ 4.275474] random: systemd-udevd urandom read with 6 bits of entropy available
[ 4.432685] SCSI subsystem initialized
[ 4.489472] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 4.510909] sata_mv f1080000.sata: slots 32 ports 2
[ 4.546014] scsi host0: usb-storage 1-1:1.0
[ 4.557827] usbcore: registered new interface driver usb-storage
[ 4.564019] scsi host1: sata_mv
[ 4.582315] scsi host2: sata_mv
[ 4.592554] usbcore: registered new interface driver uas
[ 4.600289] ata1: SATA max UDMA/133 irq 32
[ 4.620002] ata2: SATA max UDMA/133 irq 32
[ 4.983307] ata1: SATA link down (SStatus 0 SControl F300)
[ 5.353295] ata2: SATA link down (SStatus 0 SControl F300)
[ 5.545653] scsi 0:0:0:0: Direct-Access JetFlash Transcend 8GB 8.07 PQ: 0 ANSI: 4
[ 5.560996] sd 0:0:0:0: [sda] 15335424 512-byte logical blocks: (7.85 GB/7.31 GiB)
[ 5.571851] sd 0:0:0:0: [sda] Write Protect is off
[ 5.577712] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 5.594579] sda: sda1 sda2
[ 5.601835] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 5.611197] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 5.873299] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 6.044462] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 6.052793] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 6.059660] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 6.068700] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 98 40 00 00 38 00
[ 6.076079] blk_update_request: I/O error, dev sda, sector 1742912
[ 6.233297] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 6.404333] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 6.412660] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 6.419532] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 6.428573] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 98 80 00 00 90 00
[ 6.435953] blk_update_request: I/O error, dev sda, sector 1742976
[ 6.456102] sda: sda1 sda2
[ 6.783298] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 6.954460] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 6.962787] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 6.969662] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 6.978702] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 99 10 00 00 f0 00
[ 6.986079] blk_update_request: I/O error, dev sda, sector 1743120
[ 7.173301] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 7.344205] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 7.352534] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 7.359401] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 7.368442] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 99 f8 00 00 08 00
[ 7.375821] blk_update_request: I/O error, dev sda, sector 1743352
[ 7.382034] Buffer I/O error on dev sda2, logical block 63, async page read
[ 7.402726] sda: sda1 sda2
[ 7.753299] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 7.924334] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 7.932660] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 7.939535] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 7.948574] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 98 80 00 00 90 00
[ 7.955954] blk_update_request: I/O error, dev sda, sector 1742976
[ 7.978854] sda: sda1 sda2
[ 8.313298] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 8.484206] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 8.492535] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 8.499403] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 8.508443] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 98 40 00 00 38 00
[ 8.515822] blk_update_request: I/O error, dev sda, sector 1742912
[ 8.540978] sda: sda1 sda2
[ 8.853298] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 9.024335] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 9.032662] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 9.039536] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 9.048578] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 99 10 00 00 f0 00
[ 9.055955] blk_update_request: I/O error, dev sda, sector 1743120
[ 9.078644] sda: sda1 sda2
[ 9.423299] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 9.594335] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 9.602661] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 9.609537] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 9.618577] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 99 10 00 00 f0 00
[ 9.625955] blk_update_request: I/O error, dev sda, sector 1743120
[ 9.632214] random: nonblocking pool is initialized
[ 9.653592] sda: sda1 sda2
[ 10.003298] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 10.174207] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 10.182533] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 10.189408] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 10.198449] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 98 20 00 00 18 00
[ 10.205832] blk_update_request: I/O error, dev sda, sector 1742880
[ 10.229106] sda: sda1 sda2
[ 10.563298] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 10.734207] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 10.742535] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 10.749407] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 10.758447] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 98 78 00 00 08 00
[ 10.765825] blk_update_request: I/O error, dev sda, sector 1742968
[ 10.793230] sda: sda1 sda2
[ 11.163300] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 11.334336] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 11.342659] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 11.349526] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 11.358567] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 99 10 00 00 f0 00
[ 11.365946] blk_update_request: I/O error, dev sda, sector 1743120
[ 11.563300] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 11.734204] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 11.742532] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 11.749406] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 11.758447] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 9b d0 00 00 08 00
[ 11.765826] blk_update_request: I/O error, dev sda, sector 1743824
[ 11.784599] sda: sda1 sda2
[ 12.113300] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 12.284460] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 12.292790] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 12.299664] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 12.308710] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 99 10 00 00 f0 00
[ 12.316086] blk_update_request: I/O error, dev sda, sector 1743120
[ 12.338770] sda: sda1 sda2
[ 12.643300] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 12.814207] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 12.822530] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 12.829396] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 12.838438] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 98 08 00 00 08 00
[ 12.845816] blk_update_request: I/O error, dev sda, sector 1742856
[ 12.918228] sda: sda1 sda2
[ 13.293302] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 13.464335] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 13.472660] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 13.479539] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 13.488584] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 98 80 00 00 90 00
[ 13.495962] blk_update_request: I/O error, dev sda, sector 1742976
[ 13.516229] sda: sda1 sda2
[ 13.843298] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 14.014460] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 14.022786] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 14.029661] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 14.038701] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 00 09 10 00 00 f0 00
[ 14.046080] blk_update_request: I/O error, dev sda, sector 2320
[ 14.068767] sda: sda1 sda2
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
modprobe: module ext3 not found in modules.dep
Begin: Checking root file system ... fsck from util-linux 2.25.2
fsck: error 2 (No such file or directory) while executing fsck.ext3 for /dev/sda1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[ 20.574760] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[ 20.592651] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[ 21.836509] systemd-udevd[297]: starting version 215
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[ 22.342640] orion_wdt: Initial timeout 21 sec
[ 22.384877] marvell-cesa: probe of f1030000.crypto failed with error -524
[ 22.803304] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 22.974211] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 22.982536] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 22.989413] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 22.998453] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 98 20 00 00 18 00
[ 23.005832] blk_update_request: I/O error, dev sda, sector 1742880
[ 23.133295] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 23.304206] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 23.312534] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 23.319401] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 23.328441] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 98 88 00 00 08 00
[ 23.335822] blk_update_request: I/O error, dev sda, sector 1742984
[ 23.342033] Buffer I/O error on dev sda2, logical block 17, async page read
done.
[ ok ] Activating swap...done.
[ 24.046992] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 14512/54432 files, 106577/217600 blocks
done.
[ 24.228903] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Loading kernel modules...done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[ 26.810358] NET: Registered protocol family 10
[ 27.977729] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:10:75:26:6e:79
Sending on LPF/eth0/00:10:75:26:6e:79
Sending on Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67

DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
No DHCPOFFERS received.
Trying recorded lease 192.168.0.16
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.

--- 192.168.0.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

bound: renewal in 1455941343 seconds.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1220 (syslogd)
. ok
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[....] Starting OpenBSD Secure Shell server: sshdCould not load host key: /etc/ssh/ssh_host_dsa_key
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1223 (klogd)
. ok

Debian GNU/Linux 8 debian ttyS0

debian login:
Re: Boot problems with GoFlexNet – kernel command ignored, USB not available
April 04, 2017 04:55PM
Balduin,

> Could you please elaborate what exactly went wrong
> there? As far as I understand the process Uboot wi
> ll load the kernel, the initrd and the DTB to ram
> and then boot the kernel passing the other two and
> the boot cmdline as parameters. Why does the conca
> tenated DTB disturb this process

The bootargs from the appended DTB was used by the kernel to boot. When the kernel sees the appended DTB, that is the copy that takes precedent. Remember, this appended DTB approach is temporary in order to phase in the device tree slowly and allow old u-boot to work with FDT kernel, so it is not supposed to be merged with the separate DTB.

I could have coded the DTS in more resilient way and allowing the rootfs to be mounted even in this secnario, but I purposely avoided doing that. The reason is it will mask the mistake (both separate DTB and appended DTB are used). It's best to let it fail, and we will see the error right away.

> why was the k
> ernel able to initialize the USB subsystem but not
> boot from it? During my previous attempts (somehow
> using the wrong cmdline) the USB drive was likely
> mounted as /dev/sda and this was what the kernel w
> as supposed to use as rootfs.

Since the bootargs for rootfs is root=LABEL=rootfs, any drive that has partition labeled rootfs is used for mounting. This has the advantage that regardless which drive (sda1, sdb1, ....) the rootfs is on, it will work. sda1 is only used when there is no such bootargs to guide the kernel where to find rootfs.

> For me it was quite the opposite. I tried with a S
> andisk drive first and failed miserably.

That's the first time I heard reports about a Sandisk flash drive that failed to be recognized by u-boot!

> I found other posts around this forum that mention
> ed the option and even setting it to values near a
> minute did not really help with the Sandisk USB dr
> ive. It doesn't seem to be a problem with powering
> up but rather with reading.

It is not exactly powering up or reading. This error occurs during the drive is "spinning up", i.e. the enumeration process.

But whichever brand works for you is great, all we care :)

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



Edited 1 time(s). Last edit at 04/05/2017 12:13AM by bodhi.
Re: Boot problems with GoFlexNet – kernel command ignored, USB not available
April 06, 2017 02:14PM
Hi bodhi,

thanks again for your invaluable help. Direct advice is really great when you're new to a field like I am here :-)


bodhi Wrote:
-------------------------------------------------------
> The bootargs from the appended DTB was used by the
> kernel to boot. When the kernel sees the appended
> DTB, that is the copy that takes precedent.
Ahh yes, that makes sense. I did not realize that the bootargs are part of the DTB as well.

> I could have coded the DTS in more resilient way a
> nd allowing the rootfs to be mounted even in this
> secnario, but I purposely avoided doing that. The
> reason is it will mask the mistake (both separate
> DTB and appended DTB are used). It's best to let it
> fail, and we will see the error right away.
I absolutely agree with this, but it's always best to understand one's mistakes :-)


>> why was the kernel able to initialize the USB subsystem but not
>> boot from it?
> Since the bootargs for rootfs is root=LABEL=rootfs,
> any drive that has partition labeled rootfs is used for
> mounting. This has the advantage that regardless
> which drive (sda1, sdb1, ....) the rootfs is on, it will work.
> sda1 is only used when there is no such bootargs to guide
> the kernel where to find rootfs.
Sorry, you got my question wrong. When the kernel used the attached DTB it tried to boot from /dev/sda1. This failed even though previously in the boot process the USB drive was properly detected. From my bootlog in the initial post
Quote

[ 2.110103] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.116721] ehci-pci: EHCI PCI platform driver
[ 2.121281] ehci-orion: EHCI orion driver
[ 2.125490] orion-ehci f1050000.ehci: EHCI Host Controller
[ 2.131063] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[ 2.138920] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[ 2.160547] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[ 2.166830] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 2.173679] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.180951] usb usb1: Product: EHCI Host Controller
[ 2.185849] usb usb1: Manufacturer: Linux 4.4.0-kirkwood-tld-1 ehci_hcd
[ 2.192512] usb usb1: SerialNumber: f1050000.ehci
[ 2.197976] hub 1-0:1.0: USB hub found
[ 2.201831] hub 1-0:1.0: 1 port detected
[ 2.206759] mousedev: PS/2 mouse device common for all mice
[ 2.520548] usb 1-1: new high-speed USB device number 2 using orion-ehci
[ 2.678053] usb 1-1: New USB device found, idVendor=8564, idProduct=1000
[ 2.684818] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.692013] usb 1-1: Product: Mass Storage Device
[ 2.696741] usb 1-1: Manufacturer: JetFlash
[ 2.700968] usb 1-1: SerialNumber: RSAI4ECI

I assumed that this drive becomes available as /dev/sda (since there is no other disc in the system) and could still serve as the rootfs which the kernel expects to be /dev/sda1.


>> For me it was quite the opposite. I tried with a
>> Sandisk drive first and failed miserably.
> That's the first time I heard reports about a Sandisk flash
> drive that failed to be recognized by u-boot!
There always a first, I guess :-)
It actually is recognized but I have a hard time loading anything from it. For the records and your entertainment, here's an example session:

Quote

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:27:19 -0700)
Seagate GoFlex Net

SoC: Kirkwood 88F6281_A1
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 0

GoFlexNet> usb start
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found

GoFlexNet> setenv device '0:1'
GoFlexNet> setenv load_initrd_addr '0x1100000'
GoFlexNet> setenv load_dtb_addr '0x1c00000'
GoFlexNet> setenv dtb_file '/boot/dts/kirkwood-goflexnet.dtb'
GoFlexNet> setenv usb_ready_retry '15'

GoFlexNet> load $bootdev $device $load_dtb_addr $dtb_file
** ext2fs_devread() read error **
** File not found /boot/dts/kirkwood-goflexnet.dtb **
GoFlexNet> usb reset
resetting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... unable to get descriptor, error 20
usb_new_device: Cannot read configuration, skipping device 0781:5151
1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
GoFlexNet> usb reset;
resetting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices...
USB device not accepting new address (error=20)
1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
GoFlexNet> usb stop
stopping USB..
GoFlexNet> usb start
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
GoFlexNet> load $bootdev $device $load_dtb_addr $dtb_file
11897 bytes read in 548 ms (20.5 KiB/s)
GoFlexNet> load $bootdev $device $load_initrd_addr /boot/uInitrd
EHCI timed out on TD - token=0xe008d80
EHCI timed out on TD - token=0xe008d80
EHCI timed out on TD - token=0xe008d80
** ext4fs_devread read error - block
GoFlexNet> usb reset
resetting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... unable to get device descriptor (error=-1)
1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
GoFlexNet> usb reset
resetting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
GoFlexNet> load $bootdev $device $load_initrd_addr /boot/uInitrd
EHCI timed out on TD - token=0x30008d80
EHCI timed out on TD - token=0x30008d80
EHCI timed out on TD - token=0x30008d80
** ext4fs_devread read error - block
GoFlexNet> usb reset
resetting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... unable to get device descriptor (error=-1)
1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
GoFlexNet> usb stop; usb start
stopping USB..
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
GoFlexNet> load $bootdev $device $load_initrd_addr /boot/uInitrd
** ext4fs_devread read error - block
** DI ext2fs read block (indir 2 1)failed. **
EHCI timed out on TD - token=0x40008d80
EHCI timed out on TD - token=0x40008d80
** ext4fs_devread read error - block
GoFlexNet> usb stop; usb start
stopping USB..
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... failed to set default configuration len 0, status 20
1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
GoFlexNet> usb stop; usb start
stopping USB..
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices...
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
GoFlexNet> load $bootdev $device $load_initrd_addr /boot/uInitrd
** ext2fs_devread() read error **
** File not found /boot/uInitrd **

I "solved" the whole issue by using another USB drive so no need to bother with this. Maybe it's because the Sandisk is rather old. It's a 1GB Sandisk Cruzer Micro.


One question from my last post remains open. Even with the USB drive that works with Uboot I see a couple of errors from Linux. The system seems to boot up fine regardless of those erros. Should I worry about them still and maybe try to find yet another drive?

Quote

[ 5.545653] scsi 0:0:0:0: Direct-Access JetFlash Transcend 8GB 8.07 PQ: 0 ANSI: 4
[ 5.560996] sd 0:0:0:0: [sda] 15335424 512-byte logical blocks: (7.85 GB/7.31 GiB)
[ 5.571851] sd 0:0:0:0: [sda] Write Protect is off
[ 5.577712] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 5.594579] sda: sda1 sda2
[ 5.601835] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 5.611197] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 5.873299] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 6.044462] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 6.052793] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 6.059660] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 6.068700] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 98 40 00 00 38 00
[ 6.076079] blk_update_request: I/O error, dev sda, sector 1742912
[ 6.233297] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 6.404333] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 6.412660] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 6.419532] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 6.428573] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 98 80 00 00 90 00
[ 6.435953] blk_update_request: I/O error, dev sda, sector 1742976
[ 6.456102] sda: sda1 sda2
[ 6.783298] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 6.954460] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 6.962787] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 6.969662] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 6.978702] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 99 10 00 00 f0 00
[ 6.986079] blk_update_request: I/O error, dev sda, sector 1743120
[ 7.173301] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 7.344205] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 7.352534] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 7.359401] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 7.368442] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 99 f8 00 00 08 00
[ 7.375821] blk_update_request: I/O error, dev sda, sector 1743352
[ 7.382034] Buffer I/O error on dev sda2, logical block 63, async page read
[ 7.402726] sda: sda1 sda2
[ 7.753299] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 7.924334] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 7.932660] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 7.939535] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 7.948574] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 98 80 00 00 90 00
[ 7.955954] blk_update_request: I/O error, dev sda, sector 1742976
[ 7.978854] sda: sda1 sda2
[ 8.313298] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 8.484206] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 8.492535] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 8.499403] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 8.508443] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 98 40 00 00 38 00
[ 8.515822] blk_update_request: I/O error, dev sda, sector 1742912
[ 8.540978] sda: sda1 sda2
[ 8.853298] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 9.024335] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 9.032662] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 9.039536] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 9.048578] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 99 10 00 00 f0 00
[ 9.055955] blk_update_request: I/O error, dev sda, sector 1743120
[ 9.078644] sda: sda1 sda2
[ 9.423299] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 9.594335] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 9.602661] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 9.609537] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 9.618577] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 99 10 00 00 f0 00
[ 9.625955] blk_update_request: I/O error, dev sda, sector 1743120
[ 9.632214] random: nonblocking pool is initialized
[ 9.653592] sda: sda1 sda2
[ 10.003298] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 10.174207] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 10.182533] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 10.189408] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 10.198449] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 98 20 00 00 18 00
[ 10.205832] blk_update_request: I/O error, dev sda, sector 1742880
[ 10.229106] sda: sda1 sda2
[ 10.563298] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 10.734207] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 10.742535] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 10.749407] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 10.758447] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 98 78 00 00 08 00
[ 10.765825] blk_update_request: I/O error, dev sda, sector 1742968
[ 10.793230] sda: sda1 sda2
[ 11.163300] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 11.334336] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 11.342659] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 11.349526] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 11.358567] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 99 10 00 00 f0 00
[ 11.365946] blk_update_request: I/O error, dev sda, sector 1743120
[ 11.563300] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 11.734204] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 11.742532] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 11.749406] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 11.758447] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 9b d0 00 00 08 00
[ 11.765826] blk_update_request: I/O error, dev sda, sector 1743824
[ 11.784599] sda: sda1 sda2
[ 12.113300] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 12.284460] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 12.292790] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 12.299664] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 12.308710] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 99 10 00 00 f0 00
[ 12.316086] blk_update_request: I/O error, dev sda, sector 1743120
[ 12.338770] sda: sda1 sda2
[ 12.643300] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 12.814207] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 12.822530] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 12.829396] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 12.838438] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 98 08 00 00 08 00
[ 12.845816] blk_update_request: I/O error, dev sda, sector 1742856
[ 12.918228] sda: sda1 sda2
[ 13.293302] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 13.464335] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 13.472660] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 13.479539] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 13.488584] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 98 80 00 00 90 00
[ 13.495962] blk_update_request: I/O error, dev sda, sector 1742976
[ 13.516229] sda: sda1 sda2
[ 13.843298] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 14.014460] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 14.022786] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 14.029661] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 14.038701] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 00 09 10 00 00 f0 00
[ 14.046080] blk_update_request: I/O error, dev sda, sector 2320
[ 14.068767] sda: sda1 sda2
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
modprobe: module ext3 not found in modules.dep
Begin: Checking root file system ... fsck from util-linux 2.25.2
fsck: error 2 (No such file or directory) while executing fsck.ext3 for /dev/sda1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[ 20.574760] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[ 20.592651] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[ 21.836509] systemd-udevd[297]: starting version 215
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[ 22.342640] orion_wdt: Initial timeout 21 sec
[ 22.384877] marvell-cesa: probe of f1030000.crypto failed with error -524
[ 22.803304] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 22.974211] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 22.982536] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 22.989413] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 22.998453] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 98 20 00 00 18 00
[ 23.005832] blk_update_request: I/O error, dev sda, sector 1742880
[ 23.133295] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 23.304206] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 23.312534] sd 0:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 23.319401] sd 0:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 23.328441] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 1a 98 88 00 00 08 00
[ 23.335822] blk_update_request: I/O error, dev sda, sector 1742984
[ 23.342033] Buffer I/O error on dev sda2, logical block 17, async page read
done.
[ ok ] Activating swap...done.
[ 24.046992] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 14512/54432 files, 106577/217600 blocks
done.
[ 24.228903] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.

Edit: I think I can answer that last question myself now. The errors are serious and for some boot ups Linux cannot make it through. Even if it does boot up any access to the USB drive may result in similar errors and worse

Quote

[ 783.923342] usb 1-1: reset high-speed USB device number 2 using orion-ehci
[ 784.094214] sd 1:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 784.102547] sd 1:0:0:0: [sda] tag#0 Sense Key : Unit Attention [current]
[ 784.109427] sd 1:0:0:0: [sda] tag#0 Add. Sense: Not ready to ready change, medium may have changed
[ 784.118470] sd 1:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 0e 79 f0 00 00 10 00
[ 784.125849] blk_update_request: I/O error, dev sda, sector 948720
[ 784.134575] EXT4-fs error (device sda1): __ext4_get_inode_loc:3981: inode #31362: block 131090: comm apt-get: unable to read itable block
[ 784.147293] Aborting journal on device sda1-8.
[ 784.152014] JBD2: Error -5 detected when updating journal superblock for sda1-8.
[ 784.159969] EXT4-fs (sda1): Remounting filesystem read-only

This system sure is picky about the USB drives it cooperates with :-/



Edited 1 time(s). Last edit at 04/06/2017 04:46PM by Balduin.
Re: Boot problems with GoFlexNet – kernel command ignored, USB not available
April 06, 2017 10:31PM
Balduin,

That's abnormal. Either you have power supply problem, or the Sandisk thumb drive needs to be reformatted. Try wipe out all partitions and recreate rootfs partition.

I dont think uboot is that picky.

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



Edited 1 time(s). Last edit at 04/06/2017 10:32PM by bodhi.
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: