Date: Mon, 8 May 2000 14:18:07 +0200 From: Farid Hajji <farid.hajji@ob.kamp.net> To: questions@freebsd.org, schilling@fokus.gmd.de Subject: cdrecord, freebsd and atapi cd-writers Message-ID: <200005081218.e48CI7p00512@mail-ob.kamp.net>
next in thread | raw e-mail | index | archive | help
Hello, I'm currently trying to figure out how to use cdrecord on FreeBSD with an atapi (ide) cd-writer. My setup is: Operating System: FreeBSD 3.4-RELEASE Cdrecord-Version: Cdrecord release 1.8a33 Hardware : /dev/wd0s1 Primary IDE-Disk /dev/da0s1 Internal SCSI-Disk on an ahc0 /dev/acd0 IDE-CDROM /dev/acd1 ATAPI CD-Writer (HP CD-Writer 7200+) The relevant parts from dmesg are: -------------- dmesg output -------------- dmesg output -------------------- ahc0: <Adaptec 2940 Ultra SCSI adapter> rev 0x00 int a irq 12 on pci0.10.0 ahc0: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (wd0): <SAMSUNG SV0644A> wd0: 6105MB (12504240 sectors), 13232 cyls, 15 heads, 63 S/T, 512 B/S wdc0: unit 1 (atapi): <FX810T4/a01>, removable, intr, dma, iordis acd0: drive speed 1377KB/sec, 256KB cache acd0: supported read types: CD-DA acd0: Audio: play, 255 volume levels acd0: Mechanism: ejectable tray acd0: Medium: no/blank disc inside, unlocked wdc1 at 0x170-0x177 irq 15 on isa wdc1: unit 0 (atapi): <HP CD-Writer+ 7200/V:003.01>, removable, dma, iordy acd1: drive speed 344 - 1034KB/sec, 768KB cache acd1: supported read types: CD-R, CD-RW, CD-DA, packet track acd1: supported write types: CD-R, CD-RW, test write acd1: Audio: play, 128 volume levels acd1: Mechanism: ejectable tray acd1: Medium: no/blank disc inside, unlocked, lock protected da0 at ahc0 bus 0 target 0 lun 0 da0: <IBM DORS-32160W WA6A> Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing Enabled da0: 2063MB (4226725 512 byte sectors: 255H 63S/T 263C) -------------- dmesg output -------------- dmesg output -------------------- I also enabled the pass0 device in the kernel config file. Here the relevant parts: -------------- relevant parts from kernel config file ---------------------- # ATAPI devices options ATAPI #Enable ATAPI support for IDE bus options ATAPI_STATIC #Don't do it as an LKM device acd0 #IDE CD-ROM # SCSI Controllers controller ahc0 # AHA2940 and onboard AIC7xxx devices # SCSI peripherals controller scbus0 # SCSI bus (required) device da0 # Direct Access (disks) device sa0 # Sequential Access (tape etc) device cd0 # CD device pass0 # Passthrough device (direct SCSI) pseudo-device vn 2 # mounting files as filesystems vnconfig(8) -------------- relevant parts from kernel config file ---------------------- Still, I'm having trouble using cdrecord. AFAIK, cdrecord talks to ATAPI Drives through some kind of SCSI over IDE and needs some scsi passthrough or scsi-ide emulator. With my current setup, cdrecord -scanbus returns: bsdevil# cdrecord -scanbus Cdrecord release 1.8a33 Copyright (C) 1995-1999 Jörg Schilling Using libscg version 'schily-0.1' scsibus0: 0,0,0 0) 'IBM ' 'DORS-32160W ' 'WA6A' Disk 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) * The CD-Writer was not recognized there. I couldn't figure out which dev=... to use for the /dev/acd1 cd-writer. BTW, the writer works very well under Linux with the ide-scsi kernel-module together with the generic scsi code 'sg'. The drive is recognized by cdrecord in scsibus1 with the dev=1,0,0 line. The only quirck there was to make sure, that the ide cd-writer was not grabbed at boot time by the ide driver. I'm sorry if this is a FAQ. I couldn't find any relevant information on ATAPI CD-Writers, Cdrecord and FreeBSD. Thank you for your help. -Farid. -- Farid Hajji Broicherdorfstr. 83, D-41564 Kaarst, Germany Phone: +49-2131-67-555, E-Mail: farid.hajji@ob.kamp.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005081218.e48CI7p00512>