DRM problem installing kernel on main-c561-gc3e75b6c1

Pete Wright pete at nomadlogic.org
Wed Jan 20 19:16:28 UTC 2021



On 1/20/21 11:09 AM, Emmanuel Vadot wrote:
> On Wed, 20 Jan 2021 09:47:28 -0800
> Pete Wright <pete at nomadlogic.org> wrote:
>
>>
>> On 1/19/21 11:55 PM, Emmanuel Vadot wrote:
>>>> i'm happy now running the current-kmod but let me know if it'd be
>>>> helpful to do any more tests or provide additional info.
>>>    So what did you change ?
>>
>> ok i think i spot the issue - in my checkout of the ports tree via the
>> github mirror at git://github.com/freebsd/freebsd-ports.git it looks
>> like the pkg-plist doesn't include the %%SOURCE%%KMODSRC%% statements:
>>
>> $ cat pkg-plist
>> %%AMDGPU%%/%%KMODDIR%%/amdgpu.ko
>> %%AMDKFD%%/%%KMODDIR%%/amdkfd.ko
>> /%%KMODDIR%%/drm.ko
>> %%I915%%/%%KMODDIR%%/i915kms.ko
>> /%%KMODDIR%%/linuxkpi_gplv2.ko
>> /%%KMODDIR%%/radeonkms.ko
>> /%%KMODDIR%%/ttm.ko
>> $
>>
>> on the drm-current-kmod plist things look as we would expect them i believe:
>> $ head pkg-plist
>> %%AMDGPU%%/%%KMODDIR%%/amdgpu.ko
>> /%%KMODDIR%%/drm.ko
>> %%I915%%/%%KMODDIR%%/i915kms.ko
>> /%%KMODDIR%%/linuxkpi_gplv2.ko
>> /%%KMODDIR%%/radeonkms.ko
>> /%%KMODDIR%%/ttm.ko
>> %%SOURCE%%%%KMODSRC%%/Makefile
>> %%SOURCE%%%%KMODSRC%%/kconfig.mk
>> %%SOURCE%%%%KMODSRC%%/amd/Makefile
>> %%SOURCE%%%%KMODSRC%%/amd/amdgpu/Makefile
>> $
>>
>>
>> I can file a PR with a patch later today if that's helpful, if this
>> isn't due to bad git workspace on my end.
>>
>> cheers,
>> -pete
>>
>> -- 
>> Pete Wright
>> pete at nomadlogic.org
>> @nomadlogicLA
>   drm-devel-kmod doesn't install the sources on purpose.
>   It never had and never will.
>
>   So, did you "solve" the problem by switching to drm-current-kmod or to
> drm-devel-kmod ?

ah i see, thanks for the clarification.

so as of now i'm using the drm-current-kmod on my amdgpu system. using 
the drm-devel-kmod throws the previously reported error trying to load 
linuxkpi_gplv2.ko:

KLD drm.ko: depends on linuxkpi_gplv2 - not available or version 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

-p

-- 
Pete Wright
pete at nomadlogic.org
@nomadlogicLA



More information about the freebsd-current mailing list