Re: [gentoo-user] /dev/sr0 has disappeared: big mystery

2009-05-16 Thread Dirk Heinrichs
Am Samstag, 16. Mai 2009 18:38:26 schrieb Dirk Heinrichs:
> > CONFIG_HAVE_IDE=y
>
> Useless.

Hmm, seems to be selected automatically, thus not that useless ;) However, I 
can't even find it in menuconfig.

Bye...

Dirk


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] /dev/sr0 has disappeared: big mystery

2009-05-16 Thread Dirk Heinrichs
Am Samstag, 16. Mai 2009 11:55:18 schrieb Philip Webb:
> 090516 Dirk Heinrichs wrote:
> > Please post your kernel config.  Please post it completely,
> > best together with output from "lspci -v" when booted into the LiveCD.
>
> I have got 2.6.25 to work again after enabling 'evdev'

evdev is completely unrelated to CD writing.

> & have just successfully written System Rescue 1.2.0 using it.
> I also compiled 2.6.29-r4 -- the latest in Gentoo testing --
> & enabled the alternative IDE mode without anything changing.
> I also recompiled Udev Dbus & Hal without any improvement.
> Kernel 2.6.29 is simply not creating a device for the CD drive.

Because you're lacking the kernel support for it, see below.

> Thanks for your interest: it mb that this is a kernel bug.

No, it's not.

> Here is the output from 'lspci -v' when using 2.6.25 (when writing this),
> followed by .config for 2.6.29 :

OK, let's look at the interesting parts:

> 00:1f.2 SATA controller: Intel Corporation 82801IB (ICH9) 4 port SATA AHCI
>   Kernel driver in use: ahci

So you need CONFIG_SATA_AHCI=y, which you have.

> 03:00.0 IDE interface: JMicron Technologies, Inc. JMB368 IDE controller
>   Kernel driver in use: pata_jmicron

For this you need CONFIG_PATA_JMICRON=y, which you don't have. This is where 
your CD drive is connected to, right?

Let's go through the kernel config:

> # CONFIG_PCIEPORTBUS is not set

You really need to enable this (that is a PCI-Express machine, isn't it?).

> CONFIG_BLK_DEV_FD=y

Do you have a floppy drive, still?

> CONFIG_HAVE_IDE=y

Useless.

> # CONFIG_CHR_DEV_SG is not set

As written before: No SG, no write (to CD).

> # CONFIG_ATA_SFF is not set

You need to enable this to make CONFIG_PATA_JMICRON visible.

HTH...

Dirk


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] /dev/sr0 has disappeared: big mystery

2009-05-16 Thread Dirk Heinrichs
Am Samstag, 16. Mai 2009 08:56:38 schrieb Dirk Heinrichs:
> Am Samstag, 16. Mai 2009 01:11:53 schrieb Philip Webb:
> > 090515 Dirk Heinrichs wrote:
> > > Am Freitag, 15. Mai 2009 11:00:59 schrieb Philip Webb:
> > >> For the 1st time in 2 months, I went to write a CD & discovered
> > >> that  /dev/sr0  is not being created nor symlink  /dev/cdrom ;
> > >> I looked at 'dmesg': no mention of 'sr' or 'cd' being found.
> > >> I tested the drive: SystemRescue 1.1.0 (kernel 2.6.25.16) starts
> > >> correctly & mounts  /dev/sr0  on  /mnt/cdrom ; its 'dmesg' says :
> > >>   sr0: scsi3-mmc drive: 16x/16x writer dvd-ram cd/rw xa/form2 cdda
> > >> tray \ Uniform CD-ROM driver Revision: 3.20
> > >
> > > Please post your kernel config.
> >
> > The relevant lines are
>
> No, the relevant lines are missing. Please post it completely, best
> together with output from "lspci -v" when booted into the LiveCD.
>
> > > What BIOS says is irrelevant.
> >
> > It does mention 'PATA' & 'ATAPI', which mb relevant.
>
> For Windows, maybe. Not for Linux.
>
> Oh, just realised that you wanted to _write_ a CD (was too late yesterday
> to
>
> read more carefully ;) ). Then, the relevant line is of course:
> > # CONFIG_CHR_DEV_SG is not set

However, since you don't even have the sr0 device, there may still be a 
different problem, so it won't hurt if you provide the requested information 
anyway, I guess.

Bye...

Dirk


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] /dev/sr0 has disappeared: big mystery

2009-05-15 Thread Dirk Heinrichs
Am Samstag, 16. Mai 2009 01:11:53 schrieb Philip Webb:
> 090515 Dirk Heinrichs wrote:
> > Am Freitag, 15. Mai 2009 11:00:59 schrieb Philip Webb:
> >> For the 1st time in 2 months, I went to write a CD & discovered
> >> that  /dev/sr0  is not being created nor symlink  /dev/cdrom ;
> >> I looked at 'dmesg': no mention of 'sr' or 'cd' being found.
> >> I tested the drive: SystemRescue 1.1.0 (kernel 2.6.25.16) starts
> >> correctly & mounts  /dev/sr0  on  /mnt/cdrom ; its 'dmesg' says :
> >>   sr0: scsi3-mmc drive: 16x/16x writer dvd-ram cd/rw xa/form2 cdda tray
> >> \ Uniform CD-ROM driver Revision: 3.20
> >
> > Please post your kernel config.
>
> The relevant lines are

