Not Booting with 2nd USB attached. August 21, 2014 12:28PM |
Registered: 9 years ago Posts: 12 |
DRAM: 128 MiB NAND: 128 MiB In: serial Out: serial Err: serial Net: Led: GREEN mii0 Main Loop Hit any key to stop autoboot: 0 (Re)start USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 4 USB Device(s) found scanning usb for storage devices... 2 Storage Device(s) found ** File not found /boot/uImage ** ** File not found /boot/uInitrd ** ** File not found /boot/dts/ox820-pogoplug-classic.dtb ** Wrong Image Format for bootm command Led: ORANGE (Failed) ERROR: can't get kernel image! stopping USB.. resetting ...
autoload=no baudrate=115200 bootargs=console=ttyS0,115200n8 bootcmd=run dt_bootcmd_usb bootdelay=5 console=console=ttyS0,115200n8 dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr dt_load_dtb=ext2load usb 0:1 0x62c00000 /boot/dts/ox820-pogoplug-classic.dtb dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot dtb_addr=0x62c00000 ethact=mii0 ethaddr=00:25:31:02:4d:03 mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) stderr=serial stdin=serial stdout=serial uimage_addr=0x60500000 uinitrd_addr=0x60e00000 usb_device=0:1 usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10
Re: Not Booting with 2nd USB attached. August 21, 2014 03:43PM |
Admin Registered: 13 years ago Posts: 18,569 |
dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImageWhen you have 2 USB drives attached, which ever was detected first is assigned 0:1, the other is 1:1. So you will need some logic in the envs to select the correct drive. The default envs are only the basic steps to get it working with one drive.
>usb start then >usb info or >usb partMost likely you will find out that the rootfs drive is 1:1.
Re: Not Booting with 2nd USB attached. August 21, 2014 05:27PM |
Admin Registered: 13 years ago Posts: 18,569 |
usb_device=0:1 mtdparts=mtdparts=41000000.nand:14m(boot),-(data) 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_init=run usb_scan; setenv usb_root LABEL=rootfs usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=$usb_root rootdelay=10 mtdparts=$mtdparts dt_usb_bootcmd=run usb_init; run usb_set_bootargs; run dt_usb_boot dt_load_initrd=ext2load usb $usb_device $uinitrd_addr /boot/uInitrd dt_load_uimage=ext2load usb $usb_device $uimage_addr /boot/uImage
tune2fs -L rootfs /dev/sdxx
Re: Not Booting with 2nd USB attached. August 21, 2014 06:40PM |
Registered: 9 years ago Posts: 226 |
Re: Not Booting with 2nd USB attached. August 21, 2014 10:49PM |
Registered: 9 years ago Posts: 12 |
> usb_device=0:1 > mtdparts=mtdparts=41000000.nand:14m(boot),-(data) > > 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_init=run usb_scan; setenv usb_root > LABEL=rootfs > usb_set_bootargs=setenv bootargs > console=ttyS0,115200 root=$usb_root rootdelay=10 > mtdparts=$mtdparts > > dt_usb_bootcmd=run usb_init; run usb_set_bootargs; > run dt_usb_boot > dt_load_initrd=ext2load usb $usb_device > $uinitrd_addr /boot/uInitrd > dt_load_uimage=ext2load usb $usb_device > $uimage_addr /boot/uImage > >>
> tune2fs -L rootfs /dev/sdxx >
[ 3.675013] sda: sda1 [ 3.683909] sd 1:0:0:0: [sda] Attached SCSI removable disk 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 unknown not found in modules.dep mount: can't read '/etc/fstab': No such file or directory Begin: Running /scripts/local-bottom ... done. done. Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory done. Target filesystem doesn't have requested /sbin/init. No init found. Try passing init= bootarg. modprobe: module i8042 not found in modules.dep modprobe: module atkbd not found in modules.dep modprobe: module uhci-hcd not found in modules.dep modprobe: module ohci-hcd not found in modules.dep BusyBox v1.20.2 (Debian 1:1.20.0-7) built-in shell (ash) Enter 'help' for a list of built-in commands. /bin/sh: can't access tty; job control turned off (initramfs)
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=$usb_root rootdelay=10 mtdparts=$mtdparts
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root= rootdelay=10 mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
Re: Not Booting with 2nd USB attached. August 22, 2014 12:11AM |
Admin Registered: 13 years ago Posts: 18,569 |
setenv usb_init 'run usb_scan; setenv usb_root LABEL=rootfs'
setenv mtdparts 'mtdparts=41000000.nand:14m(boot),-(data)' setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=$usb_root rootdelay=10 rootfstype=ext3 mtdparts=$mtdparts'
cat /proc/cmdline console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 rootfstype=ext3 mtdparts=41000000.nand:14m(boot),-(data)
> setenv usb_init 'run usb_scan; setenv usb_root LABEL=rootfs' > run usb_init > printenv usb_root
Re: Not Booting with 2nd USB attached. August 23, 2014 12:50PM |
Registered: 9 years ago Posts: 12 |
> setenv usb_init 'run usb_scan; setenv usb_root > LABEL=rootfs' >>
> setenv mtdparts > 'mtdparts=41000000.nand:14m(boot),-(data)' > setenv usb_set_bootargs 'setenv bootargs > console=ttyS0,115200 root=$usb_root rootdelay=10 > rootfstype=ext3 mtdparts=$mtdparts' >>
> cat /proc/cmdline > console=ttyS0,115200 root=LABEL=rootfs > rootdelay=10 rootfstype=ext3 > mtdparts=41000000.nand:14m(boot),-(data) >>
> > setenv usb_init 'run usb_scan; setenv usb_root > LABEL=rootfs' > > run usb_init > > printenv usb_root >
Re: Not Booting with 2nd USB attached. August 23, 2014 03:47PM |
Admin Registered: 13 years ago Posts: 18,569 |
Quote
If the storage drive is plugged in the front usb, then the OS flash drive can be plugged into any of the back 3 usb slots and it works. But if the storage drive is plugged into any of the back usb slots then it will not work. The one exception is the usb slot right obove the network plug. So basically if the OS flash drive is plugged into the USB slot above the network port, then you can have a storage drive in any other USB port and still boot
Re: Not Booting with 2nd USB attached. August 24, 2014 06:57AM |
Registered: 9 years ago Posts: 12 |
>Quote
If the storage drive is plugged in the
> front usb, then the OS flash drive can be plugged
> into any of the back 3 usb slots and it works. But
> if the storage drive is plugged into any of the
> back usb slots then it will not work. The one
> exception is the usb slot right obove the network
> plug. So basically if the OS flash drive is
> plugged into the USB slot above the network port,
> then you can have a storage drive in any other USB
> port and still boot
baudrate=115200 bootargs=console=ttyS0,115200n8 bootcmd=run dt_bootcmd_usb bootdelay=5 console=console=ttyS0,115200n8 dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr dt_load_dtb=ext2load usb 0:1 0x62c00000 /boot/dts/ox820-pogoplug-classic.dtb dt_load_initrd=ext2load usb $usb_device $uinitrd_addr /boot/uInitrd dt_load_uimage=ext2load usb $usb_device $uimage_addr /boot/uImage dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm dt_usb_bootcmd=run usb_init; run usb_set_bootargs; run dt_usb_boot dtb_addr=0x62c00000 ethact=mii0 ethaddr=00:25:31:02:4d:03 mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) stderr=serial stdin=serial stdout=serial uimage_addr=0x60500000 uinitrd_addr=0x60e00000 usb_device=0:1 usb_init=run usb_scan; setenv usb_root LABEL=ROOTFS 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=ttyS0,115200 root=$usb_root rootdelay=10 rootfstype=ext3 mtdparts=$mtdparts
Re: Not Booting with 2nd USB attached. August 24, 2014 03:49PM |
Admin Registered: 13 years ago Posts: 18,569 |
e2label /dev/sda1
Re: Not Booting with 2nd USB attached. August 24, 2014 07:44PM |
Registered: 9 years ago Posts: 12 |
Re: Not Booting with 2nd USB attached. August 24, 2014 08:12PM |
Admin Registered: 13 years ago Posts: 18,569 |
Re: Not Booting with 2nd USB attached. August 25, 2014 07:00AM |
Registered: 9 years ago Posts: 12 |
root@POGOPLUG:~# fw_printenv baudrate=115200 bootargs=console=ttyS0,115200n8 bootcmd=run dt_bootcmd_usb bootdelay=5 console=console=ttyS0,115200n8 dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr dt_load_dtb=ext2load usb 0:1 0x62c00000 /boot/dts/ox820-pogoplug-classic.dtb dt_load_initrd=ext2load usb $usb_device $uinitrd_addr /boot/uInitrd dt_load_uimage=ext2load usb $usb_device $uimage_addr /boot/uImage dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm dt_usb_bootcmd=run usb_init; run usb_set_bootargs; run dt_usb_boot dtb_addr=0x62c00000 ethact=mii0 ethaddr=00:25:31:02:4d:03 mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) stderr=serial stdin=serial stdout=serial uimage_addr=0x60500000 uinitrd_addr=0x60e00000 usb_device=0:1 usb_init=run usb_scan; setenv usb_root LABEL=ROOTFS 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=ttyS0,115200 root=$usb_root rootdelay=10 rootfstype=ext3 mtdparts=$mtdparts
root@POGOPLUG:~# cat /etc/fstab # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> /dev/root / ext3 noatime,errors=remount-ro 0 1 tmpfs /tmp tmpfs defaults 0 0
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=15023,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620) tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=12224k,mode=755) /dev/disk/by-label/ROOTFS on / type ext3 (rw,noatime,errors=remount-ro,user_xattr,acl,barrier=1,data=ordered) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=24440k) tmpfs on /tmp type tmpfs (rw,relatime) rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
U-Boot SPL 2013.10 (Apr 27 2014 - 19:08:27) Boot device: NAND Attempting to set PLLA to 800 MHz ... plla_ctrl0 : 0000030a plla_ctrl1 : 00400000 plla_ctrl2 : 007f0068 plla_ctrl3 : 00000193 PLLA Set U-Boot 2013.10-tld-3 (May 15 2014 - 14:54:14) for OXNAS DRAM: 128 MiB NAND: 128 MiB In: serial Out: serial Err: serial Net: Led: GREEN mii0 Main Loop Hit any key to stop autoboot: 0 (Re)start USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 4 USB Device(s) found scanning usb for storage devices... Device NOT ready Request Sense returned 02 3A 00 3 Storage Device(s) found ** File not found /boot/uImage ** ** Bad device size - usb 1 ** 1 bytes read in 156 ms (0 Bytes/s) Found bootable drive on usb 2:1 7708972 bytes read in 375 ms (19.6 MiB/s) 1913968 bytes read in 206 ms (8.9 MiB/s) ** File not found /boot/dts/ox820-pogoplug-classic.dtb ** ## Booting kernel from Legacy Image at 60500000 ... Image Name: Linux-3.15.3-oxnas-tld-1 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 7708908 Bytes = 7.4 MiB Load Address: 60008000 Entry Point: 60008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 60e00000 ... Image Name: initramfs-3.15.3-oxnas-tld-1 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 1913904 Bytes = 1.8 MiB Load Address: 60000000 Entry Point: 60000000 Verifying Checksum ... OK ERROR: Did not find a cmdline Flattened Device Tree Could not find a valid device tree stopping USB.. resetting ...
Re: Not Booting with 2nd USB attached. August 25, 2014 03:16PM |
Admin Registered: 13 years ago Posts: 18,569 |
Quote
scanning usb for storage devices... Device NOT ready
Quote
Found bootable drive on usb 2:1
7708972 bytes read in 375 ms (19.6 MiB/s)
1913968 bytes read in 206 ms (8.9 MiB/s)
** File not found /boot/dts/ox820-pogoplug-classic.dtb **
## Booting kernel from Legacy Image at 60500000 ...
Image Name: Linux-3.15.3-oxnas-tld-1
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 7708908 Bytes = 7.4 MiB
Load Address: 60008000
Entry Point: 60008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 60e00000 ...
Image Name: initramfs-3.15.3-oxnas-tld-1
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 1913904 Bytes = 1.8 MiB
Load Address: 60000000
Entry Point: 60000000
Verifying Checksum ... OK
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
Quote
Found bootable drive on usb 2:1
Quote
** File not found /boot/dts/ox820-pogoplug-classic.dtb **
Re: Not Booting with 2nd USB attached. August 25, 2014 07:37PM |
Registered: 9 years ago Posts: 12 |