After my experience (or lack there of) ;-) with trying to compile the current kernel, I decided that I would try to summarize the commands so that it can be used when (not if) the question comes up again on the list. While it is good refering to the manual or MAN pages, the best solution always is to have a simple, concise presentation for newbies, so they (I) don't have to go looking around 10 different bloody places. Below are a list of the commands in order. Anyone care to add commentary to them for the archive or so that one of us can pull it out of the hat when the question comes up next time? cd /usr/src/linux make cloneconfig make xconfig or make menuconfig #do your changes# make dep make clean make bzImage make bzlilo mk_initrd lilo cd /lib/modules cp -a 2.4.4-4GB 2.4.4-4GB.backup Cheers, Brian
Brian Durant wrote:
After my experience (or lack there of) ;-) with trying to compile the current kernel, I decided that I would try to summarize the commands so that it can be used when (not if) the question comes up again on the list. While it is good refering to the manual or MAN pages, the best solution always is to have a simple, concise presentation for newbies, so they (I) don't have to go looking around 10 different bloody places. Below are a list of the commands in order. Anyone care to add commentary to them for the archive or so that one of us can pull it out of the hat when the question comes up next time?
cd /usr/src/linux make cloneconfig make xconfig or make menuconfig #do your changes#
I think you want this order:
cd /lib/modules cp -a 2.4.4-4GB 2.4.4-4GB.backup
make dep make clean make bzImage
make modules make modules_install
make bzlilo mk_initrd lilo
-- Rafael
Hi. I see you are getting ready to compile your kernel...I asked the same question a few weeks ago and Chris Mahmood wrote me this. Worked like a charm, but I would do this instead of cp arch/<your arch>/boot/bzImage /boot/vmlinuz-new cp arch/<your arch>/boot/bzImage //boot/bzImage Just go and copy the system map and run lilo to boot off of bzImage the arch should be somewhere in your /usr/src/linux directory. Be sure to make a backup copt of your current system.map in case you copy over the current one. BTW Thanks Chris that little trick worked. * Michael Garabedian (mikejr@emergyscorp.com) [020313 16:54]:
The actual error is Modprobe: Can't open dependencies file /lib/modules/2.4.4/modules.dep (No such file or directory)
Sounds like you forgot to install the modules: make modules_install depmod -a gets run at boot.
And how can I take the current kernel settings and just add the patch make no changes to the current kernel and remake the image.
Would I just Do the patch Make dep Make clean Make modules Make bzImage then config lilo to look at that file
After my experience (or lack there of) ;-) with trying to compile the current kernel, I decided that I would try to summarize the commands so that it can be used when (not if) the question comes up again on the list. While it is good refering to the manual or MAN pages, the best solution always is to have a simple, concise presentation for newbies, so they (I) don't have to go looking around 10 different bloody places. Below are a list of the commands in order. Anyone care to add commentary to them for the archive or so
If you are currently running a SuSE kernel just cd /usr/src/linux && zcat /proc/config.gz > /usr/src/linux/.config make oldconfig make menuconfig (and change whatever you need to) make bzImage modules modules_install cp arch/<your arch>/boot/bzImage /boot/vmlinuz-new cp System.map /boot/System.map-<VERSION>.<PATCHLEVEL>.<SUBLEVEL> Add an entry to /etc/lilo.conf and /sbin/lilo If you are using initrd on the new kernel you'll also need to run /sbin/mk_initrd before running lilo. -- -ckm -- To unsubscribe, e-mail: suse-security-unsubscribe@suse.com For additional commands, e-mail: suse-security-help@suse.com Security-related bug reports go to security@suse.de, not here -----Original Message----- From: Rafael E. Herrera [mailto:raffo@neuronet.pitt.edu] Sent: Thursday, March 21, 2002 10:16 AM To: durant@cbn.net.id Cc: SuSE Linux-e Subject: Re: [SLE] Newbie compiling kernel. Brian Durant wrote: that
one of us can pull it out of the hat when the question comes up next time?
cd /usr/src/linux make cloneconfig make xconfig or make menuconfig #do your changes#
I think you want this order:
cd /lib/modules cp -a 2.4.4-4GB 2.4.4-4GB.backup
make dep make clean make bzImage
make modules make modules_install
make bzlilo mk_initrd lilo
-- Rafael -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
On Thursday 21 March 2002 22:57, you wrote:
I see you are getting ready to compile your kernel.
Umm, no. I already have compiled it.
I asked the same question a few weeks ago and Chris Mahmood wrote me this. Worked like a charm, but I would do this instead of cp arch/<your arch>/boot/bzImage /boot/vmlinuz-new cp arch/<your arch>/boot/bzImage //boot/bzImage Just go and copy the system map and run lilo to boot off of bzImage the arch should be somewhere in your /usr/src/linux directory. Be sure to make a backup copt of your current system.map in case you copy over the current one.
This isn't something I was advised to do. I assume "your arch" is archive? What is the difference between "vmlinuz-new" and "bzImage"? What is in the name?
If you are currently running a SuSE kernel just cd /usr/src/linux && zcat /proc/config.gz > /usr/src/linux/.config make oldconfig
Didn't do this either. Hmm. Anyone else on the list want to add comments? Cheers, Brian
On Thursday 21 March 2002 22:16, you wrote:
cd /usr/src/linux make cloneconfig make xconfig or make menuconfig #do your changes#
I think you want this order:
> cd /lib/modules > cp -a 2.4.4-4GB 2.4.4-4GB.backup
make dep make clean make bzImage
make modules make modules_install
make bzlilo mk_initrd lilo
OK. Any comments to add as an explanation of the process for the archives? Warnings? Anyone? Cheers, Brian
After my experience (or lack there of) ;-) with trying to compile the current kernel, I decided that I would try to summarize the commands so that it can be used when (not if) the question comes up again on the list. While it is good refering to the manual or MAN pages, the best solution always is to have a simple, concise presentation for newbies, so they (I) don't have to go looking around 10 different bloody places. Below are a list of the commands in order. Anyone care to add commentary to them for the archive or so
The only parts left out of the README file in /usr/src/linux are: - Make cloneconfig - Backing up the modules (only have to do this when compiling same version of the kernel... when compiling a new kernel version, it'll have a whole new directory tree) - mk_initrd But most of this is covered in the nifty SuSE book they give you when you buy the software :) Glen Goldsmith Brian Durant wrote: that
one of us can pull it out of the hat when the question comes up next time?
cd /usr/src/linux make cloneconfig make xconfig or make menuconfig #do your changes#
I think you want this order:
cd /lib/modules cp -a 2.4.4-4GB 2.4.4-4GB.backup
make dep make clean make bzImage
make modules make modules_install
make bzlilo mk_initrd lilo
-- Rafael
participants (4)
-
Brian Durant
-
Glen Goldsmith
-
Michael Garabedian
-
Rafael E. Herrera