[Buildroot] Booting from USB Memory Stick

Hodgson, Simon Simon.Hodgson at nortechonline.co.uk
Wed May 7 10:20:21 UTC 2008


I worked it out in the end, you need to add "rootdelay=10" to the bootargs so the Kernel has time to finish loading and initialising the USB Memory Stick and setup /dev/sda1 before you can boot off it.

Thanks


Simon

-----Original Message-----
From: buildroot-bounces at uclibc.org [mailto:buildroot-bounces at uclibc.org] On Behalf Of Hodgson, Simon
Sent: 06 May 2008 18:25
To: buildroot at uclibc.org
Subject: [Buildroot] Booting from USB Memory Stick

Hi There,

I've got a board based around  the Atmel AT91SAM9260, due to limitations in the amount of flash on the board (only 4MB) I'd like to boot of a USB Memory Stick instead.

The plan is to format the memory stick with ext2 and copy my rootfs onto there. The Kernel will go into the 4MB DataFlash on the board. From u-boot I'll set bootargs so it includes "root=/dev/sda1"

Only when I boot the device, it sees the memory stick but doesn't set "/dev/sda1" up.

Extract of the relevant Kernel boot output provided below (full text attached):

at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 20, io mem 0x00500000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usb usb1: Product: AT91 OHCI
usb usb1: Manufacturer: Linux 2.6.24.4 ohci_hcd
usb usb1: SerialNumber: at91
Initializing USB Mass Storage driver...
usb 1-1: new full speed USB device using at91_ohci and address 2
usb 1-1: configuration #1 chosen from 1 choice
usb 1-1: Product: DataTraveler 2.0
usb 1-1: Manufacturer: Kingston
usb 1-1: SerialNumber: 89900000000000000000028E
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core

I've got all the USB stuff compiled into the kernel, not set as modules, but maybe I'm missing a Kernel option?

Any ideas anyone?

Many Thanks


Simon



More information about the buildroot mailing list