reverse USB driver - is it possible?

Hans Petter Selasky hselasky at c2i.net
Sun Jun 3 09:14:33 UTC 2012


On Sunday 03 June 2012 10:25:21 Wojciech Puchar wrote:
> for SCSI/SAS/FC there is targ(4) driver allows you to become SCSI target.
> 
> is it the same possible with USB?
> i mean if i can make my laptop to simulate say USB CDROM.
> 
> Yes there are no driver line targ(4) for USB, but it is technically
> possible hardware-wise? with any USB controler or special one?

Yes, this is possible.

Have a look at:

sys/dev/usb/storage/ustorage_fs.c

Currently just implements a RAM disk. Patches are welcome.

--HPS


More information about the freebsd-hackers mailing list