Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] no screens found(EE) with AMDGPU
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
IsraelBuitronD
Guru
Guru


Joined: 24 Jun 2005
Posts: 343
Location: México

PostPosted: Thu Jan 04, 2024 6:35 pm    Post subject: [SOLVED] no screens found(EE) with AMDGPU Reply with quote

Hi

I have not achieved to setup X11 in a laptop Lenovo V14 G2 ALC 82KC.
It has an AMD Lucienne graphic card (for more details you can see this probe).
I have follow Gentoo Handbook for AMD and Xorg wiki

My /var/log/Xorg.0.log file shows "no screens found(EE)".
Here I share you the last log file:
Code:

[     4.250]
X.Org X Server 1.21.1.10
X Protocol Version 11, Revision 0
[     4.250] Current Operating System: Linux DodoLenLap 6.1.67-gentoo #1 SMP PREEMPT_DYNAMIC Fri Dec 29 22:18:01 CST 2023 x86_64
[     4.250] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.1.67-gentoo root=UUID=28fe2b15-b934-43ab-a20e-99a0c6988cee ro
[     4.250]
[     4.250] Current version of pixman: 0.42.2
[     4.250]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[     4.250] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     4.250] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan  4 03:44:38 2024
[     4.251] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     4.252] (==) No Layout section.  Using the first Screen section.
[     4.252] (==) No screen section available. Using defaults.
[     4.253] (**) |-->Screen "Default Screen Section" (0)
[     4.253] (**) |   |-->Monitor "<default monitor>"
[     4.253] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[     4.253] (==) Automatically adding devices
[     4.253] (==) Automatically enabling devices
[     4.253] (==) Automatically adding GPU devices
[     4.253] (==) Automatically binding GPU devices
[     4.253] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     4.254] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[     4.254]    Entry deleted from font path.
[     4.256] (==) FontPath set to:
   /usr/share/fonts/misc,
   /usr/share/fonts/OTF,
   /usr/share/fonts/Type1,
   /usr/share/fonts/100dpi,
   /usr/share/fonts/75dpi
[     4.256] (==) ModulePath set to "/usr/lib64/xorg/modules"
[     4.256] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[     4.256] (II) Module ABI versions:
[     4.256]    X.Org ANSI C Emulation: 0.4
[     4.256]    X.Org Video Driver: 25.2
[     4.256]    X.Org XInput driver : 24.4
[     4.256]    X.Org Server Extension : 10.0
[     4.257] (++) using VT number 7

