Try another loop back devices /dev/loop/[0-7]

 

-Brijesh

 

 


From: Steve Spano [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 08, 2006 9:40 AM
To: Singh, Brijesh; Kridner, Jason; DiegoDompe; [email protected]
Subject: RE: ### USB Mass Storage

 

Hi

 

Its odd, because the /dev/loop/0 is present in my dev folder

 

However, losetup can't access it - says address unknown

 

Could it be something related to the 8Meg size?

 

I just want a 'small' filestore device


 

 

-----Original Message-----
From: "Singh, Brijesh" <[EMAIL PROTECTED]>
To: "Steve Spano" <[EMAIL PROTECTED]>, "Kridner, Jason" <[EMAIL PROTECTED]>, "Diego Dompe" <[EMAIL PROTECTED]>, <[email protected]>
Cc:
Date: Wed, 8 Nov 2006 09:24:36 -0600
Subject: RE: ### USB Mass Storage

Yesterday, I was working on this and followed the below steps to create and format disk.

 

 

dvevm:~# dd bs=1M count=64 if=/dev/zero of=/opt/storage

 

dvevm:~# fdisk /opt/storage

 

Command (m for help): x

 

Expert command (m for help): s

Number of sectors (1-63, default 63): 8

Expert command (m for help): h

Number of heads (1-256, default 255): 16

 

Expert command (m for help): c

Number of cylinders (1-1048576, default 8): 1024

 

Expert command (m for help): r

Command (m for help): n

Command action

   e   extended

   p   primary partition (1-4)

p

Partition number (1-4): 1

First cylinder (1-1024, default 1):

Using default value 1

Last cylinder or +size or +sizeM or +sizeK (1-1024, default 1024):

Using default value 1024

 

Command (m for help): t

Selected partition 1

Hex code (type L to list codes): b

Changed system type of partition 1 to b (W95 FAT32)

 

 

Command (m for help): p

 

Disk /opt/storage: 67 MB, 67108864 bytes

16 heads, 8 sectors/track, 1024 cylinders

Units = cylinders of 128 * 512 = 65536 bytes

 

       Device Boot      Start         End      Blocks   Id  System

/opt/storage1               1        1024       65532    b  W95 FAT32

 

 

Command (m for help): w

 

dvevm:~# losetup -o 4096 /dev/loop/0 /opt/storage

 

dvevm:~# mkfs.vfat -n "Davinci" /dev/loop/0

mkfs.vfat 2.11 (12 Mar 2005)

Loop device does not match a floppy size, using default hd params

 

dvevm:~# losetup -d /dev/loop/0

dvevm:~# insmod g_file_storage.ko file=/opt/storage

 

-Brijesh

 

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Spano
Sent: Wednesday, November 08, 2006 9:17 AM
To: Kridner, Jason; Diego Dompe; [email protected]
Subject: RE: ### USB Mass Storage

 

Hi

 

Maybe I take this back

 

It did work, once after formatting it Admin tools per jason's email

 

However, i am back in the loop now where I can't see it under Windows

 

Its not even in the Admin tools anymore like Jason first told me

 

Seems like something isn't syncing/etc - any clues?

 

Steve SPano


 

 

-----Original Message-----
From: "Kridner, Jason" <[EMAIL PROTECTED]>
To: "Steve Spano" <[EMAIL PROTECTED]>, "Diego Dompe" <[EMAIL PROTECTED]>, <[email protected]>
Date: Wed, 8 Nov 2006 08:41:09 -0600
Subject: RE: ### USB Mass Storage

You likely need to format the drive, in addition to creating the partition, before a letter is assigned.  Take a look under Administrative Tools -> Computer Management -> Storage -> Disk Management and see if it is there.  You can format the drive using that tool as well.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Spano
Sent: Wednesday, November 08, 2006 8:38 AM
To: Diego Dompe; [email protected]
Subject: Re: ### USB Mass Storage

Hi,

 

I do this

 

1) # create an 8MB USB file
dd bs=1M count=8 if=/dev/zero of=/opt/usbfile

 

2) # run fdisk to set S=8,H=16,C=128 and then create and write an 8MB partation to the /opt/usbfile created by DD


3) #start USB Gadget
modprobe g_file_storage file=/opt/usbfile

4) Plug board in to WindowsXP host. I can see the USB Mass storage device appear in the USB section of device manager.  I can see the linux file-stor gadget usb device appear under DiskDrives in  device manager.

 

Cant seem to find it anywhere else. No drive letter assignment

 

Thanks for any advice

 

 

-----Original Message-----
From: Diego Dompe <[EMAIL PROTECTED]>
To: Steve Spano <[EMAIL PROTECTED]>
Cc: [email protected]
Date: Wed, 8 Nov 2006 07:53:15 -0600
Subject: Re: ### USB Mass Storage

Hi Steve,

> The PC see's the board as a mass stoarge device. I see a Linux File-
> Store disk drive in the device manager - but no drive letter  
> appears anywhere in Windows.
>
> I have done the DD + FDisk + modprobe to get it up and running.
>
> Any ideas?

Which command arguments are you using to install the module of file  
storage?

Diego Dompe
RidgeRun Engineering
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to