From: Tom Rini Date: Tue, 27 Dec 2016 17:57:53 -0500 Subject: [U-Boot] [U-Boot,v2] fat: fatwrite: fix the command for FAT12 In-Reply-To: <1481835173-14591-1-git-send-email-philipp.skadorov@savoirfairelinux.com> References: <1481835173-14591-1-git-send-email-philipp.skadorov@savoirfairelinux.com> Message-ID: <20161227225753.GP4248@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 Thu, Dec 15, 2016 at 03:52:53PM -0500, Philipp Skadorov wrote: > The u-boot command fatwrite empties FAT clusters from the beginning > till the end of the file. > Specifically for FAT12 it fails to detect the end of the file and goes > beyond the file bounds thus corrupting the file system. > > Additionally, FAT entry chaining-up into a file is not implemented > for FAT12. > > The users normally workaround this by re-formatting the partition as > FAT16/FAT32, like here: > https://github.com/FEDEVEL/openrex-uboot-v2015.10/issues/1 > > The patch fixes the bounds of a file and FAT12 entries chaining into > a file, including EOF markup. > > Signed-off-by: Philipp Skadorov Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: