LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-18-2007, 08:44 AM   #1
symatic
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 242

Rep: Reputation: 32
kernel compile question


Im running test26.s and I want to add smp to it. Can I just build the kernel with the .config file and just copy it to /boot without make modules and that good stuff. Since Im not creating any new modules it sounds like it would work. For some reason I always break stuff when I compile my own kernel. Im impatient now days. Basically i just want to add smp.

thanks in advance.
 
Old 05-18-2007, 08:53 AM   #2
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Copy the Slackware test26 config and then add smp. That should be OK, if you have installed test26 modules from cd/dvd.
 
Old 05-18-2007, 09:13 AM   #3
symatic
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 242

Original Poster
Rep: Reputation: 32
Sounds good. Have modules installed.

Process goes like this:
cd /usr/src
make menuconfig (load config from /boot)
check smp(hyperthreading,etc)
make bzImage
mv /boot/vmilinuz /boot/vmlinuz-old
cp new bzImage to /boot/vmlinuz(cp or cat never understood the dif here)
edit liloconfig to boot vmlinuz-old for saftey,
run sbin/lilo
reboot.

Did i do that correctly.
 
Old 05-18-2007, 09:24 AM   #4
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Yes, correct. Cat = concatenate, while cp = copy.

Last edited by Alien_Hominid; 05-18-2007 at 09:26 AM.
 
Old 05-18-2007, 11:47 AM   #5
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
If you only add smp support, it will work ... don't change the processor tho, it will not work (the modules would then need re-compile).
 
Old 05-18-2007, 01:24 PM   #6
symatic
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 242

Original Poster
Rep: Reputation: 32
Funny I was going to ask that. Seems logical. So basically I can add or remove anything in the kernel that does not affect the modules. Is that correct? I'm also right in not having to reinstall my ati drivers cause they are built using the same source or are they compiled against the kernel. Not a bit deal, easy reinstall. I Just want to learn more about the process. Its funny every now and then I Itch for something new from linux and I always seem to come back to Slack. Most other distros are not as straight foward and seem to stray from standards, so when I google a problem I have It rarely ever works on their distro but always seems to work with Slack. Just thought I would share.
 
Old 05-18-2007, 09:27 PM   #7
symatic
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 242

Original Poster
Rep: Reputation: 32
well, didn't work. broke a whole bunch of modules. Looking for 2.6.18 SMP something like that. I guess i should just build a whole new one and stop being lazy. Im running the 2.4 headers but i dont think that wold be the problem. thanks for the input and confusion
 
Old 05-18-2007, 09:37 PM   #8
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
What exactly does it say ? It may be looking for '/lib/modules/2.6.18-smp', in which case you may need to symlink '/lib/modules/2.6.18' to the one just mentioned.

I'm pretty sure it will work with these modules. I mean for the huge26.s you can install the smp kernel and use the regular modules ... same ones for huge26.s and generic, both of which are non-smp. I don't see a reason why this wouldn't work with the test26.s. You do have the test26.s kernel modules installed right ? And you used the same source to build the kernel right ?

Last edited by H_TeXMeX_H; 05-18-2007 at 09:38 PM.
 
  


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
kernel compile question shrndegruv Linux - Software 2 09-06-2005 11:37 AM
Kernel Compile Question endfx Linux - General 1 05-29-2005 11:06 AM
Kernel Compile Question JyushinX Linux - Software 2 03-14-2005 02:27 PM
kernel compile question.... wrat Linux - Newbie 1 01-16-2005 10:12 AM
Kernel compile question? BajaNick Slackware 6 01-10-2005 06:14 PM


All times are GMT -5. The time now is 04:46 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration