[relnotes] [Bug 187582] RELNOTES - kernel-devel required for modules in section 8.7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.

Summary: RELNOTES - kernel-devel required for modules in section 8.7


https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=187582





------- Additional Comments From Tommy.Reynolds@xxxxxxxxxxxxx  2006-04-01 09:25 EST -------
There are actually at least 4 use cases to cover:

1) All I need is to compile a 3rd-party module:

The easiest way is to install the "kernel-devel" RPM and then point make(1) to
the infrastructure that provides:

# cd /path/to/new/module
# make -C /lib/module/$(uname -r)/build M=$PWD modules
# make -C /lib/module/$(uname -r)/build M=$PWD modules_install

is often sufficient.

2) I need to work with same kernel sources as the distro, perhaps to debug a crash:

Install the "kernel-devel" RPM.  In "/usr/src/kernels/$(uname -r)" find a
fully-configured kernel source tree with only those sources used for the FCn
kernel.  Sources for features not supported by the Fedora project, such as NTFS,
are not currently provided in this RPM.

This RPM is also useful to build a new Fedora kernel with some configuration
parameters altered.

To compile a 3rd-party driver using these files, use a make(1) command similar to:

# make -C /usr/src/kernels/$(uname -r) M=$PWD modules
# make -C /usr/src/kernels/$(uname -r) M=$PWD modules_install

3)I want to use a feature not supported by Fedora, or, I want to see full kernel
sources for the current distribution.

Install the "kernel-${version}-${release}.src.rpm" RPM.  Sources for the plain
kernel, the Xen kernels, and the vanilla kernel will be installed in
"${RPMROOT}/BUILD/kernel-${version}".

To build a 3rd-party driver, use a make(1) command similar to:

# make -C ${RPMROOT}/BUILD/kernel-${version}/linux-${version} M=$PWD modules
# make -C ${RPMROOT}/BUILD/kernel-${version}/linux-${version} M=$PWD modules_install

4) I have a textbook about kernel programming and I want to follow the examples.

Install the "kernel-${release}-${version}.src.rpm" RPM as explained above.  Then
move the desired sources into "/usr/src/linux-$(uname -r)" like this:

# cd ${RPMROOT}/BUILD/kernel-${version}
# mv linux-${version} /usr/src/linux-$(uname -r)
# cd /usr/src/
# ln -s ./linux-$(uname -r) linux

# cd /usr/src/linux

-- 
Configure bugmail: https://bugzilla.redhat.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Gnome Users]     [KDE Users]

  Powered by Linux