From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.44.254]) by listman.redhat.com (Postfix) with ESMTP id 7976F3FBEE for ; Thu, 10 Jan 2002 12:23:58 -0500 (EST) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id g0AHNwE19428 for ; Thu, 10 Jan 2002 12:23:58 -0500 Received: (from mail@localhost) by mail.redhat.com (8.11.6/8.8.7) id g0AHNwQ03872 for blinux-list@listman.redhat.com; Thu, 10 Jan 2002 12:23:58 -0500 Received: from dc.cis.okstate.edu (dc.cis.okstate.edu [139.78.100.219]) by mail.redhat.com (8.11.6/8.8.7) with ESMTP id g0AHNvd03868 for ; Thu, 10 Jan 2002 12:23:57 -0500 Received: from dc.cis.okstate.edu (localhost.cis.okstate.edu [127.0.0.1]) by dc.cis.okstate.edu (8.11.3/8.11.3) with ESMTP id g0AHNvg60743 for ; Thu, 10 Jan 2002 11:23:57 -0600 (CST) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <200201101723.g0AHNvg60743@dc.cis.okstate.edu> To: blinux-list@redhat.com Subject: Still Having Fun with SCSI Emulation. Date: Thu, 10 Jan 2002 11:23:57 -0600 From: "Martin G. McCormick" X-Loop: blinux-list@redhat.com Sender: blinux-list-admin@redhat.com Errors-To: blinux-list-admin@redhat.com X-BeenThere: blinux-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: blinux-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux for blind general discussion List-Unsubscribe: , List-Archive: I built my kernel which is 2.217 and selected SCSI support. I also selected SCSI emulation as there is no SCSI hardware. There is an ATAPI CDROM and the new Plextor CDRW drive will simply plug in to a remaining IDE slot on one of the controllers which are in the system. Because of that, I also selected SCSI CDROM support and the generic support. The only thing I didn't select was any hardware SCSI controllers, hard disk support or tape support. My /dev directory shows SG devices as in /dev/sg1, etc. When I boot, the dmesg output says the following regarding SCSI devices: scsi0 : SCSI host adapter emulation for IDE ATAPI devices scsi : 1 host. scsi : detected total. I am not sure if there should be something in the last line that says scsi : detected total. Then, I try something from root like cdrecord -scanbus I get cdrecord: No such file or directory. Cannot open SCSI driver. cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root. Cdrecord 1.8 (i686-pc-linux-gnu) Copyright (C) 1995-2000 Jörg Schilling Well, I was root when I did that and that was cdrecord -scanbus. If I try a lucky guess like cdda2wav -D/dev/sg1, I get the following error: cdda2wav: Bad file descriptor. Cannot open SCSI driver. open(/dev/sg1) in file interface.c, line 474 Use the script scan_scsi.linux to find out more. Probably you did not define your SCSI device. You can scan the SCSI bus(es) with 'cdrecord -scanbus'. Set the CDDA_DEVICE environment variable or use the -D option. You can also define the default device in the Makefile. The debug option for cdrecord told me that the device spec points to a null pointer which means that it is not set yet and explains why nothing else works. I could certainly set the device name if I knew one that works. By the way, I am using a 2.217 kernel because the 2.4x kernels seem to not respond to aumix settings. I think I'll mess with one problem at a time. I did compile a 2.410 kernel and had exactly the same SCSI weirdness. I think I maybe have missed a step or are misunderstanding instructions in the documentation. Right now, nothing quite adds up.