LinuxQuestions.org
Help answer threads with 0 replies.
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 01-06-2004, 12:20 PM   #1
KePSuX
Member
 
Registered: Nov 2002
Location: Fredericksburg Va
Distribution: Gentoo
Posts: 59

Rep: Reputation: 15
Redhat 7.3 + 2940UW SCSI PCI


I am installing a Adpatec 2940UW SCSI PCI card into a machine with redhat 7.3 and kernel 2.4.23. When the machine boots, it sees the card and also lists the tape drive attached to the controller correctly.

Code:
SCSI ID: 6 Seagate DAT 9SP40-000
Once in Redhat the machine dosen't see any trace of the card. I have complied support for SCSI devices as well as SCSI tape support in the kernel. This system has another Adaptec IDE RAID card it sees as a SCSI device. That card works without a hitch.

Here is cat /proc/scsi/scsi ( Keep in mind it sees one controller fine.)

Code:
[root@localhost root]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: ADAPTEC  Model: RAID-1           Rev: 3A0L
  Type:   Direct-Access                    ANSI SCSI revision: 02
Here is the dmesg.

Code:
[root@localhost root]# dmesg
Linux version 2.4.23 (root@localhost.localdomain) (gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)) #1 Fri Jan 2 11:36:21 EST 2004
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001fe40000 (usable)
 BIOS-e820: 000000001fe40000 - 000000001fe50000 (ACPI data)
 BIOS-e820: 000000001fe50000 - 000000001ff00000 (ACPI NVS)
510MB LOWMEM available.
On node 0 totalpages: 130624
zone(0): 4096 pages.
zone(1): 126528 pages.
zone(2): 0 pages.
Kernel command line: auto BOOT_IMAGE=2.4.23 ro root=802 BOOT_FILE=/boot/bzImage
Initializing CPU#0
Detected 2399.979 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 4784.12 BogoMIPS
Memory: 514024k/522496k available (1513k kernel code, 8084k reserved, 603k data, 96k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: bfebfbff 00000000 00000000 00000000
CPU:             Common caps: bfebfbff 00000000 00000000 00000000
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz stepping 07
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
PCI: PCI BIOS revision 2.10 entry at 0xf0031, last bus=2
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Ignoring BAR0-3 of IDE controller 00:1f.1
Transparent bridge - Intel Corp. 82801BA/CA/DB/EB PCI Bridge
PCI: Using IRQ router PIIX/ICH [8086/24c0] at 00:1f.0
PCI: Found IRQ 9 for device 00:1f.1
PCI: Sharing IRQ 9 with 00:1d.2
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
eepro100.c:v1.09j-t 9/29/99 Donald Becker http://www.scyld.com/network/eepro100.html
eepro100.c: $Revision: 1.36 $ 2000/11/17 Modified by Andrey V. Savochkin <saw@saw.sw.com.sg> and others
PCI: Found IRQ 7 for device 01:08.0
eth0: Intel Corp. 82801BD PRO/100 VE (LOM) Ethernet Controller, 00:03:47:F3:0B:70, IRQ 7.
  Board assembly 000000-000, Physical connectors present: RJ45
  Primary interface chip i82555 PHY #1.
  General self-test: passed.
  Serial sub-system self-test: passed.
  Internal registers self-test: passed.
  ROM checksum self-test: passed (0x04f4518b).
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 438M
agpgart: Detected an Intel(R) 845G Chipset.
agpgart: Detected 892K stolen memory.
agpgart: AGP aperture is 128M @ 0xf0000000
[drm] Initialized tdfx 1.0.0 20010216 on minor 0
[drm] AGP 0.99 Aperture @ 0xf0000000 128MB
[drm] Initialized radeon 1.7.0 20020828 on minor 1
[drm] AGP 0.99 Aperture @ 0xf0000000 128MB
[drm] Initialized i810 1.2.1 20020211 on minor 2
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ICH4: IDE controller at PCI slot 00:1f.1
PCI: Enabling device 00:1f.1 (0005 -> 0007)
PCI: Found IRQ 9 for device 00:1f.1
PCI: Sharing IRQ 9 with 00:1d.2
ICH4: chipset revision 1
ICH4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:pio
hda: SAMSUNG CD-ROM SC-152A, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: attached ide-cdrom driver.
hda: ATAPI 52X CD-ROM drive, 128kB Cache
Uniform CD-ROM driver Revision: 3.12
SCSI subsystem driver Revision: 1.00
Loading Adaptec I2O RAID: Version 2.4 Build 5
Detecting Adaptec I2O RAID controllers...
PCI: Found IRQ 3 for device 01:00.0
Adaptec I2O RAID controller 0 at e0888000 size=100000 irq=3
dpti: If you have a lot of devices this could take a few minutes.
dpti0: Reading the hardware resource table.
TID 008  Vendor: HIGHPOINT    Device: IDEhpt370    Rev: 00000001
TID 009  Vendor: HIGHPOINT    Device: IDEhpt370    Rev: 00000001
TID 010  Vendor: HIGHPOINT    Device: IDEhpt370    Rev: 00000001
TID 011  Vendor: HIGHPOINT    Device: IDEhpt370    Rev: 00000001
TID 517  Vendor: ADAPTEC      Device: RAID-1       Rev: 3A0L
scsi0 : Vendor: Adaptec  Model: 2400A            FW:3A0L
  Vendor: ADAPTEC   Model: RAID-1            Rev: 3A0L
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 240119808 512-byte hdwr sectors (122941 MB)
Partition check:
 sda: sda1 sda2 sda3
I2O Core - (C) Copyright 1999 Red Hat Software
I2O: Event thread created as pid 9
I2O configuration manager v 0.04.
  (C) Copyright 1999 Red Hat Software
i2o_scsi.c: Version 0.0.1
  chain_pool: 0 bytes @ dfcaf400
  (512 byte buffers X 4 can_queue X 0 i2o controllers)
md: raid1 personality registered as nr 3
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 96k freed
Adding Swap: 1044216k swap-space (priority -1)
EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,2), internal journal
kjournald starting.  Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,1), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
This is the first time I have ever done anything with SCSI devices in Linux, so if I am missing and helpful info let me know. Thanks for any help!

