Skip to contentSkip to conversation

resetting compact flash card in u-boot

U-Boot-Users Tom Otermans 2 participants 2 messages Apr 27, 2005

lore
Share & tools
lore
#0 lore raw

Hello List,

I have a question about resetting compact flash cards. We are currently working on an pxa-255 system. From u-boot (1.0.0) a kernel image is loaded (on a fat partition) and booted. The problem starts after reading this image.
The linux kernel (2.4.26) is started and tries to couple the root filesystem

from the cf (parition 2, ext2).
With industrial grade cf cards from sandisk, this process works fine, but non
industrial grade cards can't read the data from the cf.
If I do an ide reset, and load the image from the device via the fatload command, _remove_ the cf and than bootm the image, the cf card can be read in
the kernel.
So reseting the cf card somehow is what I have to do. Thus I tried to reset it
by lowering the reset pin of the cf (lower pin 41 in true ide mode). But the

problem still appears.

Does anyone had these same problems with non industrial grade cf cards? Or any
idea of how to reset the card in the bootloader to a same state as from inserting the card?

Thanks in advance,

Tom

Signature · 3 lines
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20050427/e38f8dff/attachment.htm 
#1 lore raw
Quoted 4 lines · In message <[email protected]> you wrote:

If I do an ide reset, and load the image from the device via the fatload command, _remove_ the cf and than bootm the image, the cf card can be read in the kernel.

I don't understand. How can the kernel access the CF card after you removed it?

Quoted 3 lines

So reseting the cf card somehow is what I have to do. Thus I tried to reset it by lowering the reset pin of the cf (lower pin 41 in true ide mode). But the problem still appears.

What happens if you perform an "ide reset" command instead?

Quoted 1 line

Does anyone had these same problems with non industrial grade cf cards? Or any

No, never had any such problems on any cards.

Quoted 5 lines

------_=_NextPart_001_01C54B1E.3037EA00

Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">

And please: never post HTML to this list!

Best regards,

Wolfgang Denk

Signature · 7 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
There is a theory which states that if ever anyone discovers  exactly
what  the  Universe is for and why it is here, it will instantly dis-
appear and be replaced by something even more  bizarre  and  inexpli-
cable.  There  is  another  theory which states that this has already
happened.    -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"