lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 20 Jun 2012 11:05:04 -0400 (EDT)
From:	Alan Stern <stern@...land.harvard.edu>
To:	Vishal Nandanwar <operational.people@...il.com>
cc:	Linux Docs <linux-doc@...r.kernel.org>,
	Linux Embedded Group <linux-embedded@...r.kernel.org>,
	Linux Kernel <linux-kernel@...r.kernel.org>,
	Linux USB <linux-usb@...r.kernel.org>,
	Platform driver x86 <platform-driver-x86@...r.kernel.org>
Subject: Re: Need help regarding the USB mass storage driver

On Wed, 20 Jun 2012, Vishal Nandanwar wrote:

> Hi,
> 
> I am working on a USB mass storage driver for a pen drive. I have done
> coding as per the USB_skeleton.c file provided in Linux 3.2 source
> code. I could assign the driver to pen drive when pen driver is
> inserted in USB connector.

Do you understand that the usb_skeleton.c file is totally inappropriate 
as a model for a mass-storage driver?

> I am stuck in data transfer,  could not do the data transfer. During
> enumeration interface sub class is 06 i.e. SCSI transparent command
> set. Please find my questions below.
> 
> 1. Where are these SCSI transparent command set documented?

Google is your friend.  But see the answer to your next question...

> 2. Is there any sample code(apart from Linux source) which describes
> the SCSI transparent command set and mass storage driver?

There is no such thing as the SCSI transparent command set.  "SCSI 
transparent" means "use whatever command set the relevant SCSI standard 
specifies".

There is non-Linux source code for mass-storage drivers in other
open-source operating systems.

> 3. When I connect the pen drive and associate my driver, pop up
> doesn't appear on the screen for this device. but when default
> driver(usb_storage) is used this pop up does appear. What I need to do
> here?

Fix your driver.  It's not possible to give a more complete answer 
without further information.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