how i compile a source code?
hi ,
After modifying the kernel source code how i compile it and run it?? is compilation and execution is same for all distro? Thanks. Nazib |
Assuming it's a 2.6 kernel, my usual steps are:
Copy the current kernel, /boot/vmlinuz, to a backup - say, /boot/vmlinuzold cd /usr/src/linux make menuconfig Change the setup appropriately make make modules_install cp arch/i386/boot/bzImage /boot/vmlinuz cp System.map /boot/System.map Then reboot. If the new kernel doesn't work, use the old one you cleverly backup up earlier. |
Isn't there something missing?
Quote:
Code:
make menuconfig |
bad move to change the old kernel name too... Never ever touch the old kernel...
leave the old kernel and lilo entry in place, compile the new kernel, copy to /boot and add a lilo entry for that. This way if the new kernel won't boot you can still boot with the old kernel... |
With the 2.6 kernel make or make all will combine several steps so you don't need to do separate make bzImage make modules anymore.
|
Quote:
|
All times are GMT -5. The time now is 09:40 PM. |