[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 8 port serial PCI card on squeeze



Dear Rob,

Thanks for your help. So to answer your question of where I added the 8250 kernel parameters, that would be in /etc/default/grub file in the GRUB_CMDLINE_LINUX variable.

With your hints I was now able to find out that somehow my machine (a Soekris net6501-30 board) has one console serial port and 4 additional unused (no cables or plugs) serial ports. So this means I had to use the "13" parameter to the 8250.runtime_uarts and 8250.nr_uarts kernel boot config options. Now I can see all my ports but the order is somehow mixed up :( have a look here at the output of /proc/tty/driver/serial :

0: uart:TI16750 port:000003F8 irq:4 tx:2608 rx:0 RTS|DTR
1: uart:16C950/954 mmio:0xA5001A00 irq:19 tx:11 rx:0 RTS|DTR
2: uart:16C950/954 mmio:0xA5001C00 irq:19 tx:0 rx:0
3: uart:16C950/954 mmio:0xA5001E00 irq:19 tx:0 rx:0
4: uart:16550A port:00001040 irq:19 tx:0 rx:0
5: uart:16550A port:00001048 irq:19 tx:0 rx:0
6: uart:16550A port:00001050 irq:19 tx:0 rx:0
7: uart:16550A port:00001058 irq:19 tx:0 rx:0
8: uart:16C950/954 mmio:0xA5001000 irq:19 tx:0 rx:0
9: uart:16C950/954 mmio:0xA5001200 irq:19 tx:0 rx:0
10: uart:16C950/954 mmio:0xA5001400 irq:19 tx:0 rx:0
11: uart:16C950/954 mmio:0xA5001600 irq:19 tx:0 rx:0
12: uart:16C950/954 mmio:0xA5001800 irq:19 tx:0 rx:0


So 0 is the serial console port (ttyS0) then 1-3 are 3 ports of my serial card, 4-7 are then 4 serial ports from the net6501-30 mainboard and finally 8-12 are the rest 5 ports of my serial port card. As you can see it's a big mess and I don't understand how my 8 port serial card gets splitted like that. Any clues how to bring some order here?

Best regards,
M.L.


----- Original Message -----
From: Rob van der Putten <rob@sput.nl>
To: debian-user@lists.debian.org
Cc: 
Sent: Thursday, April 25, 2013 1:39 PM
Subject: Re: 8 port serial PCI card on squeeze

Hi there


ML mail wrote:

> I am trying to configure an 8 port serial PCI card and managed to get the 3 first ports working but the 5 others do not work. The ouput of /proc/tty/drivers/serial is the following:
>
> 0: uart:TI16750 port:000003F8 irq:4 tx:2608 rx:0 RTS|CTS|DTR|DSR
> 1: uart:16C950/954 mmio:0xA5001000 irq:19 tx:0 rx:0
> 2: uart:16C950/954 mmio:0xA5001200 irq:19 tx:0 rx:0
> 3: uart:16C950/954 mmio:0xA5001400 irq:19 tx:0 rx:0

That's 4 working ports. Which is the default.

> 4: uart:16550A port:00001040 irq:19 tx:11 rx:0 RTS|DTR
> 5: uart:16550A port:00001048 irq:19 tx:0 rx:0
> 6: uart:16550A port:00001050 irq:19 tx:0 rx:0
>
> 7: uart:16550A port:00001058 irq:19 tx:0 rx:0
>
>
> serial port 0 is the serial port of the main board then the serial port card starts at position 1. So you see here that the port 1, 2 and 3 are configured correctly but the rest  are not. I already added the two kernel parameters "8250.runtime_uarts=8 8250.nr_uarts=8"

Where?

> but that didn't help. Does anyone know what could be wrong here?
>
> I am using Debian 6.0 and the 8 port serial PCI card is the following: http://www.exsys.ch/index.php?main_page=product_info&products_id=626&language=en
>
> Last, here is the ouput of "lspci -v" on that card:
>
> 0d:00.0 Serial controller: Oxford Semiconductor Ltd Device c308 (prog-if 02 [16550])
>      Subsystem: Oxford Semiconductor Ltd Device c308
>      Flags: bus master, fast devsel, latency 0, IRQ 19
>      Memory at a5000000 (32-bit, non-prefetchable) [size=16K]
>      Memory at a5200000 (32-bit, non-prefetchable) [size=2M]
>      Memory at a5400000 (32-bit, non-prefetchable) [size=2M]
>      Capabilities: [40] Power Management version 3
>      Capabilities: [70] Express Endpoint, MSI 00
>      Capabilities: [b0] MSI-X: Enable- Count=16 Masked-
>      Kernel driver in use: serial

Are you quite sure that the motherboard only has one serial port?
Sometimes the second port needs a IDC + ribbon + bracket with RS232 
connector. Consult the motherboard docs.

Check CONFIG_SERIAL_8250_NR_UARTS= and CONFIG_SERIAL_8250_RUNTIME_UARTS= 
in your kernel config.
The first is the maximum number of RS232 ports, the second the default.
Th first has to be >= the total number of RS232 ports.

Edit /etc/default/grub; GRUB_CMDLINE_LINUX="8250.nr_uarts=9"
Or 10, if your motherboard has 2 ports.
Run update-grub.
Check /boot/grub/grub.cfg
Reboot.


Regards,
Rob
-- 
Abolish all monarchies


-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] klb4m1$rl6$1@ger.gmane.org">http://lists.debian.org/[🔎] klb4m1$rl6$1@ger.gmane.org


Reply to: