Unix Technical Forum

problem with my atapi device

This is a discussion on problem with my atapi device within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> If your ide-scsi module is not working, or cd r-w rom is not being recognized. The try this. Recompile ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 02-20-2008, 06:36 AM
E. Charters
 
Posts: n/a
Default Re: problem with my atapi device

If your ide-scsi module is not working, or cd r-w rom is not being
recognized.

The try this.

Recompile the kernel in make menuconfig in /usr/src/linux

Invoke scsi emulation as a module in ide-ata-atapi block devices
section, but put enhanced IDE and Atapi CD-Rom support as in-kernel
compilation.

So ide-cd and ide-mod will NOT be modules but WILL be in the kernel --
AND ide-scsi WILL be a module.

Then go into SCSI and invoke all sCSI options needed for CDROM and
disk into the kernel, not as modules.

SCSi Support #would be module scsi_mod
SCSI disk support #would be mod sd_mod
SCSI CD-Rom #would be sr_mod
And SCSI generic #would be mod sg

All 4 above go into the kernel as compiled-in.

Turn on "set version information on all module symbols" in loadable
module support.

Save configuration.

make dep, make clean, make bzImage, make modules, make modules_install

cd /arch/i386/boot ... cp bzImage /vmlinuz.cdr

put vmlinuz.cdr in lilo.conf as an image with a new label, say
linux24cdr and close lilo.conf

Now go into /etc/rc.modules and turn off all
loading of scsi modules except ide-scsi and scsi_syms

Go into /etc/modules.conf and put in these 2 lines.

alias scsi-hostadapter ide-scsi
options ide-cd ignore=hdc # that could be ignore hdb.
# that if there is only one cd drive.

And in lilo after the boot prompt you put
append="hdc=ide-scsi"

run lilo and reboot.

It might work.

EC<:-}

myardbenoit@gmail.com wrote:
> Hello dudes,
>
> I'm invoking the power of usenet in order to help me fixing a quite
> annoying problem : i can't use burn CD with my cd driver. Yeah i know,
> what a common issue, but you're kinda of my last chance..
>
> First of all, i've to say that, Slackware is such a great distro, and
> untill now, everything was just perfect.
>
> As you probably assumed, it's an ATAPI device, and i'm running kernel
> 2.4.29, it's the standard kernel (called bare.i).
>
> I gave the kernel the 'hdc=ide-scsi' option (using GRUB) and I can see
> it in dmesg's output, i also know that the ide-scsi module is loaded,
> but i can't burn anything..
>
> My question is that : what can I do, what should I read ? Perahps load
> an extra module ? Or is my device an exotic one that should work fine
> with another well-tuned kernel ?
>
> And for information, i read somewhere that i have to load sr_mod, but
> modprobe can't find it ! (normal behavior with bare.i ?)
>
> And before you ask, dmesg, cdrecord -scanbus and lsmod 's outputs
> follow (perahps i shouldn't..?).
>
> Hope you managed to understand me..
>
> Thanks in advance.
>
> Here is the output of demsg (after trying to burn something) :
>
> Linux version 2.4.29 (root@midas) (gcc version 3.3.4) #6 Thu Jan 20
> 16:30:37 PST 2005
> BIOS-provided physical RAM map:
> BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
> BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
> BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
> BIOS-e820: 0000000000100000 - 000000000bff0000 (usable)
> BIOS-e820: 000000000bff0000 - 000000000bff3000 (ACPI NVS)
> BIOS-e820: 000000000bff3000 - 000000000c000000 (ACPI data)
> BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
> 191MB LOWMEM available.
> On node 0 totalpages: 49136
> zone(0): 4096 pages.
> zone(1): 45040 pages.
> zone(2): 0 pages.
> Kernel command line: root=/dev/hda1 hdc=ide-scsi
> ide_setup: hdc=ide-scsi
> Initializing CPU#0
> Detected 731.470 MHz processor.
> Console: colour VGA+ 80x25
> Calibrating delay loop... 1458.17 BogoMIPS
> Memory: 190888k/196544k available (1831k kernel code, 5268k reserved,
> 607k data, 120k init, 0k highmem)
> Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
> Inode cache hash table entries: 16384 (order: 5, 131072 bytes)
> Mount cache hash table entries: 512 (order: 0, 4096 bytes)
> Buffer cache hash table entries: 8192 (order: 3, 32768 bytes)
> Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
> CPU: L1 I cache: 16K, L1 D cache: 16K
> CPU: L2 cache: 256K
> CPU: After generic, caps: 0383f9ff 00000000 00000000 00000000
> CPU: Common caps: 0383f9ff 00000000 00000000 00000000
> CPU: Intel Pentium III (Coppermine) stepping 03
> Enabling fast FPU save and restore... done.
> Enabling unmasked SIMD FPU exception support... done.
> Checking 'hlt' instruction... OK.
> POSIX conformance testing by UNIFIX
> mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
> mtrr: detected mtrr type: Intel
> PCI: PCI BIOS revision 2.10 entry at 0xfb150, last bus=1
> PCI: Using configuration type 1
> PCI: Probing PCI hardware
> PCI: Probing PCI hardware (bus 00)
> PCI: Using IRQ router VIA [1106/0596] at 00:02.0
> Activating ISA DMA hang workarounds.
> Linux NET4.0 for Linux 2.4
> Based upon Swansea University Computer Society NET3.039
> Initializing RT netlink socket
> Starting kswapd
> VFS: Disk quotas vdquot_6.5.1
> Journalled Block Device driver loaded
> pty: 512 Unix98 ptys configured
> Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS
> MULTIPORT SHARE_IRQ SERIAL_PCIenabled
> ttyS00 at 0x03f8 (irq = 4) is a 16550A
> ttyS01 at 0x02f8 (irq = 3) is a 16550A
> Real Time Clock Driver v1.10f
> Floppy drive(s): fd0 is 1.44M
> FDC 0 is a post-1991 82077
> RAMDISK driver initialized: 16 RAM disks of 7777K size 1024 blocksize
> loop: loaded (max 8 devices)
> Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
> ide: Assuming 33MHz system bus speed for PIO modes; override with
> idebus=xx
> VP_IDE: IDE controller at PCI slot 00:02.1
> VP_IDE: chipset revision 16
> VP_IDE: not 100% native mode: will probe irqs later
> VP_IDE: VIA vt82c596b (rev 22) IDE UDMA66 controller on pci00:02.1
> ide0: BM-DMA at 0xe000-0xe007, BIOS settings: hdaMA, hdbMA
> ide1: BM-DMA at 0xe008-0xe00f, BIOS settings: hdcMA, hddio
> hda: ST320413A, ATA DISK drive
> hdb: WDC WD153AA-00BAA0, ATA DISK drive
> blk: queue c03ad460, I/O limit 4095Mb (mask 0xffffffff)
> blk: queue c03ad59c, I/O limit 4095Mb (mask 0xffffffff)
> hdc: CREATIVE CD-RW RW4424E, ATAPI CD/DVD-ROM drive
> ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
> ide1 at 0x170-0x177,0x376 on irq 15
> hda: attached ide-disk driver.
> hda: host protected area => 1
> hda: 39102336 sectors (20020 MB) w/512KiB Cache, CHS=2434/255/63,
> UDMA(66)
> hdb: attached ide-disk driver.
> hdb: host protected area => 1
> hdb: 30064608 sectors (15393 MB) w/2048KiB Cache, CHS=1871/255/63,
> UDMA(66)
> Partition check:
> hda: hda1 hda2
> hdb: hdb1
> SCSI subsystem driver Revision: 1.00
> kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
> kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
> kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
> md: linear personality registered as nr 1
> md: raid0 personality registered as nr 2
> md: raid1 personality registered as nr 3
> md: raid5 personality registered as nr 4
> raid5: measuring checksumming speed
> 8regs : 1210.400 MB/sec
> 32regs : 696.400 MB/sec
> pIII_sse : 1475.200 MB/sec
> pII_mmx : 1655.600 MB/sec
> p5_mmx : 1728.000 MB/sec
> raid5: using function: pIII_sse (1475.200 MB/sec)
> md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
> md: Autodetecting RAID arrays.
> md: autorun ...
> md: ... autorun DONE.
> LVM version 1.0.8(17/11/2003)
> Initializing Cryptographic API
> NET4: Linux TCP/IP 1.0 for NET4.0
> IP Protocols: ICMP, UDP, TCP, IGMP
> IP: routing cache hash table of 1024 buckets, 8Kbytes
> TCP: Hash tables configured (established 16384 bind 32768)
> Linux IP multicast router 0.06 plus PIM-SM
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> RAMDISK: Compressed image found at block 0
> Freeing initrd memory: 310k freed
> VFS: Mounted root (ext2 filesystem).
> kjournald starting. Commit interval 5 seconds
> EXT3-fs: mounted filesystem with ordered data mode.
> Freeing unused kernel memory: 120k freed
> Adding Swap: 996020k swap-space (priority -1)
> EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,1), internal journal
> Linux agpgart interface v0.99 (c) Jeff Hartmann
> agpgart: Maximum main memory to use for agp memory: 149M
> agpgart: Detected Via Apollo Pro chipset
> agpgart: AGP aperture is 64M @ 0xd0000000
> hdc: attached ide-scsi driver.
> scsi0 : SCSI host adapter emulation for IDE ATAPI devices
> Vendor: CREATIVE Model: CD-RW RW4424E Rev: 1.12
> Type: CD-ROM ANSI SCSI revision: 02
> Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
> sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
> Uniform CD-ROM driver Revision: 3.12
> PCI: Found IRQ 10 for device 00:0b.0
> usb.c: registered new driver usbdevfs
> usb.c: registered new driver hub
> uhci.c: USB Universal Host Controller Interface driver v1.1
> PCI: Found IRQ 5 for device 00:02.2
> uhci.c: USB UHCI at I/O 0xe400, IRQ 5
> usb.c: new USB bus registered, assigned bus number 1
> hub.c: USB hub found
> hub.c: 2 ports detected
> hub.c: new USB device 00:02.2-1, assigned address 2
> usb.c: USB device 2 (vend/prod 0xd7d/0x1600) is not claimed by any
> active driver.
> hub.c: new USB device 00:02.2-2, assigned address 3
> usb.c: USB device 3 (vend/prod 0x1110/0x9022) is not claimed by any
> active driver.
> Initializing USB Mass Storage driver...
> usb.c: registered new driver usb-storage
> scsi1 : SCSI emulation for USB Mass Storage devices
> Vendor: Model: USB DISK 20X Rev: 1.00
> Type: Direct-Access ANSI SCSI revision: 02
> Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
> SCSI device sda: 243712 512-byte hdwr sectors (125 MB)
> sda: Write Protect is off
> sda: sda1
> WARNING: USB Mass Storage data integrity not assured
> USB Mass Storage device found at 2
> USB Mass Storage support registered.
> paride: version 1.06 installed (parport)
> pg: pg version 1.02, major 97
> pg0: Autoprobe failed
> pg: No ATAPI device detected
> paride: version 1.06 installed (parport)
> pg: pg version 1.02, major 97
> pg0: Autoprobe failed
> pg: No ATAPI device detected
> paride: version 1.06 installed (parport)
> pg: pg version 1.02, major 97
> pg0: Autoprobe failed
> pg: No ATAPI device detected
> paride: version 1.06 installed (parport)
> pg: pg version 1.02, major 97
> pg0: Autoprobe failed
> pg: No ATAPI device detected
> paride: version 1.06 installed (parport)
> pg: pg version 1.02, major 97
> pg0: Autoprobe failed
> pg: No ATAPI device detected
> paride: version 1.06 installed (parport)
> pg: pg version 1.02, major 97
> pg0: Autoprobe failed
> pg: No ATAPI device detected
> paride: version 1.06 installed (parport)
> pg: pg version 1.02, major 97
> pg0: Autoprobe failed
> pg: No ATAPI device detected
> paride: version 1.06 installed (parport)
> pg: pg version 1.02, major 97
> pg0: Autoprobe failed
> pg: No ATAPI device detected
> sr0: CDROM not ready. Make sure there is a disc in the drive.
> sr0: CDROM (ioctl) reports ILLEGAL REQUEST.
> sr0: CDROM (ioctl) reports ILLEGAL REQUEST.
> attempt to access beyond end of device
> 0b:00: rw=0, want=34, limit=2
> isofs_read_super: bread failed, dev=0b:00, iso_blknum=16, block=16
> attempt to access beyond end of device
> 0b:00: rw=0, want=34, limit=2
> isofs_read_super: bread failed, dev=0b:00, iso_blknum=16, block=16
> ISO 9660 Extensions: Microsoft Joliet Level 3
> ISOFS: changing to secondary root
> ISO 9660 Extensions: Microsoft Joliet Level 3
> ISOFS: changing to secondary root
> paride: version 1.06 installed (parport)
> pg: pg version 1.02, major 97
> pg0: Autoprobe failed
> pg: No ATAPI device detected
> paride: version 1.06 installed (parport)
> pg: pg version 1.02, major 97
> pg0: Autoprobe failed
> pg: No ATAPI device detected
> paride: version 1.06 installed (parport)
> pg: pg version 1.02, major 97
> pg0: Autoprobe failed
> pg: No ATAPI device detected
> paride: version 1.06 installed (parport)
> pg: pg version 1.02, major 97
> pg0: Autoprobe failed
> pg: No ATAPI device detected
>
> I'm really sorry, it was pretty long...
>
> cdrecord -scanbus finds my device (but why is it 0,0,0 and why is my
> usb bus listed ?) :
>
> Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 JГ¶rg
> Schilling
> Linux sg driver version: 3.1.25
> Using libscg version 'schily-0.8'.
> scsibus0:
> 0,0,0 0) 'CREATIVE' 'CD-RW RW4424E ' '1.12' Removable
> CD-ROM
> 0,1,0 1) *
> 0,2,0 2) *
> 0,3,0 3) *
> 0,4,0 4) *
> 0,5,0 5) *
> 0,6,0 6) *
> 0,7,0 7) *
> scsibus1:
> 1,0,0 100) ' ' 'USB DISK 20X ' '1.00' Removable
> Disk
> 1,1,0 101) *
> 1,2,0 102) *
> 1,3,0 103) *
> 1,4,0 104) *
> 1,5,0 105) *
> 1,6,0 106) *
> 1,7,0 107) *
>
> And now comes lsmod's output :
>
> Module Size Used by Not tainted
> snd-pcm-oss 36704 0
> snd-mixer-oss 12152 2 [snd-pcm-oss]
> usb-storage 62336 1
> uhci 24284 0 (unused)
> usbcore 58860 1 [usb-storage uhci]
> snd-cmipci 16704 3
> gameport 1420 0 [snd-cmipci]
> snd-pcm 54504 1 [snd-pcm-oss snd-cmipci]
> snd-opl3-lib 5860 0 [snd-cmipci]
> snd-hwdep 4352 0 [snd-opl3-lib]
> snd-timer 13412 0 [snd-pcm snd-opl3-lib]
> snd-mpu401-uart 3200 0 [snd-cmipci]
> snd-rawmidi 12320 0 [snd-mpu401-uart]
> snd-seq-device 3812 0 [snd-opl3-lib snd-rawmidi]
> snd 31268 0 [snd-pcm-oss snd-mixer-oss snd-cmipci
> snd-pcm snd-opl3-lib snd-hwdep snd-timer snd-mpu401-uart snd-rawmidi
> snd-seq-device]
> snd-page-alloc 4712 0 [snd-mixer-oss snd-pcm snd-hwdep
> snd-timer snd-rawmidi snd-seq-device snd]
> soundcore 3396 4 [snd]
> ide-scsi 9392 0
> agpgart 45092 0 (unused)
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:49 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com