No, the relevant lines are missing. Please post it completely, best together 
with output from "lspci -v" when booted into the LiveCD.

> > What BIOS says is irrelevant.
>
> It does mention 'PATA' & 'ATAPI', which mb relevant.

For Windows, maybe. Not for Linux.

Oh, just realised that you wanted to _write_ a CD (was too late yesterday to 
read more carefully ;) ). Then, the relevant line is of course:

> # CONFIG_CHR_DEV_SG is not set

Bye...

Dirk


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] /dev/sr0 has disappeared: big mystery

2009-05-15 Thread Philip Webb
090515 Dirk Heinrichs wrote:
> Am Freitag, 15. Mai 2009 11:00:59 schrieb Philip Webb:
>> For the 1st time in 2 months, I went to write a CD & discovered
>> that  /dev/sr0  is not being created nor symlink  /dev/cdrom ;
>> I looked at 'dmesg': no mention of 'sr' or 'cd' being found.
>> I tested the drive: SystemRescue 1.1.0 (kernel 2.6.25.16) starts correctly
>> & mounts  /dev/sr0  on  /mnt/cdrom ; its 'dmesg' says :
>>   sr0: scsi3-mmc drive: 16x/16x writer dvd-ram cd/rw xa/form2 cdda tray \
>>   Uniform CD-ROM driver Revision: 3.20
> Please post your kernel config.

The relevant lines are

# Device Drivers
# Generic Driver Options
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=y
# CONFIG_FIRMWARE_IN_KERNEL is not set
CONFIG_EXTRA_FIRMWARE=""
# CONFIG_SYS_HYPERVISOR is not set
# CONFIG_CONNECTOR is not set
# CONFIG_MTD is not set
CONFIG_PARPORT=y
CONFIG_PARPORT_PC=y
# CONFIG_PARPORT_SERIAL is not set
# CONFIG_PARPORT_PC_FIFO is not set
# CONFIG_PARPORT_PC_SUPERIO is not set
# CONFIG_PARPORT_GSC is not set
# CONFIG_PARPORT_AX88796 is not set
# CONFIG_PARPORT_1284 is not set
CONFIG_PNP=y
# CONFIG_PNP_DEBUG_MESSAGES is not set

# Protocols
CONFIG_PNPACPI=y
CONFIG_BLK_DEV=y
CONFIG_BLK_DEV_FD=y
# CONFIG_PARIDE is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_SX8 is not set
# CONFIG_BLK_DEV_UB is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
# CONFIG_BLK_DEV_HD is not set
# CONFIG_MISC_DEVICES is not set
CONFIG_HAVE_IDE=y
# CONFIG_IDE is not set  <<<--- is this the important line ?

# SCSI device support
# CONFIG_RAID_ATTRS is not set
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
# CONFIG_SCSI_TGT is not set
# CONFIG_SCSI_NETLINK is not set
# CONFIG_SCSI_PROC_FS is not set

# SCSI support type (disk, tape, CD-ROM)
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
CONFIG_BLK_DEV_SR=y
# CONFIG_BLK_DEV_SR_VENDOR is not set
# CONFIG_CHR_DEV_SG is not set
# CONFIG_CHR_DEV_SCH is not set

...

# CD-ROM/DVD Filesystems
CONFIG_ISO9660_FS=y
# CONFIG_JOLIET is not set
CONFIG_ZISOFS=y
# CONFIG_UDF_FS is not set

>> BIOS reports "Auto-detecting PATA primary master: ATAPI CD-ROM".
> What BIOS says is irrelevant.

It does mention 'PATA' & 'ATAPI', which mb relevant.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] /dev/sr0 has disappeared: big mystery

2009-05-15 Thread Dirk Heinrichs
Am Freitag, 15. Mai 2009 11:00:59 schrieb Philip Webb:
> For the 1st time in 2 months, I went to write a CD & discovered
> that  /dev/sr0  is not being created nor symlink  /dev/cdrom ;
> I looked at 'dmesg': no mention of 'sr' or 'cd' being found.
>
> I've searched the Forum (more noise than signal as usual) & Bugs: nothing.
>
> I tested the drive: SystemRescue 1.1.0 (kernel 2.6.25.16) starts correctly
> & mounts  /dev/sr0  on  /mnt/cdrom ; its 'dmesg' says :
>
>   sr0: scsi3-mmc drive: 16x/16x writer dvd-ram cd/rw xa/form2 cdda tray \
>   Uniform CD-ROM driver Revision: 3.20

Please post your kernel config.

> BIOS reports "Auto-detecting PATA primary master: ATAPI CD-ROM".

What BIOS says is irrelevant.

Bye...

Dirk


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] /dev/sr0 has disappeared: big mystery

2009-05-15 Thread Philip Webb
090515 Helmut Jarausch wrote:
> On 15 May, Philip Webb wrote:
>> BIOS reports "Auto-detecting PATA primary master: ATAPI CD-ROM".
> Is your CDwriter a SATA device?
> Here, 2.6.29-r3 works just fine with my SATA-dvd-writer.

