LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-14-2005, 05:09 AM   #16
kule
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 87

Rep: Reputation: 16

Quote:
Originally posted by scuzzman
Isn't most of the "make bz*" stuff obsolete anymore? I compiled my 2.6.9 with this:

Code:
cd /usr/src
tar -xjvf linux-2.6.9.tar.bz2
cp linux/.config ./.config
rm linux
ln -s linux-2.6.9 linux
cd linux
make mrproper
cp ../.config ./.config
make gconfig
make
make modules 
make modules_install
make install
shutdown -r now
If you type:
Code:
make
and not
Code:
make bzImage
you don't have to type
Code:
make modules
because make does that, too.
 
Old 04-14-2005, 05:29 AM   #17
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
edit the Makefile and uncomment (i.e. remove the #):
Code:
#export INSTALL_PATH=/boot
Then when you hit make install the kernel image and system.map will be installed in /boot with the previous kernel image and system.map moved to vmlinuz.old System.old.

Or you can change the destination directory to /test (maybe) and use this until you get the perfect kernel set-up, that way keeping the original working kernel safe.
 
Old 04-14-2005, 09:03 AM   #18
kule
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 87

Rep: Reputation: 16
And about cereal83's 2.6x kernel compile guide.
Well, I wouldn't like to see anyone who is a server maintainer to compile the kernel like that, because it's stupid to remove the previous kernel that worked fine on the last boot.
I would rather listen to cathectic and his method. That way nothing could go wrong.

And if cereal83 again says:
Quote:
Originally posted by cereal83
The way I mentioned up there has worked every single time I have done it.
What if your new kernel didn't boot?????????????????????????
 
Old 04-14-2005, 09:19 AM   #19
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
well....i also use the method outlined by cathectic.
and cereal83 just had a lot of luck, being able to boot every time.

btw.....why did those servers get new kernels ?

egag
 
Old 04-14-2005, 11:23 AM   #20
gbhil
Member
 
Registered: Jan 2005
Location: /dev/input/chair0
Distribution: Slackware, Gentoo, Vector, Roll-your-own-with-GNU binutils
Posts: 174

Rep: Reputation: 30
Quote:
Originally posted by cereal83
Why? Whats wrong with this way? The dude who showed me this way of doing it has been doing it since slack 4 and for many years with no problems on production servers that have 2000+ users during peak times and on websites/ ftp servers that have over 100000 hits a day and they all seem to work fine! He has done it that way for SQL, ftp, web and many other types of servers. The whole company is run off of linux which kernels have been compiled this way!

You have no backup kernel to boot from should the new kernel not load correctly. Very bad business practice. Mind telling us who this friend works for so we can all avoid the company like the plague?
 
Old 04-14-2005, 01:13 PM   #21
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
make bzlilo renames automatically /boot/vmlinuz and /boot/System.map
to /boot/vmlinuz.old and /boot/System.map.old (if they exist)

That requires uncomment the #export INSTALL_PATH=/boot line
in Makefile though
 
Old 04-14-2005, 08:37 PM   #22
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 479

Original Poster
Rep: Reputation: 30
Man, some of you peple are just ignorant! I don't think you people have ever heard of boot disks. Every server has a boot disk incase of a screw up. We never had to use one due to recompling a kernel.

We upgraded the kernel due to it being all new servers. All new servers have 2.6.10 kernel and 2.4.* on older servers and evem 2.2.* kernel on really old servers.

You want to know the name of the guy and the company name? lol lets just say that if your in Canada, you use their service.

It's just luck we have booted after every single recompile? umm no ... there is over 100 servers and none of them have failed. It's not luck, it just works and thats what IT people go with!WITH WHAT WORKS.

I am not telling you fools to compile it this way. I am just saying on how I do it and how this dude do it. I am his assistant to over 100 servers that are mostly all Quad Xeon's or higher and never had a problem yet you people are telling me it's luck and we are doing it wrong. Ever seen a Xeon MP server with 16 cpu's on Slack? I have seen many times and they all work with the way I mentioned.

The only differace from bzimage and bzlilo is bzlilo moves it to / and bzimage doesn't move it.

Yes I know about the makefile thing but that isn't on like 450 like all the guides on this forum tell me it is!

Good day!

Last edited by cereal83; 04-14-2005 at 08:39 PM.
 
Old 04-14-2005, 11:14 PM   #23
gbhil
Member
 
Registered: Jan 2005
Location: /dev/input/chair0
Distribution: Slackware, Gentoo, Vector, Roll-your-own-with-GNU binutils
Posts: 174

Rep: Reputation: 30
I took a moment and searched the OP's posts. Now I understand

He has seen everything but the wind
He has done everything but die
He does it all better, stronger and faster than other mere mortals
We are like the buzzing of flies to him

Tell us more stories about how them "IT people do it" with the quad xeons and magic boot floppies
 
Old 04-14-2005, 11:43 PM   #24
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
cereal83 I don't want to offend you, but you should take a rest or drink a beer (you can make that guy who owns so many server to pay it). Most people here are because they needed/need help sometime and want to help others, with questions or answers. I guess most told you about that because it's not common to see make bzlilo, but make or make bzimage are, just don't freak out and answer the difference (the / thingy).
What I really didn't like is calling ignorant a lot of people here because they don't know something. You didn't know how to compile a kernel, they didn't know that bootdisk existed (by the way, a bootdisk is a very generic term... my Windows 98 installation cd is a boot disk, my V2OS floopy is a bootdisk).
 
Old 04-15-2005, 07:05 AM   #25
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
Quote:
Originally posted by cereal83
Man, some of you peple are just ignorant! I don't think you people have ever heard of boot disks.
thanks a lot.
i'm looking forward to your review on bootdisks.
( as soon people are going to use your kernel-update guide, they will kill for a bootdisk )

Quote:
Originally posted by cereal83
It's just luck we have booted after every single recompile? umm no ... there is over 100 servers and none of them have failed. It's not luck, it just works and thats what IT people go with!WITH WHAT WORKS.
in general it's not smart to throw away old shoes before the new ones are proven to be ok.
when you fill in " kernel of productionserver " for shoes, then " not smart " should be changed to stupid.
why take a risk, if there's a simple way to avoid it ?
people told you how to change to a new kernel the safe way, keeping the old kernel as a backup.
if you don't want to use it, that's ok.
but don't tell here that " that's the way that IT people go ".
( btw.: how would you know..... )

Quote:
Originally posted by cereal83
I am not telling you fools to compile it this way. I am just saying on how I do it and how this dude do it. I am his assistant to over 100 servers that are mostly all Quad Xeon's or higher and never had a problem yet you people are telling me it's luck and we are doing it wrong. Ever seen a Xeon MP server with 16 cpu's on Slack? I have seen many times and they all work with the way I mentioned.

The only differace from bzimage and bzlilo is bzlilo moves it to / and bzimage doesn't move it.

Yes I know about the makefile thing but that isn't on like 450 like all the guides on this forum tell me it is!

Good day!
" fools" ???
could you give some arguments for that ?
" just saying how you change a kernel " on this forum is asking for comments. ( why else did you post it ? )
and, as with your bad practice of kernel changing , you're lucky again.
there's a lot of good advice for you.

btw.: i'm not very impressed of Slack on a 16 cpu server.
Slack on a i486 with 32 MB ram as a firewall/router demands the same kernel-change procedure.

i hope you'll at least remember this thread when you're fiddling with your bootdisk.

egag

Last edited by egag; 04-15-2005 at 07:07 AM.
 
Old 04-15-2005, 08:19 AM   #26
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
In the tutorial, you forget two points :
- as make bzlilo run /sbin/lilo in its final step, you need to
edit your lilo.conf before make bzlilo

- from my investigation I don't see where it makes modules, so
you may need to make modules after make bzlilo and
make modules_install of course

bzlilo is defined in :
arch/i386/Makefile

and zlilo:
arch/i386/boot/Makefile
 
Old 04-16-2005, 12:43 PM   #27
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 479

Original Poster
Rep: Reputation: 30
I am not a bad person. I just get upset when you people tell me that what my and my boss are doing is wrong when it's obvously works for us. I just thought I would mention this way because it seems easier for me. If the kernel did screw up and it wasn't bootable, we would put a bootdisk in and then recomiple the kernel again and fix what is wrong with it. We can also resort to the old kernel by moving images from the 2.4.* kernel back to the /boot folder.

to run bzlilo you don't have to edit your lilo.conf unless you want a backup of your kernel to be listed. We don't need a backup kernel to be listed so we don't edit it.

I dunno. I guess I shouldn't try to offer new ways of doing things anymore I should just be quiet. I am no linux guru but I can make my way around linux just like I can with windows now.

Well basically just forget what I said in this whole thread because obviously it's wrong even though if your in Canada and use a bank your using our services.

I also never said I had all this money. The company does. I can find something much better to buy then a $250k IBM @server 445s.
 
  


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
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
exchange4linux comile problem mak3 Linux - Software 8 04-04-2005 03:41 AM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
Unable to build NVIDIA kernel module / determin kernel version Night Ink Fedora 2 05-31-2004 04:54 PM

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

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

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