Re: Linux USB file storage gadget with new UDC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 3 Apr 2013, victor yeo wrote:

> > the parameter is file=/dev/mmcblk0p1

Perhaps you have already realized this...  mmcblk0p1 is the first 
partition of the mmcblk0 device.  Block 0 of the partition is the boot 
sector, not the MBR.  The MBR is block 0 of the mmcblk0 device.  So 
perhaps you really meant to use:

	file=/dev/mmcblk0

> I see a problem here. The first 32 bytes of the boot sector is
> correct. The rest of the bytes are 00000000, which is wrong. See the
> usbmon trace below.
> 
> f59e13c0 2704842730 S Bo:2:007:1 -115 31 = 55534243 21000000 00800000
> 80000a28 00000020 00000040 00000000 000000
> f59e13c0 2704842836 C Bo:2:007:1 0 31 >
> f319db40 2704842846 S Bi:2:007:1 -115 4096 <
> f59e16c0 2704842848 S Bi:2:007:1 -115 4096 <
> f59e14c0 2704842850 S Bi:2:007:1 -115 4096 <
> f59e1240 2704842851 S Bi:2:007:1 -115 4096 <
> f59e15c0 2704842852 S Bi:2:007:1 -115 4096 <
> f59e1340 2704842853 S Bi:2:007:1 -115 4096 <
> f59e12c0 2704842854 S Bi:2:007:1 -115 4096 <
> f59e1540 2704842855 S Bi:2:007:1 -115 4096 <
> f319db40 2705432226 C Bi:2:007:1 0 4096 = e52d424f 4f542020 42494e20
> 1886fc80 7c417c41 0000838a 7b410300 94b80200
> f59e16c0 2705432230 C Bi:2:007:1 0 4096 = 00000000 00000000 00000000
> 00000000 00000000 00000000 00000000 00000000
> f59e14c0 2705432231 C Bi:2:007:1 0 4096 = 00000000 00000000 00000000
> 00000000 00000000 00000000 00000000 00000000
> f59e1240 2705432231 C Bi:2:007:1 0 4096 = 00000000 00000000 00000000
> 00000000 00000000 00000000 00000000 00000000
> f59e15c0 2705432232 C Bi:2:007:1 0 4096 = 00000000 00000000 00000000
> 00000000 00000000 00000000 00000000 00000000
> f59e1340 2705432233 C Bi:2:007:1 0 4096 = 00000000 00000000 00000000
> 00000000 00000000 00000000 00000000 00000000
> f59e12c0 2705432234 C Bi:2:007:1 0 4096 = 00000000 00000000 00000000
> 00000000 00000000 00000000 00000000 00000000
> f59e1540 2705432234 C Bi:2:007:1 0 4096 = 00000000 00000000 00000000
> 00000000 00000000 00000000 00000000 00000000
> f59e13c0 2705432244 S Bi:2:007:1 -115 13 <
> f59e13c0 2705438346 C Bi:2:007:1 0 13 = 55534253 21000000 00000000 00

Are you certain this is wrong?  All those 0's could be unoccupied 
entries in a FAT.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux