[U-Boot] [PATCH] Fix ext2 non-working

Wolfgang Denk wd at denx.de
Sat Feb 21 21:18:42 CET 2009


Dear unsik Kim,

In message <57afda040901292227w20b54389rdf088960c1c9a6b1 at mail.gmail.com> you wrote:
> Hello, all?
> 
> Currently ext2ls, ext2load not working (I think sometimes it will work.)
> The reason is incorrect operations of ext2fs_read_inode and ext2fs_blockgroup.
> 
> I fix miscalculated block number(blkno) and offset (blkoff), and some
> hard coded values.

Hm.... I tried the current code without your patch but I could not
find any error case.

But with your patch applied, I got this:

=> ext2ls ide 0:4 bin
 ** ext2fs_devread() read outside partition sector 536870912
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - ide 0:4 **


I tested this on a PowerPC system (big endian). Any chance there might
be some endianess issues with your patch?

Best regards,

Wolfgang Denk

-- 
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
I read part of it all the way through.


More information about the U-Boot mailing list