From owner-freebsd-questions@FreeBSD.ORG Fri Sep 24 14:43:36 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 9FBF416A4CE for ; Fri, 24 Sep 2004 14:43:36 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3371C43D1F for ; Fri, 24 Sep 2004 14:43:36 +0000 (GMT) (envelope-from carloscarnero@gmail.com) Received: by mproxy.gmail.com with SMTP id 74so2608143rnk for ; Fri, 24 Sep 2004 07:43:35 -0700 (PDT) Received: by 10.38.2.75 with SMTP id 75mr5351184rnb; Fri, 24 Sep 2004 07:43:34 -0700 (PDT) Received: by 10.38.86.31 with HTTP; Fri, 24 Sep 2004 07:43:29 -0700 (PDT) Message-ID: <2cbf87d04092407437c9d46ff@mail.gmail.com> Date: Fri, 24 Sep 2004 10:43:29 -0400 From: "Carlos A. Carnero Delgado" To: Peter Risdon In-Reply-To: <4153E81B.9090700@circlesquared.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <2cbf87d04092319454ae9307e@mail.gmail.com> <4153E81B.9090700@circlesquared.com> 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 Reply-To: "Carlos A. Carnero Delgado" List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2004 14:43:36 -0000 Hello, On Fri, 24 Sep 2004 10:25:47 +0100, Peter Risdon wrote: > Carlos A. Carnero Delgado wrote: > > > > 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. > Perfect, that worked out OK. However, I'm getting this every second in the system log: kernel: sio1: 960 more tty-level buffer overflows (total 126252) Have any idea about this? Best regards, Carlos.