Date: Wed, 5 Aug 2009 19:40:33 -0500 From: Doug Poland <doug@polands.org> To: Tim Judd <tajudd@gmail.com> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: Moxa 8-port serial multiplexor, how-to Message-ID: <20090806004033.GA83951@polands.org> In-Reply-To: <ade45ae90908051734o180eebb3k1be48d029f759192@mail.gmail.com> References: <06297f4d151cb94042e8efd01e04afdb.squirrel@email.polands.org> <20090729170409.979FF7816C@mail2.asahi-net.or.jp> <6579ba376a1ddbe9c4edc1e0d750bdc3.squirrel@email.polands.org> <ade45ae90908051654o79d5f0a6s4d17154fa750d0a2@mail.gmail.com> <20090806002844.GA83722@polands.org> <ade45ae90908051734o180eebb3k1be48d029f759192@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 05, 2009 at 06:34:45PM -0600, Tim Judd wrote: > On 8/5/09, Doug Poland <doug@polands.org> wrote: > > On Wed, Aug 05, 2009 at 05:54:30PM -0600, Tim Judd wrote: > >> On 7/29/09, Doug Poland <doug@polands.org> 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. > Glad I could be the helper, instead of the helpee for once. And thanks to Watanabe Kazuhiro. -- Regards, Doug
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090806004033.GA83951>