Ken Moffat wrote:
On Tue, Feb 04, 2020 at 12:25:56PM -0600, Bruce Dubbs wrote:
On 2/4/20 10:47 AM, Furkan İnciroğlu wrote:
Hi there,
After my LFS-BLFS compilation, I delete all my tools and other build
directories. Now, I have to build some driver such as igb and mmc disk
driver. When I download igb tar.gz and extract, I run make install
command but it says:
common.mk:84 <http://common.mk:84>: *** Kernel header files not in any
of the expected locations.
common.mk:85 <http://common.mk:85>: *** Install the appropriate kernel
development package, e.g.
common.mk:86 <http://common.mk:86>: *** kernel-devel, for building
kernel modules and try again. Stop.
Should I do everything from zero?
Did you install the headers in as in '6.7. Linux-5.5.1 API Headers'?
We normally save our configuration file in /boot. For a new kernel:
tar -xf linux-5.x.y.tar.xz
cd linux-5.x.y
cp /boot .config-5.a.b .config
make oldconfig
etc
-- Bruce
Also, if you are building something that provides kernel modules
(I've no idea what igb is) you need to keep the kernel source
around, or else recreate it. I always set my kernel configs so that
the running config is in /proc/config.gz.
Beyond that, either there is some documentation to tell you what it
expects to find, and how to tell it when things are in different
places, or perhaps the locations are hardcoded in Makefiles and .mk
files. Probably best to look at common.mk to see where it is
looking.
ĸen
You should always do make modules_install in chapter 8.3 even
if all yourmodules are builtin.
This will create folders, files and links under /lib/modules.
Some of these links point to your kernel sources and are used
by the so called "out of tree" drivers to find the kernel headers
and other files needed for the build.
So you need to unpack your kernel to the same location you
used in 8.3 and try again.
Regards,
Ed
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style