On Thu, 6 Feb 2020 at 12:44, Pierre Labastie <[email protected]> wrote:
>
> Le 05/02/2020 à 22:19, Furkan İnciroğlu a écrit :
> > On Wed, 5 Feb 2020 at 09:13, Xi Ruoyao <[email protected]> wrote:
> >>
> >> 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
> >
> > To be clear, My aim was, install intel ethernet driver(igb) which
> > exists in kernel tree. My question was, Should I rebuild kernel again
> > or how can I install specific linux kernel driver which exists in
> > kernel tree? Note: I used linux-4.20.12 kernel to LFS.
>
> You shouldn't use this one: it is not supported anymore, and there may be
> security flaws. Use either some kernel in the 4.19 series, which has long term
> support (LTS) (most recent is 4.19.102), or 5.4.18 (another LTS), or current
> (5.5.2 as of today).
> I have
> > downloaded Linux-4.20.12 tarball again and I run make menuconfig
> > command and I checked (Intel(R) PRO/1000 PCI Express Gigabit Ethernet
> > adapter driver) set=Y.
>
> For igb, it is:
> Intel(R) 82575/82576 PCI-Express Gigabit Ethernet support
>
> >
> > So, Is igb out of kernel tree?
>
> Of course not.
>
> How can I install it on my system?
> >
>
> You need to have compiled kernel sources somewhere on the computer to build
> any module, whether out of tree or in tree. In short, you need to recompile
> the kernel. Note that if you tick "Y", igb will not be a module, but directly
> in the kernel binary.
>
> Pierre
> --
> 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

Thank you so much Pierre, the problem was solved via your way. First,
I set igb driver support in make menuconfig and then I compiled kernel
again and I checked whether it installed or not via "dmesg | grep igb"
and it seems. I will take into account your kernel version suggestions
as well.

Best regards,
-- 
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

Reply via email to