看板 FB_hackers 關於我們 聯絡資訊
Quoting Daniel O'Connor <doconnor@gsoft.com.au> (from Mon, 17 Dec 2007 =20 16:26:58 +1030): > I am wondering if anyone has tried building such a beast? > ie a Lunux libusb that will be able to access devices in FreeBSD.. > > The reason I'd like it is that I want to use this > http://rmdir.de/~michael/xilinx/ in FreeBSD so I can talk to a USB JTAG > cable. > > The thing I am not sure about is how ioctl's would get mangled on the > way through. They get interpreted as linux ioctl, as they are handled by the =20 linuxulator. You could try to write a wrapper there... > I guess the other approach would be to use a standard Linux libusb but > emulate the device tree it uses in Linux.. Would be a lot of work > though I think. As long as you can specify the devices in the linux app, it's enough =20 to translate the ioctl's. Apart from that, there's some kind of =20 translation layer for devices already, but I don't know if it just a =20 Linux major/minor -> FreeBSD dev mapping, or if you can map linux dev =20 -> FreeBSD dev. AFAIR HPS' USB stack has linux compatibility, maybe you should ask him =20 / have a look at it. Bye, Alexander. --=20 Power is poison. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"