Re: Problem with STM8S Discovery kit

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

 



On Fri, 20 Aug 2010, Vaclav Peroutka wrote:

> > 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:
> 
> Even if there is no "sdc1" partition ?

Yes.  It is done for the sdc device.

> This should be done,shouldn't it ? In this case, I don't have anything to mount.

But udev doesn't know that.  As far as udev can tell, you might want to 
mount /dev/sdc.

> > > 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.
> 
> But it seems to me that commands for debugging the target are packed in mass storage packets. They have headers with USBC and USBS respectively.

Everything sent to the target has to be packed in mass-storage packets;
otherwise the target wouldn't understand it.  You probably want to use
the SG_IO ioctl.  Or maybe you want to use the SCSI-Generic API, see:  
http://www.linux.org/docs/ldp/howto/SCSI-Generic-HOWTO/index.html

> Another idea is that the debugging symbols are "written" into the virtual partition (maybe somewhere to the part where I/O errors are generated) - and debugger hardware interprets and executes them. But I am not sure about that either.

I don't understand what you mean.

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