From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kever Yang Date: Tue, 27 Dec 2016 10:44:07 +0800 Subject: [U-Boot] [PATCH] fs/ext4: Initialize group descriptor size for revision level 0 filesystems In-Reply-To: <0b7fcc8bdac04b62ab112b47ed80396e@rwthex-w2-b.rwth-ad.de> References: <0b7fcc8bdac04b62ab112b47ed80396e@rwthex-w2-b.rwth-ad.de> Message-ID: <5861D577.9030004@rock-chips.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stefan, With this patch, the image create by genext2fs can be mount in U-Boot, thanks. On 12/27/2016 09:35 AM, Stefan Br?ns wrote: > genext2fs creates revision level 0 filesystems, which are not readable > by u-boot due to the initialized group descriptor size field. > f798b1dda1c5de818b806189e523d1b75db7e72d > > Reported-by: Kever Yang > Reported-by: FrostyBytes at protonmail.com > Signed-off-by: Stefan Br?ns > --- > fs/ext4/ext4_common.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c > index bfebe7e379..621c61e5c7 100644 > --- a/fs/ext4/ext4_common.c > +++ b/fs/ext4/ext4_common.c > @@ -2334,6 +2334,7 @@ int ext4fs_mount(unsigned part_length) > > if (le32_to_cpu(data->sblock.revision_level) == 0) { > fs->inodesz = 128; > + fs->gdsize = 32; > } else { > debug("EXT4 features COMPAT: %08x INCOMPAT: %08x RO_COMPAT: %08x\n", > __le32_to_cpu(data->sblock.feature_compatibility), Tested-by: Kever Yang Thanks, - Kever