Last edited by KePSuX; 01-07-2004 at 07:21 AM.
 
Old 01-06-2004, 06:48 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Hmm, a 2490 is a 79xx card I think. What's the output of /sbin/lspci?

Also, when you recompiled, did you build the SCSI low driver into the kernel or as a module, RH9 didn't have hotplugging at the time, but it should have gotten that one... hmm, I guess figuring out the exact chipset would be the important part first. Yeah, the lspci line is the big part.

Cheers,

Finegan
 
Old 01-07-2004, 08:08 AM   #3
KePSuX
Member
 
Registered: Nov 2002
Location: Fredericksburg Va
Distribution: Gentoo
Posts: 59

Original Poster
Rep: Reputation: 15
Code:
[root@localhost root]# /sbin/lspci
00:00.0 Host bridge: Intel Corp.: Unknown device 2560 (rev 01)
00:02.0 VGA compatible controller: Intel Corp.: Unknown device 2562 (rev 01)
00:1d.0 USB Controller: Intel Corp.: Unknown device 24c2 (rev 01)
00:1d.1 USB Controller: Intel Corp.: Unknown device 24c4 (rev 01)
00:1d.2 USB Controller: Intel Corp.: Unknown device 24c7 (rev 01)
00:1e.0 PCI bridge: Intel Corp. 82801BA/CA PCI Bridge (rev 81)
00:1f.0 ISA bridge: Intel Corp.: Unknown device 24c0 (rev 01)
00:1f.1 IDE interface: Intel Corp.: Unknown device 24cb (rev 01)
00:1f.3 SMBus: Intel Corp.: Unknown device 24c3 (rev 01)
01:00.0 I2O: Distributed Processing Technology SmartRAID V Controller (rev 02)
01:00.1 PCI bridge: Distributed Processing Technology PCI Bridge (rev 02)
01:01.0 SCSI storage controller: Adaptec AHA-2940UW Pro / AIC-788x (rev 01)
01:08.0 Ethernet controller: Intel Corp.: Unknown device 1039 (rev 81)
Looks like it sees it. I compiled the SCSI low driver into the kernel, not as a module. Is that wrong? THanks for the help!
 
Old 01-07-2004, 08:32 AM   #4
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
lspci just gives a read of what's on the PCI bus, it doesn't tell if its actually loaded any support for any of it.

The proper driver seems to be the old adapter aic7xxx driver, from the kernel options for the new one it doesn't seem as if it covers the 2940, just the 27xx and 28xx series. So under a make menuconfig it would seem that it should be this one:

Code:
< > Adaptec AIC7xxx support                                          │ │
  │ │< > Adaptec AIC79xx support                                          │ │
  │ │<M> Old Adaptec AIC7xxx support                                      │ │
  │ │[ ]   Enable Tagged Command Queueing (TCQ) by default                │ │
  │ │(8)   Maximum number of TCQ commands per device                      │ │
  │ │[ ]   Collect statistics to report in /proc
At least, that's my first guess... googling on this thing brings up too much garbage to be done quickly.

I would try it first as a module, newer kernels were bugging out on this card, at least that's the problem I had with an old VA server and a AIC-7896U2/7897U2

Cheers,

Finegan
 
Old 01-07-2004, 08:45 AM   #5
KePSuX
Member
 
Registered: Nov 2002
Location: Fredericksburg Va
Distribution: Gentoo
Posts: 59

Original Poster
Rep: Reputation: 15
OK, im stupid. I didnt have support for the chipset complied. Now that I have recompiled it sees the SCSI card and the Tape drive I have hooked to it. From here, how can I see where in /dev/ the tape drive is? Keep in mind, sda1 and sda2 are taken by the HDD's. I ran mt -f /dev/st0 status as a test and it locked up the term, and wouldnt allow it to kill the PID of mt. Also, the tape will not eject. Is that a software thing? (Like when a mounted CD-ROM wont eject). Sorry, I'm new to this side of Linux. Thanks again for your help!

EDIT:

ok, i ran the mt command again and it didnt lockup. I guess it didnt lock up the first time, it just takes a long time to run. anyways, here is the output:

Code:
[root@localhost root]# mt -f /dev/st0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (1010000):
 ONLINE IM_REP_EN
Thats good, right? haha.

Im still worried about the device not ejecting.

Oh, and when writting to the tape, I can just "tar -zcvf /dev/st0 /usr/backup"...right? Thanks again!

oh...last...do I have to format the tape for it's use?

Last edited by KePSuX; 01-07-2004 at 10:02 AM.
 
Old 01-07-2004, 02:16 PM   #6
KePSuX
Member
 
Registered: Nov 2002
Location: Fredericksburg Va
Distribution: Gentoo
Posts: 59

Original Poster
Rep: Reputation: 15
ok, it seems that my woes were solved by changing the tape. It looks like the tape I was using was bad. Thanks again for the help!
 
Old 01-07-2004, 05:02 PM   #7
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Whew, good, because I was a bit lost after the card, never had the pleasure of playing with tapes. Have fun, that's quite a beast of a machine there.

Cheers,

Finegan
 
  


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
what PCI SCSI adapter do you recommend for FC2? coontie Linux - Hardware 2 10-17-2004 09:35 PM
pci SATA or SCSI controller or external usb HD kiko Slackware 1 02-05-2004 09:42 PM
Adaptec 2940UW errors larrystorch Linux - Hardware 3 08-25-2003 11:22 AM
SCSI and PCI->PCMCIA adapter issues salmo Linux - Hardware 1 05-05-2003 05:01 PM
SCSI 1510 Not PCI darkness Linux - Hardware 16 04-15-2002 07:02 PM

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

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