PDA

View Full Version : Kernel 2.6 Issues and Resolutions (Answered)


prisen
18th November 2003, 12:16 AM
Hi all, I'm sure plenty of other folks have tried the 2.6-testx series but I do not yet see any threads regarding Fedora Core 1. I am still somewhat of a noob (8 months running RH9 and SuSE, and now less than a month running Fedora), so PLEASE make corrections where I am wrong.

So far here is what I have figured out:

-Fedora is more or less "2.6 ready", meaning you can rpm -Uvh and bam, you're running 2.6. http://people.redhat.com/arjanv/2.5/RPMS.kernel/ is the place to get the 2.6 rpm's. I grabbed kernel-2.6.0-0.test9.1.89.i686.rpm and kernel-source-2.6.0-0.test9.1.89.i386.rpm.

As root:
[code:1]rpm -Uvh kernel-2.6.0-0.test9.1.89.i686.rpm
rpm -Uvh kernel-source-2.6.0-0.test9.1.89.i386.rpm[/code:1]

Gets you upgraded to 2.6. Simple eh? I couldn't believe it. Reboot.

There are going to be huge issues with your modules as a result of this upgrade. I have resolved a few of them.

Kudzu went nuts on my network card, saying it was removed, and then added. I chose 'do nothing' to both of those prompts. I may be disabling kudzu momentarily.

With 2.6, you will be running ALSA. Figure out what module applies to your sound card by using the sound card matrix at www.alsa-project.org. Mine is snd-emu10k1 (Audigy).

As root:
[code:1]modprobe snd-emu10k1
modprobe snd-pcm-oss
modprobe snd-seq-oss[/code:1]
(snd-mixer-oss seemed to already be loaded.)

USB is still a rough one. Here is where I am at:

[code:1]modprobe usbcore
modprobe uhci-hcd
modprobe hid[/code:1]

This got my USB mouse to work. I have not tested any USB storage devices.

This will get your hardware working, at least as long as you don't reboot. In a few of the migration guides where people had upgraded from 2.4 to 2.6 and used the generate-modprobe.conf script, their resulting modprobe.conf was about three days long. I'm not sure yet if this is necessary or not. Here is where I need some help, what do your 2.6 modprobe.conf's look like?

ALSA's modprobe.conf documentation does fine for sound. Follow the guide for your sound card.

For USB, I am not sure. help?

Here is what I have:
alias usbcontroller uhci-hcd
alias usbcontroller1 uhci-hcd
alias usbcontroller2 ohci-hcd

somewhere I need to get usbcore and hid loaded in there.

For my NIC I did not have to change anything. Linksys card, alias eth0 tulip still works.

