Re: How to configure Linux kernel source tree hierarchy




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.
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)
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)


and do not know how to write the
very first "hello world" kernel program.

See: http://tldp.org/LDP/lkmpg/2.6/html/c119.html

Thanks for directing me to this link, I can not compile the example. Is
it because of the lack of the kernel source tree?

.



Relevant Pages

  • Re: How to configure Linux kernel source tree hierarchy
    ... The way to do this depends on your Linux distribution. ... Do I need to create and enter /usr/src/linux before untar the kernel ... configure a 2.6.x kernel source tree on kernel 2.4 Debian Linux ... I had done a kernel upgrade from 2.4 to ...
    (comp.os.linux.development.system)
  • Re: How to configure Linux kernel source tree hierarchy
    ... The way to do this depends on your Linux distribution. ... specify which one you use so it's impossible to answer in detail. ... very first "hello world" kernel program. ... it because of the lack of the kernel source tree? ...
    (comp.os.linux.development.system)
  • Re: Kernel 2.6.9: i810 video
    ... Attached is the configuration file I just used after again adding the kernel ... removing the kernel 2.6.9 source tree, and for luck, reinstalling the 2.6.7 ... alsa-project in RH7.2 which used OSS and since alsa can be updated more ...
    (Linux-Kernel)
  • Re: why "probe_kernel_address()", not "probe_user_address()"?
    ... source tree, wouldn't it be more meaningful to use a more appropriate ... You'll notice that all callers are indeed probing kernel addresses. ... __get_userit is in fact not being used to access user memory. ... perche` vuol dire che ti ...
    (Linux-Kernel)
  • Re: Compiling FC3 kernel.
    ... > problem is that the source tree from the current SRPM is not compiling clean ... If you were to just recompile the kernel you would do the following. ... Ideally you'll have patches for ALL changes - and apply these patches ... from the spec file - this way its easy to do it again with a kernel ...
    (Fedora)