[     4.257] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[     4.259] (--) PCI:*(4@0:0:0) 1002:164c:17aa:3f95 rev 194, Mem @ 0x260000000/268435456, 0x270000000/2097152, 0xfd400000/524288, I/O @ 0x00001000/256
[     4.259] (II) LoadModule: "glx"
[     4.259] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[     4.263] (II) Module glx: vendor="X.Org Foundation"
[     4.263]    compiled for 1.21.1.10, module version = 1.0.0
[     4.263]    ABI class: X.Org Server Extension, version 10.0
[     4.263] (==) Matched ati as autoconfigured driver 0
[     4.263] (==) Matched modesetting as autoconfigured driver 1
[     4.263] (==) Matched fbdev as autoconfigured driver 2
[     4.263] (==) Matched vesa as autoconfigured driver 3
[     4.263] (==) Assigned the driver to the xf86ConfigLayout
[     4.263] (II) LoadModule: "ati"
[     4.263] (II) Loading /usr/lib64/xorg/modules/drivers/ati_drv.so
[     4.264] (II) Module ati: vendor="X.Org Foundation"
[     4.264]    compiled for 1.21.1.10, module version = 22.0.0
[     4.264]    Module class: X.Org Video Driver
[     4.264]    ABI class: X.Org Video Driver, version 25.2
[     4.264] (II) LoadModule: "radeon"
[     4.264] (II) Loading /usr/lib64/xorg/modules/drivers/radeon_drv.so
[     4.268] (II) Module radeon: vendor="X.Org Foundation"
[     4.268]    compiled for 1.21.1.10, module version = 22.0.0
[     4.268]    Module class: X.Org Video Driver
[     4.268]    ABI class: X.Org Video Driver, version 25.2
[     4.268] (II) LoadModule: "modesetting"
[     4.268] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[     4.269] (II) Module modesetting: vendor="X.Org Foundation"
[     4.269]    compiled for 1.21.1.10, module version = 1.21.1
[     4.269]    Module class: X.Org Video Driver
[     4.269]    ABI class: X.Org Video Driver, version 25.2
[     4.269] (II) LoadModule: "fbdev"
[     4.269] (WW) Warning, couldn't open module fbdev
[     4.269] (EE) Failed to load module "fbdev" (module does not exist, 0)
[     4.269] (II) LoadModule: "vesa"
[     4.269] (WW) Warning, couldn't open module vesa
[     4.269] (EE) Failed to load module "vesa" (module does not exist, 0)
[     4.269] (II) RADEON: Driver for ATI/AMD Radeon chipsets:
   ATI Radeon Mobility X600 (M24), ATI FireMV 2400,
   ATI Radeon Mobility X300 (M24), ATI FireGL M24 GL,
   ATI Radeon X600 (RV380), ATI FireGL V3200 (RV380),
   ATI Radeon IGP320 (A3), ATI Radeon IGP330/340/350 (A4),
   ATI Radeon 9500, ATI Radeon 9600TX, ATI FireGL Z1, ATI Radeon 9800SE,
   ATI Radeon 9800, ATI FireGL X2, ATI Radeon 9600, ATI Radeon 9600SE,
   ATI Radeon 9600XT, ATI FireGL T2, ATI Radeon 9650, ATI FireGL RV360,
   ATI Radeon 7000 IGP (A4+), ATI Radeon 8500 AIW,
   ATI Radeon IGP320M (U1), ATI Radeon IGP330M/340M/350M (U2),
   ATI Radeon Mobility 7000 IGP, ATI Radeon 9000/PRO, ATI Radeon 9000,
   ATI Radeon X800 (R420), ATI Radeon X800PRO (R420),
   ATI Radeon X800SE (R420), ATI FireGL X3 (R420),
   ATI Radeon Mobility 9800 (M18), ATI Radeon X800 SE (R420),
   ATI Radeon X800XT (R420), ATI Radeon X800 VE (R420),
   ATI Radeon X850 (R480), ATI Radeon X850 XT (R480),
   ATI Radeon X850 SE (R480), ATI Radeon X850 PRO (R480),
   ATI Radeon X850 XT PE (R480), ATI Radeon Mobility M7,
   ATI Mobility FireGL 7800 M7, ATI Radeon Mobility M6,
   ATI FireGL Mobility 9000 (M9), ATI Radeon Mobility 9000 (M9),
   ATI Radeon 9700 Pro, ATI Radeon 9700/9500Pro, ATI FireGL X1,
   ATI Radeon 9800PRO, ATI Radeon 9800XT,
   ATI Radeon Mobility 9600/9700 (M10/M11),
   ATI Radeon Mobility 9600 (M10), ATI Radeon Mobility 9600 (M11),
   ATI FireGL Mobility T2 (M10), ATI FireGL Mobility T2e (M11),
   ATI Radeon, ATI FireGL 8700/8800, ATI Radeon 8500, ATI Radeon 9100,
   ATI Radeon 7500, ATI Radeon VE/7000, ATI ES1000,
   ATI Radeon Mobility X300 (M22), ATI Radeon Mobility X600 SE (M24C),
   ATI FireGL M22 GL, ATI Radeon X800 (R423), ATI Radeon X800PRO (R423),
   ATI Radeon X800LE (R423), ATI Radeon X800SE (R423),
   ATI Radeon X800 XTP (R430), ATI Radeon X800 XL (R430),
   ATI Radeon X800 SE (R430), ATI Radeon X800 (R430),
   ATI FireGL V7100 (R423), ATI FireGL V5100 (R423),
   ATI FireGL unknown (R423), ATI Mobility FireGL V5000 (M26),
   ATI Mobility Radeon X700 XL (M26), ATI Mobility Radeon X700 (M26),
   ATI Radeon X550XTX, ATI Radeon 9100 IGP (A5),
   ATI Radeon Mobility 9100 IGP (U3), ATI Radeon XPRESS 200,
   ATI Radeon XPRESS 200M, ATI Radeon 9250, ATI Radeon 9200,
   ATI Radeon 9200SE, ATI FireMV 2200, ATI Radeon X300 (RV370),
   ATI Radeon X600 (RV370), ATI Radeon X550 (RV370),
   ATI FireGL V3100 (RV370), ATI FireMV 2200 PCIE (RV370),
   ATI Radeon Mobility 9200 (M9+), ATI Mobility Radeon X800 XT (M28),
   ATI Mobility FireGL V5100 (M28), ATI Mobility Radeon X800 (M28),
   ATI Radeon X850, ATI unknown Radeon / FireGL (R480),
   ATI Radeon X800XT (R423), ATI FireGL V5000 (RV410),
   ATI Radeon X700 XT (RV410), ATI Radeon X700 PRO (RV410),
   ATI Radeon X700 SE (RV410), ATI Radeon X700 (RV410),
   ATI Radeon X1800, ATI Mobility Radeon X1800 XT,
   ATI Mobility Radeon X1800, ATI Mobility FireGL V7200,
   ATI FireGL V7200, ATI FireGL V5300, ATI Mobility FireGL V7100,
   ATI FireGL V7300, ATI FireGL V7350, ATI Radeon X1600, ATI RV505,
   ATI Radeon X1300/X1550, ATI Radeon X1550, ATI M54-GL,
   ATI Mobility Radeon X1400, ATI Radeon X1550 64-bit,
   ATI Mobility Radeon X1300, ATI Radeon X1300, ATI FireGL V3300,
   ATI FireGL V3350, ATI Mobility Radeon X1450,
   ATI Mobility Radeon X2300, ATI Mobility Radeon X1350,
   ATI FireMV 2250, ATI Radeon X1650, ATI Mobility FireGL V5200,
   ATI Mobility Radeon X1600, ATI Radeon X1300 XT/X1600 Pro,
   ATI FireGL V3400, ATI Mobility FireGL V5250,
   ATI Mobility Radeon X1700, ATI Mobility Radeon X1700 XT,
   ATI FireGL V5200, ATI Radeon X2300HD, ATI Mobility Radeon HD 2300,
   ATI Radeon X1950, ATI Radeon X1900, ATI AMD Stream Processor,
   ATI RV560, ATI Mobility Radeon X1900, ATI Radeon X1950 GT, ATI RV570,
   ATI FireGL V7400, ATI Radeon 9100 PRO IGP,
   ATI Radeon Mobility 9200 IGP, ATI Radeon X1200, ATI RS740,
   ATI RS740M, ATI Radeon HD 2900 XT, ATI Radeon HD 2900 Pro,
   ATI Radeon HD 2900 GT, ATI FireGL V8650, ATI FireGL V8600,
   ATI FireGL V7600, ATI Radeon 4800 Series, ATI Radeon HD 4870 x2,
   ATI Radeon HD 4850 x2, ATI FirePro V8750 (FireGL),
   ATI FirePro V7760 (FireGL), ATI Mobility RADEON HD 4850,
   ATI Mobility RADEON HD 4850 X2, ATI FirePro RV770,
   AMD FireStream 9270, AMD FireStream 9250, ATI FirePro V8700 (FireGL),
   ATI Mobility RADEON HD 4870, ATI Mobility RADEON M98,
   ATI FirePro M7750, ATI M98, ATI Mobility Radeon HD 4650,
   ATI Radeon RV730 (AGP), ATI Mobility Radeon HD 4670,
   ATI FirePro M5750, ATI RV730XT [Radeon HD 4670], ATI RADEON E4600,
   ATI Radeon HD 4600 Series, ATI RV730 PRO [Radeon HD 4650],
   ATI FirePro V7750 (FireGL), ATI FirePro V5700 (FireGL),
   ATI FirePro V3750 (FireGL), ATI Mobility Radeon HD 4830,
   ATI Mobility Radeon HD 4850, ATI FirePro M7740, ATI RV740,
   ATI Radeon HD 4770, ATI Radeon HD 4700 Series, ATI RV610,
   ATI Radeon HD 2400 XT, ATI Radeon HD 2400 Pro,
   ATI Radeon HD 2400 PRO AGP, ATI FireGL V4000, ATI Radeon HD 2350,
   ATI Mobility Radeon HD 2400 XT, ATI Mobility Radeon HD 2400,
   ATI RADEON E2400, ATI FireMV 2260, ATI RV670, ATI Radeon HD3870,
   ATI Mobility Radeon HD 3850, ATI Radeon HD3850,
   ATI Mobility Radeon HD 3850 X2, ATI Mobility Radeon HD 3870,
   ATI Mobility Radeon HD 3870 X2, ATI Radeon HD3870 X2,
   ATI FireGL V7700, ATI Radeon HD3690, AMD Firestream 9170,
   ATI Radeon HD 4550, ATI Radeon RV710, ATI Radeon HD 4350,
   ATI Mobility Radeon 4300 Series, ATI Mobility Radeon 4500 Series,
   ATI FirePro RG220, ATI Mobility Radeon 4330, ATI RV630,
   ATI Mobility Radeon HD 2600, ATI Mobility Radeon HD 2600 XT,
   ATI Radeon HD 2600 XT AGP, ATI Radeon HD 2600 Pro AGP,
   ATI Radeon HD 2600 XT, ATI Radeon HD 2600 Pro, ATI Gemini RV630,
   ATI Gemini Mobility Radeon HD 2600 XT, ATI FireGL V5600,
   ATI FireGL V3600, ATI Radeon HD 2600 LE,
   ATI Mobility FireGL Graphics Processor, ATI Radeon HD 3470,
   ATI Mobility Radeon HD 3430, ATI Mobility Radeon HD 3400 Series,
   ATI Radeon HD 3450, ATI Radeon HD 3430, ATI FirePro V3700,
   ATI FireMV 2450, ATI Radeon HD 3600 Series, ATI Radeon HD 3650 AGP,
   ATI Radeon HD 3600 PRO, ATI Radeon HD 3600 XT,
   ATI Mobility Radeon HD 3650, ATI Mobility Radeon HD 3670,
   ATI Mobility FireGL V5700, ATI Mobility FireGL V5725,
   ATI Radeon HD 3200 Graphics, ATI Radeon 3100 Graphics,
   ATI Radeon HD 3300 Graphics, ATI Radeon 3000 Graphics, SUMO, SUMO2,
   ATI Radeon HD 4200, ATI Radeon 4100, ATI Mobility Radeon HD 4200,
   ATI Mobility Radeon 4100, ATI Radeon HD 4290, ATI Radeon HD 4250,
   AMD Radeon HD 6310 Graphics, AMD Radeon HD 6250 Graphics,
   AMD Radeon HD 6300 Series Graphics,
   AMD Radeon HD 6200 Series Graphics, PALM, CYPRESS,
   ATI FirePro (FireGL) Graphics Adapter, AMD Firestream 9370,
   AMD Firestream 9350, ATI Radeon HD 5800 Series,
   ATI Radeon HD 5900 Series, ATI Mobility Radeon HD 5800 Series,
   ATI Radeon HD 5700 Series, ATI Radeon HD 6700 Series,
   ATI Mobility Radeon HD 5000 Series, ATI Mobility Radeon HD 5570,
   ATI Radeon HD 5670, ATI Radeon HD 5570, ATI Radeon HD 5500 Series,
   REDWOOD, ATI Mobility Radeon Graphics, CEDAR, ATI FirePro 2270,
   ATI Radeon HD 5450, CAYMAN, AMD Radeon HD 6900 Series,
   AMD Radeon HD 6900M Series, Mobility Radeon HD 6000 Series, BARTS,
   AMD Radeon HD 6800 Series, AMD Radeon HD 6700 Series, TURKS, CAICOS,
   ARUBA, TAHITI, PITCAIRN, VERDE, OLAND, HAINAN, BONAIRE, KABINI,
   MULLINS, KAVERI, HAWAII
[     4.269] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[     4.269] (WW) xf86OpenConsole: setpgid failed: Operation not permitted
[     4.269] (WW) xf86OpenConsole: setsid failed: Operation not permitted
[     4.270] (EE) open /dev/dri/card0: No such file or directory
[     4.270] (WW) Falling back to old probe method for modesetting
[     4.270] (EE) open /dev/dri/card0: No such file or directory
[     4.270] (EE) Screen 0 deleted because of no matching config section.
[     4.270] (II) UnloadModule: "modesetting"
[     4.270] (EE) Device(s) detected, but none match those in the config file.
[     4.270] (EE)
Fatal server error:
[     4.270] (EE) no screens found(EE)
[     4.270] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[     4.270] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[     4.270] (EE)
[     4.272] (EE) Server terminated with error (1). Closing log file.


I have compiled CONFIG_DRM_AMDGPU support built-in into kernel.
I have also tested as module without good results.
Here I share you the last `grep AMDGPU /usr/src/linux/.config` output:

Code:
CONFIG_DRM_AMDGPU=y
# CONFIG_DRM_AMDGPU_SI is not set
# CONFIG_DRM_AMDGPU_CIK is not set
CONFIG_DRM_AMDGPU_USERPTR=y


Finally, I have check some ideas posted in Gentoo Forums and in Linux-Hardware.org probes with no success yet.
I appreciate if you have more ideas to correct this.


Last edited by IsraelBuitronD on Fri Jan 05, 2024 7:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1662

PostPosted: Thu Jan 04, 2024 6:42 pm    Post subject: Re: no screens found(EE) with AMDGPU Reply with quote

NeoRiddle wrote:
Code:
CONFIG_DRM_AMDGPU=y

  • Change this to CONFIG_DRM_AMDGPU=m
  • Rebuild and reinstall the kernel
  • set VIDEO_CARDS="amdgpu radeonsi" in make.conf
  • install linux-firmware package
  • Update flags with emerge -avDU @world
  • Reboot and try again
Back to top
View user's profile Send private message
IsraelBuitronD
Guru
Guru


Joined: 24 Jun 2005
Posts: 343
Location: México

PostPosted: Thu Jan 04, 2024 7:26 pm    Post subject: Re: no screens found(EE) with AMDGPU Reply with quote

grknight wrote:
  • Change this to CONFIG_DRM_AMDGPU=m
  • Rebuild and reinstall the kernel
  • set VIDEO_CARDS="amdgpu radeonsi" in make.conf
  • install linux-firmware package
  • Update flags with emerge -avDU @world
  • Reboot and try again


Thank you very much, grknight.

I have set AMDGPU as a kernel module:

Code:
CONFIG_DRM_AMDGPU=m
# CONFIG_DRM_AMDGPU_SI is not set
# CONFIG_DRM_AMDGPU_CIK is not set
CONFIG_DRM_AMDGPU_USERPTR=y


I have rebuild my kernel by running `make && make modules_install && make install`.
Let me share some output chunks related with AMDGPU or video:

Code:
...
  LD [M]  drivers/gpu/drm/amd/amdgpu/amdgpu.o
  AR      drivers/gpu/built-in.a
  AR      drivers/built-in.a
  AR      built-in.a
  AR      vmlinux.a
  LD      vmlinux.o
  OBJCOPY modules.builtin.modinfo
  GEN     modules.builtin
  MODPOST Module.symvers
  UPD     include/generated/utsversion.h
  CC      init/version-timestamp.o
  LD [M]  drivers/gpu/drm/amd/amdgpu/amdgpu.ko
  LD [M]  drivers/gpu/drm/display/drm_display_helper.ko
  LD [M]  drivers/gpu/drm/drm_buddy.ko
  LD [M]  drivers/gpu/drm/drm_kms_helper.ko
  LD [M]  drivers/gpu/drm/drm_ttm_helper.ko
  CC [M]  drivers/gpu/drm/i915/i915.mod.o
  LD [M]  drivers/gpu/drm/scheduler/gpu-sched.ko
  LD [M]  drivers/gpu/drm/ttm/ttm.ko
  CC [M]  drivers/gpu/drm/virtio/virtio-gpu.mod.o
  LD [M]  drivers/mfd/mfd-core.ko
  LD [M]  drivers/video/fbdev/core/fb_sys_fops.ko
  LD [M]  drivers/video/fbdev/core/syscopyarea.ko
  LD [M]  drivers/video/fbdev/core/sysfillrect.ko
  LD [M]  drivers/video/fbdev/core/sysimgblt.ko
  LD      .tmp_vmlinux.kallsyms1
  LD [M]  drivers/gpu/drm/i915/i915.ko
  LD [M]  drivers/gpu/drm/virtio/virtio-gpu.ko
  NM      .tmp_vmlinux.kallsyms1.syms
  KSYMS   .tmp_vmlinux.kallsyms1.S
  AS      .tmp_vmlinux.kallsyms1.S
  LD      .tmp_vmlinux.kallsyms2
  NM      .tmp_vmlinux.kallsyms2.syms
  KSYMS   .tmp_vmlinux.kallsyms2.S
  AS      .tmp_vmlinux.kallsyms2.S
  LD      vmlinux
  NM      System.map
  SORTTAB vmlinux
  CC      arch/x86/boot/version.o
  VOFFSET arch/x86/boot/compressed/../voffset.h
  OBJCOPY arch/x86/boot/compressed/vmlinux.bin
  RELOCS  arch/x86/boot/compressed/vmlinux.relocs
  CC      arch/x86/boot/compressed/kaslr.o
  GZIP    arch/x86/boot/compressed/vmlinux.bin.gz
  CC      arch/x86/boot/compressed/misc.o
  MKPIGGY arch/x86/boot/compressed/piggy.S
  AS      arch/x86/boot/compressed/piggy.o
  LD      arch/x86/boot/compressed/vmlinux
  ZOFFSET arch/x86/boot/zoffset.h
  OBJCOPY arch/x86/boot/vmlinux.bin
  AS      arch/x86/boot/header.o
  LD      arch/x86/boot/setup.elf
  OBJCOPY arch/x86/boot/setup.bin
  BUILD   arch/x86/boot/bzImage
