Re: [linux-usb-devel] New USB Device

2004-11-04 Thread Sara Fonseca
! On Wed, 3 Nov 2004 17:22:21 -0500 (EST), Alan Stern <[EMAIL PROTECTED]> wrote: > On Wed, 3 Nov 2004, Sara Fonseca wrote: > > > ok Alan, thanks. > > And what would be a good reference on the Transparent SCSI protocol? > > There is none. Just use the standard

[linux-usb-devel] Mass Storage block address

2004-11-09 Thread Sara Fonseca
Hi, the SCSI-2 specification adresses logical blocks in the commands. I would like to know what is usually done in storage devices: all they do is to store this blocks fully or do they apply other thecnique? --- This SF.Net email is sponsored b

[linux-usb-devel] RBC

2004-11-11 Thread Sara Fonseca
Hi, i was watching the packets transfered from the host to a pen-drive and from the pen drive to the host. Seems that the pen drive uses the RBC(reduced block command). How does that relate to SCSI-2 commands? Is it a subset? --- This SF.Net em

[linux-usb-devel] Block Device

2004-11-11 Thread Sara Fonseca
Does a a block device have a internal file system or does it just keep track of the location of the logical blocks that the host sent? I know it's a simple question, but the answer could help very much.. --- This SF.Net email is sponsore

[linux-usb-devel] Mass Storage SCSI compliant Block Device

2004-11-17 Thread Sara Fonseca
Hi, What is the sequence of SCSI commands issued by the initiator when a mass storage SCSI compliant Block Device(such as in file_storge.c) is plugged on the USB? Where can I find this? Sara --- This SF.Net email is sponsored by: InterSystem

Re: [linux-usb-devel] Mass Storage SCSI compliant Block Device

2004-11-22 Thread Sara Fonseca
AIL PROTECTED]> wrote: > On Wed, 17 Nov 2004, Sara Fonseca wrote: > > > > > Hi, > > > > > > What is the sequence of SCSI commands issued by the initiator when a > > mass storage SCSI compliant Block Device(such as in file_storge.c) is > > plugg

Re: [linux-usb-devel] Mass Storage SCSI compliant Block Device

2004-11-24 Thread Sara Fonseca
I managed to build and load the drivers, but how do I start testing read and write operations for example? On Mon, 22 Nov 2004 10:33:39 -0500 (EST), Alan Stern <[EMAIL PROTECTED]> wrote: > On Mon, 22 Nov 2004, Sara Fonseca wrote: > > > ok Alan, thanks... > > but how do

[linux-usb-devel] 2 devices in one

2004-11-25 Thread Sara Fonseca
Hi, my USB device needs to present itself as a mass storage device, but needs also to be controled by our own driver that manages other functions(not storage). Do I need to simulate a hub? --- SF email is sponsored by - The IT Product Guide Rea

[linux-usb-devel] Logical to Physical Address Mapping

2004-11-29 Thread Sara Fonseca
Hi, how is the address mapping usually done in a block device?(since all SCSI commands see are logical blocks, the physical address that actually stores the logical block information shouldnt be always the same, should be dynamic (so you don't keep writing some physical blocks more frequently than

[linux-usb-devel] Maximum Block Size

2004-11-29 Thread Sara Fonseca
What is the maximum size of the logical block in the SCSI ?? --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start re

Re: [linux-usb-devel] Maximum Block Size

2004-11-29 Thread Sara Fonseca
I see...:) Is there any flow control problem(or something else) if a larger size is used?? On Mon, 29 Nov 2004 12:03:48 -0500 (EST), Alan Stern <[EMAIL PROTECTED]> wrote: > On Mon, 29 Nov 2004, Sara Fonseca wrote: > > > > > What is the maximum size of the logical blo

Re: [linux-usb-devel] Mass Storage SCSI compliant Block Device

2004-11-30 Thread Sara Fonseca
> > I managed to build and load the drivers, but how do I start testing > > read and write operations for example? > > Just do reads and writes to the device corresponding to your gadget. For > instance, if the gadget shows up as /dev/sda, then do reads and writes to > /dev/sda. Example: dd if=

Re: [linux-usb-devel] Mass Storage SCSI compliant Block Device

2004-12-01 Thread Sara Fonseca
L PROTECTED]:/home/knoppix# dd /dev/sda if=/dev/sda bs=512 count=1 dd: opening `/dev/sda': No medium found On Tue, 30 Nov 2004 15:53:54 -0500 (EST), Alan Stern <[EMAIL PROTECTED]> wrote: > On Tue, 30 Nov 2004, Sara Fonseca wrote: > > > > > > > I managed to build

[linux-usb-devel] Mass Storage break

2004-12-07 Thread Sara Fonseca
Hi, i have configured a mass storage function using one of the interfaces of my device, using the scsi subprotocol. The enumeration works great, but after the set interface command, nothing else happens.Have anyone seen this before? Any help is welcome! --

[linux-usb-devel] Mode pages in pen drive

2004-12-20 Thread Sara Fonseca
Hi, Are any of the mode pages mandatory when for a pen drive? --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start

[linux-usb-devel] Mass Storage Initialization

2004-12-20 Thread Sara Fonseca
Hi, the first time you plug a pen drive, it doenst have any information, so what happens? Should the scsi system start to send write commands with that information? How does the pen drive tells the scsi that it is empty? ( maybe answering the read command with a sense data BLANK CHECK?

[linux-usb-devel] Answer to READ CAPACITY

2005-01-12 Thread Sara Fonseca
In the UFI specification: " If the medium is unformatted, unknown, or not presented, the UFI device fails the READ CAPACITY and sets the sense key to an appropriate value as listed in section 5." Which sense key is that? thanks! --- The SF.Net

[linux-usb-devel] Read-Only filesystem

2005-01-18 Thread Sara Fonseca
Hi, when I connect my pen drive in linux(kernel 6.9) the filesystem automounts, but as read-only. Another issue is that i cant read the files(I/O errors). The pen drive was previously formatted with fat in windows. Is it a firmware error? If so, is there a good linux sniffer? thanks! Sara ---

Re: [linux-usb-devel] Read-Only filesystem

2005-01-19 Thread Sara Fonseca
e i tested the pen drive with 512-byte block size, and it works from one system to the other. Is that possible? thanks! Sara On Wed, 19 Jan 2005 10:53:13 -0500 (EST), Alan Stern <[EMAIL PROTECTED]> wrote: > On Tue, 18 Jan 2005, Sara Fonseca wrote: > > > Hi, > > > > whe

[linux-usb-devel] Read/Write error

2005-01-29 Thread Sara Fonseca
Hi, In a Mass Storage Device, if a physical block is damaged, and one or more logical blocks are lost, must the device remap the logical blocks to different addresses? What are the alternatives(you might not have more spave in the physical memory). --

Re: [linux-usb-devel] Read/Write error

2005-02-17 Thread Sara Fonseca
> > Hi, > > > > In a Mass Storage Device, if a physical block is damaged, and one or > > more logical blocks are lost, must the device remap the logical blocks > > to different addresses? What are the alternatives(you might not have > > more spave in the physical memory). > > The device is not ob

Re: [linux-usb-devel] Read/Write error

2005-02-17 Thread Sara Fonseca
On Thu, 17 Feb 2005 10:38:36 -0500 (EST), Alan Stern <[EMAIL PROTECTED]> wrote: > On Thu, 17 Feb 2005, Sara Fonseca wrote: > > > I simulated a block error doing this: when the host tries to read one > > specific logical block, I change some bytes. The I try two things:

Re: [linux-usb-devel] Read/Write error

2005-02-23 Thread Sara Fonseca
On Thu, 17 Feb 2005 14:53:01 -0500 (EST), Alan Stern <[EMAIL PROTECTED]> wrote: > On Thu, 17 Feb 2005, Sara Fonseca wrote: > > > On Thu, 17 Feb 2005 10:38:36 -0500 (EST), Alan Stern > > <[EMAIL PROTECTED]> wrote: > > > On Thu, 17 Feb 2005, Sara Fonseca w

[linux-usb-devel] Libusb - clear_halt

2005-03-07 Thread Sara Fonseca
Hi, I am using libusb clear_halt function, to set the data toggle bits to 0. It suceeds in the first bulk endpoint, but not in the second. In that case it returns: Clear Halt EP3: could not clear/halt ep 131: Connection timed out What might be happening? I also tried to use usb_reset. Every tim

[linux-usb-devel] New USB Device

2004-11-03 Thread Sara Fonseca
Hi, i am trying to develop a new usb device that should use linux support for usb pen drives. I would like some help on what it takes to acomplish that. Where is the source code for the drivers? Is it necessary to modify something in the drivers or do I just need to develop a device that is compa

Re: [linux-usb-devel] New USB Device

2004-11-03 Thread Sara Fonseca
Ok, thanks! But i dont know wich kind of protocol. Should i start the design of a a UFI Device? What is actually used for Pen Drivers? Sorry if i am too wrong, but i am new at this. > > Hi, > > > > i am trying to develop a new usb device that should use linux support > > for usb pen drives. I wo

Re: [linux-usb-devel] New USB Device

2004-11-03 Thread Sara Fonseca
ok Alan, thanks. And what would be a good reference on the Transparent SCSI protocol? On Wed, 3 Nov 2004 13:55:47 -0500 (EST), Alan Stern <[EMAIL PROTECTED]> wrote: > On Wed, 3 Nov 2004, Sara Fonseca wrote: > > > Ok, thanks! > > But i dont know wich kind of protocol