Re: How to configure Linux kernel source tree hierarchy
- From: "lovecreatesbea...@xxxxxxxxx" <lovecreatesbeauty@xxxxxxxxx>
- Date: 18 Sep 2006 01:28:44 -0700
miline wrote:
lovecreatesbea...@xxxxxxxxx wrote:
Markku Kolkka wrote:
lovecreatesbea...@xxxxxxxxx wrote:
I still do not know exactly how to have a Linux kernel
source tree hierarchy on my machine
The way to do this depends on your Linux distribution. You didn't
specify which one you use so it's impossible to answer in detail.
Thank you. I installed debian-31r1a that was downloaded from
debian.org. The kernelversion is 2.4.
Do I need to create and enter /usr/src/linux before untar the kernel
zipped file that was downloaded from kernel.org, e.g.
linux-2.6.16.tar.gz.
I downloaded the newest kernel source, and is it correct for me to
configure a 2.6.x kernel source tree on kernel 2.4 Debian Linux
machine?
1. Untar the kernel tarball or go to the linux kernel tree if you have
already done that
2. make menuconfig. ( Set your hardware drivers/filesystems)
There were errors after I did this. I created /usr/src/linux and
unpacked the kernel source package there.
Is configuring the kernel source tree is similar to upgrading the
kernel? About half year ago, I had done a kernel upgrade from 2.4 to
2.6 on another machine. I remember that I also can not run this
command, I just used make config at that time. Following is a full log
of that upgrade on my machine.
$ kernelversion
2.4
$ cd linux-2.6.16/linux-2.6.16/
$ make config
$ make
$ su root 'make moudules_install'
$ su root 'cp linux-2.6.16/linux-2.6.16/arch/i386/boot/bzImage
/boot/vmlinuz-2.6.16-386'
$
$ su root 'mkinitrd -o /boot/initrd.img-2.6.16 2.6.16'
Alter boot entries in Grub record typically /boot/grub/menu.lst, add
following section at the bottom part of the file
#jhl, kernel 2.6
title kernel.org, kernel 2.6.16-386
root (hd0,0)
kernel /boot/vmlinuz-2.6.16-386 root=/dev/sda1 ro
initrd /boot/initrd.img-2.6.16 2.6.16
savedefault
boot
$ su root -c 'shutdown -r 10'
$ kernelversion
2.6
$
3. make menuconfig/oldconfig/xconfig
4. make dep (only for linux 2.4 , for 2.6 skip this step)
5. make bzImage
6. make modules
7. make modules_install
8. Install this generated bzImage in grub (bootloader)
.
- Follow-Ups:
- References:
- How to configure Linux kernel source tree hierarchy
- From: lovecreatesbea...@xxxxxxxxx
- Re: How to configure Linux kernel source tree hierarchy
- From: Markku Kolkka
- Re: How to configure Linux kernel source tree hierarchy
- From: lovecreatesbea...@xxxxxxxxx
- Re: How to configure Linux kernel source tree hierarchy
- From: miline
- How to configure Linux kernel source tree hierarchy
- Prev by Date: Re: RFI:Emulating large filesystems.
- Next by Date: Re: How to configure Linux kernel source tree hierarchy
- Previous by thread: Re: How to configure Linux kernel source tree hierarchy
- Next by thread: Re: How to configure Linux kernel source tree hierarchy
- Index(es):
Relevant Pages
|