LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 11-08-2007, 11:55 AM   #1
vladanski
LQ Newbie
 
Registered: Nov 2007
Posts: 1

Rep: Reputation: 0
Overrun errors on multiport serial card with 2.6 kernel


Hello all,

I am working on IP/GSM gateways with embedded 2.6.16.11 version of kernel. Processor is Intel Celeron on 400 MHz.

For GSM communication, I am using GSM cards (2 of them) put into PCI slots. Every GSM card has 4 GSM modules on it that are managed using 4 serial ports on 57600 bauds. Each GSM card has one Phillips or Exar 16C554 quad UART to access those serial ports.

So basically, I have 8 serial ports with 8 UARTs I am managing in real time. Each serial port is configured on start up using command like this:

setserial /dev/ttySx port port_address irq 12 uart 16550A baud_base 230400 spd_cust divisor 4 share_irq

where port_address is got from lspci -v and x is going from 3 to 10.

My problem is that I am getting overrun errors from time to time that I cannot get rid of. I have tried to set low_latency flag to setserial, recompiled kernel with CONFIG_PREEMPT enabled and tried to give serial IRQ higher priority (by programming 8259 PIC) but nothing helped.

Overruns can easily be provocated by putting some load on system (lets say by copying some 10 Mb file over FTP).

One thing that surely helps is to lower port speed to 19200 bauds (no overruns in that case), but that is not what I want:-(. At absolutely same conditions, there is no such problems when using Windows:-( (57600 bauds, high I/O load, no overruns).

So I am wondering if I configured my serial ports wrong. Maybe they should be configured as multiport cards, but I think that 2.6 kernel does not support them (I am getting Cannot get multiport config: Invalid argument error).

Any suggestion will be appreciated.

Best regards,

Vlado.
 
  


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
Serial Port Buffer Overrun damiendusha Linux - Hardware 1 06-22-2006 02:56 AM
PC-COM Multiport Serial card king_nothingzzz Linux - Hardware 18 05-27-2005 08:15 PM
Multiport serial card and kernel 2.6 cits Linux - Hardware 3 03-17-2005 08:41 AM
Multiport Serial Card question FuriousGeorge Linux - Hardware 4 06-22-2004 07:59 AM
Multiport serial card for RAS Server uthlekan Linux - Networking 2 07-12-2003 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 06:48 AM.

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