Kernel: arch/x86/boot/bzImage is ready  (#24)
  INSTALL /lib/modules/6.1.67-gentoo/kernel/crypto/ecdh_generic.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/crypto/ecdh_generic.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/acpi/platform_profile.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/acpi/platform_profile.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/bluetooth/btintel.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/bluetooth/btintel.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/bluetooth/btrtl.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/bluetooth/btrtl.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/bluetooth/btusb.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/bluetooth/btusb.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/gpu/drm/amd/amdgpu/amdgpu.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/gpu/drm/amd/amdgpu/amdgpu.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/gpu/drm/display/drm_display_helper.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/gpu/drm/display/drm_display_helper.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/gpu/drm/drm_buddy.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/gpu/drm/drm_buddy.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/gpu/drm/drm_kms_helper.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/gpu/drm/drm_kms_helper.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/gpu/drm/drm_shmem_helper.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/gpu/drm/drm_shmem_helper.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/gpu/drm/drm_ttm_helper.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/gpu/drm/drm_ttm_helper.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/gpu/drm/i915/i915.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/gpu/drm/i915/i915.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/gpu/drm/scheduler/gpu-sched.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/gpu/drm/scheduler/gpu-sched.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/gpu/drm/ttm/ttm.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/gpu/drm/ttm/ttm.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/gpu/drm/virtio/virtio-gpu.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/gpu/drm/virtio/virtio-gpu.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/input/evdev.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/input/evdev.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/iommu/amd/iommu_v2.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/iommu/amd/iommu_v2.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/media/common/videobuf2/videobuf2-common.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/media/common/videobuf2/videobuf2-common.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/media/common/videobuf2/videobuf2-memops.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/media/common/videobuf2/videobuf2-memops.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/media/common/videobuf2/videobuf2-v4l2.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/media/common/videobuf2/videobuf2-v4l2.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/media/common/videobuf2/videobuf2-vmalloc.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/media/common/videobuf2/videobuf2-vmalloc.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/media/usb/gspca/gspca_main.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/media/usb/gspca/gspca_main.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/media/usb/uvc/uvcvideo.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/media/usb/uvc/uvcvideo.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/mfd/mfd-core.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/mfd/mfd-core.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/net/wireless/realtek/rtw88/rtw88_8822b.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/net/wireless/realtek/rtw88/rtw88_8822b.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/net/wireless/realtek/rtw88/rtw88_8822be.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/net/wireless/realtek/rtw88/rtw88_8822be.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/net/wireless/realtek/rtw88/rtw88_8822c.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/net/wireless/realtek/rtw88/rtw88_8822c.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/net/wireless/realtek/rtw88/rtw88_8822ce.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/net/wireless/realtek/rtw88/rtw88_8822ce.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/net/wireless/realtek/rtw88/rtw88_core.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/net/wireless/realtek/rtw88/rtw88_core.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/net/wireless/realtek/rtw88/rtw88_pci.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/net/wireless/realtek/rtw88/rtw88_pci.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/nvme/host/nvme-fabrics.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/nvme/host/nvme-fabrics.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/nvme/host/nvme-fc.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/nvme/host/nvme-fc.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/nvme/host/nvme-tcp.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/nvme/host/nvme-tcp.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/platform/x86/eeepc-laptop.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/platform/x86/eeepc-laptop.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/platform/x86/ideapad-laptop.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/platform/x86/ideapad-laptop.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/thermal/intel/x86_pkg_temp_thermal.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/thermal/intel/x86_pkg_temp_thermal.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/video/backlight/lcd.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/video/backlight/lcd.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/video/fbdev/core/fb_sys_fops.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/video/fbdev/core/fb_sys_fops.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/video/fbdev/core/syscopyarea.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/video/fbdev/core/syscopyarea.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/video/fbdev/core/sysfillrect.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/video/fbdev/core/sysfillrect.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/video/fbdev/core/sysimgblt.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/video/fbdev/core/sysimgblt.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/drivers/virtio/virtio_dma_buf.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/drivers/virtio/virtio_dma_buf.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/fs/efivarfs/efivarfs.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/fs/efivarfs/efivarfs.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/lib/crypto/libarc4.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/lib/crypto/libarc4.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/net/bluetooth/bluetooth.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/net/bluetooth/bluetooth.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/net/bluetooth/bnep/bnep.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/net/bluetooth/bnep/bnep.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/net/bluetooth/hidp/hidp.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/net/bluetooth/hidp/hidp.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/net/bluetooth/rfcomm/rfcomm.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/net/bluetooth/rfcomm/rfcomm.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/net/ipv4/netfilter/iptable_nat.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/net/ipv4/netfilter/iptable_nat.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/net/mac80211/mac80211.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/net/mac80211/mac80211.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/net/netfilter/nf_log_syslog.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/net/netfilter/nf_log_syslog.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/net/netfilter/xt_LOG.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/net/netfilter/xt_LOG.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/net/netfilter/xt_MASQUERADE.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/net/netfilter/xt_MASQUERADE.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/net/netfilter/xt_addrtype.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/net/netfilter/xt_addrtype.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/net/netfilter/xt_mark.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/net/netfilter/xt_mark.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/net/netfilter/xt_nat.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/net/netfilter/xt_nat.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/net/rfkill/rfkill.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/net/rfkill/rfkill.ko.gz
  INSTALL /lib/modules/6.1.67-gentoo/kernel/net/wireless/cfg80211.ko
  GZIP    /lib/modules/6.1.67-gentoo/kernel/net/wireless/cfg80211.ko.gz
  DEPMOD  /lib/modules/6.1.67-gentoo
  INSTALL /boot


Video cards are already set (since my first attempt) to "amdgpu radeonsi".
Here I share you `grep VIDEO_CARDS /etc/portage/make.conf`output:

Code:
VIDEO_CARDS="amdgpu radeonsi"


I have already installed `linux-firmware` package:

Code:
emerge -av --quiet-build linux-firmware

These are the packages that would be merged, in order:

Calculating dependencies                     ... done!
Dependency resolution took 1.47 s (backtrack: 0/20).

[ebuild   R    ] sys-kernel/linux-firmware-20231211::gentoo  USE="initramfs redistributable -compress-xz -compress-zstd -deduplicate -savedconfig (-unknown-license)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] yes
>>> Verifying ebuild manifests
>>> Running pre-merge checks for sys-kernel/linux-firmware-20231211
 * Your boot partition was detected as being mounted at /boot.
 * Files will be installed there for linux-firmware to function correctly.
>>> Emerging (1 of 1) sys-kernel/linux-firmware-20231211::gentoo
>>> Installing (1 of 1) sys-kernel/linux-firmware-20231211::gentoo
>>> Completed (1 of 1) sys-kernel/linux-firmware-20231211::gentoo
>>> Jobs: 1 of 1 complete                           Load avg: 0.62, 0.37, 0.55

 * Messages for package sys-kernel/linux-firmware-20231211:

 * Your configuration for sys-kernel/linux-firmware-20231211 has been saved in
 * "/etc/portage/savedconfig/sys-kernel/linux-firmware-20231211" for your editing pleasure.
 * You can edit these files by hand and remerge this package with
 * USE=savedconfig to customise the configuration.
 * You can rename this file/directory to one of the following for
 * its configuration to apply to multiple versions:
 * ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/
 * [${CTARGET}|${CHOST}|""]/${CATEGORY}/[${PF}|${P}|${PN}]
 * If you are only interested in particular firmware files, edit the saved
 * configfile and remove those that you do not want.

 * GNU info directory index is up-to-date.


I have run `` to update @world, but there seems to be already updated:

Code:
emerge -avDU @world

These are the packages that would be merged, in order:

Calculating dependencies                      ... done!
Dependency resolution took 9.20 s (backtrack: 0/20).

Total: 0 packages, Size of downloads: 0 KiB

Nothing to merge; quitting.


And, finally I rebooted.

Then I tried to run xterm and it still throw me same "no screens found":

Code:
startx /usr/bin/xterm


X.Org X Server 1.21.1.10
X Protocol Version 11, Revision 0
Current Operating System: Linux DodoLenLap 6.1.67-gentoo #1 SMP PREEMPT_DYNAMIC Fri Dec 29 22:18:01 CST 2023 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.1.67-gentoo root=UUID=28fe2b15-b934-43ab-a20e-99a0c6988cee ro

Current version of pixman: 0.42.2
   Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan  4 13:24:00 2024
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error


Last edited by IsraelBuitronD on Thu Jan 04, 2024 7:40 pm; edited 2 times in total
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1662

PostPosted: Thu Jan 04, 2024 7:34 pm    Post subject: Reply with quote

Please post the dmesg output to a paste site.
Back to top
View user's profile Send private message
IsraelBuitronD
Guru
Guru


Joined: 24 Jun 2005
Posts: 343
Location: México

PostPosted: Thu Jan 04, 2024 7:39 pm    Post subject: Reply with quote

grknight wrote:
Please post the dmesg output to a paste site.


Here you have dmesg output at this PasteBin post because is so large.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1662

PostPosted: Thu Jan 04, 2024 7:46 pm    Post subject: Reply with quote

NeoRiddle wrote:
grknight wrote:
Please post the dmesg output to a paste site.


Here you have dmesg output at this PasteBin post because is so large.

This is booting an older kernel which does not have firmware available as no disk is available yet. The module change removes this requirement, but requires the rebuilt kernel to be booted.
This kernel was built on "Fri Dec 29 22:18:01 CST 2023" but that was in the past.

Make sure /boot is mounted first and reinstall the latest kernel with 'make install'
Back to top
View user's profile Send private message
IsraelBuitronD
Guru
Guru


Joined: 24 Jun 2005
Posts: 343
Location: México

PostPosted: Thu Jan 04, 2024 9:05 pm    Post subject: Reply with quote

grknight wrote:
NeoRiddle wrote:
grknight wrote:
Please post the dmesg output to a paste site.


Here you have dmesg output at this PasteBin post because is so large.

This is booting an older kernel which does not have firmware available as no disk is available yet. The module change removes this requirement, but requires the rebuilt kernel to be booted.
This kernel was built on "Fri Dec 29 22:18:01 CST 2023" but that was in the past.

Make sure /boot is mounted first and reinstall the latest kernel with 'make install'


It is a bit strange.

Boot partition is set as be mounted (temporally until I get an stable linux installation) by setting "defaults" in `/etc/fstab`:

Code:
grep boot /etc/fstab
#LABEL=boot      /boot      ext4      defaults   1 2
PARTUUID="853f3303-8190-a646-af2a-7cdcd6cba980"   /boot   vfat   defaults   1   2


In `/boot`, I have a couple files:

Code:
tree
.
|-- amd-uc.img
|-- config-6.1.67-gentoo
|-- config-6.1.67-gentoo.old
|-- EFI
|   `-- gentoo
|       `-- grubx64.efi
|-- System.map-6.1.67-gentoo
|-- System.map-6.1.67-gentoo.old
|-- vmlinuz-6.1.67-gentoo
`-- vmlinuz-6.1.67-gentoo.old

3 directories, 8 files


and linux kernel executables has recent timestamps:

Code:
file vmlinuz-6.1.67-gentoo*
vmlinuz-6.1.67-gentoo:     Linux kernel x86 boot executable bzImage, version 6.1.67-gentoo (root@DodoLenLap) #24 SMP PREEMPT_DYNAMIC Thu Jan  4 13:07:31 CST 2024, RO-rootFS, swap_dev 0XC, Normal VGA
vmlinuz-6.1.67-gentoo.old: Linux kernel x86 boot executable bzImage, version 6.1.67-gentoo (root@DodoLenLap) #23 SMP PREEMPT_DYNAMIC Thu Jan  4 03:43:42 CST 2024, RO-rootFS, swap_dev 0XE, Normal VGA


Similarly, `config*` files:

Code:
stat config-6.1.67-gentoo*
  File: config-6.1.67-gentoo
  Size: 159516       Blocks: 312        IO Block: 4096   regular file
Device: 259,4   Inode: 15          Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-01-04 00:00:00.000000000 -0600
Modify: 2024-01-04 13:07:48.000000000 -0600
Change: 2024-01-04 13:07:48.000000000 -0600
 Birth: 2024-01-04 13:07:49.390000000 -0600
  File: config-6.1.67-gentoo.old
  Size: 159516       Blocks: 312        IO Block: 4096   regular file
Device: 259,4   Inode: 18          Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-01-04 00:00:00.000000000 -0600
Modify: 2024-01-04 03:44:04.000000000 -0600
Change: 2024-01-04 03:44:04.000000000 -0600
 Birth: 2024-01-04 03:44:05.200000000 -0600


and `System*` files:

Code:
stat System.map-6.1.67-gentoo*
  File: System.map-6.1.67-gentoo
  Size: 4695424      Blocks: 9176       IO Block: 4096   regular file
Device: 259,4   Inode: 14          Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-01-04 00:00:00.000000000 -0600
Modify: 2024-01-04 13:07:48.000000000 -0600
Change: 2024-01-04 13:07:48.000000000 -0600
 Birth: 2024-01-04 13:07:49.380000000 -0600
  File: System.map-6.1.67-gentoo.old
  Size: 5527799      Blocks: 10800      IO Block: 4096   regular file
Device: 259,4   Inode: 17          Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-01-04 00:00:00.000000000 -0600
Modify: 2024-01-04 03:44:04.000000000 -0600
Change: 2024-01-04 03:44:04.000000000 -0600
 Birth: 2024-01-04 03:44:05.190000000 -0600


Only, `EFI/gentoo/grubx64.efi` is older:

Code:
stat EFI/gentoo/grubx64.efi
  File: EFI/gentoo/grubx64.efi
  Size: 139264       Blocks: 272        IO Block: 4096   regular file
Device: 259,4   Inode: 27          Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-01-04 00:00:00.000000000 -0600
Modify: 2023-12-30 05:05:28.000000000 -0600
Change: 2023-12-30 05:05:28.000000000 -0600
 Birth: 2023-12-30 05:05:29.290000000 -0600


So, I run `grub-install`:

Code:
grub-install --efi-directory=/boot/efi
Installing for x86_64-efi platform.
Installation finished. No error reported.


But, it seems `EFI/gentoo/grubx64.efi` was not modified:

Code:
stat EFI/gentoo/grubx64.efi
  File: EFI/gentoo/grubx64.efi
  Size: 139264       Blocks: 272        IO Block: 4096   regular file
Device: 259,4   Inode: 27          Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-01-04 00:00:00.000000000 -0600
Modify: 2023-12-30 05:05:28.000000000 -0600
Change: 2023-12-30 05:05:28.000000000 -0600
 Birth: 2023-12-30 05:05:29.290000000 -0600


By the way, I confess that I still don't really understand the use of GRUB in EFI, because I have been returning to Gentoo for a long time.
Back to top
View user's profile Send private message
bbgermany
Veteran
Veteran


Joined: 21 Feb 2005
Posts: 1844
Location: Oranienburg/Germany

PostPosted: Thu Jan 04, 2024 9:19 pm    Post subject: Reply with quote

Hi,

Code:

[    0.413182] Loading firmware: amdgpu/renoir_sdma.bin
[    0.413198] amdgpu 0000:04:00.0: Direct firmware load for amdgpu/renoir_sdma.bin failed with error -2
[    0.413202] [drm:amdgpu_sdma_init_microcode] *ERROR* SDMA: Failed to init firmware "amdgpu/renoir_sdma.bin"


Are you sure, that the firmware is installed? This looks wrong. It should look more like this:

Code:

[   10.213869] [drm] amdgpu kernel modesetting enabled.
[   10.215532] nct6775: Found NCT6798D or compatible chip at 0x2e:0x290
[   10.240483] amdgpu: Virtual CRAT table created for CPU
[   10.240512] amdgpu: Topology: Add CPU node
[   10.240681] amdgpu 0000:03:00.0: enabling device (0006 -> 0007)
[   10.240923] [drm] initializing kernel modesetting (IP DISCOVERY 0x1002:0x7480 0x1025:0xB477 0xCF).
[   10.240937] [drm] register mmio base: 0xFCC00000
[   10.240939] [drm] register mmio size: 1048576
[   10.244866] [drm] add ip block number 0 <soc21_common>
[   10.244868] [drm] add ip block number 1 <gmc_v11_0>
[   10.244870] [drm] add ip block number 2 <ih_v6_0>
[   10.244872] [drm] add ip block number 3 <psp>
[   10.244874] [drm] add ip block number 4 <smu>
[   10.244876] [drm] add ip block number 5 <dm>
[   10.244877] [drm] add ip block number 6 <gfx_v11_0>
[   10.244879] [drm] add ip block number 7 <sdma_v6_0>
[   10.244881] [drm] add ip block number 8 <vcn_v4_0>
[   10.244883] [drm] add ip block number 9 <jpeg_v4_0>
[   10.244884] [drm] add ip block number 10 <mes_v11_0>
[   10.244948] amdgpu 0000:03:00.0: amdgpu: Fetched VBIOS from VFCT
[   10.244951] amdgpu: ATOM BIOS: 113-EXT88196-100
[   10.244961] Loading firmware: amdgpu/psp_13_0_7_sos.bin
[   10.246932] Loading firmware: amdgpu/psp_13_0_7_ta.bin
[   10.247552] Loading firmware: amdgpu/smu_13_0_7.bin
[   10.248238] Loading firmware: amdgpu/dcn_3_2_1_dmcub.bin
[   10.249220] Loading firmware: amdgpu/gc_11_0_2_pfp.bin
[   10.249822] amdgpu 0000:03:00.0: amdgpu: CP RS64 enable
[   10.249824] Loading firmware: amdgpu/gc_11_0_2_me.bin
[   10.250526] Loading firmware: amdgpu/gc_11_0_2_rlc.bin
[   10.251430] Loading firmware: amdgpu/gc_11_0_2_mec.bin
[   10.252412] [drm] VCN(0) encode/decode are enabled in VM mode
[   10.252415] Loading firmware: amdgpu/vcn_4_0_4.bin
[   10.253307] amdgpu 0000:03:00.0: [drm:jpeg_v4_0_early_init [amdgpu]] JPEG decode is enabled in VM mode
[   10.253550] Loading firmware: amdgpu/gc_11_0_2_mes_2.bin
[   10.254552] Loading firmware: amdgpu/gc_11_0_2_mes1.bin
[   10.255318] Console: switching to colour dummy device 80x25
[   10.255365] amdgpu 0000:03:00.0: vgaarb: deactivate vga console
[   10.255368] amdgpu 0000:03:00.0: amdgpu: Trusted Memory Zone (TMZ) feature not supported
[   10.255410] [drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
[   10.255416] amdgpu 0000:03:00.0: amdgpu: VRAM: 8176M 0x0000008000000000 - 0x00000081FEFFFFFF (8176M used)
[   10.255419] amdgpu 0000:03:00.0: amdgpu: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF
[   10.255422] amdgpu 0000:03:00.0: amdgpu: AGP: 267894784M 0x0000008400000000 - 0x0000FFFFFFFFFFFF
[   10.255435] [drm] Detected VRAM RAM=8176M, BAR=8192M
[   10.255436] [drm] RAM width 128bits GDDR6
[   10.255561] [drm] amdgpu: 8176M of VRAM memory ready
[   10.255565] [drm] amdgpu: 15953M of GTT memory ready.
[   10.255588] [drm] GART: num cpu pages 131072, num gpu pages 131072
[   10.255662] [drm] PCIE GART of 512M enabled (table at 0x0000008000300000).
[   10.255904] [drm] Loading DMUB firmware via PSP: version=0x07002400
[   10.255916] Loading firmware: amdgpu/gc_11_0_2_imu.bin
[   10.256515] Loading firmware: amdgpu/sdma_6_0_2.bin
[   10.256737] [drm] Found VCN firmware Version ENC: 1.12 DEC: 5 VEP: 0 Revision: 0
[   10.256747] amdgpu 0000:03:00.0: amdgpu: Will use PSP to load VCN firmware
[   10.313985] [drm] reserve 0x1300000 from 0x81fc000000 for PSP TMR
[   10.380837] input: HDA ATI HDMI HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.1/0000:01:00.0/0000:02:00.0/0000:03:00.1/sound/card0/input13
[   10.380991] input: HDA ATI HDMI HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.1/0000:01:00.0/0000:02:00.0/0000:03:00.1/sound/card0/input14
[   10.381081] input: HD-Audio Generic HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:08.1/0000:0e:00.1/sound/card1/input17
[   10.381337] input: HD-Audio Generic HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:08.1/0000:0e:00.1/sound/card1/input18
[   10.381511] input: HD-Audio Generic Rear Mic as /devices/pci0000:00/0000:00:08.1/0000:0e:00.6/sound/card2/input23
[   10.381609] razermouse 0003:1532:0085.0001: input,hidraw0: USB HID v1.00 Mouse [Razer Razer Basilisk V2] on usb-0000:04:00.0-1/input0
[   10.409381] amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available
[   10.417152] amdgpu 0000:03:00.0: amdgpu: RAP: optional rap ta ucode is not available
[   10.417155] amdgpu 0000:03:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[   10.417187] amdgpu 0000:03:00.0: amdgpu: smu driver if version = 0x00000035, smu fw if version = 0x00000040, smu fw program = 0, smu fw version = 0x00524b00 (82.75.0)
[   10.417191] amdgpu 0000:03:00.0: amdgpu: SMU driver if version not matched
[   10.458667] amdgpu 0000:03:00.0: amdgpu: SMU is initialized successfully!


I have a RX 7600 so it should look similiar.

Greetings Stefan
_________________
Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54254
Location: 56N 3W

PostPosted: Thu Jan 04, 2024 9:22 pm    Post subject: Reply with quote

NeoRiddle,

EFI firmware expects to boot an EFI compliant program, from the EFI/ directory in the System Partition. As well as other magic, they all have names ending in .efi.

You have exactly one of those ...
Code:
|-- EFI
|   `-- gentoo
|       `-- grubx64.efi
That's the piece of grub that reads /boot/grub/grub.cfg and displays the boot menu.

Grub is not installed in your boot, so I suspect that /boot (where /boot/grub/grub.cfg) is installed, is on your root filesystem and you have a /boot/EFI which should be the mount point for PARTUUID="853f3303-8190-a646-af2a-7cdcd6cba980.

The will give you /boot/EFI/EFI/gentoo/grubx64.efi which has not changed for the point of view of the EFI firmware.
At the same time, you will have /boot/grub/grub.cfg which will be full of entries for old kernels.
You should also have
Code:
/boot/
   |-- amd-uc.img
   |-- config-6.1.67-gentoo
   |-- config-6.1.67-gentoo.old
   |-- System.map-6.1.67-gentoo
   |-- System.map-6.1.67-gentoo.old
   |-- vmlinuz-6.1.67-gentoo
   `-- vmlinuz-6.1.67-gentoo.old
but they will be missing, as your EFI System Partition was incorrectly mounted.

You will find them at /boot/EFI, once the ESP is mounted to /boot/EFI.
Move those files to /boot then update grub.cfg.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
IsraelBuitronD
Guru
Guru


Joined: 24 Jun 2005
Posts: 343
Location: México

PostPosted: Thu Jan 04, 2024 9:25 pm    Post subject: Reply with quote

bbgermany wrote:
Hi,

Code:

[    0.413182] Loading firmware: amdgpu/renoir_sdma.bin
[    0.413198] amdgpu 0000:04:00.0: Direct firmware load for amdgpu/renoir_sdma.bin failed with error -2
[    0.413202] [drm:amdgpu_sdma_init_microcode] *ERROR* SDMA: Failed to init firmware "amdgpu/renoir_sdma.bin"


Are you sure, that the firmware is installed? This looks wrong. It should look more like this:



I have a RX 7600 so it should look similiar.

Greetings Stefan


Thank you Stefan for your reply.

Actually, I have set any "RENOIR" config setting in kernel config as in-kernel module:

Code:
grep RENOIR /usr/src/linux/.config
CONFIG_SND_SOC_AMD_RENOIR=y
CONFIG_SND_AMD_ASOC_RENOIR=y


I don't know if I should enable it somewhere else.
If you knew that there was another place to verify that it is indeed enabled, I would appreciate it if you would share it with me.


Last edited by IsraelBuitronD on Fri Jan 05, 2024 6:34 am; edited 1 time in total
Back to top
View user's profile Send private message
bbgermany
Veteran
Veteran


Joined: 21 Feb 2005
Posts: 1844
Location: Oranienburg/Germany

PostPosted: Thu Jan 04, 2024 9:33 pm    Post subject: Reply with quote

Hi,

is suggest to put all drivers, that need a firmware file in the kernel config as module or you compile the firmware directly into the kernel. This will keep you away from a lot of issues according to loading of external firmware.

Additionally a saw this:

Code:

[    0.413589] Loading firmware: amdgpu/renoir_asd.bin
[    0.413597] amdgpu 0000:04:00.0: Direct firmware load for amdgpu/renoir_asd.bin failed with error -2
[    0.413599] amdgpu 0000:04:00.0: amdgpu: fail to initialize asd microcode
[    0.413601] [drm:psp_sw_init] *ERROR* Failed to load psp firmware!
[    0.413605] [drm:amdgpu_device_init.cold] *ERROR* sw_init of IP block <psp> failed -2
[    0.413610] amdgpu 0000:04:00.0: amdgpu: amdgpu_device_ip_init failed
[    0.413612] amdgpu 0000:04:00.0: amdgpu: Fatal error during GPU init
[    0.413614] amdgpu 0000:04:00.0: amdgpu: amdgpu: finishing device.
[    0.413692] ------------[ cut here ]------------
[    0.413693] WARNING: CPU: 0 PID: 1 at drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c:655 amdgpu_irq_put+0x3d/0x60
[    0.413698] Modules linked in:
[    0.413700] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.1.67-gentoo #1
[    0.413703] Hardware name: LENOVO 82KC/LNVNB161216, BIOS GLCN52WW 12/09/2022
[    0.413705] RIP: 0010:amdgpu_irq_put+0x3d/0x60
[    0.413708] Code: c0 74 33 48 8b 4e 10 48 83 39 00 74 29 89 d1 48 8d 04 88 8b 08 85 c9 74 11 f0 ff 08 74 07 31 c0 e9 f8 ec d9 00 e9 a3 fd ff ff <0f> 0b b8 ea ff ff ff e9 e7 ec d9 00 b8 ea ff ff ff e9 dd ec d9 00
[    0.413712] RSP: 0018:ffffaf9e4006bc88 EFLAGS: 00010246
[    0.413715] RAX: ffff9d22430086b8 RBX: ffff9d2243280000 RCX: 0000000000000000
[    0.413717] RDX: 0000000000000000 RSI: ffff9d2243280be0 RDI: ffff9d2243280000
[    0.413719] RBP: ffff9d2243280010 R08: 0000000000000000 R09: 0000000000000001
[    0.413721] R10: 00000000ffffdfff R11: ffffffff8b657560 R12: 0000000000000001
[    0.413723] R13: 00000000ffffff01 R14: ffff9d2243280010 R15: ffff9d2243280000
[    0.413725] FS:  0000000000000000(0000) GS:ffff9d22e7e00000(0000) knlGS:0000000000000000
[    0.413727] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.413729] CR2: ffff9d2255c01000 CR3: 0000000114e0c000 CR4: 0000000000350ef0
[    0.413731] Call Trace:
[    0.413734]  <TASK>
[    0.413735]  ? amdgpu_irq_put+0x3d/0x60
[    0.413737]  ? __warn+0x74/0xc0
[    0.413742]  ? amdgpu_irq_put+0x3d/0x60
[    0.413744]  ? report_bug+0xe2/0x150
[    0.413747]  ? handle_bug+0x3a/0x70
[    0.413749]  ? exc_invalid_op+0x13/0x60
[    0.413751]  ? asm_exc_invalid_op+0x16/0x20
[    0.413754]  ? amdgpu_irq_put+0x3d/0x60
[    0.413756]  ? mmhub_v1_0_reset_ras_error_count+0x70/0x70
[    0.413759]  gmc_v9_0_hw_fini+0x5b/0x80
[    0.413761]  amdgpu_device_fini_hw+0x1bf/0x2a1
[    0.413765]  amdgpu_driver_load_kms.cold+0x54/0x6a
[    0.413767]  amdgpu_pci_probe+0xdb/0x330
[    0.413771]  local_pci_probe+0x39/0x70
[    0.413775]  pci_device_probe+0xa7/0x1b0
[    0.413777]  really_probe+0xc2/0x280
[    0.413781]  ? pm_runtime_barrier+0x4b/0x80
[    0.413785]  __driver_probe_device+0x6e/0xe0
[    0.413787]  driver_probe_device+0x1a/0xe0
[    0.413790]  __driver_attach+0x7f/0x180
[    0.413793]  ? __device_attach_driver+0x110/0x110
[    0.413796]  bus_for_each_dev+0x82/0xc0
[    0.413799]  bus_add_driver+0x181/0x1d0
[    0.413802]  driver_register+0x84/0xe0
[    0.413804]  ? drm_sched_fence_slab_init+0x30/0x30
[    0.413807]  do_one_initcall+0x54/0x200
[    0.413810]  kernel_init_freeable+0x1d0/0x20d
[    0.413814]  ? rest_init+0xc0/0xc0
[    0.413817]  kernel_init+0x11/0x120
[    0.413819]  ret_from_fork+0x22/0x30
[    0.413822]  </TASK>
[    0.413823] ---[ end trace 0000000000000000 ]---
[    0.413875] amdgpu: probe of 0000:04:00.0 failed with error -2
[    0.414261] [drm] amdgpu: ttm finalized
[    0.414398] amdgpu-reset-de (108) used greatest stack depth: 15576 bytes left


