LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-06-2005, 09:27 AM   #1
akilles
Member
 
Registered: Sep 2004
Location: Vestfold, Norway
Distribution: Slackware
Posts: 139

Rep: Reputation: 15
Question compiling new kernel (2.6.11.11)


Hi.
After some considerations I've decided to try and compile a new kernel.
Here's my details:
HP nc6120 Laptop, running WindowsXP and Slack 10.0 and 2.4.26 kernel.
(ntldr as bootmanager)

Here's how I did a recompile:
downloaded linux-2.6.11.11.tar.gz from kernel.org
[all commands after this]

cp /home/geir/linux-2.6.11.11.tar.gz /usr/src
tar zxvf linux-2.6.11.11.tar.gz
rm linux
ln -s linux-2.6.11.11 linux
cd linux
cp /boot/config-ide-2.4.26 .config
make oldconfig
make bzImage
make modules
make modules_install
rm /boot/config
rm /boot/System.map
mv /boot/vmlinuz /boot/vmlinuz-old
cp System.map /boot/System.map-2.6.11.11
cp .config /boot/config-2.6.11.11
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.11.11
cd /boot
ln -s System.map-2.6.11.11 System.map
ln -s config-2.6.11.11 config
ln -s vmlinuz-2.6.11.11 vmlinuz

[added to lilo.conf]
(changed the: image = /boot/vmlinuz .. to image = /boot/vmlinuz-old)
(added..)
image = /boot/vmlinuz-2.6.11.11
root = /dev/hda2
label = Slack_2.6.11.11
read-only

[more commands]
lilo -v
dd if=/dev/hda2 bs=512 count=1 of=/linux.bin
(the linux.bin file is copied over to the windows partition, and overwrites the old linux.bin file)


Here's my problem....
At first reboot everything looks great, and works great.
usbmouse works, sound works (onboard intel ICH6, snd-intel8x0 compatible soundcard).
I use it for a while, and I configure fluxbox the way I want...
Then I decide to reboot, and when starting again, no modules are loaded, nothing works.
lsmod returns empty list

I check /lib/modules/2.6.11.11/kernel/...
and there are many .ko files there
the modules.dep file is completely empty......

Anyone have a suggestion as to what I'm doing wrong?
I use these commands from a page I found on google.com/linux

http://www.sysdesign.ca/guides/linux_kernel.html
(I guess it was written for 2.4.x kernels and I'm not sure the same things apply to 2.6.x kernels)
I've also used the tutorial from these pages:
http://www.linuxquestions.org/questi...icle&artid=408
(Compiling kernel 2.6.10 on a Slackware 10.1, by acidjuice)

Hope someone can give me a pointer)

-Geir
 
Old 06-06-2005, 09:56 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Did you install the newest module-init-tools? It's necessary if you change fron 2.4.x to 2.6.x kernel. Also you must convert your old /etc/modules.conf to the new /etc/modprobe.conf.
Hope that helps

Regards
 
Old 06-06-2005, 10:01 AM   #3
akilles
Member
 
Registered: Sep 2004
Location: Vestfold, Norway
Distribution: Slackware
Posts: 139

Original Poster
Rep: Reputation: 15
no, I didn't install anything called module-init-tools.
Thanks for the tip. I'll look into that in the morning.
(On my way home from work now, and no DSL line at home.)

You have a link to module-init-tools?

-Geir
 
Old 06-06-2005, 10:04 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
http://www.slackware.com/pb/download...ols-3.1-i486-1

Regards
 
Old 06-06-2005, 11:55 AM   #5
Fritz_Monroe
Member
 
Registered: Nov 2004
Location: Maryland, USA
Distribution: Mint 13
Posts: 276

Rep: Reputation: 31
Quote:
Originally posted by bathory
Did you install the newest module-init-tools? It's necessary if you change fron 2.4.x to 2.6.x kernel. Also you must convert your old /etc/modules.conf to the new /etc/modprobe.conf.
Hope that helps

Regards
I'm glad this came up, I just downloaded the new kernel and was about to compile it.

I see that you have to do a generate-modprobe.conf to change from /etc/modules.conf to /etc/modprobe.conf. Is this something that would be done after booting up using the new kernel?

F_M
 
Old 06-06-2005, 12:13 PM   #6
akilles
Member
 
Registered: Sep 2004
Location: Vestfold, Norway
Distribution: Slackware
Posts: 139

Original Poster
Rep: Reputation: 15
thanks for the link. (downloading now on a 56K modem)
my next question is almost the same as Fritz's:
Do I boot up using the old 2.4.26 kernel, remove all things to do with 2.6.11.11 then install module-init-tools, and recompile the kernel??
I'll try and hopefully succeed tonight (not online again till tomorrow morning.) (My DSL line is scheduled for connection tomorrow.... The waiting time is painful.)

If I mess it all up, I'll just install fresh again tomorrow and do it the right way.
Thanks for your help so far.

-Geir
 
Old 06-06-2005, 01:19 PM   #7
akilles
Member
 
Registered: Sep 2004
Location: Vestfold, Norway
Distribution: Slackware
Posts: 139

Original Poster
Rep: Reputation: 15
thought I'd let you know:
I downloaded the package and installed it:
installpkg modul<tab>....
then did a:
depmod 2.6.11.11
generate-modprobe.conf
rebooted and used the 2.6.11.11 kernel....
Never been happier.
Now everything works like a charm

Another question also..
I have apm compiled as a module, and when I do a:
# modprobe apm
I get and error saying:
No such device.. (or something like that...)

Guess that means I have no apm support on the laptop.. or?

I tried compiling with acpi but that crashed the laptop...
(Haven't tried it with 2.6.11.11 (compiled the right way with module-init-tools)
 
Old 06-06-2005, 02:01 PM   #8
Fritz_Monroe
Member
 
Registered: Nov 2004
Location: Maryland, USA
Distribution: Mint 13
Posts: 276

Rep: Reputation: 31
Congrats on the success. I'll hopefully be following suit soon. I have to finish downloading the kernel and then give it a shot. This thread will be part of my reference for doing it.

Thanks for the help.

F_M
 
Old 06-06-2005, 03:22 PM   #9
akilles
Member
 
Registered: Sep 2004
Location: Vestfold, Norway
Distribution: Slackware
Posts: 139

Original Poster
Rep: Reputation: 15
Thanks, and I wish you the best of luck.
It was actually painless once I got everything I needed.
Asking the guru's here helped me alot.

Compilation takes a while, even on my Pentium M 1.733GHz laptop.
But it sure was worth it.

-Geir
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling kernel = kernel panic Tons of Fun Debian 5 07-02-2005 02:59 PM
Compiling kernel module for linux kernel 2.4 in 2.6 guam Linux - Software 0 01-13-2005 03:02 AM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 05:17 AM
Help! Everything seems to be compiling into kernel! KuRe Slackware 18 12-17-2003 09:04 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 06:31 PM


All times are GMT -5. The time now is 10:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration