Re: Problem with STM8S Discovery kit

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

 



On Thu, 19 Aug 2010, Vaclav Peroutka wrote:

> Alan, I tried to open the device in Windows in HxD binary editor and - yes, I am getting I/O error when I want to read sectors near the end of the device. 
> 
> Can I disable the test of reading the sectors at the end in usb-storage module ? The debugging of STM8 itself is IMHO done through some custom USB MSC commands.

No, you can't.  But it doesn't matter, because those reads aren't 
generated by usb-storage anyway.  They are generated by programs in hal 
and/or DeviceKit:

	/lib/udev/vol_id
	/lib/udev/devkit-disks-part-id

The program names may be different on your system.  If you rename them 
so they won't run automatically when your device is plugged in, you 
shouldn't get those bad reads.

> Now I will ask as real newbie. I can either disable usb-storage for the kit (with the quirk) and make my own application with libusb. Or, if usb-storage somehow will succeed to correctly detect the device, I can use services of this kernel module. Am I right ?

Yes.

> Is there some sample application which talks directly to usb-storage module (to have an idea how to do it by myself) ?

There's no way talk directly to usb-storage.  You simply access access 
the device like any other disk drive.

> Regards,
> Vaclav
> 
> PS. I put the quirk options in /etc/modules but it does not work. I have no idea, why. I have standard Ubuntu Lucid.

I don't know how Ubuntu handles this.  In Fedora it would go into a 
file under /etc/modprobe.d or into /etc/modprobe.conf.

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