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

2020-01-21 Thread Andy Shevchenko
On Tue, Jan 21, 2020 at 2:39 AM AKASHI Takahiro wrote: > On Fri, Jan 17, 2020 at 11:47:03AM +0200, Andy Shevchenko wrote: > > On Fri, Jan 17, 2020 at 8:13 AM AKASHI Takahiro > > wrote: ... > Really? I've got messed up now. > - Why do you need to use g_multi to access the disk? How else you

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

2020-01-20 Thread AKASHI Takahiro
On Fri, Jan 17, 2020 at 11:47:03AM +0200, Andy Shevchenko wrote: > On Fri, Jan 17, 2020 at 8:13 AM AKASHI Takahiro > wrote: > > On Thu, Jan 16, 2020 at 10:31:49PM +0200, Andy Shevchenko wrote: > > ... > > > > Prerequisites: > > > - the board with U-Boot and installed Linux OS on eMMC > > > -

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

2020-01-17 Thread Tom Rini
On Fri, Jan 17, 2020 at 11:47:03AM +0200, Andy Shevchenko wrote: > On Fri, Jan 17, 2020 at 8:13 AM AKASHI Takahiro > wrote: > > On Thu, Jan 16, 2020 at 10:31:49PM +0200, Andy Shevchenko wrote: > > ... > > > > Prerequisites: > > > - the board with U-Boot and installed Linux OS on eMMC > > > -

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

