On Monday, 14 December 2020 00:27:03 GMT [email protected] wrote: > On 12/13/2020 04:44 PM, Michael wrote: > > On Sunday, 13 December 2020 18:52:51 GMT [email protected] wrote: > >> I have "nouveau" build into kernel but it doesn't work: > >> > >> Fom dmesg: > >> > >> nouveau 0000:08:00.0: NVIDIA GP107 (137000a1) > >> nouveau 0000:08:00.0: gr: failed to load firmware "gr/sw_nonctx" > >> nouveau 0000:08:00.0: gr: failed to load gr/sw_nonctx > >> nouveau 0000:08:00.0: DRM: failed to create kernel channel, -22 > >> > >> grep -i nouveau .config > >> CONFIG_DRM_NOUVEAU=y > >> # CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT is not set > >> CONFIG_NOUVEAU_DEBUG=5 > >> CONFIG_NOUVEAU_DEBUG_DEFAULT=3 > >> # CONFIG_NOUVEAU_DEBUG_MMU is not set > >> CONFIG_DRM_NOUVEAU_BACKLIGHT=y > > > > I've never used NVIDIA cards with Gentoo, but in firmware terms you need > > to > > specify in your kernel what firmware you want installed in it. Have a > > look at> > > this guide: > > https://wiki.gentoo.org/wiki/Nouveau/en > > > > and this: > > https://wiki.gentoo.org/wiki/Linux_firmware > > > > You'll need to add the firmware the video card asks for here: > > > > Device Drivers ---> > > > > Generic Driver Options ---> > > > > Firmware loader ---> > > > > -*- Firmware loading facility > > () Build named firmware blobs into the kernel binary <== > > > > In this instance your card NVIDIA GP107 should need '/lib/firmware/nvidia/ > > gp107', so the respective entry for it in the kernel config ought to be: > > > > CONFIG_EXTRA_FIRMWARE="nvidia/gp107" > > > > Someone more clued up on these cards can correct me or add to it. > > Thank you, but I've managed to install "nvidia" following: > https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers > > What confused me is the output from two kernels: > > linux-5.4.80-gentoo-r1 > was installed with: genkernel --menuconfig all > and "nouveau" was working OK on that kernel: > > grep CONFIG_EXTRA_FIRMWARE ../linux-5.4.80-gentoo-r1/.config showing: > CONFIG_EXTRA_FIRMWARE="" > > The one below was compiled manually: > grep CONFIG_EXTRA_FIRMWARE ../linux-5.4.72-gentoo/.config > CONFIG_EXTRA_FIRMWARE="" > > Both had same output, so why one kernel was working the other didn't?
Were both of these kernels installed with a corresponding correctly functioning initramfs, which had all the requisite files (including -- firmware) to boot with, or only one of them did? Without an initramfs you will need to specify and build any requisite firmware blobs in the kernel image itself, so they are available to the system as it boots up.
signature.asc
Description: This is a digitally signed message part.

