LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-07-2006, 10:45 PM   #1
kassle
Member
 
Registered: Jan 2006
Distribution: bodhi
Posts: 44

Rep: Reputation: 15
Unhappy Six Serial Port


I have an embedded system (by NCR) which has 6 serial port (COM Port).
I was compile kernel (2.6.11.12) and activate the Extended 8250/16559
serial driver options, Support more than 4 legacy serial ports, sharing serial interupts and autodetect IRQ on standard ports. But still only
two serial ports is available (ttyS0 and ttyS1).

is there any solution ? i use Linux From Scratch distro.
 
Old 08-08-2006, 07:56 PM   #2
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Quote:
But still only two serial ports is available (ttyS0 and ttyS1).
If you do "ls /dev/ttyS*" are only the two serial ports shown?
If so you will need to create other ports with mkdev.
 
Old 08-08-2006, 08:44 PM   #3
kassle
Member
 
Registered: Jan 2006
Distribution: bodhi
Posts: 44

Original Poster
Rep: Reputation: 15
there is lot of ttySxx (created by udev), but only the first two is available
when i cat /dev/ttyS2 (and higher) it says "cat: /dev/ttyS2: Input/output error"
 
Old 08-08-2006, 10:12 PM   #4
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Post "ls -la /dev/ttyS*"
 
Old 08-09-2006, 02:09 AM   #5
kassle
Member
 
Registered: Jan 2006
Distribution: bodhi
Posts: 44

Original Poster
Rep: Reputation: 15
sh-3.00$ ls -la /dev/ttyS*
crw-rw---- 1 root dialout 4, 64 2006-08-09 12:05 /dev/ttyS0
crw-rw---- 1 root dialout 4, 65 2006-08-09 12:05 /dev/ttyS1
crw-rw---- 1 root dialout 4, 66 2006-08-09 12:05 /dev/ttyS2
crw-rw---- 1 root dialout 4, 67 2006-08-09 12:05 /dev/ttyS3
crw-rw---- 1 root dialout 4, 68 2006-08-09 12:05 /dev/ttyS4
crw-rw---- 1 root dialout 4, 69 2006-08-09 12:05 /dev/ttyS5
crw-rw---- 1 root dialout 4, 70 2006-08-09 12:05 /dev/ttyS6
crw-rw---- 1 root dialout 4, 71 2006-08-09 12:05 /dev/ttyS7

is there something wrong ?
 
Old 08-09-2006, 09:07 AM   #6
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
The devices seem correct to me, same permissions, correct major and minor numbers.
You mention "an embedded system (by NCR) which has 6 serial port (COM Port)" and "i use Linux From Scratch distro". What is your actual hardware setup?
My serial port experience is working with multiport cards and text terminals.
 
Old 08-09-2006, 07:49 PM   #7
kassle
Member
 
Registered: Jan 2006
Distribution: bodhi
Posts: 44

Original Poster
Rep: Reputation: 15
nah ... that is the problem

i don't know the actual hardware specification, so i use all serial driver available
on the kernel 2.6.11.12.

the box is sealed and warranty void if opened, and no manual books ... think someone hide
it. in the rear of the box says:

---------------
NCR Corporation
Model: MV-0951A
---------------

..... mommy! (
 
Old 08-09-2006, 08:04 PM   #8
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
There is nothing wrong from 'ls -l /dev/ttyS*'. It seems it gathered two extra ports. These ports might be on-board while the other six is from an expansion board. Write or use a program to test each port.
 
Old 08-10-2006, 05:02 AM   #9
kassle
Member
 
Registered: Jan 2006
Distribution: bodhi
Posts: 44

Original Poster
Rep: Reputation: 15
i tried using serial cable connected to another PC, then communicate it using minicom, and ... still ... only the first two port is usable, the another four is just stay like stupid.

when i activate the plug n play support in the kernel, in the message says (dmesg | grep tty)

ttyS0 at I/O 0x3f8 ( irq 4 ) is a 16550A
ttyS1 at I/O 0x2f8 ( irq 3 ) is a 16550A
ttyS0 at I/O 0x3f8 ( irq 4 ) is a 16550A
ttyS1 at I/O 0x2f8 ( irq 3 ) is a 16550A
ttyS14 at I/O 0x320 ( irq 5 ) is a 16550A
ttyS15 at I/O 0x328 ( irq 7 ) is a 16550A

and yes, only ttyS0 and ttyS1 is usable. Don't know why kernel detect ttyS14 not ttyS2.

BIOS setting for Serial Port:
com1 port 3f8 irq 4
com2 port 2f8 irq 3
com3 port 320 irq 5
com4 port 328 irq 5
com5 port 330 irq 5
com6 port 338 irq 5
 
Old 08-10-2006, 08:38 AM   #10
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
If I understand your posts, you are running Linux From Scratch on the small embedded device with 6 serial ports but attempting to configure the serial ports as though you are using a PC that has 2 serial ports on the mainboard and an added serial card. I wonder if this is the correct way to configure it.
Was the BIOS setting the default or did you modify it?
Are the ttyS14 & 15 ports useable? How about if you creat devices for them?
I wonder if there is more context from dmesg about those serial ports?
If those are all from the same section then all the serial ports are listed with 2 of them duplicated and 2 identified that do not exist.
Looks like a configuration issue unless the device itself is somehow non-standard in the way the serial ports work.
 
Old 08-13-2006, 08:32 PM   #11
kassle
Member
 
Registered: Jan 2006
Distribution: bodhi
Posts: 44

Original Poster
Rep: Reputation: 15
Yes i use Linux From Scracth on the small embedded device with 6 serial port. Because the speed is slow (300Mhz) I use PC with 2 serial port to compile kernel and applications, then transfer it into the embedded device.

I have tried to use the BIOS default factory setting and customized setting, both didn't give any solution.

The ttyS14 and ttyS15 is unuseable. OK, here is the full dmesg output

http://krybrig.narod.ru/files/dmesg_output.txt
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux serial port to router console port connection? frankie_fix Linux - General 3 02-26-2007 09:32 PM
timedia 4 port serial port i/o card configuration binu_edl Linux - Hardware 0 03-09-2006 09:39 AM
IBM AIX 5.2/5.3 serial port/tty0 port vinod_balani AIX 2 02-19-2006 03:38 PM
Using serial port card(PCMCIA) with IPAQ running Linux, can't find ttyS0 port d2army Linux - Laptop and Netbook 0 11-12-2005 08:07 PM
Using an USB port as a standard DB9 Serial Port Lsteele Linux - Newbie 1 10-22-2005 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration