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

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
dark_teferi
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2003
Posts: 138
Location: AZ

PostPosted: Fri Nov 21, 2003 1:28 am    Post subject: Compiling Kernel Reply with quote

Hi. I already have gentoo installed but i figured this would be the most appropriate forum.
I just tried to recompile my genkernel-made kernel, so this was my first time editing my kernel and such. I was trying to enable scsi emulation so that i could burn things with my cd burner. So i enabled 1 thing in ATA and 3 things in the SCSI section, and then i did..
Code:

make dep
make bzImage
make modules
make modules_install
mount /dev/hda6 /boot
cp /usr/src/linux/arch/i386/boot/bzImage /boot
cp /usr/src/linux/System.map /boot
reboot

After that i rebooted, and noticed that ALSA could not find my sound module, snd-intel8x0.
Also, cdrecord --scanbus still returned...
Code:

Cdrecord 2.01a14 (i686-pc-linux-gnu) Copyright (C) 1995-2003 Jörg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. 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'.
us


Does anyone have any ideas on what i did wrong?
[/code]
_________________
"Rain from this storm leaves you pinned to the ground like an insect"
Back to top
View user's profile Send private message
Vanquirius
Retired Dev
Retired Dev


Joined: 14 Jun 2002
Posts: 1297
Location: Ethereal plains

PostPosted: Fri Nov 21, 2003 1:34 am    Post subject: Reply with quote

For the ALSA part, you're going to have to emerge alsa-driver again. That is how it goes with every new kernel... When you do "make modules_install" it gets wiped out of your /lib/modules/kernel/...(I'm too lazy to look it up) directory, if it has the same name as your previous kernel.
Not sure about the cd-burner problem, though.
_________________
Hello.


Last edited by Vanquirius on Fri Nov 21, 2003 1:36 am; edited 1 time in total
Back to top
View user's profile Send private message
hbmartin
Guru
Guru


Joined: 12 Sep 2003
Posts: 386
Location: Home is where the boxen are

PostPosted: Fri Nov 21, 2003 1:36 am    Post subject: Reply with quote

I can help you if you use 2.6.
Just an extra incentive... ;)

Harold
Back to top
View user's profile Send private message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Fri Nov 21, 2003 1:39 am    Post subject: Reply with quote

Whenever you recompile your kernel in a 2.4 series you're going to have to re-emerge the driver. Install it just like normal (env ALSA_CARDS='yourdriver' emerge alsa-driver), then restart alsasound (/etc/init.d/alsasound restart). It should be back up.

As for the cd recorder, you need to add the line ide-scsi=/dev/hdx to your boot loader.
Back to top
View user's profile Send private message
dark_teferi
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2003
Posts: 138
Location: AZ

PostPosted: Fri Nov 21, 2003 2:20 am    Post subject: Reply with quote

thanks for your help guys, i re emerged alsa-driver, but now i am getting this error when i try to load alsamixer to unmute my channels..
Code:

kelly@prodigy kelly $ alsamixer

alsamixer: function snd_ctl_open failed for default: No such file or directory


anyone got any ideas?
_________________
"Rain from this storm leaves you pinned to the ground like an insect"
Back to top
View user's profile Send private message
Drewgrange
Guru
Guru


Joined: 29 Mar 2003
Posts: 483
Location: Ohio, US

PostPosted: Fri Nov 21, 2003 2:58 am    Post subject: Reply with quote

Did you restart alsasound?

If so, try re-emerging alsa-utils, though I don't think you usually need to.
Back to top
View user's profile Send private message
Pete_Keller
l33t
l33t


Joined: 30 Sep 2003
Posts: 664
Location: Norwich, CT USA

PostPosted: Fri Nov 21, 2003 1:51 pm    Post subject: Reply with quote

dark_teferi,

Did you modprobe the drivers? Or did you compile them directly into the kernel.

Also, new versions of cdrecord will use ATA directly.

Pete
_________________
I am a SIGNATURE VIRUS, help me spread - attach me to your signature file.
Back to top
View user's profile Send private message
dark_teferi
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2003
Posts: 138
Location: AZ

PostPosted: Sat Nov 22, 2003 9:42 am    Post subject: Reply with quote

i fixed the alsasound problem, for some reason all i had to do was reboot. ( dont worry, i had tried to restart it and other things before i rebooted. :-) ). But for some reason cdrecord will still not work. for the cdrecord thing, i compiled the modules into the kernel <*>. I am pretty sure that * means compiled into kernel. It still does not see it. someone told me that instead of saying
Code:

cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.

where /dev/pg* is, its supposed to be /dev/sg*. Is this true?
_________________
"Rain from this storm leaves you pinned to the ground like an insect"
Back to top
View user's profile Send private message
mike4148
l33t
l33t


Joined: 09 Sep 2003
Posts: 641

PostPosted: Sat Nov 22, 2003 5:33 pm    Post subject: Reply with quote

Did you compile IDE CDROM support into the kernel? If so, it will always override SCSI emulation unless you
use a kernel parameter like hdc=ide-scsi (replacing hdc with the hd? device that corresponds
with the optical drive). You put kernel parameters at the end of the kernel= line in your grub.conf, e.g.:
Code:
kernel=(hd0,0)/boot/kernel-2.4.20-gentoo-r8 root=/dev/hdc3 hdd=ide-scsi

For Lilo, you put them at the end of your append= line (or you add a new
append= line containing them); e.g.:
Code:
append=hde=ide-scsi


The cdrecord error probably occurs because cdrecord can't find SCSI on your system and, thus, falls back to
looking at other stuff (the error you get is it looking for parallel port IDE devices).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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