Well, BIOS believes it's PATA .  Anyway, that didn't change.
I suspect some change involving kernel configuration: anyone know ?

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] /dev/sr0 has disappeared: big mystery

2009-05-15 Thread Helmut Jarausch
On 15 May, Philip Webb wrote:
> For the 1st time in 2 months, I went to write a CD & discovered
> that  /dev/sr0  is not being created nor symlink  /dev/cdrom ;
> I looked at 'dmesg': no mention of 'sr' or 'cd' being found.
> 
> I've searched the Forum (more noise than signal as usual) & Bugs: nothing.
> 
> I tested the drive: SystemRescue 1.1.0 (kernel 2.6.25.16) starts correctly
> & mounts  /dev/sr0  on  /mnt/cdrom ; its 'dmesg' says :
> 
>   sr0: scsi3-mmc drive: 16x/16x writer dvd-ram cd/rw xa/form2 cdda tray \
>   Uniform CD-ROM driver Revision: 3.20
> 
> BIOS reports "Auto-detecting PATA primary master: ATAPI CD-ROM".
> 
> I updated to Hal-0.5.11-r8 on 090221 & Udev-124-r2 on 090418 ;
> I recompiled Udev, but that made no difference.
> I've checked the files which mention 'cd' in  /etc/udev/rules.d
> & there is no difference today from those at 090315 ,
> when I did my last system back-up & last used the CD drive.
> 
> I've checked my kernel configs for 2.6.25 & 2.6.29 using 'gvimdiff'
> & there is no difference between the relevant sections in Devices.
> I updated to 2.6.29 on 090404 .
> 
> I tried my other kernels with the following unnerving findings :
> 2.6.25 creates /dev/sr0 , but after X starts the mouse/keyboard fail;
> 2.6.23 & 2.6.22 create /dev/sr0 , but X won't start at all.
> 
> I notice that under 'Device Drivers -> ATA/ATAPI/MFM/RLL Support'
> there are the lines :
> 
>   generic ATA/ATAPI disk support (NEW)
>   [*] ATA disk support (NEW)
>   [ ] ATAPI floppy support (NEW)
>   < >   Include IDE/ATAPI CDROM support (NEW)  
> 
> I didn't say 'y' to 'ATA ... Support', so both config files (25 & 29) say
> 
>   # CONFIG_IDE is not set
> 
> This is because I understood that if you have
> 'SCSI device support -> SCSI CDROM support' enabled,
> then you shouldn't have 'ATA...RLL' enabled as well.
> Is this a vital change in 2.6.29 ?
> 
> Has anyone else encountered this ?  Does anyone have suggestions ?
> 

Is your CDwriter a SATA device?

Here, 2.6.29-r3 works just fine with my SATA-dvd-writer.

-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



[gentoo-user] /dev/sr0 has disappeared: big mystery

2009-05-15 Thread Philip Webb
For the 1st time in 2 months, I went to write a CD & discovered
that  /dev/sr0  is not being created nor symlink  /dev/cdrom ;
I looked at 'dmesg': no mention of 'sr' or 'cd' being found.

I've searched the Forum (more noise than signal as usual) & Bugs: nothing.

I tested the drive: SystemRescue 1.1.0 (kernel 2.6.25.16) starts correctly
& mounts  /dev/sr0  on  /mnt/cdrom ; its 'dmesg' says :

  sr0: scsi3-mmc drive: 16x/16x writer dvd-ram cd/rw xa/form2 cdda tray \
  Uniform CD-ROM driver Revision: 3.20

BIOS reports "Auto-detecting PATA primary master: ATAPI CD-ROM".

I updated to Hal-0.5.11-r8 on 090221 & Udev-124-r2 on 090418 ;
I recompiled Udev, but that made no difference.
I've checked the files which mention 'cd' in  /etc/udev/rules.d
& there is no difference today from those at 090315 ,
when I did my last system back-up & last used the CD drive.

I've checked my kernel configs for 2.6.25 & 2.6.29 using 'gvimdiff'
& there is no difference between the relevant sections in Devices.
I updated to 2.6.29 on 090404 .

I tried my other kernels with the following unnerving findings :
2.6.25 creates /dev/sr0 , but after X starts the mouse/keyboard fail;
2.6.23 & 2.6.22 create /dev/sr0 , but X won't start at all.

I notice that under 'Device Drivers -> ATA/ATAPI/MFM/RLL Support'
there are the lines :

  generic ATA/ATAPI disk support (NEW)
  [*] ATA disk support (NEW)
  [ ] ATAPI floppy support (NEW)
  < >   Include IDE/ATAPI CDROM support (NEW)  

I didn't say 'y' to 'ATA ... Support', so both config files (25 & 29) say

  # CONFIG_IDE is not set

This is because I understood that if you have
'SCSI device support -> SCSI CDROM support' enabled,
then you shouldn't have 'ATA...RLL' enabled as well.
Is this a vital change in 2.6.29 ?

Has anyone else encountered this ?  Does anyone have suggestions ?

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca