From owner-freebsd-questions@FreeBSD.ORG Fri Sep 24 09:25:39 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2B2B16A4CE for ; Fri, 24 Sep 2004 09:25:39 +0000 (GMT) Received: from lorna.circlesquared.com (host217-45-219-85.in-addr.btopenworld.com [217.45.219.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CA1E43D39 for ; Fri, 24 Sep 2004 09:25:33 +0000 (GMT) (envelope-from peter@circlesquared.com) Received: from circlesquared.com (localhost.circlesquared.com [127.0.0.1]) i8O9PlhK010039; Fri, 24 Sep 2004 10:25:48 +0100 (BST) (envelope-from peter@circlesquared.com) Message-ID: <4153E81B.9090700@circlesquared.com> Date: Fri, 24 Sep 2004 10:25:47 +0100 From: Peter Risdon User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040611 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Carlos A. Carnero Delgado" References: <2cbf87d04092319454ae9307e@mail.gmail.com> In-Reply-To: <2cbf87d04092319454ae9307e@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Linux program and serial port (5.2.1) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2004 09:25:39 -0000 Carlos A. Carnero Delgado wrote: > Hi, > > I have a little program , linux native, that I've managed to run > thanks to the Linux compat layer. However, this program opens the > serial port ttyS1, which doesn't exist as such in 5.2.1. > > The question is this: how do I make this program to open the serial > port? (FYI, the device it should open is a random number generator.) This is a complete guess, but I'm curious whether it would work: You can make links in the /dev directory to existing devices by using entries in /etc/devfs.conf, so in this case you could add a line like: link cuaa1 ttyS1 This works fine with FreeBSD native applications, so I use links like this for my old serial port palm base, and for a cdrom link. Whether it would work with Linux compatibility stuff, I don't know. But, as I said, I'd be interested to find out. HTH Peter. -- the circle squared network systems and software http://www.circlesquared.com