this could be related to the firmware as well, but im not sure and it shouldnt happen at boot, or even at all. Your BIOS seems (according to lenovos website) the current one.

Greeting Stefan
_________________
Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1662

PostPosted: Thu Jan 04, 2024 9:36 pm    Post subject: Reply with quote

bbgermany wrote:
Code:

[    0.413182] Loading firmware: amdgpu/renoir_sdma.bin
[    0.413198] amdgpu 0000:04:00.0: Direct firmware load for amdgpu/renoir_sdma.bin failed with error -2
[    0.413202] [drm:amdgpu_sdma_init_microcode] *ERROR* SDMA: Failed to init firmware "amdgpu/renoir_sdma.bin"

You have to notice the timing here. Unlike yours, which is a module that loads later, this output is showing from a built-in kernel prior to any changes.
The suggested changes will make it load like yours but it is still booting the older one with the problem.
The updated kernel needs to be started.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4160
Location: Bavaria

PostPosted: Thu Jan 04, 2024 11:19 pm    Post subject: Reply with quote

grknight wrote:
The updated kernel needs to be started.

My first thought was also that he forgot to do a "grub-mkconfig" after installing the kernel ... (if this is true then: Sometimes it is a very simple problem).

https://wiki.gentoo.org/wiki/GRUB#Installing_a_new_kernel
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
IsraelBuitronD
Guru
Guru