here (http://thomer.com/linux/migrate-to-2.6.html) is a great page on how to migrate to 2.6.

Thanks for contributing, again sorry if this is a complete dupe.

jwb
18th November 2003, 02:02 AM
Man.... better you than me. I've been using Linux for 3 years, and I have always stayed away from the kernel stuff. Scares me at times.

I'm glad you posted this, though. I may give it a shot on my laptop.

The best way to learn is to crash and burn a few times, I guess. Though it sounds like you've had a good experience.

Avatraxiom
18th November 2003, 05:27 AM

-Fedora is more or less "2.6 ready", meaning you can rpm -Uvh

Except that you should always rpm -ivh a kernel -- you don't want to delete your running kernel, and it's always a good idea to keep your old kernel around for a while, in case something goes wrong.

Kudzu went nuts on my network card, saying it was removed, and then added. I chose 'do nothing' to both of those prompts. I may be disabling kudzu momentarily.

Yeah, kudzu seems a little broken in various ways. It may have been detecting that your old driver is gone from 2.6 and has been replaced by a new driver, though.

Here is where I need some help, what do your 2.6 modprobe.conf's look like?

Honestly, even my 2.4 modprobe.conf was like three days long.

generate-modprobe.conf is really almost an alpha-level piece of software, though, so I wouldn't trust it too far, particularly not against 2.6, since FC1 wasn't initially designed for it.


Thanks for the great post!

I think that there have been a lot of 2.6 posts on the fedora-list (https://www.redhat.com/mailman/listinfo/fedora-list) and the fedora-test-list (https://www.redhat.com/mailman/listinfo/fedora-test-list), too, if you wanted to search and check those out.

-M

prisen
18th November 2003, 01:18 PM
Except that you should always rpm -ivh a kernel -- you don't want to delete your running kernel, and it's always a good idea to keep your old kernel around for a while, in case something goes wrong.

Agreed, this was an afterthought I had as well.

Probably should have some kind of disclaimer in this post, in case anybody isn't aware: running kernel 2.6 is dangerous, experimental, and will probably either really jack up your system, do harm to your pets, or both. In other words, if you're doing something mission essential or otherwise important, you'd be nuts to run 2.6.

I will check out the lists, thanks!

prisen
18th November 2003, 06:03 PM
NVIDIA Drivers (referenced from www.minion.de):

Unless you rebuild the 2.6 kernel image, NVIDIA drivers will not compile or install. More specific instructions are present on the site named above.

From www.minion.de:
Arjan van de Ven introduced the -mregparm=3 compiler flag to his kernel, which breaks binary compatibility with the closed-source component of the NVIDIA kernel module. You will need to strip this flag from the i386 CFLAGS in ../arch/i386/Makefile and build a new kernel image.

Unless you rebuild the kernel without this flag, the NVIDIA kernel module will Oops on load and make will report an Error 139.

prisen
21st November 2003, 02:22 PM
USB issues seem to be resolved, here are the appropriate modules in case you're wondering:

usbcore
uhci-hcd (usb1/1.1)
ehci-hcd (usb2)
hid

With Arjan's kernel the rest seems to fall in place as far as making usbstorage (some cameras, key drives, etc) and mice/keyboards work.

Make sure to install the ALSA packages if you haven't already. They are available at freshrpms.net. These include alsa-lib, alsa-driver, alsa-utils. Also grab xmms-alsa for proper playback in XMMS.

Probably thanks to my old Radeon 7200 and a "nothing-special" work box, I am running pretty smoothly. Keep in mind that 2.6 may make or break your system at this point. If in doubt, wait for Fedora Core 2.

prisen
24th November 2003, 05:13 PM
2.6-test10 was released today and the RPMs have been updated:

http://people.redhat.com/~arjanv/2.5/RPMS.kernel/

lupus
25th November 2003, 01:58 PM
after you install kernel 2.6 remove /etc/sysconfig/hwconf

next reboot kudzu will configure all your hardware in /etc/modprobe.conf

/etc/modules.conf isn''t used anymore.


chance in /etc/modprobe.conf

replace post-install and pre-install with (see that alsa is installed)

install snd-card-0 /usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove snd-card-0 /usr/sbin/alsactl store >/dev/null 2>&1 || :

Mishura
29th November 2003, 12:19 AM
How would you go about running 2.6.0-test10 and the Fedora 2.4.22 as seperate options at boot time? Incase I have too many problems with it. I never installed a kernel via RPM, only source.

Avatraxiom
5th December 2003, 07:32 AM
Just to let you know, this post is now linked from the Static FAQ. :-)

-M

prisen
5th December 2003, 09:43 PM
How would you go about running 2.6.0-test10 and the Fedora 2.4.22 as seperate options at boot time? Incase I have too many problems with it. I never installed a kernel via RPM, only source.

[code:1]rpm -ivh kernel-2.6.0-*.rpm[/code:1]

will install the 2.6 test kernel alongside your existing 2.4.

unmanarc
3rd January 2004, 02:45 AM
For USB, I am not sure. help?

Here is what I have:
alias usbcontroller uhci-hcd
alias usbcontroller1 uhci-hcd
alias usbcontroller2 ohci-hcd

Well, i have working this configuration:
include /etc/modprobe.conf.dist

# ALSA portion
alias char-major-116* snd
alias snd-card-0 snd-intel8x0

# OSS/Free portion
alias char-major-14* soundcore
alias sound-slot-0 snd-card-0

# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

alias usb-controller uhci-hcd

install snd-card-0 /sbin/modprobe --ignore-install snd-card-0 && { /usr/sbin/alsactl restore >/dev/null 2>&1 || :; }
remove snd-card-0 { /usr/sbin/alsactl store >/dev/null 2>&1 || :; }; /sbin/modprobe -r --ignore-remove

install sound-slot-0 /sbin/modprobe --ignore-install sound-slot-0 && { /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :; }
remove sound-slot-0 { /bin/aumix-minimal -f /etc/.aumixrc -S >>/dev/null 2>&1 || :; }; /sbin/modprobe -r --ignore-remove


this configuration enables my unique usb device... a creative ov511 cam. :P

and this configuration seems to load fine my Intel 815eea2l integrated soundcard:


00:1f.5 Multimedia audio controller: Intel Corp. 82801BA/BAM AC'97 Audio (rev 11)

[root@linux etc]# lsmod
Module Size Used by
iptable_nat 20396 0
ide_cd 36484 0
cdrom 29856 1 ide_cd
snd_pcm_oss 45476 1
snd_mixer_oss 16000 2 snd_pcm_oss
snd_intel8x0 28292 2
snd_ac97_codec 45444 1 snd_intel8x0
snd_pcm 84388 2 snd_pcm_oss,snd_intel8x0
snd_timer 21508 1 snd_pcm
snd_page_alloc 11268 2 snd_intel8x0,snd_pcm
snd_mpu401_uart 6528 1 snd_intel8x0
snd_rawmidi 22048 1 snd_mpu401_uart
snd_seq_device 7944 1 snd_rawmidi
snd 44260 9 snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_co dec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi, snd_seq_device
soundcore 7872 3 snd
md5 3840 1
ipv6 211520 14
lp 10308 0
autofs 14080 0
ipt_LOG 4992 1
ipt_state 1920 29
ip_conntrack 28976 2 iptable_nat,ipt_state
ipt_REJECT 6144 1
iptable_filter 2688 1
ip_tables 15232 5 iptable_nat,ipt_LOG,ipt_state,ipt_REJECT,iptable_f ilter
8139too 22016 0
mii 4864 1 8139too
crc32 4480 1 8139too
e100 53896 0
ohci1394 30600 0
ieee1394 212780 1 ohci1394
floppy 53972 0
parport_pc 24872 1
parport 38248 2 lp,parport_pc
microcode 5920 0
ov511 72604 0
videodev 8960 1 ov511
hid 56000 0
uhci_hcd 27152 0
usbcore 94684 5 ov511,hid,uhci_hcd
button 6168 0
battery 9484 0
asus_acpi 10136 0
ac 4876 0
ext3 112552 0
jbd 50200 1 ext3


and artsd loads fine:
[root@linux etc]# ps -aux | grep -i artsd | grep -v grep
unmanarc 3902 2.4 1.4 10560 5728 ? S 21:11 2:01 /usr/bin/artsd -F 10 -S 4096 -s 60 -m artsmessage -l 3 -f


and all volumes are ok:

[root@linux etc]# aumix-minimal -q
vol 100, 100, P
pcm 100, 100
speaker 100, 100
line 100, 100, P
mic 100, 100, R
cd 100, 100, P
igain 100, 100
line1 100, 100, P
phin 91, 91, P
video 100, 100, P


but i have NO sound. programs dont giveme errors, is like i unplugged my speakers.... but works perfectly on 2.4.22 and oss.

why?
i don't know.
ideas?

lupus
3rd January 2004, 02:49 AM
try the latest alsa-drivers

alsa 1.0rc2

just compile it, they will overwrite the kernel 2.6 modules that are installed.

unmanarc
3rd January 2004, 06:04 AM
:D Thanks, now works perfectly.

wow, alsamixer is much better than common oss mixers...

paulehr
6th January 2004, 06:50 PM
hey all, i seem to be having an issue compiling the source rpm of the 2.6 kernel. I grabbed the src.rpm from the link on the faq and installed it. Then i go to build the rpm and it stops at this after awhile..

Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHave Prefix) <= 4.0-1
Requires: /bin/sh /usr/bin/perl perl(strict)
Processing files: kernel-debuginfo-2.6.0-1.21

