cdrecord problem with my compiled kernel
From: Griff Miller II (griff.miller_at_positron.com)
Date: 08/24/03
- Previous message: Ronny: "Installing Mandrake L. 9.1 PPC on beige Mac G3, can't find Seagate harddisk"
- Next in thread: ericb: "Re: cdrecord problem with my compiled kernel"
- Reply: ericb: "Re: cdrecord problem with my compiled kernel"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 24 Aug 2003 15:29:04 -0500
OK, I've got Yellowdog Linux installed on my Mac clone (Umax S900) .
cdrecord was working fine, but then I compiled my own kernel. This
fixed my sound problem (the reason I built my own kernel), but breaks
cdrecord in some strange and mysterious ways.
First of all, yes I have sg in the kernel. I've tried it both as
builtin and as a module. Here is my problem:
% uname -a
Linux verve 2.4.21-ben2 #2 Sat Aug 23 12:40:02 CDT 2003 ppc ppc ppc
GNU/Linux
% which cdrecord
/usr/bin/cdrecord
% ls -la /usr/bin/cdrecord
-rwsr-xr-x 1 root root 407265 Aug 20 21:58
/usr/bin/cdrecord
% cdrecord -scanbus
Cdrecord-Clone 2.01a18 (powerpc-unknown-linux-gnu) Copyright (C)
1995-2003 Jörg Schilling
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.7'
scsibus0:
0,0,0 0) 'QUANTUM ' 'FIREBALL SE2.1S ' 'PJ09' Disk
0,1,0 1) 'IBM ' 'DNES-309170Y ' 'SA30' Disk
0,2,0 2) 'SEAGATE ' 'ST32430N ' '0290' Disk
0,3,0 3) 'CONNER ' 'CP30540 SUN0535' 'B0BB' Disk
0,4,0 4) 'YAMAHA ' 'CRW6416S ' '1.0d' Removable
CD-ROM
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
% cdrecord dev=1,4,0 blank=fast
Cdrecord-Clone 2.01a18 (powerpc-unknown-linux-gnu) Copyright (C)
1995-2003 Jörg Schilling
scsidev: '1,4,0'
scsibus: 1 target: 4 lun: 0
Linux sg driver version: 3.1.25
cdrecord: No such file or directory. Cannot open '/dev/pg4'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
If I run an strace, I see that it looks like I have several /dev/sg* devices
that aren't really there:
open("/dev/sg5", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg6", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg7", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg8", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg9", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg10", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg11", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg12", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg13", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg14", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg15", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg16", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg17", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg18", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg19", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg20", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg21", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg22", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg23", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg24", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg25", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg26", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg27", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg28", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg29", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg30", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
open("/dev/sg31", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
In other words, the files are there in /dev, but when cdrecord actually tries
to use them, the open fails. sg[0-4] seem okay, though. So it goes on to try
other transports which also fail, and finally gives up, reporting the last one
it tried (pg4) .
What did I miss in my compile of the kernel that would make /dev/sg5 through
/dev/sg31 actually work?
Griff
- Previous message: Ronny: "Installing Mandrake L. 9.1 PPC on beige Mac G3, can't find Seagate harddisk"
- Next in thread: ericb: "Re: cdrecord problem with my compiled kernel"
- Reply: ericb: "Re: cdrecord problem with my compiled kernel"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|