LinuxQuestions.org
Visit Jeremy's Blog.
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 02-06-2004, 06:33 AM   #1
peso
Member
 
Registered: Jan 2004
Posts: 35

Rep: Reputation: 15
How do I reserve an IRQ to ISA?


Hi,

How do I assign/reserve a specific IRQ to the ISA bus under Linux?

The distribution I'm working on is SuSE Linux 9.0, kernel 2.4.21-99 and I have GRUB as a boot loader.

Many thanks
/Peso

Last edited by peso; 02-06-2004 at 07:24 AM.
 
Old 02-06-2004, 08:48 AM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
BIOS assigns IRQs, usually its done automatically, but you can usually fiddle with the setting to have an IRQ reserved for a certain slot.

If this is trying to get a module to load right:

cat /proc/interrupts

and assign one that isn't being used with a module argument, usually something like:

modprobe 3c509 irq=7

Cheers,

Finegan
 
Old 02-06-2004, 08:55 AM   #3
peso
Member
 
Registered: Jan 2004
Posts: 35

Original Poster
Rep: Reputation: 15
The thing is that I want to assign IRQ 15 for a couple of my serial ports. Any idea how I would do this?

Let's say I wanted to assign serail ports /dev/ttyS2 and /dev/ttyS3 to IRQ 15. How would this be done?

Thanks
/Peso
 
Old 02-06-2004, 09:33 AM   #4
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Serial ports... oh:

man setserial

There's an option to hand set the IRQ, you can put a call to it in /etc/rc.d/rc.local so it'll get set at bootup.

Cheers,

Finegan
 
Old 02-06-2004, 03:01 PM   #5
peso
Member
 
Registered: Jan 2004
Posts: 35

Original Poster
Rep: Reputation: 15
Hi again,

I've already configured my serial ports in the file:
/etc/init.d/boot.local
and the port that I want to reserve the IRQ for is configured as:
setserial /dev/ttyS4 port 0x3E0 uart 16550A irq 15 baud_base 9600
but it still doesn't work.

The thing is that if I boot up in Windows first (I have a dual boot system) and then restart the computer (without shutting it down) and boot up in Linux, then it finds the serial port and I can communicate through it. In my BIOS I've reserved IRQ 15 for ISA devices and in Windows I have bo problem with it. But every time I run Linux (without the above procedure with booting up in Windows first) the serial port isn't recognized. So I guess Linux does something with the BIOS reservation of the IRQ when I boot up the system, but what?

Thankful for any help 'cause this is driving me crazy!

Many thanks
/Peso

Last edited by peso; 02-07-2004 at 04:02 AM.
 
Old 02-07-2004, 06:06 AM   #6
peso
Member
 
Registered: Jan 2004
Posts: 35

Original Poster
Rep: Reputation: 15
Maybe the problem described above has absolutely nothing to do with the IRQ not being reserved correctly. If so, does anybody have any ideas about what could cause the problem?

Thanks
/Peso
 
Old 02-07-2004, 10:08 AM   #7
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Quote:
/etc/init.d/boot.local
I wonder if it would work better in /etc/rc.d/rc.local
 
Old 02-07-2004, 11:34 AM   #8
peso
Member
 
Registered: Jan 2004
Posts: 35

Original Poster
Rep: Reputation: 15
There is no such file as /etc/rc.d/rc.local in SuSE Linux 9.0...

/Peso
 
Old 02-07-2004, 01:50 PM   #9
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
In Suse its /etc/rc.d/boot.local

Annoying huh? 4 out of 7 of the big distros have it in the same place, Debian Gentoo and SuSe had to be special.

So the IRQ gets assigned right if you warm reboot it from os to os, but not on a cold boot straight to Linux?

Cheers,

Finegan
 
Old 02-07-2004, 04:20 PM   #10
peso
Member
 
Registered: Jan 2004
Posts: 35

Original Poster
Rep: Reputation: 15
Yes that's it, or at least the communication through the serial port works if I warm boot it from os to os. I don't know if that has to do with the reservation of the IRQ or not, but that's the final thing I could think of...

Any ideas about anything that could solve this problem would be very much appreciated!!

/Peso
 
  


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
Reserve CPU Resource syseeker Programming 2 09-09-2005 10:46 AM
ISA shows up in lspci, but my mobo has no ISA slots... compjinx Linux - Hardware 7 09-10-2004 02:25 AM
Reserve local ip only for Router and for nobody else. RINO2004 Linux - Networking 4 07-08-2004 03:56 PM
ISA network card. I have io, irq and driver -now what? Lenny Linux - Hardware 1 05-07-2004 06:03 PM
Reserve IP in DHCP plexus Red Hat 6 03-08-2004 01:20 PM

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

All times are GMT -5. The time now is 01:08 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