From owner-freebsd-usb@FreeBSD.ORG Mon Jul 9 17:54:56 2007 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 90E5316A400 for ; Mon, 9 Jul 2007 17:54:56 +0000 (UTC) (envelope-from pldrouin@cyberfingers.net) Received: from smtp.cyberfingers.net (smtp.cyberfingers.net [198.177.254.227]) by mx1.freebsd.org (Postfix) with ESMTP id 7032013C45D for ; Mon, 9 Jul 2007 17:54:56 +0000 (UTC) (envelope-from pldrouin@cyberfingers.net) Received: from [134.117.23.170] (pldrouinlap-pc.physics.carleton.ca [134.117.23.170]) by smtp.cyberfingers.net (Postfix) with ESMTP id 9EED3170088 for ; Mon, 9 Jul 2007 13:34:02 -0400 (EDT) Message-ID: <4692717C.9090901@cyberfingers.net> Date: Mon, 09 Jul 2007 13:33:48 -0400 From: Pierre-Luc Drouin User-Agent: Thunderbird 2.0.0.4 (X11/20070626) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Problem with libusb on FreeBSD? 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: Mon, 09 Jul 2007 17:54:56 -0000 Hi, I'm trying to use GPSBabel on FreeBSD 6.2-STABLE with a Garmin Edge 305 hooked to the USB port and it looks like usb_bulk_write does not work properly. This is what I get when I try to get waypoints with GPSBabel: gpsbabel -D9 -i garmin -f usb: -o gpx -F blah.gpx GPSBabel Version: 1.3.3 Bad cmdsend r -5 sz 12 usb_bulk_write failed. 'error writing to bulk endpoint /dev/ugen1.2: Input/output error' gpsbabel in free(): error: junk pointer, too high to make sense Abort (core dumped) I have looked through the GPSBabel code and it looks like it is failing at the very first call of usb_bulk_write() when the initialization packet is sent to the device. Is this a known bug with libusb on FreeBSD 6.2? Thanks! Pierre-Luc Drouin