bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to enable a SCSI CD-ROM ?


From: Thomas Schmitt
Subject: Re: How to enable a SCSI CD-ROM ?
Date: Thu, 15 Sep 2011 17:17:58 +0200

Hi,

Thomas Schwinge:
> Unfortunately, i have not yet found the time to read the messages in your
> other thread.  So, I hope I'm answering the correct questions here, being
> a bit out of context.

This new thread is about the newbie user problem to set up
what i want to test on the long term.
I am thankful for any proposal.


> # settrans -cfgap /dev/sr0 /hurd/storeio sr0

I removed my mknod-made /dev/sr0 and executed above command.
No protest message.

  # ls -l /dev/sr0
  brw-r--r-- 1 root root 0, 0 Sep 15 14:17 /dev/sr0

But:
  # dd if=/dev/sr0 count=1 bs=2048 skip=16 | strings
  dd: opening `/dev/sr0': No such device or address
  #

> ... assuming that sr0 is the Mach device name.  You can check if such a
> device exists:

  # devprobe sr0 || echo no
  no
  #

I read in  gnumach/linux/src/drivers/scsi/sr.c:
     if (register_blkdev(MAJOR_NR,"sr",&sr_fo ps)) {
For comparison:
In gnumach/linux/src/drivers/scsi/sd.c:
       if (register_blkdev(MAJOR_NR,"sd",&sd_ fops)) {
In gnumach/linux/dev/drivers/block/floppy.c:
       if (register_blkdev(MAJOR_NR,"fd",&floppy_fops))

But i see in /var/log/dmesg
  hd0: got CHS=1024/255/63 CTL=c8 from BIOS
  hd0: QEMU HARDDISK, 32768MB w/256kB Cache, CHS=4177/255/63, DMA
  hd2: QEMU DVD-ROM, ATAPI CDROM drive
  ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
  ide1 at 0x170-0x177,0x376 on irq 15
  FDC 0 is a S82078B
  Failed initialization of WD-7000 SCSI card!

No SCSI card, so no SCSI CD-ROM ?

man kvm on the hosting Debian amd64 does not tell much about SCSI
other than examples how to set up emulated SCSI drives.

The message about CD-ROM at hd2 comes even if i submit no -cdrom to kvm.
Trying to read it then yields
  # dd if=/dev/hd2 count=1 bs=2048 skip=16 | strings 
  dd: reading `/dev/hd2': Input/output error


> Also, there is a /dev/MAKEDEV script.

This seems to have no case that matches device name "sr".


Have a nice day :)

Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]