From: Tom Rini Date: Mon, 22 Jul 2013 10:12:04 -0400 Subject: [U-Boot] [U-Boot, V2] fs/ext4: fix log2blksz un-initialized error, by cacaulating its value from blksz In-Reply-To: <1374279479-19326-1-git-send-email-dennis.yxun@gmail.com> References: <1374279479-19326-1-git-send-email-dennis.yxun@gmail.com> Message-ID: <20130722141204.GY18359@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Jul 20, 2013 at 08:17:59AM +0800, Dennis Lan (dlan) wrote: > From: "Lan Yixun (dlan)" > > The problem here is that uboot can't mount ext4 filesystem with > commit "50ce4c07df1" applied. We use hard-coded "SECTOR_SIZE"(512) > before this commit, now we introduce (block_dev_desc_t *)->log2blksz > to replace this macro. And after we calling do_ls()->fs_set_blk_dev(), > the variable log2blksz is not initialized, which it's not correct. > > And this patch try to solve the problem by caculating the value of > log2blksz from variable blksz. > > --- > the console output after commit "50ce4c07df1" applied: > > lt703a # ext4ls nand 3:0 > Failed to mount ext2 filesystem... > ** Unrecognized filesystem type ** > > Signed-off-by: Lan Yixun (dlan) Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: