Date: Mon, 17 Dec 2007 10:06:08 +0100 From: Alexander Leidinger <Alexander@Leidinger.net> To: "Daniel O'Connor" <doconnor@gsoft.com.au> Cc: freebsd-hackers@freebsd.org Subject: Re: Linux version of libusb that works with FreeBSD Message-ID: <20071217100608.sti502z4skk4g4g8@webmail.leidinger.net> In-Reply-To: <200712171626.59808.doconnor@gsoft.com.au> References: <200712171626.59808.doconnor@gsoft.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071217100608.sti502z4skk4g4g8>