LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-06-2008, 06:56 AM   #1
methana
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Rep: Reputation: 0
Exclamation How to recompile the kernal to enable more serial ports?


I have debian-40r3-i386-netinst with kernel (2.6.18-6-686)
I need to enable more than 4 serial ports (ttyS4-ttyS5).
How to recompile the kernel to enable more serial ports?

any help as welcome

thx in advance

Last edited by methana; 07-06-2008 at 07:02 AM.
 
Old 07-06-2008, 09:17 AM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
In your Linux source tree:

include/asm/serial.h

Look for something like this:
#define SERIAL_PORT_DFNS \
/* UART CLK PORT IRQ FLAGS */ \
{ 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS }, /* ttyS0 */ \
{ 0, BASE_BAUD, 0x2F8, 3, STD_COM_FLAGS }, /* ttyS1 */ \
{ 0, BASE_BAUD, 0x3E8, 4, STD_COM_FLAGS }, /* ttyS2 */ \
{ 0, BASE_BAUD, 0x2E8, 3, STD_COM4_FLAGS }, /* ttyS3 */

Just add to that, giving the default IO address and IRQs.

Then in the kernel configuration, check/choose the appropriate values for:
CONFIG_SERIAL_8250_NR_UARTS
CONFIG_SERIAL_8250_RUNTIME_UARTS
 
Old 07-09-2008, 05:49 PM   #3
methana
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Original Poster
Rep: Reputation: 0
can you explain me how to do that step by step

thx in advance
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SUSE 10.1, how to enable more than 4 serial ports? LJEB Linux - Hardware 2 09-14-2006 02:35 PM
how do can I recompile my kernal faster babyboss Slackware 5 10-24-2004 02:41 PM
No sound after kernal recompile! Luantum Linux - General 2 12-09-2003 12:20 AM
How to remove a kernal recompile that fails? Crasherz Linux - Newbie 9 11-11-2003 09:24 AM
Kernal Recompile Problem lparag Red Hat 2 09-29-2003 07:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration