Skip to contentSkip to conversation

USB key not recognized

U-Boot Amandeep Bhullar 3 participants 5 messages Apr 21, 2009

lore
Share & tools
lore
#0 lore raw

Hi

I am using Atmel AT91SAM9263-EK and running u-boot 1.1.5, it fails to recognize a USB key of size 1GB and formatted in FAT.

This is what is happening:

U-boot> usb start
(Re)start USB...
USB: scanning bus for devices...
USB device not responding, giving up (status=20)
2 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found

I have tried U-boot version 1.3.4 and see the same issue. I am using U-boot from the linux demo that came with the atmel kit.

Thanks for helping.

Aman.

#1 lore raw

Hello,

Quoted 2 lines

I am using Atmel AT91SAM9263-EK and running u-boot 1.1.5, it fails to recognize a USB key of size 1GB and formatted in FAT.

Yep, known problem.

Quoted 10 lines

This is what is happening:
U-boot> usb start
(Re)start USB...
USB: ? scanning bus for devices...
? ? ?USB device not responding, giving up (status=20)
2 USB Device(s) found
? ? ? scanning bus for storage devices... 0 Storage Device(s) found

I have tried U-boot version 1.3.4 and see the same issue. I am using U-boot from the linux demo that came with the atmel kit.

Please, move to the latest release (e.g. 2009.03), it has a lot of problems solved with USB and sam926x.
(Notice also that the Atmel kit provides bootstrap code with a PLLB configured wrong for sam9263, which is solved in latest U-boot releases as well)

Kind Regards,

Remy

#2 lore raw

Thanks for replying, Remy. I appreciate it. I just downloaded, built and used U-boot version 2009.03. It does see the USB key now.

U-Boot> usb start
(Re)start USB...
USB: scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found

Another question - How can I boot from this USB key. Can I put Debian 5.0 Lenny image on USB key and boot AT91SAM9263-EK from there? If yes, how would I do it? I am new to Linux. Many thanks for your help.

#3 lore raw

Hello,

2009/4/21 Amandeep Bhullar <[email protected]>:

Quoted 2 lines

Thanks for replying, Remy. I appreciate it. I just downloaded, built and used U-boot version 2009.03. It does see the USB key now.

as expected ;-)

Quoted 7 lines

U-Boot> usb start
(Re)start USB...
USB:?? scanning bus for devices... 2 USB Device(s) found ?????? scanning bus for storage devices... 1 Storage Device(s) found

Another question - How can I boot from this USB key. Can I put Debian 5.0 Lenny image on USB key and boot AT91SAM9263-EK from there?

Never tried it...
At least it depends on if this distro is compiled for ARM-v5 (or v4), and if the (debian)kernel has sam9263-ek board support enabled.

Quoted 1 line

If yes, how would I do it? I am new to Linux. Many thanks for your help.

You ask me here to mail you the entire manual? For starters, you might take a look at:
* http://www.linux4sam.org/twiki/bin/view/Linux4SAM/
* http://www.denx.de/wiki/DULG/Manual
* And of course the Debian manuals.

Kind Regards,

Remy

#4 lore raw
In reply to Amandeep Bhullar

Dear Amandeep,

Quoted 4 lines · In message <[email protected]> you…

Another question - How can I boot from this USB key. Can I put Debian 5.0 Lenny image on USB key and boot AT91SAM9263-EK from there? If yes, how would I do it? I am new to Linux. Many thanks for your help.

You can do this but you better try to understand what you are doing first. A USB stick is not a harddisk drive, and a standard distribution like Debian Lenny is NOT made for use on devices (like USB sticks) that have only a limited number of write cycles per block.

At least you should study carefully what others are doing and tweak system behaviour to minimize the number of write operations to the root file system (start looking at things like the "noatime" mount options, etc.).

Then you will notice that you have to make the kernel wait for the root device (the USB stick) to become ready - normally the kernel will try to mount the root file system long before the USB mass storage devices have been initialized. There are several ways around to acchive this - look around.

Note that all these things are (1) advanced topics for embedded systems [so you probably want to consult an expert], and they are (2) completely off topic on this U-Boot mailing list.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Life would be so much easier if we could  just  look  at  the  source
code.                                                   -- Dave Olson