2020-01-17 Thread Andy Shevchenko
On Fri, Jan 17, 2020 at 8:13 AM AKASHI Takahiro wrote: > On Thu, Jan 16, 2020 at 10:31:49PM +0200, Andy Shevchenko wrote: ... > > Prerequisites: > > - the board with U-Boot and installed Linux OS on eMMC > > - g_multi module in Linux OS that shares *one of the eMMC partitions* > > (pay

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

2020-01-16 Thread AKASHI Takahiro
On Thu, Jan 16, 2020 at 10:31:49PM +0200, Andy Shevchenko wrote: > On Thu, Jan 16, 2020 at 9:20 PM Heinrich Schuchardt > wrote: > > On 1/16/20 11:39 AM, Andy Shevchenko wrote: > > > > > >>> Obviously U-Boot's fat code cannot handle it. > > >> > > >> So precisely, U-Boot cannot handle nested

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

2020-01-16 Thread Andy Shevchenko
On Thu, Jan 16, 2020 at 9:20 PM Heinrich Schuchardt wrote: > On 1/16/20 11:39 AM, Andy Shevchenko wrote: > > > >>> Obviously U-Boot's fat code cannot handle it. > >> > >> So precisely, U-Boot cannot handle nested partition( table)s? > > > > Seems so. We need to be able to supply the partition

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

2020-01-16 Thread Heinrich Schuchardt
On 1/16/20 11:39 AM, Andy Shevchenko wrote: Obviously U-Boot's fat code cannot handle it. So precisely, U-Boot cannot handle nested partition( table)s? Seems so. We need to be able to supply the partition number we would like to open, something like cmd [[:[:]]] otherwise it will

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

2020-01-16 Thread Andy Shevchenko
On Thu, Jan 16, 2020 at 4:01 AM AKASHI Takahiro wrote: > On Wed, Jan 15, 2020 at 09:12:59AM +0900, AKASHI Takahiro wrote: > > On Tue, Jan 14, 2020 at 02:43:43PM +0200, Andy Shevchenko wrote: > > > On Tue, Jan 14, 2020 at 10:23 AM Andy Shevchenko > > > wrote: > > > > On Tue, Jan 14, 2020 at 10:21

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

2020-01-15 Thread AKASHI Takahiro
On Wed, Jan 15, 2020 at 09:12:59AM +0900, AKASHI Takahiro wrote: > On Tue, Jan 14, 2020 at 02:43:43PM +0200, Andy Shevchenko wrote: > > On Tue, Jan 14, 2020 at 10:23 AM Andy Shevchenko > > wrote: > > > On Tue, Jan 14, 2020 at 10:21 AM Andy Shevchenko > > > wrote: > > > > On Tue, Jan 14, 2020 at

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

2020-01-14 Thread AKASHI Takahiro
On Tue, Jan 14, 2020 at 02:43:43PM +0200, Andy Shevchenko wrote: > On Tue, Jan 14, 2020 at 10:23 AM Andy Shevchenko > wrote: > > On Tue, Jan 14, 2020 at 10:21 AM Andy Shevchenko > > wrote: > > > On Tue, Jan 14, 2020 at 1:14 AM Heinrich Schuchardt > > > wrote: > > > > On 1/13/20 10:52 PM, Andy

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

2020-01-14 Thread Andy Shevchenko
On Tue, Jan 14, 2020 at 2:43 PM Andy Shevchenko wrote: $ qemu-system-i386 -m 1G -bios u-boot.rom -nographic -drive if=none,file=/tmp/for- andy/image-file,format=raw,id=mydisk -no-reboot -device ich9-ahci,id=ahci -device ide-drive,drive=mydisk,bus=ahci. 0 qemu-system-i386: -device

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

2020-01-14 Thread Andy Shevchenko
On Tue, Jan 14, 2020 at 10:23 AM Andy Shevchenko wrote: > On Tue, Jan 14, 2020 at 10:21 AM Andy Shevchenko > wrote: > > On Tue, Jan 14, 2020 at 1:14 AM Heinrich Schuchardt > > wrote: > > > On 1/13/20 10:52 PM, Andy Shevchenko wrote: > > ... > > > > This image loads fine on current U-Boot, see

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

2020-01-14 Thread Andy Shevchenko
On Tue, Jan 14, 2020 at 10:21 AM Andy Shevchenko wrote: > On Tue, Jan 14, 2020 at 1:14 AM Heinrich Schuchardt > wrote: > > On 1/13/20 10:52 PM, Andy Shevchenko wrote: ... > > This image loads fine on current U-Boot, see below. > > Of course it does *in the test case you have done*. > I'm

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

2020-01-14 Thread Andy Shevchenko
On Tue, Jan 14, 2020 at 1:14 AM Heinrich Schuchardt wrote: > > On 1/13/20 10:52 PM, Andy Shevchenko wrote: > > On Mon, Jan 13, 2020 at 11:05 PM Heinrich Schuchardt > > wrote: > >> On 1/13/20 9:58 PM, Andy Shevchenko wrote: > >>> On Mon, Jan 13, 2020 at 9:22 PM Andy Shevchenko > >>> wrote: >

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

2020-01-13 Thread Heinrich Schuchardt
On 1/13/20 10:52 PM, Andy Shevchenko wrote: On Mon, Jan 13, 2020 at 11:05 PM Heinrich Schuchardt wrote: On 1/13/20 9:58 PM, Andy Shevchenko wrote: On Mon, Jan 13, 2020 at 9:22 PM Andy Shevchenko wrote: https://paste.cathedral-networks.org/OverdoseSegment I dunno how long it will be

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

2020-01-13 Thread Andy Shevchenko
On Mon, Jan 13, 2020 at 11:05 PM Heinrich Schuchardt wrote: > On 1/13/20 9:58 PM, Andy Shevchenko wrote: > > On Mon, Jan 13, 2020 at 9:22 PM Andy Shevchenko > > wrote: > > https://paste.cathedral-networks.org/OverdoseSegment > > > > I dunno how long it will be available. > > I created it using >

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

2020-01-13 Thread Heinrich Schuchardt
On 1/13/20 9:58 PM, Andy Shevchenko wrote: On Mon, Jan 13, 2020 at 9:22 PM Andy Shevchenko wrote: On Mon, Jan 13, 2020 at 9:15 PM Andy Shevchenko wrote: P.S. I'll prepare a compressed / sparse image later as promised. https://paste.cathedral-networks.org/OverdoseSegment I dunno how long

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

2020-01-13 Thread Andy Shevchenko
On Mon, Jan 13, 2020 at 9:22 PM Andy Shevchenko wrote: > On Mon, Jan 13, 2020 at 9:15 PM Andy Shevchenko > wrote: > P.S. I'll prepare a compressed / sparse image later as promised. https://paste.cathedral-networks.org/OverdoseSegment I dunno how long it will be available. I created it using %

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

2020-01-13 Thread Andy Shevchenko
On Mon, Jan 13, 2020 at 9:15 PM Andy Shevchenko wrote: > On Mon, Jan 13, 2020 at 7:55 PM Heinrich Schuchardt > wrote: > > On 1/13/20 5:34 PM, Tom Rini wrote: > > > On Mon, Jan 13, 2020 at 12:52:48PM +0200, Andy Shevchenko wrote: ... > > But for me the U-Boot's load command loaded a file

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

2020-01-13 Thread Andy Shevchenko
On Mon, Jan 13, 2020 at 7:55 PM Heinrich Schuchardt wrote: > On 1/13/20 5:34 PM, Tom Rini wrote: > > On Mon, Jan 13, 2020 at 12:52:48PM +0200, Andy Shevchenko wrote: > >> Hi! > >> > >> I recently stumble over FAT partitioning issue. I have a device with > >> MMC, one partition of which has been

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

2020-01-13 Thread Heinrich Schuchardt
On 1/13/20 5:34 PM, Tom Rini wrote: On Mon, Jan 13, 2020 at 12:52:48PM +0200, Andy Shevchenko wrote: Hi! I recently stumble over FAT partitioning issue. I have a device with MMC, one partition of which has been exported as disk via USB Mass Storage to the host. When Windows 10 sees that disk

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

2020-01-13 Thread Tom Rini
On Mon, Jan 13, 2020 at 12:52:48PM +0200, Andy Shevchenko wrote: > Hi! > > I recently stumble over FAT partitioning issue. I have a device with > MMC, one partition of which has been exported as disk via USB Mass > Storage to the host. When Windows 10 sees that disk it can't handle it > till I