Scan all USB devices and boot from the first bootable drive. August 09, 2010 10:22AM |
Admin Registered: 14 years ago Posts: 304 |
usb_scan_list='1 2 3 4' 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_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 start; if ext2load usb 0:1 0x800000 /boot/uImage; then setenv usb_device 0:1; setenv usb_root /dev/sda1; elif ext2load usb 1:1 0x800000 /boot/uImage; then setenv usb_device 1:1; setenv usb_root /dev/sdb1; elif ext2load usb 2:1 0x800000 /boot/uImage; then setenv usb_device 2:1; setenv usb_root /dev/sdc1; elif ext2load usb 3:1 0x800000 /boot/uImage; then setenv usb_device 3:1; setenv usb_root /dev/sdd1; fi;
Re: Scan all USB devices and boot from the first bootable drive. August 09, 2010 10:38AM |
Registered: 14 years ago Posts: 5 |
Re: Scan all USB devices and boot from the first bootable drive. August 09, 2010 11:34AM |
Admin Registered: 14 years ago Posts: 304 |
Re: Scan all USB devices and boot from the first bootable drive. August 16, 2010 10:37AM |
Registered: 14 years ago Posts: 136 |
Re: Scan all USB devices and boot from the first bootable drive. August 22, 2010 05:41PM |
Registered: 14 years ago Posts: 136 |
Quote
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 4 USB Device(s) found
scanning bus for storage devices... 2 Storage Device(s) found
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - usb 0:1 **
** Can not find directory. **
** Error ext2fs_ls() **
** Block device usb 2 not supported
** Block device usb 3 not supported
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - usb 0:1 **
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - usb 0:1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
resetting ...
Re: Scan all USB devices and boot from the first bootable drive. August 22, 2010 05:49PM |
Admin Registered: 14 years ago Posts: 304 |
Re: Scan all USB devices and boot from the first bootable drive. August 22, 2010 06:08PM |
Registered: 14 years ago Posts: 136 |
Re: Scan all USB devices and boot from the first bootable drive. August 22, 2010 09:41PM |
Admin Registered: 14 years ago Posts: 304 |
Re: Scan all USB devices and boot from the first bootable drive. September 15, 2010 02:53AM |
Registered: 14 years ago Posts: 7 |
ik
Re: Scan all USB devices and boot from the first bootable drive. September 16, 2010 07:18PM |
Re: Scan all USB devices and boot from the first bootable drive. September 18, 2010 02:38PM |
Registered: 14 years ago Posts: 11 |
Re: Scan all USB devices and boot from the first bootable drive. September 19, 2010 09:03AM |
Registered: 14 years ago Posts: 11 |
usb start; if ext2load usb 3:1 0x800000 /boot/uImage; then setenv usb_device 3:1; setenv usb_root /dev/sdd1; elif ext2load usb 2:1 0x800000 /boot/uImage; then setenv usb_device 2:1; setenv usb_root /dev/sdc1; elif ext2load usb 1:1 0x800000 /boot/uImage; then setenv usb_device 1:1; setenv usb_root /dev/sdb1; elif ext2load usb 0:1 0x800000 /boot/uImage; then setenv usb_device 0:1; setenv usb_root /dev/sda1; fi;
Johannes
Re: Scan all USB devices and boot from the first bootable drive. September 19, 2010 10:10AM |
Re: Scan all USB devices and boot from the first bootable drive. September 19, 2010 12:01PM |
Registered: 14 years ago Posts: 11 |
Re: Scan all USB devices and boot from the first bootable drive. September 20, 2010 11:28AM |
Registered: 14 years ago Posts: 11 |
Johannes
Re: Scan all USB devices and boot from the first bootable drive. September 20, 2010 11:45AM |
Re: Scan all USB devices and boot from the first bootable drive. September 20, 2010 12:14PM |
Registered: 14 years ago Posts: 11 |
Johannes
Re: Scan all USB devices and boot from the first bootable drive. September 20, 2010 12:31PM |
Re: Scan all USB devices and boot from the first bootable drive. September 21, 2010 02:19PM |
Registered: 14 years ago Posts: 11 |
U-Boot 2010.06-00695-gbd23130-dirty (Aug 30 2010 - 23:04:56) Marvell-Dockstar/Pogoplug by Jeff Doozan Hit any key to stop autoboot: 0 (Re)start USB... USB: Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 3 USB Device(s) found scanning bus for storage devices... 1 Storage Device(s) found Loading file "/boot/uImage" from usb device 0:1 (usbda1) 1986336 bytes read Loading file "/boot/uImage" from usb device 0:1 (usbda1) 1986336 bytes read Loading file "/boot/uInitrd" from usb device 0:1 (usbda1) ** File not found /boot/uInitrd ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-2.6.35.1-dockstar-00165-g6 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1986272 Bytes = 1.9 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ...
U-Boot 2010.06-00695-gbd23130-dirty (Aug 30 2010 - 23:04:56) Marvell-Dockstar/Pogoplug by Jeff Doozan Hit any key to stop autoboot: 0 (Re)start USB... USB: Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 4 USB Device(s) found scanning bus for storage devices... 2 Storage Device(s) found Loading file "/boot/uImage" from usb device 0:1 (usbda1) Failed to mount ext2 filesystem... ** Bad ext2 partition or disk - usb 0:1 ** Loading file "/boot/uImage" from usb device 1:1 (usbdb1) 1986336 bytes read Loading file "/boot/uImage" from usb device 1:1 (usbdb1) 1986336 bytes read Loading file "/boot/uInitrd" from usb device 1:1 (usbdb1) ** File not found /boot/uInitrd ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-2.6.35.1-dockstar-00165-g6 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1986272 Bytes = 1.9 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ...
** File not found /boot/uInitrd
##Error: "usb_load_uImage" not defined
Re: Scan all USB devices and boot from the first bootable drive. September 21, 2010 03:17PM |
Registered: 14 years ago Posts: 18 |
Johannes
Re: Scan all USB devices and boot from the first bootable drive. September 21, 2010 05:19PM |
Re: Scan all USB devices and boot from the first bootable drive. September 22, 2010 01:15PM |
Registered: 14 years ago Posts: 11 |
Marvell>> usb start usb start (Re)start USB... USB: Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 4 USB Device(s) found scanning bus for storage devices... 2 Storage Device(s) found Marvell>> setenv usb_device 1:1; setenv usb_device 1:1; Marvell>> setenv usb_root /dev/sdd1; setenv usb_root /dev/sdd1; Marvell>> run usb_load_uimage; run usb_load_uimage; Loading file "/boot/uImage" from usb device 1:1 (usbdb1) 1986336 bytes read Marvell>> run set_bootargs_usb; run set_bootargs_usb; Marvell>> run usb_boot; run usb_boot; Loading file "/boot/uInitrd" from usb device 1:1 (usbdb1) ** File not found /boot/uInitrd ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-2.6.35.1-dockstar-00165-g6 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1986272 Bytes = 1.9 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ...
Marvell>> usb start usb start (Re)start USB... USB: Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 4 USB Device(s) found scanning bus for storage devices... 2 Storage Device(s) found Marvell>> setenv usb_device 0:1; setenv usb_device 0:1; Marvell>> setenv usb_root /dev/sdd1; setenv usb_root /dev/sdd1; Marvell>> run usb_load_uimage; run usb_load_uimage; Loading file "/boot/uImage" from usb device 0:1 (usbda1) Failed to mount ext2 filesystem... ** Bad ext2 partition or disk - usb 0:1 ** Marvell>> run set_bootargs_usb; run set_bootargs_usb; Marvell>> run usb_boot; run usb_boot; Loading file "/boot/uInitrd" from usb device 0:1 (usbda1) Failed to mount ext2 filesystem... ** Bad ext2 partition or disk - usb 0:1 ** Wrong Image Format for bootm command ERROR: can't get kernel image! Marvell>>
Marvell>> usb start usb start (Re)start USB... USB: Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 4 USB Device(s) found scanning bus for storage devices... 2 Storage Device(s) found Marvell>> setenv usb_device 2:1; setenv usb_device 2:1; Marvell>> setenv usb_root /dev/sdd1; setenv usb_root /dev/sdd1; Marvell>> run usb_load_uimage; run usb_load_uimage; ** Block device usb 2 not supported Marvell>> run set_bootargs_usb; run set_bootargs_usb; Marvell>> run usb_boot; run usb_boot; ** Block device usb 2 not supported Wrong Image Format for bootm command ERROR: can't get kernel image! Marvell>>
Marvell>> usb start usb start (Re)start USB... USB: Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 4 USB Device(s) found scanning bus for storage devices... 2 Storage Device(s) found Marvell>> setenv usb_device 3:1; setenv usb_device 3:1; Marvell>> setenv usb_root /dev/sdd1; setenv usb_root /dev/sdd1; Marvell>> run usb_load_uimage; run usb_load_uimage; ** Block device usb 3 not supported Marvell>> run set_bootargs_usb; run set_bootargs_usb; Marvell>> run usb_boot; run usb_boot; ** Block device usb 3 not supported Wrong Image Format for bootm command ERROR: can't get kernel image! Marvell>>
Nero
Re: Scan all USB devices and boot from the first bootable drive. September 24, 2010 03:16AM |
Nero
Re: Scan all USB devices and boot from the first bootable drive. September 24, 2010 10:04AM |
Re: Scan all USB devices and boot from the first bootable drive. September 26, 2010 02:14PM |
Registered: 14 years ago Posts: 11 |
Nero
Re: Scan all USB devices and boot from the first bootable drive. September 27, 2010 12:49PM |
Re: Scan all USB devices and boot from the first bootable drive. September 27, 2010 04:00PM |
Registered: 13 years ago Posts: 37 |
Nero
Re: Scan all USB devices and boot from the first bootable drive. September 28, 2010 09:15AM |
Re: Scan all USB devices and boot from the first bootable drive. September 28, 2010 04:16PM |
Registered: 13 years ago Posts: 37 |
Re: Scan all USB devices and boot from the first bootable drive. September 28, 2010 06:09PM |
Registered: 14 years ago Posts: 41 |