From: Wolfgang Denk Date: Sat, 21 Feb 2009 21:18:42 +0100 Subject: [U-Boot] [PATCH] Fix ext2 non-working In-Reply-To: <57afda040901292227w20b54389rdf088960c1c9a6b1@mail.gmail.com> References: <57afda040901292227w20b54389rdf088960c1c9a6b1@mail.gmail.com> Message-ID: <20090221201842.BC01B832E43F@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear unsik Kim, In message <57afda040901292227w20b54389rdf088960c1c9a6b1@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.