Need to rebuild and install the kernel.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Need to rebuild and install the kernel.
# 1  
Old 10-17-2002
Need to rebuild and install the kernel.

Trying to install some ide raid drivers (to add some more hdds) and the instrcutions have toled me to modify some code in the kernel folder in usr/src (this is mandrake linux 9 btw). I need to then rebuild the kernel, how do I do this? Is there some file that I bring up for a whole c project (the kernel source code) so then I command it to compile? I am kinda new to Linux (but learning it well enough) so don't give me too much grief Smilie. I think I just need to run "Makefile" ...
# 2  
Old 10-17-2002
Quote:
I think I just need to run "Makefile" ...
Unfortunately there's a little bit more involved in recompiling a kernel. I've not recompile a linux kernel, I use FreeBSD, but you should have look here as well as here for some documentation.

Hope this helps. Smilie
# 3  
Old 10-21-2002
First hint:
Read the file called README!
Run through it on a test machine before trying this with something important. It's very common to try to have to recompile several times before you get a good clean kernel the way you want it - if you really screw up, you can't boot the kernel at all (I once inadventantly left out support for my hard drive! Do'h!).

My favorite way is:
cd /usr/src/linux
make menuconfig
make dep
make bzImage
make modules
make modules_install
cp the kernel to it's final location, reconfigure LILO or GRUB or whatever, and reboot.

Make sure to leave a few hours open if this is a slower machine.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Debian

Debian install - kernel panic

Hello all, I would like to install Debian Jessie on my i386 When I boot from the installiso I see the menu and pick 'install'. The bios beeps once immediately and I get the following output: I 've tried 3 cd's already...(md5 sum=ok) this computer always ran... (13 Replies)
Discussion started by: drum159
13 Replies

2. Red Hat

redhat rebuild kernel

Hi expert, I goes to # pwd /usr/src/kernels/2.6.32-279.el6.x86_64 then I make bzImage I meet error # make CHK include/linux/version.h CHK include/linux/utsrelease.h SYMLINK include/asm -> include/asm-x86 make: *** No rule to make target `missing-syscalls'. Stop. make:... (1 Reply)
Discussion started by: yanglei_fage
1 Replies

3. UNIX for Dummies Questions & Answers

Kernel not rebuild

hi, system operation: unix sco 3.2.4 Kernel not rebuild, do not remove or update tcp/ip e3H0 driver. messages: cat:cannot open../sdevice.d/5 line:5.1 32 -1 fatal error:mdevice:wrong number of fields idmaster:device do not exist in therefore can not be update idinstall: cannot... (0 Replies)
Discussion started by: milen
0 Replies

4. Red Hat

How to properly install kernel in fedora 10?

Hello and thank you for looking into my question. Well my question is quite straight forward. I am trying to install the latest kernel ( from kernel.org under mainline directory ). But strange error messages are coming up. Can someone please guide me through steps how did you install kernel in... (2 Replies)
Discussion started by: lynxys
2 Replies

5. UNIX for Dummies Questions & Answers

How to install kernel source?

During installation of one of driver i needed to Remove any earlier version drivers using make clean -r command. Where i m getting following error. # make clean -r Kernel source is not installed make: *** Error 1 My kernel version # uname -r 2.6.18-128.2.1.4.9.el5xen Where... (4 Replies)
Discussion started by: pinga123
4 Replies

6. Programming

Rebuild the Dev of a non UNIX kernel...

My name for this post may be a bit off but basically I would like to take go though the same proses that kernel developers went though to build other kernels that are based on UNIX such as Linux, And do it from scratch IE. starting with the base UNIX and building on to it. So I in theory could... (0 Replies)
Discussion started by: DevSer2279
0 Replies

7. UNIX for Dummies Questions & Answers

Kernel panic - not syncing == While RHEL AS install

I am trying to Install RHEL AS 4 on x86 pc, through VNC and got the below error, Am not pretty sure as how to resolve this. Can some one guide me through the process, or what might be missing.... Have Installed RHEL, many a times but cudnt find this out... Wud appreciate an early reply ......... (0 Replies)
Discussion started by: Crazy_murli
0 Replies

8. UNIX for Advanced & Expert Users

Error wile rebuild the kernel

Hi!!! I installed the patch: DUV40F16-C0040500-10245-Manual-20010328 to avoid a reboot problem in my server, AlphaServer 4100 with Tru64 4.0F. When the patch instalation finished I rebuild the kernel like this: # duconfig -c ORACLE-TEST Start de rebuild and a few minutes after appear... (0 Replies)
Discussion started by: irasela
0 Replies

9. UNIX for Advanced & Expert Users

best way to rebuild a kernel

i really have an issue with the otherwise outstading FreeBSD Handbook when it comes to kernel building. information on the proper steps to take is really confusing. i think that chapters 9 and 21 need to be combined to give a very concise format on how best to deal with kernel building/rebuidling... (1 Reply)
Discussion started by: xyyz
1 Replies

10. UNIX for Dummies Questions & Answers

Don't Know to Rebuild Linux Kernel(URGENT)

Hello. I'm installing Oracle8i on Red Hat Linux Server 7.0. The Oracle documentation has some preinstallation request to be carried before installing the Oracle software. It asks to modify some SEMAPHORE & SHARED MEMORY values in to a specified file. And finally after updating this values it... (2 Replies)
Discussion started by: S.Vishwanath
2 Replies
Login or Register to Ask a Question