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 may

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 > > > - g

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 > > > - g

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 attenti

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 parti

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 numb

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 requir

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 1

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 S

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 ide-drive,drive=

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 b

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 descr

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 available

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 create

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 ex

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 it

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 for

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

2020-01-13 Thread Andy Shevchenko
-- Forwarded message - From: Andy Shevchenko Date: Mon, Jan 13, 2020 at 12:52 PM Subject: fat: handle Windows formatted partition (thru USB Mass Storage) To: AKASHI Takahiro , Heinrich Schuchardt Cc: Tom Rini , U-Boot Mailing List , Simon Glass , Bin Meng Hi! I recently

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

2020-01-13 Thread Andy Shevchenko
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 format it there. So far so good. However, the same partition can't be used under