LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-27-2004, 12:13 PM   #1
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Rep: Reputation: 31
Problems with kernel upgrading (2.6.7)


Well, since its summer for me, I decided now would be a good time to finally try and upgrade my kernel. And, needless to say, I'm running into a few problems. The first problem is, I'm posting this from Windows. For some reason, (I had been following directions) my config in lilo doesn't boot my old kernel. Both entries boot 2.6.7, which considering it not being configured properly, isn't going to help. Here's the chunk from my lilo.conf:

Code:
image = /boot/vmlinuz
  root = /dev/hda6
  label = Linux_2.6.7
  read-only
image = /boot/vmlinuz.old
  root = /dev/hda6
  label = Linux_2.4.22
  read-only
# Linux bootable partition config ends
And I check, and I do have a vmlinuz.old in my /boot directory, so I cannot understand why it boots 2.6.7 for both.

My second problem is normally when my computer starts, it launches a DCHP DISCOVER (or something) which eventually ends up in me being connected to my router, and thus the internet. It didn't do this at boot time, so I'm not internet capable. Also, on 2.4.22, if I had booted Linux without being connected to the router (so the DHCP thing wouldn't work) I could run /sbin/dhcpcd as root, and it would re-broadcast the message and connect me, this doesn't work. I'm assuming its a problem with my eth0 driver, but I thought since I had copied my .config from 2.4.22, it should've found this. Anyone else have to enable something to get your Internet working on 2.6.x?

Finally, my third problem is sound, which has always been rather difficult with my computer. I have a SiS 7012, and people have said they haven't had a problem with the card on 2.6.x with ALSA (I currently use OSS but REALLY want to switch over to ALSA) as long as they have the correcting settings. What might those be? I *think* I have it right, it shows it loaded the correct driver while it's booting, but I have no sound. I'm assuming this is because I have channels muted, so do I need to download alsamixer and unmute them? Or is there another mixer that's probably already on my system that I can do it with? Would it be more beneficial/easier to just install without any kernel sound support, and then install all of it with the ALSA packages I can get from their site?
 
Old 06-27-2004, 02:58 PM   #2
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
Did you run the 'lilo' command after making changes to the /etc/lilo.conf file? This is really necessary for the bootloader to function correctly.

When copying over a .config to a newer kernel, it's usually safer to run 'make oldconfig' first. Then the build system will "upgrade" your .config to the new kernel, asking you about new settings along the way. (If you like to use the menuconfig you can just hit ENTER each time and check out the new stuff in the menuconfig afterwards -- you'll see what I mean).

The ALSA mixer settings are always muted when booting So you will need a mixer program. If, in the kernel, you enable "OSS emulation for mixer api" (or sth linke that), then you can even use OSS mixer programs, which are ubiquitous!

A very simple one is aumix -- it runs in the console (curses-based) and uses the arrow keys. Plus, it has a non-interactive mode allowing it to set the mixer to some value and exit. I use it in my boot scripts to automatically set the mixer to a reasonable setting.
 
Old 06-27-2004, 03:35 PM   #3
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Original Poster
Rep: Reputation: 31
Yeah, I did run lilo, originally I thought that could've been the problem, but I remember doing it vividly. Would doing it again hurt?

I have another question as well, is there anyway I can have drivers for 2.6.7 AND 2.4.22 (for my nVidia card) so X actually works on both? Or do I have to remain in the dark with 2.6.7 until I have everything else working?
 
Old 06-27-2004, 05:44 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Re-running lilo shouldn't hurt anything, so go ahead and do it. Before doing so, however, make sure that vmlinuz and vmlinuz.old aren't symlinks to the same file. This can happen sometimes if you're not careful. As for the Nvidia drivers, I've no clue about them, but if it's just a kernel module you can compile one version of the module against each kernel, put them in the appropriate /lib/modules directory and it should work regardless of the kernel you boot.
 
Old 06-27-2004, 06:00 PM   #5
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Original Poster
Rep: Reputation: 31
Okay, I'll give that a try when I get home tonight, however, I don't know if the nVidia driver install lets me pick the kernel, I know its a module, but I'm not too sure how it selects it.
 
