LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-24-2004, 11:13 AM   #1
baldwonder
Member
 
Registered: Sep 2004
Location: Florida
Distribution: Slackware, VectorLinux, FreeBSD,Xubuntu
Posts: 69

Rep: Reputation: 15
Recompiled kernel - 3d & web problems


Hello all,

First I want to thank everyone who posts and responds on this site. It has helped me out a ton. That said, I am wondering if anyone has run into this problem before. Here is what I did:

Installed Slackware 10 from CD
installed dropline
got ATI drivers and 3d accel. working
tried to recompile kernel (2.4.26)

I followed DaOne's Kernel compiling guide. When I started xconfig I loaded the .config file from /usr/src/linux-2.4.26/ folder as a starting point. I only changed 3 things:

1) Changed the processor from 486 to Athlon (cause I run an Athlon XP2500+)

2) Removed Ifrared support (IrDA I think)

3) removed Bluetooth support

When I reboot, everything seems to load up with no problem. I login to Gnome. When I try to start Mozilla, or any other web browser, it starts to load it, but then it just stops. No window. Nothing. I try again. same result. It thinks and then...nothing.

Also I can't get 3d accel to work anymore. I reran fglrxconfig and tried to reinstall the drivers, but I can't get glxgears to run faster than ~100 fps (I was getting ~500 fps before I recompiled)

The weird thing is that when I choose my old kernel from the LILO menu and I log in to Gnome, neither Mozilla nor 3d acceleration works. I thought that my old kernel would load up as usual. Any ideas?
 
Old 09-24-2004, 11:55 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

u r right ur old kernel should work correctly!!!

also could u breifly tell the steps u folowed while compiling ur kenel also
the best option is to get the oldr .config file and mak changes to that config file so that u do not miss out on something

regards
 
Old 09-24-2004, 02:43 PM   #3
baldwonder
Member
 
Registered: Sep 2004
Location: Florida
Distribution: Slackware, VectorLinux, FreeBSD,Xubuntu
Posts: 69

Original Poster
Rep: Reputation: 15
Okay, here are the steps I followed:

1) Copied /usr/src/linux-2.4.26 to /usr/src/linux-2.4.26-recompile
2) Deleted /usr/src/linux and ran "ln -s /usr/src/linux-2.4.26-recompile /usr/src/linux" as root
3) cd /usr/src/linux
4) make xconfig
When the window opened I clicked "Load configuration from file" and chose /usr/src/linux/.config
5) changed 486 to Athlon
6) removed IrDA support
7) removed Bluetooth support

Sorry I just realized I followed shilo's kernel configure guide (under the sticky "This is how I do it all") not DaOne's

8) Clicked save and exit
9) make bzImage
10) cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-athlon
11) rm /boot/vmlinuz
12) ln -s /boot/vmlinuz-athlon /boot/vmlinuz
13) make modules
14) make modules_install
15) cp System.map /boot/System.map-athlon
16) cp .config /boot/config-athlon
17) rm System.map and ln -s /boot/System.map-athlon /boot/System.map
18) rm config and ln -s /boot/config-athlon /boot/config
19) added the following to lilo.conf

# Linux bootable partition config begins
image = /boot/vmlinuz-2.4.26
root = /dev/hda2
label = Slackware.old
read-only
# Linux bootable partition config ends

I saw that I had a vmlinuz-2.4.26 in the /boot/ directory (along with System.map-2.4.26 and config-2.4.26) so I thought that was my old kernel

20) /sbin/lilo

rebooted and had problems
I checked dmesg and there were no errors about modules not being able to load so I figured things went okay. I started Gnome (as a user not root), opened a terminal and tried to run glxgears. Got ~100 fps. Tried to open Mozilla to check LQ.org to see if anyone else had problems and it didn't open.
 
Old 09-24-2004, 02:53 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

i see there that u are not making any initrd images,maybe since u do not need thjen in the kenrel u were using,so u need to specify that in ur kernel,
since u opened ur kenel config with default entries and changed some of them ,it may be that these settings were not correct for u

u need to see that optiion in kernel "inital RAM disk support"

also u ned to check out other setings in urkenrel also
once u get a working kernel for urself then make use of that config file for furthr use

regards

Last edited by masand; 09-24-2004 at 09:58 PM.
 
Old 09-24-2004, 04:03 PM   #5
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
First off, initrd is not needed at all. A possible reason for your issues: both of the kernel compiling guides that you mention are for compiling a 2.6.x kernel. There are some additional steps in compiling a 2.4.x kernel. Your choices, recompile 2.4.x properly or compile new 2.6.x kernel. Off the top of my head, I believe that before you "make bzImage" you need to "make dep" with a 2.4.x kernel. I'd give you a guide for 2.4.x kernel, but it would not be the greatest. I haven't compiled anything in the 2.4.x series in awhile.
 
Old 09-24-2004, 09:59 PM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

thats what i have ben saying above,if u do not need initrd then compile ur kenel mentioning in the kernel config that u do not require initrd support

regards
 
Old 09-24-2004, 10:31 PM   #7
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
shilo is correct... After you exit the configure option you must issue `make dep` for a 2.4.# kernel..

Another thing may have happened here. Just changing the name of the linux directory will not protect your current running kernel.
In order to make a new kernel and keep the old one intact you must either build a completely different version or set the "EXTRAVERSION=" option in the makefile.
Once you have made the new kernel and properly copied the required files to /boot, edit lilo.conf and run lilo as you did.
There should be a directory located in the /lib/modules/### one for the original kernel and one for your new build...

Also you should have to install any 3rd party modules to the NEW running kernel i.e, sound, video drivers....

Also required for 2.4.## kernels is the running of make mrproper on virgin kernel sources.. TIP it is always a good thing to do before any build when it has been awhile...
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
recompiled kernel 2.6.3-13 what does this mean? rbonafied Mandriva 8 06-07-2004 12:00 PM
recompiled kernel, but don't want x to start lepricaun Linux - Software 4 05-29-2004 02:07 PM
Problems with USB and recompiled kernel krajzega Slackware 4 03-30-2004 04:46 AM
recompiled kernel not in use taoweijia Linux - Newbie 1 01-09-2004 08:33 AM
recompiled kernel and no vmlinuz.old or kernel module for Nvidia Bruce Hill Slackware 13 12-11-2003 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:39 PM.

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