Skip to contentSkip to conversation

Problem with SD card and ext2ls

U-Boot javier Martin 3 participants 8 messages Nov 20, 2009 – Nov 23, 2009

lore
Share & tools
lore
#0 lore raw

I have an SD card with an ext2 partition and I am trying to access it through ext2ls command but this is what I get:

# ext2ls mmc 0:1 /
** Bad partition - mmc 0:1 **

I have read some previous mails of some people complaining about a similar problem:
http://www.mail-archive.com/u-boot at lists.denx.de/msg12776.html

Here also Wolfgang Denk says that ext2 is currently broken in u-boot for newer ext2 images.

Is this still true or has it been fixed since then?

Thank you.

Signature · 7 lines
Javier Martin
Vista Silicon S.L.
CDTUC - FASE C - Oficina S-345
Avda de los Castros s/n
39005- Santander. Cantabria. Spain
+34 942 25 32 60
www.vista-silicon.com
#1 lore raw

Also if I issue a "mmc rescan 0" I get the following:

# mmc rescan 0
# ext2ls mmc 0:1 /
get partition info called
raise: Signal # 8 caught
raise: Signal # 8 caught
raise: Signal # 8 caught

What could be happening here?

Thank you.

Signature · 7 lines
Javier Martin
Vista Silicon S.L.
CDTUC - FASE C - Oficina S-345
Avda de los Castros s/n
39005- Santander. Cantabria. Spain
+34 942 25 32 60
www.vista-silicon.com
#2 lore raw

Looking deeply in the list I found someone that had the same problem with an AT91:
http://www.mail-archive.com/u-boot at lists.denx.de/msg23442.html

I submit here all useful information about my case.

Board: imx27lite
Toolchains: eldk-4.2
GIT commit: f67066b6b0740b826ed862615c5ab022aaf4779a SD card formatted in ext2 with gparted.

How to reproduce:

=> mmc rescan 0
=> ext2ls mmc 0:1 /
<2, 0, 204>
ext2fs read inode 2
ext2fs read 0 group descriptor (blkno 2 blkoff 0)
<4, 0, 32>
raise: Signal # 8 caught
ext2fs read inode blkno 0 blkoff 0
raise: Signal # 8 caught
raise: Signal # 8 caught
ext2fs read inode blkno 6 blkoff 0
<12, 0, 128>

Signature · 7 lines
Javier Martin
Vista Silicon S.L.
CDTUC - FASE C - Oficina S-345
Avda de los Castros s/n
39005- Santander. Cantabria. Spain
+34 942 25 32 60
www.vista-silicon.com
#3 lore raw
In reply to javier Martin

Dear javier Martin,

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

Also if I issue a "mmc rescan 0" I get the following:

# mmc rescan 0
# ext2ls mmc 0:1 /
get partition info called
raise: Signal # 8 caught
raise: Signal # 8 caught
raise: Signal # 8 caught

What could be happening here?

Sorry, the batteries of my crystal ball are running low...

It _might_ help if you provided a _little_ information, at least the most vital pieces like which architecture / board you are speaking of, and which exact version (which git commit id) you are running.

Best regards,

Wolfgang Denk

Signature · 4 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
Don't hit a man when he's down - kick him; it's easier.
#4 lore raw
Quoted 5 lines

Sorry, the batteries of my crystal ball are running low...

It _might_ help if you provided a _little_ information, at least the most vital pieces like which architecture / board you are speaking of, and which exact version (which git commit id) you are running.

Please see my last mail. I sent three mails without reply and maybe this lead to some confusion, sorry. In that, my previous mail, you have all the information: Board, SD card, how to reproduce...

Thank you.

Signature · 7 lines
Javier Martin
Vista Silicon S.L.
CDTUC - FASE C - Oficina S-345
Avda de los Castros s/n
39005- Santander. Cantabria. Spain
+34 942 25 32 60
www.vista-silicon.com
#5 lore raw

Dear javier Martin,

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

Sorry, the batteries of my crystal ball are running low...

It _might_ help if you provided a _little_ information, at least the most vital pieces like which architecture / board you are speaking of, and which exact version (which git commit id) you are running.

Please see my last mail. I sent three mails without reply and maybe this lead to some confusion, sorry. In that, my previous mail, you have all the information: Board, SD card, how to reproduce...

Found it, indeed. Thanks.

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
Applying computer technology is simply finding the  right  wrench  to
pound in the correct screw.
#6 lore raw
In reply to javier Martin

Dear javier Martin,

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

I have an SD card with an ext2 partition and I am trying to access it through ext2ls command but this is what I get:

# ext2ls mmc 0:1 /
** Bad partition - mmc 0:1 **
Quoted 6 lines

I have read some previous mails of some people complaining about a similar problem:
http://www.mail-archive.com/u-boot at lists.denx.de/msg12776.html

Here also Wolfgang Denk says that ext2 is currently broken in u-boot for newer ext2 images.

Well, that was a long, long time ago. And the problem reported there (and fixed since) was about newer (bigger) inode sizes - this has nothing to do with "Bad partition" errors.

Quoted 1 line

Is this still true or has it been fixed since then?

The problems referred to in the posting you quote have long been fixed.

Best regards,

Wolfgang Denk

Signature · 7 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
... The things love can drive a man to -- the  ecstasies,  the  mise-
ries,  the broken rules, the desperate chances, the glorious failures
and the glorious victories.
	-- McCoy, "Requiem for Methuselah", stardate 5843.7
#7 lore raw
In reply to javier Martin

Hello,

Quoted 2 lines

Here also Wolfgang Denk says that ext2 is currently broken in u-boot for newer ext2 images.

I rather would say it is broken for rev 0,
i.e. old ext2 images and images generated with genext2fs

Quoted 1 line

Is this still true or has it been fixed since then?

I just posted a patch: [PATCH] EXT2FS: fix inode size for ext2fs rev#0.

Best regards,

Michael.