Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jan 2021 22:18:01 +0100
From:      Emmanuel Vadot <manu@bidouilliste.com>
To:        Pete Wright <pete@nomadlogic.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: DRM problem installing kernel on main-c561-gc3e75b6c1
Message-ID:  <20210119221801.d397abc940082f21bf93a42c@bidouilliste.com>
In-Reply-To: <01b20079-1117-f51c-b78a-598d573403b9@nomadlogic.org>
References:  <010001771b0a2c68-7bb71129-e451-4d4c-a3b4-d022c375a36e-000000@email.amazonses.com> <f1d46eb4-f5bd-b3eb-33b2-109410cb95f7@nomadlogic.org> <301b529c-6953-0e72-8da4-2e1c289df54e@nomadlogic.org> <20210119211159.d6395f9ed3b6e038f5f40b15@bidouilliste.com> <629d42c7-da2e-8285-09d6-b952b6556562@nomadlogic.org> <01b20079-1117-f51c-b78a-598d573403b9@nomadlogic.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 19 Jan 2021 13:06:37 -0800
Pete Wright <pete@nomadlogic.org> wrote:

>=20
>=20
> On 1/19/21 12:18 PM, Pete Wright wrote:
> >
> >
> > On 1/19/21 12:11 PM, Emmanuel Vadot wrote:
> >> On Tue, 19 Jan 2021 11:40:04 -0800
> >> Pete Wright <pete@nomadlogic.org> wrote:
> >>
> >>>
> >>> On 1/19/21 11:33 AM, Pete Wright wrote:
> >>>>
> >>>> On 1/19/21 6:26 AM, Thomas Laus wrote:
> >>>>> I perform a CURRENT build weekly on a more powerful build machine a=
nd
> >>>>> then export /usr/src and /usr/obj via NFS to other slower PC's. The
> >>>>> 'installkernel' phase failed with 'linuxkpi_gplv2.ko' not found.=A0=
 It
> >>>>> looks like this file is not installed before the rest of the
> >>>>> 'drm-current-kmod' files.=A0 This causes the 'installkernel' over N=
FS
> >>>>> to fail.
> >>>>>
> >>>>> My fis was to un-install drm-current-kmod, install the kernel and=20
> >>>>> then
> >>>>> re-install drm-current-kmod.
> >>>> hrm, i'm not sure this is specifically an NFS issue.=A0 I am
> >>>> building/installing locally on my workstation but am getting similar
> >>>> errors trying to load drm-devel-kmod's amdgpu mod.=A0 at this point =
even
> >>>> uninstalling drm-devel-kmod, make installkernel, install
> >>>> drm-devel-kmod pkg results in the same problem.
> >>>>
> >>> forgot to include dmesg error:
> >>> KLD drm.ko: depends on linuxkpi_gplv2 - not available or version=20
> >>> mismatch
> >>> linker_load_file: /boot/modules/drm.ko - unsupported file type
> >>> KLD amdgpu.ko: depends on drmn - not available or version mismatch
> >>> linker_load_file: /boot/modules/amdgpu.ko - unsupported file type
> >>>
> >>> -pete
> >>>
> >>> --=20
> >>> Pete Wright
> >>> pete@nomadlogic.org
> >>> @nomadlogicLA
> >> =A0 Sound like you have an old linuxkpi_gplv2.ko in /boot/kernel/
> >>
> >
> > Thanks Manu - so it looks like i don't have that file under=20
> > /boot/kernel/ but in /boot/modules instead:
> > $ find /boot/ -name '*linuxkpi*' -print
> > /boot/modules/linuxkpi_gplv2.ko
> > /boot/kernel/linuxkpi.ko
> > /boot/kernel.old/linuxkpi.ko
> > $ pkg which /boot/modules/linuxkpi_gplv2.ko
> > /boot/modules/linuxkpi_gplv2.ko was installed by package=20
> > drm-current-kmod-5.4.62.g20210118
> > $
> >
> > above is after installing the current kmod to see if it behaved=20
> > differently than the devel one.
> >
> > -pete
> >
> >
>=20
> interesting - so it seems like if i have drm-devel-kmod installed this=20
> will fail (missing or wrong linuxkpi_gplv2.ko).=A0 this happens both if i=
=20
> install the pkg and rebuild the kernel, and if i build the kernel w/o=20
> the pkg installed.

 Don't use the package, always rebuild from the latest ports.

> yet, if i have the drm-current-kmod pkg installed, then "make=20
> buildkernel" it looks like the i915/amdgpu modules get build and an=20
> "installkernel" drops the linuxkpi_gplv2.ko module under /boot/kernel.=A0=
=20
> at that point i am able to successfully load the amdgpu.ko.

 drm-current-kmod will also install its sources in /usr/local/sys/ and
this will get built with buildkernel. The problem is that if the
package is old (and it is right now) you might have sources that either
don't compile or don't work correctly.

> finally, i install the drm-current-pkg fresh (without doing the above=20
> buildkernel/installkernel) i get the linuxkpi_gplv2 error as above.
>=20
> -pete
>=20
> --=20
> Pete Wright
> pete@nomadlogic.org
> @nomadlogicLA
>=20


--=20
Emmanuel Vadot <manu@bidouilliste.com>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210119221801.d397abc940082f21bf93a42c>