Kernel Compile - cdrom will not work, modules are not presents

Kernel Compile - cdrom will not work, modules are not presents

Post by Roman K » Fri, 28 Feb 2003 07:04:44



Folks, hi.
I am compiling 2.4.20 kernel for Atholon 2400 CPU with Lineon CDROM
512MB and Maxtor IDE drive.

Currently original RH 72. kernel 2.4.18-3 is installed and work. CDROM
works as well. I can mount  and umount. After building the new kernel
and booting with it. I noticed that CDROM no longer mounts.

in my libs dir I have the following dirs.
drwxr-xr-x    2 root     root         4096 Feb 26 12:41 ieee1394
drwxr-xr-x    2 root     root         4096 Feb 26 12:41 md
drwxr-xr-x    2 root     root         4096 Feb 26 14:35 net

dmesg in 2.4.18-3
hdb: C/H/S=0/0/0 from BIOS ignored
hdb: Maxtor 6Y080P0, ATA DISK drive
hdd: LITE-ON LTR-52246S, ATAPI CD/DVD-ROM drive

...
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor: LITE-ON   Model: LTR-52246S        Rev: 6S0A
  Type:   CD-ROM                             ANSI SCSI revision: 02


lrwxrwxrwx    1 root     root            9 Feb 26 16:29 /dev/cdrom ->
/dev/scd0

dmesg in 2.4.20
Kernel command line: ro root=/dev/hdb2 hdd=ide-scsi
ide_setup: hdd=ide-scsi

hdb: C/H/S=0/0/0 from BIOS ignored
hdb: Maxtor 6Y080P0, ATA DISK drive
hdd: LITE-ON LTR-52246S, ATAPI CD/DVD-ROM drive

SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2

hdd: driver not present

Can someone suggest what to do? When I compile the 2.4.20 kernel I try
to enable as much as possible but must be missing something.  I have
untared source into my home dir and not /usr/src/linux-2.4.20  . Is
there a gotcha.?

Thanks in advance.
Roman

 
 
 

Kernel Compile - cdrom will not work, modules are not presents

Post by Allen McInto » Fri, 28 Feb 2003 07:39:06




>Can someone suggest what to do? When I compile the 2.4.20 kernel I try
>to enable as much as possible but must be missing something.
>lrwxrwxrwx    1 root     root            9 Feb 26 16:29 /dev/cdrom ->
>/dev/scd0

This suggests you were using SCSI emulation for your CDROM.
If you didn't get it configured right, your CDROM won't work.

It's been a long time since I set this up on a machine.  As I recall,
I followed the instructions in the CD-Writing howto file and
everything worked like a charm.  The trick is to get the SCSI
emulation to load, while keeping the IDE stuff out.  Since you
are building your own kernel, you can make sure that
CONFIG_BLK_DEV_IDECD is not set and CONFIG_BLK_DEV_IDESCSI is.

 
 
 

1. CDU33A not mounting right... /cdrom not present

        It seems that my Sony CDU33A drive won't mount properly.
Although I have installed the proper Kernal, I get the following error
at boot up:

mount:  mount point /cdrom does not exist

        As you may have guessed, the directory /cdrom does exist and is
empty.
        I checked the mtab and fstab files to make sure that the
settings are correct and everything seems to be fine.  If I go into
setup after a hard disk boot, I can mount the CD as a tmp device.
Therefore, I don't think it's a Kernal problem, but some type of script
problem.  (otherwise the CD would be completely unmountable, right?)

        Any help on this subject would be greatly appreciated.

Sam

P.S.  BTW, I'm running Slackware 1.1.59, it was current on tsx-11
*shrug*

2. OS 5.05 Install / IDE CD-ROm

3. modules not working after kernel compile

4. Installing RedHat 5.2 via FTP

5. Compiling the kernel: to module or not to module?

6. very newbie X RH6 Question

7. RH5 kernel compile? usr/src/linux not present

8. Linux & Netware 3.12 NFS

9. /usr/src/sys not present in 2.2.2 CDROM

10. xcdroast - CDROM not present

11. 2.4.19, USB_HID only works compiled in, not as module

12. Can not compile programs! GCC not working

13. MDK 8.1 - modules don't compile / FB support not work