From owner-freebsd-questions@FreeBSD.ORG Thu Aug 6 00:34:46 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 D8B7C106566B for ; Thu, 6 Aug 2009 00:34:46 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.210.181]) by mx1.freebsd.org (Postfix) with ESMTP id 906EB8FC08 for ; Thu, 6 Aug 2009 00:34:46 +0000 (UTC) Received: by yxe11 with SMTP id 11so632838yxe.3 for ; Wed, 05 Aug 2009 17:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=SC14WkYVVpvnm8zsAhWvi7N7ptKka9XHpgId04sAi3M=; b=gFocCI1CRHqPS9pDTrtmKhnIWqhHIwCGzsk/YmPMywHA8V+q2bwiIvv6y6r15i6fWU 2vuQSuEtk6sXuaW9WHxZBCdCxQeCEitsgWObVAp3Ds9JkDGTROcNL6FPRnU+YhCBxfHs On92uITs9+H3p9QzPaD2n2sVHF4HuuekD+IEc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=OshiOwPQW9OIIEyipAr6P3DkEUWfUiwQ1EWGfiSuIbg3iDLwGWk/goC58VLggvt/cz QYhPgyEebD5BjHkWYzTXpoAU3pTupA/nm1Bty4vb9DJ7Q4/ycYjp/IuDWbgYfUYZxG9U 0jmxd6tcZk+fCA6ZYA2qFtj/DCbqkl5hCHJHI= MIME-Version: 1.0 Received: by 10.100.240.5 with SMTP id n5mr11550717anh.103.1249518885682; Wed, 05 Aug 2009 17:34:45 -0700 (PDT) In-Reply-To: <20090806002844.GA83722@polands.org> References: <06297f4d151cb94042e8efd01e04afdb.squirrel@email.polands.org> <20090729170409.979FF7816C@mail2.asahi-net.or.jp> <6579ba376a1ddbe9c4edc1e0d750bdc3.squirrel@email.polands.org> <20090806002844.GA83722@polands.org> Date: Wed, 5 Aug 2009 18:34:45 -0600 Message-ID: From: Tim Judd To: Doug Poland Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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:34:47 -0000 On 8/5/09, Doug Poland wrote: > 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! > Thanks Doug! He has the PCI device ID 1682, and you have the 1680. The 1682 is not already in the driver. I've added it to his driver and we're recompiling right now. We'll do a quick test, then write a bug report if all looks stable. This output was very useful, thank you very much. :)