From owner-freebsd-questions@FreeBSD.ORG Thu Aug 6 00:28:47 2009 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 1062F1065673 for ; Thu, 6 Aug 2009 00:28:47 +0000 (UTC) (envelope-from djp@polands.org) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.125]) by mx1.freebsd.org (Postfix) with ESMTP id BDC428FC1B for ; Thu, 6 Aug 2009 00:28:46 +0000 (UTC) Received: from haran.polands.org ([75.87.219.217]) by hrndva-omta01.mail.rr.com with ESMTP id <20090806002845568.GOGC25718@hrndva-omta01.mail.rr.com>; Thu, 6 Aug 2009 00:28:45 +0000 Received: from ammon.polands.org (ammon.polands.org [172.16.1.7]) by haran.polands.org (8.14.3/8.14.3) with ESMTP id n760SitP000283; Wed, 5 Aug 2009 19:28:44 -0500 (CDT) (envelope-from djp@polands.org) Received: from ammon.polands.org (localhost [127.0.0.1]) by ammon.polands.org (8.14.3/8.14.3) with ESMTP id n760SiYT083792; Wed, 5 Aug 2009 19:28:44 -0500 (CDT) (envelope-from djp@ammon.polands.org) Received: (from djp@localhost) by ammon.polands.org (8.14.3/8.14.3/Submit) id n760SinG083791; Wed, 5 Aug 2009 19:28:44 -0500 (CDT) (envelope-from djp) Date: Wed, 5 Aug 2009 19:28:44 -0500 From: Doug Poland To: Tim Judd Message-ID: <20090806002844.GA83722@polands.org> References: <06297f4d151cb94042e8efd01e04afdb.squirrel@email.polands.org> <20090729170409.979FF7816C@mail2.asahi-net.or.jp> <6579ba376a1ddbe9c4edc1e0d750bdc3.squirrel@email.polands.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-questions Subject: Re: Moxa 8-port serial multiplexor, how-to 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, 06 Aug 2009 00:28:47 -0000 On Wed, Aug 05, 2009 at 05:54:30PM -0600, Tim Judd wrote: > On 7/29/09, Doug Poland wrote: > > On Wed, July 29, 2009 12:04, WATANABE Kazuhiro wrote: > >> > >> At Fri, 24 Jul 2009 10:32:52 -0500, > >> Doug Poland wrote: > >>> Hello, > >>> > >>> I'm trying to get a Moxa Technologies C168H/PCI 8-port mux card > >>> working in 7.2-RELEASE(i386). > >>> > >>> I've recompiled a GENERIC kernel with > >>> > >>> options COM_MULTIPORT > >>> > >>> and loaded the puc(4) module. I don't have any new ttyd? or cuad? > >>> devices in /dev. > >>> > >>> After reading the handbook(26.2) and man puc(4), sio(4). man > >>> sio(4) talks about adding /boot/device.hints but not for my > >>> particular hardware. I'm at a loss on how to continue. > >>> > >>> Suggestions, pointers, URLs welcome. > >>> > >>> > >> Hi. > >> > >> If you want to load the puc(4) driver as a loadable module, you > >> should load the sio(4) or uart(4) driver module as well. But these > >> drivers are included in the GENERIC kernel. So you should to > >> remove sio(4) or uart(4) from the kernel and load it as a loadable > >> module. > >> > >> The other solution is to builtin the puc(4) driver to the > >> kernel. i.e.: > >> > >> sio(4) puc(4) status > >> or uart(4) > >> ---------------------------------------- > >> module module work > >> builtin builtin work > >> builtin module not work <- current choice? > >> module builtin not work > >> ---------------------------------------- > >> (module = loadable module, builtin = kernel builtin) > >> > >> Other modifications will not be needed for PCI multiport cards. > >> > > Watanabe, > > > > I removed devices sio and uart from my kernel, loaded them as > > modules in /boot/loader.conf, and now I have 8 additional cuad? > > devices! > > > > Trying to help a buddy who also has a Moxa multiport serial card. He > followed this thread and isn't seeing the same success > > Doug, > can I get the following in a pastebin or in this thread? > > pciconf -lvvv > Certainly... hostb0@pci0:0:0:0: class=0x060000 card=0x01511028 chip=0x25708086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82865G/PE/P, 82848P DRAM Controller / Host-Hub Interface' class = bridge subclass = HOST-PCI vgapci0@pci0:0:2:0: class=0x030000 card=0x01511028 chip=0x25728086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82865G Integrated Graphics Device' class = display subclass = VGA uhci0@pci0:0:29:0: class=0x0c0300 card=0x01511028 chip=0x24d28086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801EB/ER (ICH5/ICH5R) USB UHCI Controller' class = serial bus subclass = USB uhci1@pci0:0:29:1: class=0x0c0300 card=0x01511028 chip=0x24d48086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801EB/ER (ICH5/ICH5R) USB UHCI Controller' class = serial bus subclass = USB uhci2@pci0:0:29:2: class=0x0c0300 card=0x01511028 chip=0x24d78086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801EB/ER (ICH5/ICH5R) USB UHCI Controller' class = serial bus subclass = USB uhci3@pci0:0:29:3: class=0x0c0300 card=0x01511028 chip=0x24de8086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801EB/ER (ICH5/ICH5R) USB UHCI Controller' class = serial bus subclass = USB ehci0@pci0:0:29:7: class=0x0c0320 card=0x01511028 chip=0x24dd8086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801EB/ER (ICH5/ICH5R) USB 2.0 EHCI Controller' class = serial bus subclass = USB pcib1@pci0:0:30:0: class=0x060400 card=0x00000000 chip=0x244e8086 rev=0xc2 hdr=0x01 vendor = 'Intel Corporation' device = '82801 Family (ICH2/3/4/4/5/5/6/7/8/9,63xxESB) Hub Interface to PCI Bridge' class = bridge subclass = PCI-PCI isab0@pci0:0:31:0: class=0x060100 card=0x00000000 chip=0x24d08086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801EB/ER (ICH5/ICH5R) LPC Interface Bridge' class = bridge subclass = PCI-ISA atapci0@pci0:0:31:1: class=0x01018a card=0x01511028 chip=0x24db8086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801EB/ER (ICH5/ICH5R) EIDE Controller' class = mass storage subclass = ATA atapci1@pci0:0:31:2: class=0x01018f card=0x01511028 chip=0x24d18086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801EB (ICH5) SATA Controller' class = mass storage subclass = ATA none0@pci0:0:31:3: class=0x0c0500 card=0x01511028 chip=0x24d38086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801EB/ER (ICH5/ICH5R) SMBus Controller' class = serial bus subclass = SMBus none1@pci0:0:31:5: class=0x040100 card=0x01511028 chip=0x24d58086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '815B104D multimedia audio device (codec AC97) SoundMAX or VIA' class = multimedia subclass = audio puc0@pci0:1:9:0: class=0x070080 card=0x00000000 chip=0x16801393 rev=0x02 hdr=0x00 vendor = 'Moxa Technologies Co Ltd' device = 'C168H/PCI Smartio' class = simple comms subclass = UART em0@pci0:1:12:0: class=0x020000 card=0x01511028 chip=0x100e8086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82540EM Gigabit Ethernet Controller' class = network subclass = ethernet Also, kernel config just in case you need it: ident GENERIC-MUX-SIO include GENERIC options COM_MULTIPORT nooptions sio nooptions uart and /boot/loader.conf: sio_load="YES" puc_load="YES" snd_ich_load="NO" Good luck! -- Regards, Doug