[U-Boot] [PATCH v2] fat: fatwrite: fix the command for FAT12

2016-12-15 Thread Philipp Skadorov
. 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 --- fs/fat

Re: [U-Boot] [PATCH v1] fat: fatwrite: fix the command for FAT12

2016-12-11 Thread Philipp Skadorov
, 9. Dezember 2016 13:55:37 CET 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 boun

[U-Boot] [PATCH v1] fat: fatwrite: fix the command for FAT12

2016-12-10 Thread Philipp Skadorov
/FAT32, like here: https://github.com/FEDEVEL/openrex-uboot-v2015.10/issues/1 The patch is to check file bounds by already-existing macro that accounts for FAT12. The command then works correctly for all types of FAT. Signed-off-by: Philipp Skadorov Cc:Donggeun Kim --- fs/fat/fat_write.c | 5