From owner-freebsd-questions@FreeBSD.ORG Thu Jan 14 18:40:27 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 497F11065670 for ; Thu, 14 Jan 2010 18:40:27 +0000 (UTC) (envelope-from freebsd-questions@pp.dyndns.biz) Received: from proxy2.bredband.net (proxy2.bredband.net [195.54.101.72]) by mx1.freebsd.org (Postfix) with ESMTP id 01D878FC14 for ; Thu, 14 Jan 2010 18:40:26 +0000 (UTC) Received: from ipb2.telenor.se (195.54.127.165) by proxy2.bredband.net (7.3.140.3) id 4AD3E1BC02620D5B for freebsd-questions@freebsd.org; Thu, 14 Jan 2010 19:40:24 +0100 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApE6AM7zTktV4js3PGdsb2JhbACBRYZvkzgBAQEBN70uhDAE X-IronPort-AV: E=Sophos;i="4.49,276,1262559600"; d="scan'208";a="26640665" Received: from c-373be255.107-1-64736c10.cust.bredbandsbolaget.se (HELO gatekeeper.pp.dyndns.biz) ([85.226.59.55]) by ipb2.telenor.se with ESMTP; 14 Jan 2010 19:40:24 +0100 Received: from [192.168.69.67] (phobos [192.168.69.67]) by gatekeeper.pp.dyndns.biz (8.14.3/8.14.3) with ESMTP id o0EIeLS0043792 for ; Thu, 14 Jan 2010 19:40:22 +0100 (CET) (envelope-from freebsd-questions@pp.dyndns.biz) Message-ID: <4B4F6515.6040105@pp.dyndns.biz> Date: Thu, 14 Jan 2010 19:40:21 +0100 From: =?ISO-8859-1?Q?Morgan_Wesstr=F6m?= User-Agent: Thunderbird 2.0.0.23 (X11/20091010) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Problem with USB serial in linux emulation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jan 2010 18:40:27 -0000 Dear list. I have an USB smartcard reader that emulates a serial port. It uses the uftdi.ko kernel module and creates the following device nodes when plugged in. System is FreeBSD 7.2-RELEASE-p3 amd64. crw-rw---- 1 uucp dialer 0, 110 Jan 14 19:27 /dev/cuaU0 crw-rw---- 1 uucp dialer 0, 111 Jan 7 14:01 /dev/cuaU0.init crw-rw---- 1 uucp dialer 0, 112 Jan 7 14:01 /dev/cuaU0.lock crw------- 1 root wheel 0, 107 Jan 14 19:25 /dev/ttyU0 crw------- 1 root wheel 0, 108 Jan 7 14:01 /dev/ttyU0.init crw------- 1 root wheel 0, 109 Jan 7 14:01 /dev/ttyU0.lock dmesg output: ucom0: Serial, class 0/0, rev 1.10/4.00, addr 2> on uhub5 I'm trying to access it with a linux program and the program initializes and manages to read at least some basic info from the card but any further communication with the card results in the following message regardless of what device node I use: linux_sys_futex: unknown op 265 Same software and reader works on a pure linux machine. Does anyone have any hints on what I can do to try to track this problem down? Some clarification on what the difference is between cuaU0 and ttyU0 would be appreciated too and which of them I should use primarily. Regards Morgan