View previous topic :: View next topic |
Author |
Message |
dark_teferi Tux's lil' helper
Joined: 07 Aug 2003 Posts: 138 Location: AZ
|
Posted: Fri Nov 21, 2003 1:28 am Post subject: Compiling Kernel |
|
|
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 |
|
|
Vanquirius Retired Dev
Joined: 14 Jun 2002 Posts: 1297 Location: Ethereal plains
|
Posted: Fri Nov 21, 2003 1:34 am Post subject: |
|
|
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 |
|
|
hbmartin Guru
Joined: 12 Sep 2003 Posts: 386 Location: Home is where the boxen are
|
Posted: Fri Nov 21, 2003 1:36 am Post subject: |
|
|
I can help you if you use 2.6.
Just an extra incentive...
Harold |
|
Back to top |
|
|
Drewgrange Guru
Joined: 29 Mar 2003 Posts: 483 Location: Ohio, US
|
Posted: Fri Nov 21, 2003 1:39 am Post subject: |
|
|
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 |
|
|
dark_teferi Tux's lil' helper
Joined: 07 Aug 2003 Posts: 138 Location: AZ
|
Posted: Fri Nov 21, 2003 2:20 am Post subject: |
|
|
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 |
|
|
Drewgrange Guru
Joined: 29 Mar 2003 Posts: 483 Location: Ohio, US
|
Posted: Fri Nov 21, 2003 2:58 am Post subject: |
|
|
Did you restart alsasound?
If so, try re-emerging alsa-utils, though I don't think you usually need to. |
|
Back to top |
|
|
Pete_Keller l33t
Joined: 30 Sep 2003 Posts: 664 Location: Norwich, CT USA
|
Posted: Fri Nov 21, 2003 1:51 pm Post subject: |
|
|
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 |
|
|
dark_teferi Tux's lil' helper
Joined: 07 Aug 2003 Posts: 138 Location: AZ
|
Posted: Sat Nov 22, 2003 9:42 am Post subject: |
|
|
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 |
|
|
mike4148 l33t
Joined: 09 Sep 2003 Posts: 641
|
Posted: Sat Nov 22, 2003 5:33 pm Post subject: |
|
|
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 |
|
|
|