From owner-freebsd-usb@FreeBSD.ORG Thu May 10 16:01:52 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B2991065670 for ; Thu, 10 May 2012 16:01:52 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.c2i.net [212.247.154.226]) by mx1.freebsd.org (Postfix) with ESMTP id E684B8FC0C for ; Thu, 10 May 2012 16:01:51 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 273555589; Thu, 10 May 2012 18:01:46 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 10 May 2012 18:01:03 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.3-STABLE; KDE/4.4.5; amd64; ; ) References: In-Reply-To: X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201205101801.03043.hselasky@c2i.net> Cc: Subject: Re: Accessing USB from linux libusb-0.1-aware application (under linuxulator in freebsd 8) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 May 2012 16:01:52 -0000 On Thursday 10 May 2012 17:14:50 Antuan Avdioukhine wrote: > Greetings! > > Can anybody assist me with URLs/docs/whatever how to access USB device from > linux application running on freebsd 8.2? > > I'm trying to get worked scanner which have binary-only linux driver for > SANE. > > The first trouble is that linux libusb searches for usb device entries in > /dev/bus/usb//, and so it cannot search freebsd's > /deb/usb/n.m.k device list. > > So, ok, it can be patched. But, there is a question: if I'll make patch to > change such behavior (change usb_os_find_devices and usb_os_find_busses in > linux.c from linusb-0.1 sources) and rebuild libusb as it is for linux > environment -- is it will be enough linuxulator? I mean, will linuxulator > translate correctly usb related ioctl calls? > > On the other hand, maybe I am going wrong way at all? :) Maybe there is a > simple solution? Hi, Search for libusb2debian. --HPS