LinuxQuestions.org
Visit Jeremy's Blog.
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 05-29-2005, 02:54 AM   #376
houler
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1, Kernel 2.6.14.4 (custom)
Posts: 166

Rep: Reputation: 30

2.6.11.11 is out. Works fine so far after migrating from the 2.6.11.10 .config (which was copied from 2.6.11.6 to 2.6.11.7 all the way to .11) file.
 
Old 06-02-2005, 04:26 PM   #377
Menestrel
Member
 
Registered: Oct 2003
Location: Bucharest
Distribution: Debian Sarge, Slackware Current, Ubuntu
Posts: 183

Rep: Reputation: 30
Problems running make menuconfig

After I ran a apt-get dist-upgrade I get the following error message when I try to do a make menuconfig
in the linux kernel source directory:

Error message:
HOSTCC scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:130,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-linux/3.3.6/include/limits.h:122,
from /usr/lib/gcc-lib/i486-linux/3.3.6/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-linux/3.3.6/include/limits.h:11,
from scripts/basic/fixdep.c:113:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/sys/socket.h:35,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from scripts/basic/fixdep.c:115:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:201: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:201: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:201: error: for each function it appears in.)
scripts/basic/fixdep.c:201: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:297: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:297: warning: unused variable `s'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
 
Old 07-05-2005, 09:39 PM   #378
jp-lack
Member
 
Registered: Mar 2005
Location: NJ - US
Distribution: Slackware
Posts: 93

Rep: Reputation: 15
i was using the defaul kernel with slackware 10.1(kernel 2.4.29)... I try compile 2.6.10 and 2.6.12..but i couldn't... when i rebooted my computer (after compiling both kernels)I got a black screen... thats it.... what am i doing wrong???

any help will be apreciated...
 
Old 07-06-2005, 03:12 AM   #379
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
If your boot partition is on Reiserfs you either need to compile reiserfs support into the kernel or use an 'initial RAM disk (initrd). If I remember correctly there are instructions on howto upgrade from 2.4 to 2.6 kernel included on the install disc.
 
Old 07-12-2005, 02:18 PM   #380
relpats_eht
Member
 
Registered: Mar 2004
Distribution: Gentoo
Posts: 41

Rep: Reputation: 15
vmlinuz too large

for some reason when lilo is run after compiling the 2.6.12.2 kernel, I am getting the error: "Fatal: vmlinuz too large" I'm have no idea as to why this is occuring, as I am using the same procedure and configuration as I always do. Any help would be appreciated.
 
Old 07-25-2005, 09:22 PM   #381
Slack1_more
Member
 
Registered: Sep 2004
Location: Australia
Distribution: Slackware 10.0, 10.1, 11. and now 12!
Posts: 54

Rep: Reputation: 16
Menestrel, are u in the right forum?
Isn't apt-get a Debian distribution utility?
Why are u using it for Slackware...?
 
Old 08-05-2005, 09:57 PM   #382
riemann_noodles
Member
 
Registered: Feb 2005
Location: San Diego
Posts: 43

Rep: Reputation: 15
So, I've successfully recompiled my kernel for the first time suing this guide- thanks!. However, I'm getting the 'unable to load nvidia.ko' error while trying to install NVIDIA drivers- which I have been told is fixed by deselecting the nvidiafb driver. My question is this: I want to tweak my 2.6.12 kernel again, but I want my present backup kernel 2.4.29 to remain the backup- since my recompile might not work. So how do I make sure that this 2.4 kernel is the backup after I recompile again rather than the first attempt at 2.6 becoming the new backup?
In my boot folder I have the vmlinuz and vmlinuz.old- can i simply rename the vmlinuz.old to vmlinuz and repeat the steps I took the first time?
Thanks for any help.
 
Old 08-06-2005, 06:27 AM   #383
riemann_noodles
Member
 
Registered: Feb 2005
Location: San Diego
Posts: 43

Rep: Reputation: 15
It seemed to make sense- so I answered my own question and it worked.

mv System.old System.map
mv vmlinuz.old vmlinuz
cd /usr/src/linux
make menuconfig
etc

just had to keep up with which is which in lilo
 
Old 08-06-2005, 09:21 AM   #384
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I've installed Slack 10.1 on another machine, so I can experiment with compiling a kernel. Where do I start? Do I just get the kernel source from kernel.org and follow the guide here? I've never done this before, so am a bit unsure.

Thanks.
 
Old 08-06-2005, 01:48 PM   #385
riemann_noodles
Member
 
Registered: Feb 2005
Location: San Diego
Posts: 43

Rep: Reputation: 15
Yes. It's really not as daunting as it seems at first- I just recompiled successfully for the first time- after a few days of messing around with it to get the kernel just the way I want it. This is also the best guide I've seen- I follow it to the mark. If you make sure to edit lilo correctly and follow this guide you will be given two options at boot- you're newly compiled kernel and the original kernel installed with slackware 10.1. This way if you did mess things up you can always go back.
I would suggest using the make menuconfig command- I personally found this easiest- though you may think different. This particular kernel editor will load the kernel that slackware built for you- which is already working- and you can just tweak it from there. This way you have a jumping-off point. The help sections for each option in the kernel are very helpful and usually have a good recommendation for whether or not you need that item, in case you have no idea what it is for.

Just prepare to spend a bit of time looking around the first few times as reading every options help section takes a while, but is worth the effort getting it right so your recompile works. If you know alot about your hardware you will move along alot faster.

Good luck!
 
Old 08-06-2005, 01:53 PM   #386
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Thanks for the reply. Another quick question: when you edit lilo.conf to add the info to boot the old kernel as well, with the line

image = /boot/vmlinuz.old,

I assume I need to rename the actual vmlinuz to vmlinuz.old?
 
Old 08-06-2005, 02:02 PM   #387
riemann_noodles
Member
 
Registered: Feb 2005
Location: San Diego
Posts: 43

Rep: Reputation: 15
actually no- it will be done automatically if you follow the rest of this guide. after you've edited your kernel and you run

make
su -c "make modules_install"
make install

the present vmlinux and System.map will be renamed for you as backup links
 
Old 08-06-2005, 02:23 PM   #388
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Ok, thanks again. I'll have a go . Edit: I have more questions:

1. I do still need to run /sbin/lilo after editing lilo.conf, right?
2. This bit:

From /usr/src

rm -f linux
ln -s linux-2.6.0 linux
cd /linux

make mrproper

Then copy your existing .config to your new kernel source tree...

cp /usr/src/linux-2.4.?/.config /usr/src/linux

I downloaded and extracted to /home/nick/linux-2.6.12.4. Is that ok? I assume I don't need to do the rm -f, ln -s and cd /linux commands? Can I just do make mrproper and cp /usr/src/linux-2.4.29/.config /home/nick/linux-2.6.12.4?

I should also have asked, is this guide ok for 2.6.12.4, as well as 2.6.0?

Thanks again.

Last edited by Nylex; 08-06-2005 at 02:47 PM.
 
Old 08-06-2005, 02:48 PM   #389
riemann_noodles
Member
 
Registered: Feb 2005
Location: San Diego
Posts: 43

Rep: Reputation: 15
1. Even that is done automatically with the make commands

2. As far as I know you can do it in /home, but I'm a noob so not completely sure. And it worked for me with kernel 2.6.12

Last edited by riemann_noodles; 08-06-2005 at 02:51 PM.
 
Old 08-06-2005, 02:51 PM   #390
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Sorry, had to edit my post because there was more stuff to ask! Heh, that's good to know about LILO, thanks for that .
 
  


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
Help - Need guide on how to (re)compile kernel in 9.2 timko SUSE / openSUSE 1 02-17-2005 08:17 AM
re :kernel compile guide sh4d0w331 Slackware 1 10-02-2004 05:38 PM
Kernel re-compile guide marlor Slackware 6 08-08-2004 03:57 AM
What happened to the Newbie Compile Guide? boutrosboutros Slackware 6 07-14-2004 12:37 AM
mandrake specific kernel compile guide? e1000 Mandriva 4 01-09-2004 12:27 PM

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

All times are GMT -5. The time now is 07: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
Open Source Consulting | Domain Registration