Old 06-27-2004, 11:48 PM   #6
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Original Poster
Rep: Reputation: 31
Well I managed to fix my whole, "can't boot into 2.4.22 problem".

Code:
-rw-r--r--    1 root     root      1773219 Jun 27 00:09 vmlinuz
-rw-r--r--    1 root     root      1226706 Sep  2  2003 vmlinuz-ide-2.4.22
-rw-r--r--    1 root     root      1773219 Jun 27 00:07 vmlinuz.old
Seeing that vmlinuz and vmlinuz.old are the EXACT same size, and somehow were modified 2 minutes apart, I had a feeling, they were just the same thing. I just change vmlinuz.old to vmlinuz-ide-2.4.22 and I was in business. I'm going to try and recompile it, hopefully with better results.
 
Old 07-12-2004, 09:09 PM   #7
GT_Onizuka
Member
 
Registered: Aug 2003
Location: Atlanta
Distribution: Debian, OS X
Posts: 711

Original Poster
Rep: Reputation: 31
Okay, I solved my problem with my Internet not working. I just didn't have my NIC driver set up right, so that went over quite smoothly, as soon as I can get sound working how I want it, everything should be ready for 2.6.x :D.

Now, I'm going to try and migrate to ALSA, so I selected the ALSA option for sound and I selected my card's driver (intel8x0, I have a SiS 7012 sound card, and I'm positive I picked the right driver). Everything seems peachy in dmesg:

Code:
Advanced Linux Sound Architecture Driver Version 1.0.4 (Mon May 17 14:31:44 2004
 UTC).
PCI: Found IRQ 9 for device 0000:00:02.7
PCI: Sharing IRQ 9 with 0000:00:02.6
intel8x0_measure_ac97_clock: measured 49312 usecs
intel8x0: clocking to 48000
ALSA device list:
  #0: SiS SI7012 at 0xb800, irq 9
So I figure, hey my sound should work! So from the commandline, I bust out a little mpg123 action

Code:
ynadji@onizuka:ynadji$ mpg123 sukiyakisong.mp3
and I get this funny message

Code:
ALSA lib pcm.c:1908:(snd_pcm_open_noupdate) Unknown PCM default
Which makes me think my computer isn't using ALSA. So I force it to use ALSA as its output, and it segfaults:

Code:
ynadji@onizuka:ynadji$ mpg123 -o alsa sukiyakisong.mp3                             
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
Version 0.59q (2002/03/23). Written and copyrights by Joe Drew.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
Title  : sukiyaki song                   Artist: Pizzicato Five                
Album  : ca et la du japon               Year  : 2001
Comment:                                 Genre : Other                         

Playing MPEG stream from sukiyakisong.mp3 ...
MPEG 1.0, Layer: III, Freq: 44100, mode: Joint-Stereo, modext: 2, BPF : 2560
Channels: 2, copyright: Yes, original: Yes, CRC: No, emphasis: 0.
Bitrate: 128 Kbits/s, Extension value: 2
Audio: 1:1 conversion, rate: 44100, encoding: signed 16 bit, channels: 2
ALSA lib pcm.c:1908:(snd_pcm_open_noupdate) Unknown PCM default
Segmentation fault
I'm very confused. Perhaps I should disable the sound support from the kernel, and just manually install it via source from ALSA's website? Does anyone else have some odd problems like this?

And one final question. I recall someone somewhere mentioning that, if you were going to use nVidia drivers (which I will after I get everything else working on 2.6.7) you need to disable AGPGART, is this true? And are there any other things I won't/will need for 2.6.7 to function properly that I might be unaware of?

Thanks for all the help :D
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Upgrading Problems kopikat Slackware 6 10-03-2005 02:34 AM
problems occured after upgrading kernel and kernel-utils parv Fedora 0 05-02-2005 07:21 PM
Problems with upgrading to kernel 2.6.9 tureci SUSE / openSUSE 1 12-24-2004 11:30 AM
problems with upgrading to kernel 2.6.9 tureci Linux - Distributions 1 12-24-2004 11:30 AM
Problems upgrading to kernel 2.6.2 Groucho Slackware 16 03-21-2004 02:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration