FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 12-07-2007, 01:56 AM
Tom Horsley
 
Default Enabling a four-port serial card

On Thu, 6 Dec 2007 16:51:14 -0800 (PST)
David Scriven <davidwriter@yahoo.com> wrote:

> I'm trying to enable a four-port serial card

The magic (for non Xen kernels, anyway) is to add a kernel
boot parameter such as: 8250.nr_uarts=9 (that gets the 1
port on my motherboard + an 8 port card to work).

For Xen the situation is much more complex since the
hypervisor steals serial ports and the serial driver
isn't linked in, but is a loadable module. I never
really figured Xen out...

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-07-2007, 06:35 AM
"Tod Merley"
 
Default Enabling a four-port serial card

On Dec 6, 2007 4:51 PM, David Scriven <davidwriter@yahoo.com> wrote:
> Dear All,
>
> I'm trying to enable a four-port serial card (you'ld be
> surprised how many pieces of equipment still have
> RS232 interfaces). I'm using Fedora 7 on a quad-core
> Intel Q6600 machine with 4GB of memory.
>
> #/sbin/lspci -vvvx shows the following:
>
> 07:01.0 Serial controller: NetMos Technology PCI 9845 Multi-I/O Controller (rev 01) (prog-if 02 [16550])
> Subsystem: LSI Logic / Symbios Logic 0P4S (4 port 16550A serial card)
> Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
> Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
> Interrupt: pin A routed to IRQ 21
> Region 0: I/O ports at 1030 [size=8]
> Region 1: I/O ports at 1028 [size=8]
> Region 2: I/O ports at 1020 [size=8]
> Region 3: I/O ports at 1018 [size=8]
> Region 4: I/O ports at 1010 [size=8]
> Region 5: I/O ports at 1000 [size=16]
> 00: 10 97 45 98 03 00 80 02 01 02 00 07 10 20 00 00
> 10: 31 10 00 00 29 10 00 00 21 10 00 00 19 10 00 00
> 20: 11 10 00 00 01 10 00 00 00 00 00 00 00 10 04 00
> 30: 00 00 00 00 00 00 00 00 00 00 00 00 0a 01 00 00
>
> when I do a setserial I get this:
>
> # /bin/setserial -avg /dev/ttyS*
> /dev/ttyS0, Line 0, UART: 16550A, Port: 0x1030, IRQ: 21
> Baud_base: 115200, close_delay: 50, divisor: 0
> closing_wait: 3000
> Flags: spd_normal skip_test
>
> /dev/ttyS1, Line 1, UART: undefined, Port: 0x02f8, IRQ: 3
> Baud_base: 921600, close_delay: 50, divisor: 0
> closing_wait: 3000
> Flags: spd_normal skip_test auto_irq
>
> /dev/ttyS2, Line 2, UART: 16550A, Port: 0x1028, IRQ: 21
> Baud_base: 115200, close_delay: 50, divisor: 0
> closing_wait: 3000
> Flags: spd_normal skip_test
>
> /dev/ttyS3, Line 3, UART: 16550A, Port: 0x1020, IRQ: 21
> Baud_base: 115200, close_delay: 50, divisor: 0
> closing_wait: 3000
> Flags: spd_normal skip_test
>
>
> Clearly /dev/ttyS1 is not OK, but I've no idea how to
> set it up so it is OK - I'd be grateful for any help.
>
> Thanks,
> David Scriven
>
>
>
>
> Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php
>
> --
> fedora-list mailing list
> fedora-list@redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>
Hi David Scriven!

Googling "NetMos Technology PCI 9845 Linux" yeilded many hits.
Following are a few quickly chosen:

http://osdir.com/ml/serial/2005-03/msg00010.html

http://osdir.com/ml/serial/2005-03/msg00025.html

http://www.linuxquestions.org/questions/linux-hardware-18/netmos-9835-controller-343063/

Would love to hear what you find!

Thanks!

Tod

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 01-12-2008, 01:02 AM
David Scriven
 
Default Enabling a four-port serial card

Tom Horsley wrote:

>Did you add the kernel boot parameter in grub.conf? Mine looks like
>this:

>title Fedora (2.6.23.8-63.fc8)
> root (hd0,2)
> kernel /vmlinuz-2.6.23.8-63.fc8 ro root=LABEL=F8ROOT64 quiet 8250.nr_uarts=9
> initrd /initrd-2.6.23.8-63.fc8.img

>The "9" as the value for 8250.nr_uarts tells the kernel to allocate slots
>for 9 serial ports in its internal tables. The default is only 4. I use
>9 to get the 1 native serial port on my motherboard plus the 8 ports in
>my 8 port card to work.

>(Of course if you are booting the Xen kernel, completely different trickery
>is required).

I fiddled around with this (I tried values of 5, 6, 7 & 8) until I found that this
title Fedora (2.6.23.9-85.fc8)
root (hd0,1)
kernel /vmlinuz-2.6.23.9-85.fc8 ro root=/dev/VolGroup00/LogVol00 quiet 8250.nr_uarts=8
initrd /initrd-2.6.23.9-85.fc8.img

gave this:

ls -l /dev/ttyS*
crw-rw---- 1 root uucp 4, 64 2008-01-11 15:39 /dev/ttyS0
crw-rw---- 1 root uucp 4, 65 2008-01-11 16:00 /dev/ttyS1
crw-rw---- 1 root uucp 4, 66 2008-01-11 15:39 /dev/ttyS2
crw-rw---- 1 root uucp 4, 67 2008-01-11 15:39 /dev/ttyS3
crw-rw---- 1 root uucp 4, 68 2008-01-11 17:35 /dev/ttyS4
crw-rw---- 1 root uucp 4, 69 2008-01-11 16:00 /dev/ttyS5
crw-rw---- 1 root uucp 4, 70 2008-01-11 16:00 /dev/ttyS6
crw-rw---- 1 root uucp 4, 71 2008-01-11 16:00 /dev/ttyS7

/bin/setserial -ag /dev/ttyS*
/dev/ttyS0, Line 0, UART: unknown, Port: 0x03f8, IRQ: 4
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test auto_irq

/dev/ttyS1, Line 1, UART: undefined, Port: 0x02f8, IRQ: 3
Baud_base: 921600, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test auto_irq

/dev/ttyS2, Line 2, UART: unknown, Port: 0x03e8, IRQ: 4
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test auto_irq

/dev/ttyS3, Line 3, UART: unknown, Port: 0x02e8, IRQ: 3
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal auto_irq

/dev/ttyS4, Line 4, UART: 16550A, Port: 0x1030, IRQ: 21
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test

/dev/ttyS5, Line 5, UART: 16550A, Port: 0x1028, IRQ: 21
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test

/dev/ttyS6, Line 6, UART: 16550A, Port: 0x1020, IRQ: 21
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test

/dev/ttyS7, Line 7, UART: 16550A, Port: 0x1018, IRQ: 21
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test


with the four ports correctly assigned, BUT - alas I
can't get the ports to work. A Qt program that works
in Windows does not work in Linux - no communication.
I've tried echoing a command to S4-7 - no luck. Qt
(i.e. QIODevice & qextserialport) reports that the
ports are open when I try to open them, but thats it.

I've no idea what to do next, except to buy a different
serial card that works in both Linux and Windows - perhaps
it's something to do with the combination of motherboard
and serial card?

DS





Looking for the perfect gift? Give the gift of Flickr!

http://www.flickr.com/gift/

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 

Thread Tools




All times are GMT. The time now is 07:09 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org