fat: handle Windows formatted partition (thru USB Mass Storage)

Andy Shevchenko andy.shevchenko at gmail.com
Tue Jan 14 09:21:46 CET 2020


On Tue, Jan 14, 2020 at 1:14 AM Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> On 1/13/20 10:52 PM, Andy Shevchenko wrote:
> > On Mon, Jan 13, 2020 at 11:05 PM Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
> >> On 1/13/20 9:58 PM, Andy Shevchenko wrote:
> >>> On Mon, Jan 13, 2020 at 9:22 PM Andy Shevchenko
> >>> <andy.shevchenko at gmail.com> wrote:
> >>> https://paste.cathedral-networks.org/OverdoseSegment
> >>>
> >>> I dunno how long it will be available.
> >>> I created it using
> >>> % dd if=/dev/mmcblk0p9 of=mmc-fat-part conv=sparse
> >>> % gzip mmc-fat-part
> >>>
> >> Doesn't work for me:
> >>
> >> "File Quota Exceeded"
> >>
> >> I guess Github wouldn't give you any trouble.
> >
> > https://gist.github.com/andy-shev/469aef8dfcd8f5605cb8992cf5958769
> >
>
> This image loads fine on current U-Boot, see below.

Of course it does *in the test case you have done*.
I'm describing different one. The provided image must be a *partition*
on the real disk.

So, before use it the preparatory steps must be made.

Something like

% dd if=/dev/zero of=image-file bs=1M count=1000
% fdisk image-file
 ...create a partition table, where one partition has a (similar) size
of the image I provided
% mount -o loop,offset=... image-file /mnt # use *partition* as a disk!
% dd --sparse if=mmc-fat-part of=/mnt
% umount /mnt

And use image-file instead.

-- 
With Best Regards,
Andy Shevchenko


More information about the U-Boot mailing list