From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 3 19:28:51 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A3E7106564A for ; Wed, 3 Dec 2008 19:28:51 +0000 (UTC) (envelope-from noresult@xs4all.nl) Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by mx1.freebsd.org (Postfix) with ESMTP id DBC9D8FC1C for ; Wed, 3 Dec 2008 19:28:50 +0000 (UTC) (envelope-from noresult@xs4all.nl) Received: from [192.168.10.200] (noresult.xs4all.nl [82.95.100.74]) (authenticated bits=0) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id mB3JSUie047285 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 3 Dec 2008 20:28:31 +0100 (CET) (envelope-from noresult@xs4all.nl) Message-Id: From: Arjan van der Velde To: Ed Schouten In-Reply-To: <20081202221349.GT64969@hoeg.nl> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Wed, 3 Dec 2008 20:28:29 +0100 References: <54A75E03-AE64-4DD9-8D15-7A7499E73D43@xs4all.nl> <20081202221349.GT64969@hoeg.nl> X-Mailer: Apple Mail (2.929.2) X-Virus-Scanned: by XS4ALL Virus Scanner X-Mailman-Approved-At: Wed, 03 Dec 2008 19:33:29 +0000 Cc: FreeBSD Hackers Subject: Re: TCSBRK not implemented in linux compat X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2008 19:28:51 -0000 Hi, thanks. I think for now I can work around this although it would be nice to have this implemented. Regards, Arjan On Dec 2, 2008, at 11:13 PM, Ed Schouten wrote: > Hello Arjan, > > * Arjan van der Velde wrote: >> While trying to get a linux binary running on FreeBSD I encountered >> the >> following problem during serial port I/O. >> >> Dec 1 22:22:34 soekris kernel: linux: pid 7239 (linuxbinary): ioctl >> fd=0, cmd=0x5409 ('T',9) is not implemented >> >> 0x5409 turns out to be TCSBRK, which is not implemented (yet?). Can >> anyone give me some clues where / how to start implementing this? It >> seems like the linux way of handling it is to call tcdrain(), but I'm >> not sure as to how this translates to the FreeBSD compat layer. > > I think you could just make it call TIOCDRAIN directly. Unfortunately > that's not correct if the argument is 0, because then we have to call > TIOCSBRK and TIOCCBRK with a 250 msec interval. I guess adding some > kind > of printf() there should be good enough for now. > > I can't look into it right now, because I have to get up at 6:15 > tomorrow. Sorry! :-/ > > -- > Ed Schouten > WWW: http://80386.nl/