Re: How to configure Linux kernel source tree hierarchy
- From: "miline" <milind.dumbare@xxxxxxxxx>
- Date: 18 Sep 2006 05:38:04 -0700
lovecreatesbea...@xxxxxxxxx wrote:
miline wrote:No, no need to go in /usr/src/linux/ .... actually when you install
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.
source rpm (SRPM) of kernel in redhat linux it installs the source
there (/usr/src/linux).
yes, you can configure and install 2.6 kernel on 2.4 distribution. Just
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?
have to worry about the modules.
What errors?
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?
Upgrading is configuring, building and installing
unlike configuring is only configuring.
About half year ago, I had done a kernel upgrade from 2.4 toWhich architecture do you have?
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
make config is as good as make menuconfig.
$ su root 'make moudules_install'This is installing kernel image.
$ su root 'cp linux-2.6.16/linux-2.6.16/arch/i386/boot/bzImage
/boot/vmlinuz-2.6.16-386'
$Creating initial ramdisk image.
$ 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:
- Re: How to configure Linux kernel source tree hierarchy
- From: lovecreatesbea...@xxxxxxxxx
- Re: How to configure Linux kernel source tree hierarchy
- 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
- Re: How to configure Linux kernel source tree hierarchy
- From: lovecreatesbea...@xxxxxxxxx
- How to configure Linux kernel source tree hierarchy
- Prev by Date: Re: How to configure Linux kernel source tree hierarchy
- Next by Date: mmap behavior
- 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
|