|
General software and network General OS-independent software and network questions, X11, MTA, routing, etc. |
|
Thread Tools | Display Modes |
|
|||
Setting up a multi-card serial server
Just about everything in my data center has COM port access to one degree or another and I want to build a serial server to allow me access through a universal portal. I've got a PC dedicated to this purpose running FreeBSD 7-STABLE, and I've got 4 PCI cards with 2 COM ports each that use the Moschip 9835 chipset.
I've been looking for examples of something like this online for a couple days with no real luck and was interested in knowing if anyone's already accomplished this and/or if anyone can point me in the right direction. Edit: I'm interested in the area of serial console redirection Last edited by dk_netsvil; 25th September 2008 at 06:35 PM. |
|
|||
What exactly is your problem? If the ports are seen by BSD then I would just connect to the server using SSH and then use 'tip com1' or similar.
|
|
|||
My goal is to have users login to this serial gateway and be automatically redirected to the COM port on which their device is physically attached.
|
|
|||
I don't know what you mean by "hit", but there have been lots of changes since 4.2, i.e: in 4.4 pccom(4) was discontinued and com(4) is now used.
|
|
|||
Tech abuse should be a crime...
|
|
|||
On freebsd you can run a very reliable console server using :
conserver-com-8.1.16|/usr/ports/comms/conserver-com|/usr/local|Application that allows multiple users to watch serial consoles|/usr/ports/comms/conserver-com/pkg-descr|kuriyama@FreeBSD.org|comms|||http://www.conserver.com/||| (ports INDEX line) I ran two 8 port pci cards on one machine that were supported under the puc driver. In many ways it was way better than some of the commercial solutions.
__________________
darkmark (!wired)?(coffee++):(wired); |
|
|||
I may give that a shot - for the time being I'm struggling to overcome the same issue ai-danno describes: only one port is functional and the others are inert. When I replace my quad-port cards with single-port cards I have no problems.
|
|
|||
Quote:
FreeBSD would occasionally have the problem since many of the multi-port cards share an interrupt and the puc driver wasn't mapping the devices properly, and only one port would show up. Sometimes it would just require the correct modification to pucdata.c to get it to work.
__________________
darkmark (!wired)?(coffee++):(wired); |
|
||||
That's the problem I'm having... all recognized on the same interrupt, but only one seems to map.
As I stated previously, I'd get back when I had tried it on 4.3 ... and the same thing happens on 4.3. Thanks for the heads up on conserver- it got me to check OBSD packages for such a beast, and in fact, it exists- so I'll be installing that on the 4.3 box and will let you know how it goes. The thing that gets me... and maybe it's due to ignorance on my part (probably) is that there isn't some easy-to-find device mapping that tells you what the filename handles the devices from the dmesg (save the NICs, they show that just fine) are actually mapped to. So if pccom1 through pccom4 (and yes, since it's 4.3 it's not been switched to comx yet) show up in the dmesg, how can I be sure which cuaxx each one is actually mapped to?
__________________
Network Firefighter |
|
|||
COM1 == {pccom,com}0 == /dev/{tty,cua}00
COM2 == {pccom,com}1 == /dev/{tty,cua}01 COM3 == {pccom,com}2 == /dev/{tty,cua}02 Pretty simple stuff.. it's documented in both pccom(4), and com(4). I can't comment on your problems with puc(4) devices, but.. it might be worth sending a bug report.. complaining about a bug isn't as effective as reporting it. (And testing the LATEST version of the code base..). They're preforming an audit of all old bug reports as we speak, so.. they're definitely paying close attention to bug reports.. send one, volunteer either time or a card. http://www.openbsd.org/report.html http://marc.info/?l=openbsd-bugs |
|
|||
Quote:
http://en.wikipedia.org/wiki/Periphe...ect#Interrupts Also, consider booting the GENERIC.MP kernel and doing the same thing.. it includes ioapic(4) support and will work fine (perhaps even better) even on UP systems. |
|
||||
Quote:
That's not true... what you replied with was nice, but that's not what is on those two man pages, which actually don't have a mapping of each of the ports. Also,we're talking about the ports on the serial card itself, not the ones included with the mobo, which neither you nor OBSD seems to list. I'm not 'complaining' about OBSD, just stating a problem I'm running into with it.
__________________
Network Firefighter |
|
|||
I'm aware you were talking about PCI serial ports, my point is the driver and framework is the same.. the pccom/com(4) frameworks are used regardless of the attach point, so either com at isa? or com at puc? it doesn't matter.
If you look at pccom/com(4) you'll notice at the top that the first 4 numbers [0-3] are reserved for serial ports on the mainboard.. so counting starts at 4, the numbering is 1/1 with the device nodes.. so /dev/{tty,cua}04 would be pccom4/com4. (An architecture can only use either the com(4) framework or the pccom(4) framework, not both.) That's my rant for the day.. |
Tags |
serial console |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Setting up the serial console | PeterSteele | FreeBSD General | 6 | 3rd November 2008 04:42 PM |
Multi-boot system with Mac | aleunix | Other BSD and UNIX/UNIX-like | 3 | 13th June 2008 12:16 AM |
NIS in a multi-system universe? | jimbus | FreeBSD General | 3 | 30th May 2008 03:57 AM |
Looking to multi boot Fedora. CentOS and BSD | FloridaBSD | Off-Topic | 4 | 19th May 2008 11:20 PM |
setting up a proxy server in OpenBSD 4.3 | jrake | OpenBSD General | 1 | 14th May 2008 06:43 PM |