[glug-t] Re: Kernel module programming

jitu rohilla <rohilla.jitender@xxxxxxxxx> writes:

>          I am new to kernel module programming. and i am using the
> fedora core 3 as o.s.and my kernel is 2.6.9-1.667smp. I have
> downloaded the code for   linux-2.6.9.tar.bz2. How can i copmile this
> code to make it compatible with my system so that i can create kernel
> module,copmile them and insert into the kernel.i will be thankful to
> you for prompt reply.

It would be better if you install the kernel source rpm that is
_supposed_ to come along with Fedora Core 3 distribution.

Quoting http://www.mjmwired.net/resources/mjm-fedora-fc3.shtml

    Fedora no longer ships with the kernel-source RPM. You must
    install it separately. This is NOT needed unless you wish to
    re-compile your kernel.

    The default kernel source can be found through any mirror. Look in
    the directory "/3/i386/os/SRPMS/". An example from Fedora:
    http://download.fedora.redhat.com/pub/fedora/linux/core/3/i386/os/SRPMS/

    Select: kernel-2.6.9-1.667.src.rpm   02-Nov-2004 16:05  38.4M

    Install:
    # rpm -ivh kernel-2.6.9-1.667.src.rpm

    Set it up:
    # rpmbuild -bp --target=noarch  /usr/src/redhat/SPECS/kernel-2.6.spec

    The source files will be properly located in
    '/usr/src/redhat/BUILD/kernel-2.6.9'

    This is clearly explained in the Fedora Core 3 Release Notes.

    For further information to Compile a custom kernel. Please read my
    FC3 Kernel Notes
    (http://www.mjmwired.net/resources/mjm-kernel-fc3.shtml).

Hope this helps.

Regards,
Vijay


---------------------------------------------------------------
To unsubscribe send a mail to glug_t-request@xxxxxxxxxxxxx with 
'unsubscribe' as subject.

Website: http://glugt.linuxisle.com

Other related posts: