LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-02-2005, 07:57 PM   #1
springshades
Member
 
Registered: Nov 2004
Location: Near Lansing, MI , USA
Distribution: Mainly just Mandriva these days.
Posts: 317

Rep: Reputation: 30
Errors after kernel recompile.


I had to recompile my kernel for Manrake 10.1 to get the power management features to work on my laptop. Problem is that it won't boot with the new kernel. The first error that I see is:

Loading jbd.ko module
jbd: version magic '2.6.8.1-12mdk 686 gcc-3.4' should be '2.6.8.1-12mdkcustom preempt K7 gcc-3.4'
insmod: error inserting '/lib/jbd.ko': errno=8
Loading ext3.ko module
ext3: version magic '2.6.8.1-12mdk 686 gcc-3.4' should be '2.6.8.1-12mdkcustom preempt K7 gcc-3.4'
insmod: error inserting '/lib/ext3.ko': errno=8
Mountin /proc filesystem
Mouting sysfs
Creating device files

etc...

It ends by being unable to get to the initrd presumably because the ext3 module failed to load and that is the root filesystem.

This has me annoyed as hell because this is the same error that I had the first time I recompiled the kernel. After some advice, I went back and recompiled the kernel this time making ABSOLUTELY sure that the ext3 file system was compiled into the kernel and NOT compiled as a module. Unless there is some hidden option somewhere, I made sure that everything having to do with ext3 was checked in xconfig instead of dotted. No difference. So this is currently where I am. Does anyone have an idea of something to try next? I'm pretty clueless at this point other than maybe just trying other distros and crossing my finger hoping that they have both the BadRam patch and ACPI built in.

Thanks
 
Old 07-02-2005, 08:34 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Could you list the commands you used to build and install the kernel?
 
Old 07-02-2005, 08:50 PM   #3
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
If you're using the initrd from the old kernel that'll cause problems, try recreating the initrd image.
 
Old 07-02-2005, 10:59 PM   #4
springshades
Member
 
Registered: Nov 2004
Location: Near Lansing, MI , USA
Distribution: Mainly just Mandriva these days.
Posts: 317

Original Poster
Rep: Reputation: 30
Hi,

Thanks for your replies, I was watching shark tale so sorry I didn't get back more quickly.

Basically I followed the digital hermit kernel compile walkthrough. After downloading and extracting the source for my kernel, the commands I ended up using were:

make mrproper
make xconfig
make clean
make bzImage
make modules
su
password:
make modules_install
make /boot/initrd-2.6.8.1-12mdk.img 2.6.8.1-12mdk
cp arch/i386/boot/bzImage /boot/bzImage-2.6.8.1-12mdk
cp System.map /boot/System.map-2.6.8.1-12mdk
ln -s /boot/System.map-2.6.8.1-12mdk /boot/System.map

It would be really great if I just got one of these lines wrong and could go back and fix them easily. The walk through that I followed is located at:

http://www.digitalhermit.com/linux/K...ild-HOWTO.html

and the only things that I changed in the configuration from the defaults were the processor to K7/Athlon (my laptop has a 1 GHz Duron in it), the ext3 filesystem I changed to being compiled in the kernel instead of a module, and I turned on several of the power management features. Changing to the AMD processor allowed me to use PowerNow and there were laptop oriented options I turned on. That's it.
 
Old 07-02-2005, 11:13 PM   #5
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
The 'make /boot/initrd-2.6.8.1-12mdk.img 2.6.8.1-12mdk' line should read:
Code:
mkinitrd /boot/2.6.8.1-12mdkcustom.img 2.6.8.1-12mdkcustom
and you should edit grub.conf (or grub.lst, or whatever) to load that image, and the new kernel.

Dave
 
Old 07-02-2005, 11:24 PM   #6
springshades
Member
 
Registered: Nov 2004
Location: Near Lansing, MI , USA
Distribution: Mainly just Mandriva these days.
Posts: 317

Original Poster
Rep: Reputation: 30
Oops, sorry.
Yeah, the make at the beginning of that line actually was mkinitrd when I put it in. Else, it probably would have had an error or something. I'm going to try it again with the line you suggested. I'll let you know if it works. Thanks for the idea.
 
Old 07-03-2005, 01:02 AM   #7
springshades
Member
 
Registered: Nov 2004
Location: Near Lansing, MI , USA
Distribution: Mainly just Mandriva these days.
Posts: 317

Original Poster
Rep: Reputation: 30
Thanks, that made it boot up. Unfortunately, recompiling the kernel still doesn't have ACPI working, but I figured out how to change my CPU frequency manually and APM management seems to be working fairly well.

Thank you, you have no idea how long I've been working on this off and on. (It's been something in the range of months now).
 
Old 07-11-2005, 10:58 AM   #8
basileus
Member
 
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388

Rep: Reputation: 30
I guess you already know this, but you can control the CPU frequency with either ACPI (when available) or with the "cpufreq" modules in 2.6 kernels. If you already can manually modify the clockrate, then you should try out "powernowd", "cpudynd" or "cpufreqd". At least cpudynd works with ACPI throttling, and all work with the cpufreq modules.
 
Old 07-12-2005, 03:23 AM   #9
springshades
Member
 
Registered: Nov 2004
Location: Near Lansing, MI , USA
Distribution: Mainly just Mandriva these days.
Posts: 317

Original Poster
Rep: Reputation: 30
Yup, I've pretty much been using the userspace options to control my cpu frequency. It starts out at maximum frequency during bootup, I then modified rc.local to lower that down to minimum speed for normal operation at the end of the boot up phase (it's not like you really need a very fast CPU normally), and then I added scripts called freq1, freq2, etc. to change the cpu as I need it. It seems to work very well for me.
 
  


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
Errors after Kernel Recompile alagenchev Linux - General 5 10-17-2005 09:19 AM
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 04:32 PM
Recompile depmod errors on startup leeach Slackware 1 02-01-2004 01:51 PM
Errors during filesystem check with one kernel while no errors with other kernel Potentials Linux - General 11 12-30-2003 04:24 AM
2 sound card errors after kernel recompile. Need newbie help LearningToSlack Linux - Newbie 2 11-10-2003 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:18 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