From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <deniss@Princeton.EDU>
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=DMARC_REJECT,
	MAILING_LIST_MULTI autolearn=no autolearn_force=no version=4.0.0
Received: from Princeton.EDU (postoffice.Princeton.EDU [128.112.129.120])
	by chiba.3jane.net (Postfix) with ESMTP
	id D0648AC3D2; Fri, 30 Aug 2002 08:56:19 -0500 (CDT)
Received: from smtpserver2.Princeton.EDU (smtpserver2.Princeton.EDU [128.112.129.148])
	by Princeton.EDU (8.12.3/8.12.3) with ESMTP id g7UDtVj5017565;
	Fri, 30 Aug 2002 09:55:31 -0400 (EDT)
Received: from yuma.Princeton.EDU (yuma.Princeton.EDU [128.112.128.89])
	by smtpserver2.Princeton.EDU (8.12.2/8.12.2) with ESMTP id g7UDtV2d010433;
	Fri, 30 Aug 2002 09:55:31 -0400 (EDT)
Received: from localhost (deniss@localhost)
	by yuma.Princeton.EDU (8.9.1/8.9.1) with ESMTP id JAA25982;
	Fri, 30 Aug 2002 09:55:31 -0400 (EDT)
Date: Fri, 30 Aug 2002 09:55:31 -0400 (EDT)
From: Denis Shcherbakov <deniss@Princeton.EDU>
To: gentoo-dev@gentoo.org, <gentoo-user@gentoo.org>
Message-ID: <Pine.GSO.4.44.0208300942260.22870-100000@yuma.Princeton.EDU>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Subject: [gentoo-dev] ATAPI IDE CD-RW under Gentoo
Sender: gentoo-dev-admin@gentoo.org
Errors-To: gentoo-dev-admin@gentoo.org
X-BeenThere: gentoo-dev@gentoo.org
X-Mailman-Version: 2.0.6
Precedence: bulk
List-Help: <mailto:gentoo-dev-request@gentoo.org?subject=help>
List-Post: <mailto:gentoo-dev@gentoo.org>
List-Subscribe: <http://lists.gentoo.org/mailman/listinfo/gentoo-dev>,
	<mailto:gentoo-dev-request@gentoo.org?subject=subscribe>
List-Id: Gentoo Linux developer list <gentoo-dev.gentoo.org>
List-Unsubscribe: <http://lists.gentoo.org/mailman/listinfo/gentoo-dev>,
	<mailto:gentoo-dev-request@gentoo.org?subject=unsubscribe>
List-Archive: <http://lists.gentoo.org/pipermail/gentoo-dev/>
X-Archives-Salt: 6551bbe6-d2c4-45e1-a5d6-f73e26dde582
X-Archives-Hash: 3b26cc3f6d4b8bb1b7a727886b577378

I have one cd drive in my system, which is a SONY IDE CD-RW.  I have a
couple questions:  there seem to be a lot of docs about this on the net,
but there are a lot of differences.

In my kernel, I have IDE-CD compiled in (as Y, not M), and I compiled scsi
emulation as modules, so I have sg, sr_mod, and ide-scsi modules available
to load.  I don't want to recompile the kernel now to de-select ide-cd
support or modularize it, so I am wondering how to beat it.

I notice that my ide-scsi doesn't load at boot, even though I use a kernel
boot parameter of "hdc=ide-scsi".  My sg and sr_mod do load, but without
ide-scsi running "cdrecord -scanbus" doesn't yield anything.  When I
insert the module myself from the terminal (/sbin/insmod ide-scsi), then
cdrecord -scanbus reads "scsibus0: 0,0,0 0) 'SONY blah blah blah'", as it
should.

But, why doesn't my system load scsi emulation automatically, before
ide-cd detects the drive, even with my kernel boot parameter?  What can I
do here?  Redhat users can include "/sbin/insmod ide-scsi" into
/etc/rc.local or something, but I am not sure what is the equivalent of
this in Gentoo.  Where can I stick this?

Also, I do include various aliasing lines in /etc/modules.autoload, such
as "alias scsi_hostadapter ide-scsi" and "alias scd0 sr_mod".

I did uncomment lines appropriate for CD-RW in /etc/devfsd.conf, but do I
need to make an entry in /etc/fstab what includes this "scsi" device, or
will the line for cdrom automatically take care of that?

Any help appreciated.  Thanks!
Denis