From owner-freebsd-usb@FreeBSD.ORG Thu May 10 15:15:11 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 7F7BD1065678 for ; Thu, 10 May 2012 15:15:11 +0000 (UTC) (envelope-from antuan@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 28F678FC0C for ; Thu, 10 May 2012 15:15:10 +0000 (UTC) Received: by vbmv11 with SMTP id v11so2271755vbm.13 for ; Thu, 10 May 2012 08:15:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=oRVzaqV6dvtOSplSXi1BtMf2wS5HuM+ZeJU9hnXBPEk=; b=cM2D2Dbkv7QxU5EOjztlMUI4cji67vCW+1Benkfom9dYekCOzIWdDcY10ayjmWPDZA Q90WAbM4Y6//hCR6Yh3pHCoBOTAlWpoXkzrtM2xOOEFr/ZCVcf28/R59GoIijRNLF7rS wHwZX4F2yxmmYcZ+E1SKD3uXtaUehMirUm5tHU27k2u1JOgk2GBO6oYuJGypETQgWYDD EJY/+Xw1ierbF0Nd2IhNjYPLdmz5lSQbjokbiuv5gL6JdSE9m1wxj2yN5gPj6IBaDyBO tsbBdYPToLXhG5jz6O8WF6Wo330jcN9xcc1xRJSinmnpYM9sSZBrAkfYlWI0s+e5O04E c3vA== Received: by 10.220.238.208 with SMTP id kt16mr2826605vcb.71.1336662910529; Thu, 10 May 2012 08:15:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.162.7 with HTTP; Thu, 10 May 2012 08:14:50 -0700 (PDT) From: Antuan Avdioukhine Date: Thu, 10 May 2012 19:14:50 +0400 Message-ID: To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 15:15:11 -0000 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? -- Antuan Avdioukhine Tech.S.A. Llc St.Petersburg, Russia.