LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Need help getting module to load (https://www.linuxquestions.org/questions/linux-hardware-18/need-help-getting-module-to-load-182217/)

mitchmiller 05-16-2004 07:33 PM

Need help getting module to load
 
I have a adaptec ava1502 scsi card that I use for my scanner. I had it working when I had my win98 and mandrake 9.2 dual boot going. Then I got rid of 98 and 9.2, went ot 10, couldn't get a few things working so i've gone back to 9.2. Now I can't get the darn card to work.

here is info:

[root@localhost mitch]# modprobe aha152x
/lib/modules/2.4.22-10mdk/kernel/drivers/scsi/aha152x.o.gz: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
modprobe: insmod /lib/modules/2.4.22-10mdk/kernel/drivers/scsi/aha152x.o.gz failed
modprobe: insmod aha152x failed

/var/log/dmesg (relevant portion):
SCSI subsystem driver Revision: 1.00
hdd: attached ide-scsi driver.
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: MITSUMI Model: CR-4804TE Rev: 3.0D
Type: CD-ROM ANSI SCSI revision: 02
aha152x: invalid module params io=0x8c, irq=10,scsiid=7,reconnect=1,parity=1,sync=1,delay=1000,exttrans=0
hdc: attached ide-cdrom driver.
hdc: ATAPI 40X DVD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12

/etc/modules
scsi_hostadapter
aha152x

/etc/modules.conf
alias eth0 8139too
probeall scsi_hostadapter ide-scsi
probeall usb-interface usb-uhci
options aha152x io=140 irq=10

The jumpers on the card are set to io=140 and irq=10

/proc/ioports
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
0213-0213 : isapnp read
02f8-02ff : serial(auto)
0376-0376 : ide1
0378-037a : parport0
037b-037f : parport0
03c0-03df : vesafb
03e8-03ef : serial(auto)
03f6-03f6 : ide0
03f8-03ff : serial(auto)
0a79-0a79 : isapnp write
0cf8-0cff : PCI conf1
4000-403f : Intel Corp. 82371AB/EB/MB PIIX4 ACPI
5000-501f : Intel Corp. 82371AB/EB/MB PIIX4 ACPI
d000-dfff : PCI Bus #01
d000-d0ff : ATI Technologies Inc Rage 128 RF/SG AGP
e000-e01f : Intel Corp. 82371AB/EB/MB PIIX4 USB
e000-e01f : usb-uhci
e400-e4ff : Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
e400-e4ff : 8139too
f000-f00f : Intel Corp. 82371AB/EB/MB PIIX4 IDE
f000-f007 : ide0
f008-f00f : ide1

/proc/interrupts
CPU0
0: 80864 XT-PIC timer
1: 1757 XT-PIC keyboard
2: 0 XT-PIC cascade
8: 1 XT-PIC rtc
9: 3029 XT-PIC usb-uhci, eth0
12: 22026 XT-PIC PS/2 Mouse
14: 12991 XT-PIC ide0
15: 100 XT-PIC ide1
NMI: 0
LOC: 80828
ERR: 0
MIS: 0

One funny thing to note, if I change /etc/modules.conf to read "alias aha152x io=140 irq=10" then modprobe returns that the module is not found (or something like that).

So, what am I doing wrong?

Mitch

mitchmiller 05-16-2004 07:50 PM

updated info
 
Ok, so i changed /etc/modules.conf to read:

alias eth0 8139too
probeall scsi_hostadapter ide-scsi
probeall usb-interface usb-uhci
options aha152x io=0x140 irq=10

now /var/log/dmesg reads:

SCSI subsystem driver Revision: 1.00
hdd: attached ide-scsi driver.
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: MITSUMI Model: CR-4804TE Rev: 3.0D
Type: CD-ROM ANSI SCSI revision: 02
aha152x: BIOS test: passed, detected 1 controller(s)
aha152x: resetting bus...
aha152x1: vital data: rev=1, io=0x140 (0x140/0x140), irq=10, scsiid=7, reconnect=enabled, parity=enabled, synchronous=enabled, delay=1000, extended translation=disabled
aha152x1: trying software interrupt, ok.
scsi1 : Adaptec 152x SCSI driver; $Revision: 2.5 $
hdc: attached ide-cdrom driver.
hdc: ATAPI 40X DVD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12

so it looks like the module is loading... but when I run modprobe aha152x, nothing happens when I go to Mandrake control center and tell it to search for scanners it finds nothing.

So I'm closer but still not there yet.

Mitch


All times are GMT -5. The time now is 05:33 PM.