On 2020-02-04 21:44 +0100, Pierre Labastie wrote: > Le 04/02/2020 à 17:47, Furkan İnciroğlu a écrit : > > 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, > > Not sure I understand the above. Isn't the igb driver in the kernel tree? Do > you need to download a separate tarball? If so, I think you should try rather > the in-tree driver.
I have a motherboard salvaged from an retired server, which has an onboard igb ethernet chip. With the in-tree driver only one (out of four) ethernet port is usable. But I didn't tried to build the driver from intel.com since I only need one port... > somewhere, compile them, then indicate to the out of tree driver where to find > the sources (or sometimes /usr/src/linux-x-x-x is hardcoded). Look at the > Makefile, or any file included by Makefile (looks like there is a common.mk > according to the error messages below, although the "http" part looks > suspicious). > > 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. > > Raw kernel headers from the kernel source (NOT the sanitized headers installed in LFS) are necessary for compiling out-tree modules. And, they have to be recompiled when kernel is rebuilt. So I just hate out-tree modules... > Note: I do not think you need to start again from scratch. > > Pierre -- Xi Ruoyao <[email protected]> School of Aerospace Science and Technology, Xidian University -- 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
