From owner-freebsd-stable@FreeBSD.ORG Thu Oct 30 08:35:11 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DCCE16A4CE for ; Thu, 30 Oct 2003 08:35:11 -0800 (PST) Received: from qhmail2.colt1.inetserver.de (qhmail2.colt1.inetserver.de [195.234.228.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32B5B43F3F for ; Thu, 30 Oct 2003 08:35:10 -0800 (PST) (envelope-from m.oe@x-trader.de) Received: from lupo.gn.qhintra.net (unknown [213.83.51.133]) by qhmail2.colt1.inetserver.de (Postfix) with ESMTP id D1B12AB2D1 for ; Thu, 30 Oct 2003 17:35:07 +0100 (CET) Received: from ente (ente.gn.qhintra.net [192.168.192.2]) by lupo.gn.qhintra.net (Postfix) with ESMTP id 5C1F629F0B; Thu, 30 Oct 2003 17:35:07 +0100 (CET) From: "Markus Oestreicher" To: "'Alexander Kabaev'" Date: Thu, 30 Oct 2003 17:35:05 +0100 Message-ID: <005f01c39f03$c666ccd0$02c0a8c0@gnbuero.qhintra.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <20031029112353.3e34aea8.ak03@gte.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal cc: freebsd-stable@freebsd.org Subject: AW: ubsa, ucom Problems X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2003 16:35:11 -0000 > root@ws02 /dev # cu -l /dev/ucom0 > cu: open (/dev/ucom0): Device not configured > cu: /dev/ucom0: Line in use > > I do not have -stable with ubsa device handy for testing, but I do use > one ubsa adapter for my serial console for 5.x daily. Errors below > certainly indicate the device entry mismatch. The quick and dirty > solution to try would be a printf right after ubsa/ucom calls > makedev on > udev device to print out device's major/minor address and using mknod > manually. Forgive me, I have only basic C knowledge. I could see that UCOM_CDEV_MAJOR is fixed to 138, but I can see no reference to the minor address. Can you give me a hint what the print statement could look like? ucom_attach(struct ucom_softc *sc) { struct tty *tp; int unit; unit = device_get_unit(sc->sc_dev); sc->sc_tty = tp = ttymalloc(sc->sc_tty); tp->t_oproc = ucomstart; tp->t_param = ucomparam; tp->t_stop = ucomstop; DPRINTF(("ucom_attach: tty_attach tp = %p\n", tp)); DPRINTF(("ucom_attach: make_dev: ucom%d\n", unit)); sc->dev = make_dev(&ucom_cdevsw, unit | UCOM_CALLOUT_MASK, UID_UUCP, GID_DIALER, 0660, "ucom%d", unit); sc->dev->si_tty = tp; return (0); } bye Markus