Now i have the latest version of rpm, rpm-devel and perl.

Has anyone ran into this issue? if so how did you fix it? I tried hitting google for answers but no luck

xoind
19th January 2004, 10:58 PM
Still have problems with ALSA and 2.6 kernel. Alsa appears to be loading everything, but still no sound. None of the ALSA utilities work (eg: alsamixer: function snd_ctl_open failed for default: No such file or directory). Anyone have any ideas? Have searched and worked at this for a few days - haven't found anything that works. I figure this is something relatively simple that I am missing.

Uname:
Linux ionyx 2.6.1-1.47smp #1 SMP Fri Jan 16 21:53:49 EST 2004 i686 athlon i386 GNU/Linux

modprobe.conf:
include /etc/modprobe.conf.dist
alias eth0 e100
alias scsi_hostadapter aic7xxx
alias eth1 e100
alias usb-controller ohci-hcd
alias usb-controller1 ohci-hcd
alias usb-uhci ohci_hcd
alias printer usblp
alias block-major-135 off

alias char-major-116* snd
alias snd-card-0 snd-emu10k1
alias snd-card-0 snd-card-emu10k1

alias char-major-14* soundcore
alias sound-slot-0 snd-card-0

alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

lsmod:
Module Size Used by
snd_emu10k1 95748 0
snd_rawmidi 26784 1 snd_emu10k1
snd_seq_device 9224 2 snd_emu10k1,snd_rawmidi
snd_ac97_codec 52228 1 snd_emu10k1
snd_util_mem 5632 1 snd_emu10k1
snd_hwdep 10400 1 snd_emu10k1
ide_cd 40708 0
cdrom 35360 1 ide_cd
snd_pcm_oss 53028 0
snd_pcm 105376 2 snd_emu10k1,snd_pcm_oss
snd_page_alloc 12804 2 snd_emu10k1,snd_pcm
snd_timer 28548 1 snd_pcm
snd_mixer_oss 19200 1 snd_pcm_oss
snd 53732 10 snd_emu10k1,snd_rawmidi,snd_seq_device,snd_ac97_co dec,snd_util_mem,snd_hwdep,snd_pcm_oss,snd_pcm,snd _timer,snd_mixer_oss
soundcore 10048 1 snd
md5 5120 1
ipv6 263264 10
lp 12676 0
autofs 19456 0
e100 69384 0
ohci1394 40068 0
ieee1394 292912 1 ohci1394
sg 38808 0
parport_pc 41004 1
parport 45032 2 lp,parport_pc
floppy 63252 0
usblp 14464 0
usb_storage 65088 0
hid 65088 0
ohci_hcd 22656 0
usbcore 115164 6 usblp,usb_storage,hid,ohci_hcd
nvidia 2074568 12
ext3 129448 3
jbd 72600 1 ext3
aic7xxx 192972 3
sd_mod 17568 4
scsi_mod 122160 4 sg,usb_storage,aic7xxx,sd_mod