Joined: 24 Jun 2005
Posts: 343
Location: México

PostPosted: Fri Jan 05, 2024 6:22 am    Post subject: Reply with quote

NeddySeagoon wrote:
NeoRiddle,

EFI firmware expects to boot an EFI compliant program, from the EFI/ directory in the System Partition. As well as other magic, they all have names ending in .efi.

You have exactly one of those ...
Code:
|-- EFI
|   `-- gentoo
|       `-- grubx64.efi
That's the piece of grub that reads /boot/grub/grub.cfg and displays the boot menu.

Grub is not installed in your boot, so I suspect that /boot (where /boot/grub/grub.cfg) is installed, is on your root filesystem and you have a /boot/EFI which should be the mount point for PARTUUID="853f3303-8190-a646-af2a-7cdcd6cba980.

The will give you /boot/EFI/EFI/gentoo/grubx64.efi which has not changed for the point of view of the EFI firmware.
At the same time, you will have /boot/grub/grub.cfg which will be full of entries for old kernels.
You should also have
Code:
/boot/
   |-- amd-uc.img
   |-- config-6.1.67-gentoo
   |-- config-6.1.67-gentoo.old
   |-- System.map-6.1.67-gentoo
   |-- System.map-6.1.67-gentoo.old
   |-- vmlinuz-6.1.67-gentoo
   `-- vmlinuz-6.1.67-gentoo.old
but they will be missing, as your EFI System Partition was incorrectly mounted.

You will find them at /boot/EFI, once the ESP is mounted to /boot/EFI.
Move those files to /boot then update grub.cfg.


Thank you NeddySeagoon for your reply.

You were right.
I had something wrong in my mount setting, so data stored in `/boot`partition was not mounted in `/boot` directory.
It implies that `make install` was copying files into `/boot` directory in `/` partition, but without `/boot` partition previously mounted in this directory.
I confess that I do not know why it was happening because I did only one modification into `/etc/fstab` file: I replaced PARTUUID with DEVICE in filesystem field. That was removing:
Code:
PARTUUID="853f3303-8190-a646-af2a-7cdcd6cba980"  /boot           vfat    defaults        1       2

and replacing with:
Code:
/dev/nvme0n1p4  /boot           vfat    defaults        1       2


Once done that, I execute `make install` and `grub-install`:

Code:
grub-install --target=x86_64-efi --efi-directory=/boot
Installing for x86_64-efi platform.
Installation finished. No error reported.


And, I rebooted my linux.

Your suggestions help me to solve one previous issue, that was avoiding to solve the main problem.
Thank you very much.


Last edited by IsraelBuitronD on Fri Jan 05, 2024 6:33 am; edited 1 time in total
Back to top
View user's profile Send private message
IsraelBuitronD
Guru
Guru


Joined: 24 Jun 2005
Posts: 343
Location: México

PostPosted: Fri Jan 05, 2024 6:28 am    Post subject: Reply with quote

grknight wrote:
bbgermany wrote:
Code:

[    0.413182] Loading firmware: amdgpu/renoir_sdma.bin
[    0.413198] amdgpu 0000:04:00.0: Direct firmware load for amdgpu/renoir_sdma.bin failed with error -2
[    0.413202] [drm:amdgpu_sdma_init_microcode] *ERROR* SDMA: Failed to init firmware "amdgpu/renoir_sdma.bin"

You have to notice the timing here. Unlike yours, which is a module that loads later, this output is showing from a built-in kernel prior to any changes.
The suggested changes will make it load like yours but it is still booting the older one with the problem.
The updated kernel needs to be started.


I have fix partition mounting issues, as NeddySeagoon suggested.

Once done, I share you again `dmesg output` in this Pastebin post.
Back to top
View user's profile Send private message
IsraelBuitronD
Guru
Guru


Joined: 24 Jun 2005
Posts: 343
Location: México

PostPosted: Fri Jan 05, 2024 6:33 am    Post subject: Reply with quote

pietinger wrote:
grknight wrote:
The updated kernel needs to be started.

My first thought was also that he forgot to do a "grub-mkconfig" after installing the kernel ... (if this is true then: Sometimes it is a very simple problem).

https://wiki.gentoo.org/wiki/GRUB#Installing_a_new_kernel


Thank you pietinger for your reply.

Yes, sometimes the problems we report are "symptoms" of the cause-problems.
In this case, the problem with X11 was a consequence of a problem with partition mounting, in fact, there were not even problems with the kernel itself.
As always, I am very grateful to the entire community, especially you and your comments.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum