From owner-freebsd-usb@FreeBSD.ORG Tue Jul 19 12:56:45 2011 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 4FCD8106567A for ; Tue, 19 Jul 2011 12:56:45 +0000 (UTC) (envelope-from matt@chronos.org.uk) Received: from chronos.org.uk (chronos-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:12b::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9CBE48FC16 for ; Tue, 19 Jul 2011 12:56:44 +0000 (UTC) Received: from workstation1.localnet (workstation1.local.chronos.org.uk [IPv6:2001:470:1f09:12b::20]) (authenticated bits=0) by chronos.org.uk (8.14.4/8.14.4) with ESMTP id p6JCucHQ044508 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 19 Jul 2011 13:56:38 +0100 (BST) (envelope-from matt@chronos.org.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 chronos.org.uk p6JCucHQ044508 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=chronos.org.uk; s=mail; t=1311080198; bh=7C3w6GqGwVxd6oZkIlL+6oT3WuYeL46VXcRFUQVHOEs=; h=From:To:Subject:Date:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id; b=V7SO7msBe1R0b8XM4JvavyAWWOCxVpyE5ljzj0iAN2Xods1ZWjGCeXz0gc7p3FECp VjWA9u18rp8bb5wS4fmhhGA4sEs3pm9Z0fdKpiAgPHi/N523Kf51hLjZPsOagBkYxj 78lKviqF7W76g5SRUQBmG7IgB/g3IsstIC2olG9c= From: Matt Dawson To: freebsd-usb@freebsd.org Date: Tue, 19 Jul 2011 13:56:36 +0100 User-Agent: KMail/1.13.7 (FreeBSD/8.2-RELEASE; KDE/4.6.4; amd64; ; ) X-Face: -a*{KS?gYyH>pt=1?H+(>B2Z'>b6WxX:^O@+VaMV>l\tOh@[x`#&AHSdl`m<-EEhk=1%t9iRthI|; ~8)mN@qxJ}x5l:zhDO(.as NeO!\oL7huHfsoF'I5,0G+Yo[G-G"FG,l`QJ$IgwH/[\a]vRH^'=`;cY+*_{Or` MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201107191356.36832.matt@chronos.org.uk> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (chronos.org.uk [IPv6:2001:470:1f09:12b::1]); Tue, 19 Jul 2011 13:56:38 +0100 (BST) X-Virus-Scanned: clamav-milter 0.97.1 at central.local.chronos.org.uk X-Virus-Status: Clean X-Spam-Status: No, score=-98.8 required=3.0 tests=BAYES_00, DATE_IN_FUTURE_12_24,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_PASS, T_RP_MATCHES_RCVD,USER_IN_WHITELIST autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on central.local.chronos.org.uk Subject: Porting op to 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: Tue, 19 Jul 2011 12:56:45 -0000 Hi all, Apologies if I'm posting to the wrong list, but this one looks to have more USB knowledge than general ports. Just LART me if I'm mistaken and I'll post to ports@. I'm trying to port this: http://sourceforge.net/projects/openprogrammer/files/OP/op_0.7.9.tar.gz to FreeBSD and have run into a brick wall (my lack of knowledge, basically). It uses Linux' hiddev to communicate with the OpenProgrammer hardware, which isn't compatible with our usbhid. The ioctls and structs are very different. The programmer itself has a uhidX device node and seems to be fine under FreeBSD. Can some kind soul give me some pointers? Specifically, some clue as to how to translate from hiddev to usbhid would be most helpful. There's also a GTK based GUI which I suspect will all fall into place once I have the CLI sussed. Any help at all on this would be most gratefully received as this device is much, *much* more reliable and intuitive than the JDM type programmers that picprog supports, along with having some very useful Atmel and I2C device support. It also doesn't rely on the disappearing RS232 port. Thanks in advance, -- Matt Dawson MTD15-RIPE matt@chronos.org.uk