/proc/asound/modules:
0 snd_emu10k1

/proc/asound/cards:
0 [Live ]: EMU10K1 - Sound Blaster Live!
Sound Blaster Live! (rev.10) at 0x1440, irq 145

/proc/asound/version:
Advanced Linux Sound Architecture Driver Version 0.9.7 (Thu Sep 25 19:16:36 2003 UTC).
Compiled on Jan 16 2004 for kernel 2.6.1-1.47smp (SMP).

RPM -qa | grep alsa:
alsa-oss-1.0.0-0.fdr.0.3.rc2.1
alsa-utils-1.0.0-0.rc2
alsa-lib-1.0.0-0.rc2

kai_t
20th January 2004, 01:18 AM
None of the ALSA utilities work (eg: alsamixer: function snd_ctl_open failed for default: No such file or directory).
The ALSA device files (under /dev/) are missing. You should run scripts/MAKEDEV.snd from the 2.6 kernel source tarball (or snddevices from the alsa-driver tarball).

This is mentioned in linux-2.6*/Documentation/sound/alsa/ALSA-Configuration.txt, BTW. ;)

justin
2nd February 2004, 06:04 AM
I just got 2.6 up and running, most things are working, but i noticed my desklet only detects about 200MB of RAM and i have 2GB, this was not a problem on 2.4, any ideas?

vorte[x]
2nd February 2004, 02:17 PM
I just got 2.6 up and running, most things are working, but i noticed my desklet only detects about 200MB of RAM and i have 2GB, this was not a problem on 2.4, any ideas?

What does 'free -m' ouput? It could merely be a desklet problem.

justin
4th February 2004, 05:59 AM
Yeah it's definately a desklet thing, probably wherever it calls to, to find that information is in a different place under a 2.6 kernel, that's my uneducated suspicion, it's not terribly important.

On another note, at boot time on 2.6 i get modprobe: module ip_tables could not be found, or something to that effect. it's grouped in with some stuff about QM_MODULES: function not implemented, i'm having some troubles with module commands lsmod brings up nothing, but i know modules are inserted because some things wouldn't be working that are compiled as modules, and they are working. So i guess my question is how do i ensure that i have an ip_tables module, i didn't see anything in the kernel config to build such a module.