Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Confusion
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
RioFL
Guru
Guru


Joined: 31 Oct 2002
Posts: 407

PostPosted: Tue Mar 25, 2003 12:41 am    Post subject: Kernel Confusion Reply with quote

Ok I am really confused here. I was running gentoo-sources 2.4.19-r10 just fine. I compiled 2.4.20-r2, made doubly sure all my scsi emulation stuff was right, everything works fine except my cdrw. No matter what I do, 2.4.20 and associated modules will not create /dev/sr0. Why? No changes were made at all to /etc/devfsd.conf, and as I said I took great pains to compare side by side the ide/scsi options to be sure I didn't miss or reconfigure somthing from what it was in 2.4.19. The modules load, sr_mod, sg, ide-scsi all just fine, and my new kernel definition in grub has the correct hdd=ide-scsi in it. yet there is no cdrw, no sg0, no sr0 absolutely nothing.

Chuck
Back to top
View user's profile Send private message
Carlos
Guru
Guru


Joined: 07 Aug 2002
Posts: 458
Location: Providence, RI

PostPosted: Tue Mar 25, 2003 2:08 am    Post subject: Reply with quote

I'd search through the output of dmesg to look for anything related to your CD-RW so we can find out whether it's your kernel, or devfsd, or something else.
_________________
Man must shape his tools lest they shape him.
Back to top
View user's profile Send private message
RioFL
Guru
Guru


Joined: 31 Oct 2002
Posts: 407

PostPosted: Tue Mar 25, 2003 2:30 am    Post subject: Reply with quote

Carlos wrote:
I'd search through the output of dmesg to look for anything related to your CD-RW so we can find out whether it's your kernel, or devfsd, or something else.


I can reboot back to 2.4.19 without touching a thing and magically the sr0 is there:). will look just to make sure.
Back to top
View user's profile Send private message
RioFL
Guru
Guru


Joined: 31 Oct 2002
Posts: 407

PostPosted: Tue Mar 25, 2003 2:37 am    Post subject: Reply with quote

Carlos wrote:
I'd search through the output of dmesg to look for anything related to your CD-RW so we can find out whether it's your kernel, or devfsd, or something else.


here is everything from dmesg related to devfs, cdrom, scsi

Starting kswapd
Journalled Block Device driver loaded
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
Installing knfsd (copyright (C) 1996 okir@monad.swb.de)

hdd: CD-W54E, ATAPI CD/DVD-ROM drive

hdd: ATAPI 32X CD-ROM CD-R/RW drive, 1280kB Cache, DMA
Uniform CD-ROM driver Revision: 3.12

Mounted devfs on /dev
scsi0 : SCSI host adapter emulation for IDE ATAPI devices

and thats it.
Back to top
View user's profile Send private message
Fillzee
n00b
n00b


Joined: 20 Jul 2002
Posts: 47
Location: Starkvegas

PostPosted: Tue Mar 25, 2003 2:52 am    Post subject: Reply with quote

If you still have the old .config file for your old kernel copy it to the new kernel source directory and do a make oldconfig. I have found this to be the best way to make shure to have all the kernel options properly selected.
Back to top
View user's profile Send private message
RioFL
Guru
Guru


Joined: 31 Oct 2002
Posts: 407

PostPosted: Tue Mar 25, 2003 3:02 am    Post subject: Reply with quote

Fillzee wrote:
If you still have the old .config file for your old kernel copy it to the new kernel source directory and do a make oldconfig. I have found this to be the best way to make shure to have all the kernel options properly selected.


the new kernel is ignoring the commandline parm hdd=ide-scsi

here is from the 2.4.19 dmesg:
Kernel command line: root=/dev/hda3 hdd=ide-scsi
ide_setup: hdd=ide-scsi
Local APIC disabled by BIOS -- reenabling.

now here is the same section from 2.4.20
Kernel command line: root=/dev/hda3 hdd=ide-scsi
Local APIC disabled by BIOS -- reenabling.

the ide_setup is missing from 2.4.20. i have gone over and over the options and those that are the same between the kernels are identical.

i remember seeing somewhere about someone sayiing the new kernels require an ignore statement in modules.conf. going to try to find that.
Back to top
View user's profile Send private message
RioFL
Guru
Guru


Joined: 31 Oct 2002
Posts: 407

PostPosted: Tue Mar 25, 2003 4:20 am    Post subject: Reply with quote

I got it to work!

Since it did not appear to take the hdd=ide-scsi on the commandline, i remembered reading about an exclude that could be used. I found that again here:

https://forums.gentoo.org/viewtopic.php?t=20175&highlight=cdrw

in documentation tips n tricks. What i did was to create a file in the modules.d directory that contained this line:

options ide-cd ignore='hdd'

then ran update-modules to get this into modules.conf.

I also did something else that I don't believe had an effect. I think this line did it. I removed ide-atapi cdrom support from the kernel. I am going to put that back in tomorrow and try it to see if it matters.

As of this moment cdrw works just fine again.

Chuck
Back to top
View user's profile Send private message
Regor
Guru
Guru


Joined: 06 Aug 2002
Posts: 545
Location: 39° 2' 48" N, 120° 59' 2" W

PostPosted: Tue Mar 25, 2003 8:29 am    Post subject: Reply with quote

Removing ATAPI cdrom support makes system treat all cd drives as scsi. No kernel arguments are needed then either, since there's no potential for contention between diff drivers.

This is how I always do it and it always works perfectly.
_________________
Sometimes the appropriate response to reality is to go insane.
-Philip K. Dick, Valis
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum