Installing Gentoo on the Unmatched

Hi All,

My first goal with the Unmatched is to install Gentoo on it. Is anyone else here interested in that?
I made a writeup in the Gentoo forums with my progress so far. Unfortunately i can’t link directly to my post, but this is the right topic and the right page, you just have to scroll down a bit :slight_smile: :
https://forums.gentoo.org/viewtopic-t-998288-postdays-0-postorder-asc-start-25.html

3 Likes

I found your post from Google. This is the direct link to it: Gentoo Forums :: View topic - Risc-v It was very helpful. Thanks a lot!

Are you able to reboot though? I’m exactly the same strategy and the patches seem to have been applied and I’m using nearly the default config (besides from a few options that some packages complained about when emerging).

I’m getting a rcu: INFO: rcu_sched self-detected stall on CPU. This is what I found about it, but both are about Unleashed, not Unmatched (apparently I can’t put more than 2 links because I’m a new user):

  • forums dot sifive dot com/t/rebooting-fails-with-rcu-sched-self-detected-stall-on-cpu/3285
  • github dot com/sifive/meta-sifive/issues/3

And this isn’t a known issue on meta-sifive’s README. Maybe I’m missing a patch or config?

software reboot isn’t supported. This is documented in the freedom-u-sdk release notes.
https://github.com/sifive/freedom-u-sdk/blob/2021.05/ReleaseNotes/2021.05.md#known-issues

2 Likes

Thanks for your feedback on my post @jansegre, and no, i can’t reboot (as @jimw already pointed out), although the effect of running “reboot” is different with Gentoo/OpenRC than with FU-SDK. In Gentoo i get a clean shutdown, and after that it simply stops. When I accidentally typed reboot in FU-SDK the system kept running and I had to do an unclean shutdown to get out of the situation it was in.
I’m thinking about patching the sys-apps/sysvinit package to make reboot do the same as halt just in case i type the wrong command :slight_smile:

Now i got my basic Gentoo setup going i’d like to see if i can build the bootloader(s) from source and make Gentoo packages (ebuilds) for them.

It seems that partition 1 on the SD Card is U-Boot, and partition 2 is U-Boot/OpenSBI. Is that correct? I’m unsure because the actual configuration file loaded from partition 3 (/boot in the SDK) is called extlinux.conf.

I’m also thinking of a save way to experiment with this, assuming i’ll make some mistakes which makes it unbootable. As far a as I can see, if I dd partition 1 and 2 of the SD Card into a file and can always restore by dd’ing the files back to the partitions, right? In case i really made a mess i can aways download an image of the SDK and re-image the whole SD-Card :slight_smile:

I started by using the latest SDK image and never used the SD card that was shipped. So that surely works and you can’t ruin your bootability (is this a word?) that way.

I suggest this as a guide for building your own sdcard image
https://github.com/carlosedp/riscv-bringup/tree/master/unmatched

Thanks @jimw, that link contained all information i needed. I now have ebuilds voor u-boot and opensbi and just successfully booted with my self-compiled u-boot/opensbl in partition 1 and 2 of the SD card.
There seems to be a little mistake on that page though, in the section “Creating an SDCard Image file” is says:

# Write the bootloader partitions. Adjust "loop0" to your loop device created in previous command if needed.
sudo dd if=u-boot/spl/u-boot-spl.bin of=/dev/loop0p1 bs=8k iflag=fullblock oflag=direct conv=fsync status=progress
sudo dd if=opensbi/build/platform/generic/firmware/fw_payload.bin of=/dev/loop0p2 bs=8k iflag=fullblock oflag=direct conv=fsync status=progress

There i think the fw_payload.bin is wrong. In a later section “Installing/Updating new Kernel and Bootloader packages” the right commands are listed:

# Write the new U-boot and SPL to the SDcard
sudo dd if=u-boot.itb of=/dev/mmcblk0p2 bs=4k oflag=direct
sudo dd if=u-boot-spl.bin of=/dev/mmcblk0p1 bs=4k oflag=direct

I also made an gentoo overlay containing a few packages:

  • sys-boot/opensbi-0.9 (opensbi with sifive patches applied)
  • sys-boot/u-boot-2021.01_rc5 (u-boot with sifive patches applied)
  • sys-kernel/sifive-sources-5.12.11 (gentoo-sources with sifive patches applied, and places defconfig in arch/riscv/configs/unmatched_defconfig)
  • sys-apps/sysvinit-2.99 (sysvinit with halt patched to halt if you call reboot and installs an inittab with the serial console at ttySIF0 enabled)
  • media-video/mplayer-1.4-r1 (mplayer with a small patch for the configure script to accept the RISC-V architecture)

If anyone is interested i’ll be happy to share, just let me know.

2 Likes

You can file an issue against the github repo to report bugs. I went ahead and did that adding a link back to here. This looks like an editing error converting the unleashed info to the unmatched info as the unleased used an older scheme, and fw_payload.bin was correct for the unleashed.

Thanks for registering the issue for the documentation. I don’t have a github account and actually don’t want to have one :slight_smile:

1 Like

In case someone is interested: I’ve published my overlay here:
https://code.pa4wdh.nl.eu.org/gentoo/unmatched-patchwork/about/
The name of the overlay is of course a play on the name of the board :slight_smile:

Any feedback is welcome.

1 Like

Have you tried Xorg server yet? I seem to have some issues that Xserver is using a lot of CPU resources when in DWM and typing in the st terminal is really laggy. I used DWM and st on a Ubuntu install and no lag what so ever. I’ve tried applying some patches from the meta-sifive github repo but no luck. Wondering if you have encountered anything similar while I debug.

Also fairly new to Gentoo, fyi

Welcome here and welcome to Gentoo :slight_smile:

No, i don’t have an Xserver running because i (still) don’t have a GPU. I have tried to run with a remote X session (using xdmcp and Xephyr) and that works as expected. I used AwesomeWM as a window manager and load was as low as you would expect.

The lag sounds like you’re using a generic (vesa?) driver instead of one that uses the hardware features. What kind of hardware do you have and what have you set in VIDEO_CARDS in /etc/portage/make.conf?

in VIDEO_CARDS I have “amdgpu” and the videocard I’m using is a WX 2100.
I can confirm the kernel driver is loaded using lspci -v though I am getting some sort of init error when running startx.

I’ll find the exact error when I get home and get back to you :slightly_smiling_face:

Can you post the X errors? Or maybe the complete /var/log/Xorg.0.log?

PS: You might have better luck posting on the gentoo forums, i’m in no way an X or GPU guru :slight_smile:

Here you go, I can’t really see anything obvious, so yeah I might head over to the gentoo forums as you said, the only thing I can think of is this:

[127876.445] (II) AMDGPU(0): Refusing to try glamor on llvmpipe
[127876.447] (EE) AMDGPU(0): glamor detected, failed to initialize EGL.
[127876.447] (WW) AMDGPU(0): amdgpu_glamor_pre_init returned FALSE, using ShadowFB
[127875.811] 
X.Org X Server 1.20.13
X Protocol Version 11, Revision 0
[127875.856] Build Operating System: Linux 5.13.18-gentoo riscv64 Gentoo
[127875.872] Current Operating System: Linux riscv 5.13.18-gentoo #1 SMP Sat Oct 16 05:51:41 CEST 2021 riscv64
[127875.872] Kernel command line: root=/dev/nvme0n1p5 rootfstype=ext4 rootwait console=ttySIF0,115200 earlycon
[127875.903] Build Date: 17 October 2021  08:37:32AM
[127875.919]  
[127875.935] Current version of pixman: 0.40.0
[127875.967] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[127875.967] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[127876.029] (==) Log file: "/home/marius/.local/share/xorg/Xorg.0.log", Time: Tue Oct 19 02:08:13 2021
[127876.045] (==) Using config directory: "/etc/X11/xorg.conf.d"
[127876.060] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[127876.060] (==) No Layout section.  Using the first Screen section.
[127876.060] (==) No screen section available. Using defaults.
[127876.060] (**) |-->Screen "Default Screen Section" (0)
[127876.060] (**) |   |-->Monitor "<default monitor>"
[127876.061] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[127876.061] (**) |   |-->Device "AMD"
[127876.061] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[127876.061] (==) Automatically adding devices
[127876.061] (==) Automatically enabling devices
[127876.061] (==) Automatically adding GPU devices
[127876.061] (==) Max clients allowed: 256, resource mask: 0x1fffff
[127876.061] (WW) The directory "/usr/share/fonts/misc/" does not exist.
[127876.062] 	Entry deleted from font path.
[127876.062] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[127876.062] 	Entry deleted from font path.
[127876.062] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[127876.062] 	Entry deleted from font path.
[127876.062] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[127876.062] 	Entry deleted from font path.
[127876.062] (WW) The directory "/usr/share/fonts/100dpi/" does not exist.
[127876.062] 	Entry deleted from font path.
[127876.062] (WW) The directory "/usr/share/fonts/75dpi/" does not exist.
[127876.062] 	Entry deleted from font path.
[127876.062] (==) FontPath set to:
	
[127876.062] (==) ModulePath set to "/usr/lib64/xorg/modules"
[127876.062] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[127876.062] (II) Loader magic: 0x2aea034008
[127876.062] (II) Module ABI versions:
[127876.062] 	X.Org ANSI C Emulation: 0.4
[127876.062] 	X.Org Video Driver: 24.1
[127876.062] 	X.Org XInput driver : 24.1
[127876.062] 	X.Org Server Extension : 10.0
[127876.065] (++) using VT number 1

[127876.070] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c5
[127876.071] (II) xfree86: Adding drm device (/dev/dri/card0)
[127876.073] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[127876.081] (--) PCI:*(7@0:0:0) 1002:6995:1002:0b0c rev 0, Mem @ 0x2000000000/2147483648, 0x2080000000/2097152, 0x60500000/262144, BIOS @ 0x????????/131072
[127876.082] (II) LoadModule: "glx"
[127876.082] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[127876.088] (II) Module glx: vendor="X.Org Foundation"
[127876.088] 	compiled for 1.20.13, module version = 1.0.0
[127876.088] 	ABI class: X.Org Server Extension, version 10.0
[127876.088] (II) LoadModule: "amdgpu"
[127876.089] (II) Loading /usr/lib64/xorg/modules/drivers/amdgpu_drv.so
[127876.090] (II) Module amdgpu: vendor="X.Org Foundation"
[127876.090] 	compiled for 1.20.13, module version = 21.0.0
[127876.090] 	Module class: X.Org Video Driver
[127876.090] 	ABI class: X.Org Video Driver, version 24.1
[127876.090] (II) AMDGPU: Driver for AMD Radeon:
	All GPUs supported by the amdgpu kernel driver
[127876.091] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[127876.091] (II) AMDGPU(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[127876.091] (==) AMDGPU(0): Depth 24, (--) framebuffer bpp 32
[127876.091] (II) AMDGPU(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
[127876.091] (==) AMDGPU(0): Default visual is TrueColor
[127876.092] (**) AMDGPU(0): Option "EnablePageFlip" "off"
[127876.092] (**) AMDGPU(0): Option "TearFree" "false"
[127876.092] (==) AMDGPU(0): RGB weight 888
[127876.092] (II) AMDGPU(0): Using 8 bits per RGB (8 bit DAC)
[127876.092] (--) AMDGPU(0): Chipset: "AMD Radeon Pro WX2100" (ChipID = 0x6995)
[127876.092] (II) Loading sub module "fb"
[127876.092] (II) LoadModule: "fb"
[127876.092] (II) Loading /usr/lib64/xorg/modules/libfb.so
[127876.093] (II) Module fb: vendor="X.Org Foundation"
[127876.093] 	compiled for 1.20.13, module version = 1.0.0
[127876.093] 	ABI class: X.Org ANSI C Emulation, version 0.4
[127876.093] (II) Loading sub module "dri2"
[127876.093] (II) LoadModule: "dri2"
[127876.093] (II) Module "dri2" already built-in
[127876.351] (II) Loading sub module "glamoregl"
[127876.352] (II) LoadModule: "glamoregl"
[127876.352] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[127876.376] (II) Module glamoregl: vendor="X.Org Foundation"
[127876.376] 	compiled for 1.20.13, module version = 1.0.1
[127876.376] 	ABI class: X.Org ANSI C Emulation, version 0.4
[127876.445] (II) AMDGPU(0): Refusing to try glamor on llvmpipe
[127876.447] (EE) AMDGPU(0): glamor detected, failed to initialize EGL.
[127876.447] (WW) AMDGPU(0): amdgpu_glamor_pre_init returned FALSE, using ShadowFB
[127876.447] (II) Loading sub module "shadow"
[127876.448] (II) LoadModule: "shadow"
[127876.448] (II) Loading /usr/lib64/xorg/modules/libshadow.so
[127876.448] (II) Module shadow: vendor="X.Org Foundation"
[127876.448] 	compiled for 1.20.13, module version = 1.1.0
[127876.448] 	ABI class: X.Org ANSI C Emulation, version 0.4
[127876.448] (II) AMDGPU(0): KMS Pageflipping: disabled
[127876.451] (II) AMDGPU(0): Output DisplayPort-0 has no monitor section
[127876.451] (II) AMDGPU(0): Output DisplayPort-1 has no monitor section
[127876.452] (II) AMDGPU(0): Output DisplayPort-2 has no monitor section
[127876.470] (II) AMDGPU(0): EDID for output DisplayPort-0
[127876.471] (II) AMDGPU(0): Manufacturer: BNQ  Model: 780e  Serial#: 21573
[127876.471] (II) AMDGPU(0): Year: 2008  Week: 15
[127876.471] (II) AMDGPU(0): EDID Version: 1.3
[127876.471] (II) AMDGPU(0): Digital Display Input
[127876.471] (II) AMDGPU(0): Max Image Size [cm]: horiz.: 47  vert.: 30
[127876.471] (II) AMDGPU(0): Gamma: 2.20
[127876.471] (II) AMDGPU(0): DPMS capabilities: Off
[127876.471] (II) AMDGPU(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 
[127876.471] (II) AMDGPU(0): Default color space is primary color space
[127876.471] (II) AMDGPU(0): First detailed timing is preferred mode
[127876.471] (II) AMDGPU(0): redX: 0.648 redY: 0.335   greenX: 0.282 greenY: 0.604
[127876.471] (II) AMDGPU(0): blueX: 0.150 blueY: 0.072   whiteX: 0.312 whiteY: 0.328
[127876.471] (II) AMDGPU(0): Supported established timings:
[127876.471] (II) AMDGPU(0): 720x400@70Hz
[127876.471] (II) AMDGPU(0): 640x480@60Hz
[127876.471] (II) AMDGPU(0): 640x480@75Hz
[127876.471] (II) AMDGPU(0): 800x600@60Hz
[127876.471] (II) AMDGPU(0): 800x600@75Hz
[127876.471] (II) AMDGPU(0): 832x624@75Hz
[127876.471] (II) AMDGPU(0): 1024x768@60Hz
[127876.471] (II) AMDGPU(0): 1024x768@75Hz
[127876.471] (II) AMDGPU(0): 1280x1024@75Hz
[127876.471] (II) AMDGPU(0): 1152x864@75Hz
[127876.471] (II) AMDGPU(0): Manufacturer's mask: 0
[127876.471] (II) AMDGPU(0): Supported standard timings:
[127876.472] (II) AMDGPU(0): #0: hsize: 1152  vsize 720  refresh: 60  vid: 113
[127876.472] (II) AMDGPU(0): #1: hsize: 1280  vsize 800  refresh: 60  vid: 129
[127876.472] (II) AMDGPU(0): #2: hsize: 1280  vsize 800  refresh: 75  vid: 3969
[127876.472] (II) AMDGPU(0): #3: hsize: 1280  vsize 960  refresh: 60  vid: 16513
[127876.472] (II) AMDGPU(0): #4: hsize: 1280  vsize 1024  refresh: 60  vid: 32897
[127876.472] (II) AMDGPU(0): #5: hsize: 1440  vsize 900  refresh: 60  vid: 149
[127876.472] (II) AMDGPU(0): #6: hsize: 1440  vsize 900  refresh: 75  vid: 3989
[127876.472] (II) AMDGPU(0): #7: hsize: 1680  vsize 1050  refresh: 60  vid: 179
[127876.472] (II) AMDGPU(0): Supported detailed timing:
[127876.472] (II) AMDGPU(0): clock: 119.0 MHz   Image Size:  474 x 296 mm
[127876.472] (II) AMDGPU(0): h_active: 1680  h_sync: 1728  h_sync_end 1760 h_blank_end 1840 h_border: 0
[127876.472] (II) AMDGPU(0): v_active: 1050  v_sync: 1053  v_sync_end 1059 v_blanking: 1080 v_border: 0
[127876.472] (II) AMDGPU(0): Ranges: V min: 55 V max: 76 Hz, H min: 31 H max: 83 kHz, PixClock max 175 MHz
[127876.472] (II) AMDGPU(0): Monitor name: BENQ G2200W
[127876.472] (II) AMDGPU(0): Serial No: A4802589019
[127876.472] (II) AMDGPU(0): EDID (in hex):
[127876.472] (II) AMDGPU(0): 	00ffffffffffff0009d10e7845540000
[127876.472] (II) AMDGPU(0): 	0f120103862f1e782e37a0a655489a26
[127876.472] (II) AMDGPU(0): 	125054a56b8071008100810f81408180
[127876.472] (II) AMDGPU(0): 	9500950fb3007c2e90a0601a1e403020
[127876.472] (II) AMDGPU(0): 	3600da281100001a000000fd00374c1f
[127876.473] (II) AMDGPU(0): 	5311000a202020202020000000fc0042
[127876.473] (II) AMDGPU(0): 	454e51204732323030570a20000000ff
[127876.473] (II) AMDGPU(0): 	0041343830323538393031390a2000a7
[127876.473] (II) AMDGPU(0): Printing probed modes for output DisplayPort-0
[127876.473] (II) AMDGPU(0): Modeline "1680x1050"x59.9  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz eP)
[127876.473] (II) AMDGPU(0): Modeline "1280x1024"x75.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[127876.473] (II) AMDGPU(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[127876.473] (II) AMDGPU(0): Modeline "1440x900"x75.0  136.75  1440 1536 1688 1936  900 903 909 942 -hsync +vsync (70.6 kHz e)
[127876.473] (II) AMDGPU(0): Modeline "1440x900"x59.9   88.75  1440 1488 1520 1600  900 903 909 926 +hsync -vsync (55.5 kHz e)
[127876.473] (II) AMDGPU(0): Modeline "1280x960"x60.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz e)
[127876.473] (II) AMDGPU(0): Modeline "1280x800"x74.9  106.50  1280 1360 1488 1696  800 803 809 838 -hsync +vsync (62.8 kHz e)
[127876.473] (II) AMDGPU(0): Modeline "1280x800"x59.9   71.00  1280 1328 1360 1440  800 803 809 823 +hsync -vsync (49.3 kHz e)
[127876.473] (II) AMDGPU(0): Modeline "1152x864"x75.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz e)
[127876.473] (II) AMDGPU(0): Modeline "1280x720"x59.9  119.00  1280 1728 1760 1840  720 1053 1059 1080 +hsync -vsync (64.7 kHz e)
[127876.473] (II) AMDGPU(0): Modeline "1024x768"x75.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz e)
[127876.473] (II) AMDGPU(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[127876.474] (II) AMDGPU(0): Modeline "832x624"x74.6   57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz e)
[127876.474] (II) AMDGPU(0): Modeline "800x600"x75.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz e)
[127876.474] (II) AMDGPU(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[127876.474] (II) AMDGPU(0): Modeline "640x480"x75.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz e)
[127876.474] (II) AMDGPU(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[127876.474] (II) AMDGPU(0): Modeline "720x400"x70.1   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz e)
[127876.474] (II) AMDGPU(0): EDID for output DisplayPort-1
[127876.474] (II) AMDGPU(0): EDID for output DisplayPort-2
[127876.474] (II) AMDGPU(0): Output DisplayPort-0 connected
[127876.474] (II) AMDGPU(0): Output DisplayPort-1 disconnected
[127876.474] (II) AMDGPU(0): Output DisplayPort-2 disconnected
[127876.474] (II) AMDGPU(0): Using exact sizes for initial modes
[127876.474] (II) AMDGPU(0): Output DisplayPort-0 using initial mode 1680x1050 +0+0
[127876.474] (II) AMDGPU(0): mem size init: gart size :bfc3a000 vram size: s:7ebda000 visible:7ebda000
[127876.474] (==) AMDGPU(0): DPI set to (96, 96)
[127876.474] (==) AMDGPU(0): Using gamma correction (1.0, 1.0, 1.0)
[127876.474] (II) Loading sub module "ramdac"
[127876.474] (II) LoadModule: "ramdac"
[127876.475] (II) Module "ramdac" already built-in
[127876.475] (II) AMDGPU(0): Front buffer pitch: 6912 bytes
[127876.476] (==) AMDGPU(0): DRI3 disabled
[127876.476] (==) AMDGPU(0): Backing store enabled
[127876.476] (WW) AMDGPU(0): Direct rendering disabled
[127876.476] (II) AMDGPU(0): 2D and 3D acceleration disabled
[127876.476] (==) AMDGPU(0): DPMS enabled
[127876.476] (==) AMDGPU(0): Silken mouse enabled
[127876.504] (II) Initializing extension Generic Event Extension
[127876.504] (II) Initializing extension SHAPE
[127876.504] (II) Initializing extension MIT-SHM
[127876.504] (II) Initializing extension XInputExtension
[127876.505] (II) Initializing extension XTEST
[127876.506] (II) Initializing extension BIG-REQUESTS
[127876.506] (II) Initializing extension SYNC
[127876.506] (II) Initializing extension XKEYBOARD
[127876.506] (II) Initializing extension XC-MISC
[127876.506] (II) Initializing extension XFIXES
[127876.506] (II) Initializing extension RENDER
[127876.506] (II) Initializing extension RANDR
[127876.506] (II) Initializing extension COMPOSITE
[127876.506] (II) Initializing extension DAMAGE
[127876.506] (II) Initializing extension MIT-SCREEN-SAVER
[127876.506] (II) Initializing extension DOUBLE-BUFFER
[127876.506] (II) Initializing extension RECORD
[127876.506] (II) Initializing extension DPMS
[127876.506] (II) Initializing extension Present
[127876.506] (II) Initializing extension DRI3
[127876.506] (II) Initializing extension X-Resource
[127876.506] (II) Initializing extension XVideo
[127876.506] (II) Initializing extension XVideo-MotionCompensation
[127876.506] (II) Initializing extension GLX
[127876.507] (II) AIGLX: Screen 0 is not DRI2 capable
[127876.526] (II) IGLX: Loaded and initialized swrast
[127876.526] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[127876.527] (II) Initializing extension XFree86-VidModeExtension
[127876.527] (II) Initializing extension XFree86-DGA
[127876.527] (II) Initializing extension XFree86-DRI
[127876.527] (II) Initializing extension DRI2
[127876.527] (II) AMDGPU(0): Setting screen physical size to 444 x 277
[127876.719] (II) config/udev: Adding input device Logitech USB Keyboard (/dev/input/event0)
[127876.720] (**) Logitech USB Keyboard: Applying InputClass "libinput keyboard catchall"
[127876.720] (**) Logitech USB Keyboard: Applying InputClass "system-keyboard"
[127876.720] (II) LoadModule: "libinput"
[127876.720] (II) Loading /usr/lib64/xorg/modules/input/libinput_drv.so
[127876.722] (II) Module libinput: vendor="X.Org Foundation"
[127876.722] 	compiled for 1.20.13, module version = 1.2.0
[127876.722] 	Module class: X.Org XInput Driver
[127876.722] 	ABI class: X.Org XInput driver, version 24.1
[127876.722] (II) Using input driver 'libinput' for 'Logitech USB Keyboard'
[127876.725] (II) systemd-logind: got fd for /dev/input/event0 13:64 fd 19 paused 0
[127876.725] (**) Logitech USB Keyboard: always reports core events
[127876.725] (**) Option "Device" "/dev/input/event0"
[127876.725] (**) Option "_source" "server/udev"
[127876.735] (II) event0  - Logitech USB Keyboard: is tagged by udev as: Keyboard
[127876.736] (II) event0  - Logitech USB Keyboard: device is a keyboard
[127876.736] (II) event0  - Logitech USB Keyboard: device removed
[127876.737] (**) Option "config_info" "udev:/sys/devices/platform/soc/e00000000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/0000:02:02.0/0000:04:00.0/usb1/1-1/1-1:1.0/0003:046D:C31C.0001/input/input0/event0"
[127876.737] (II) XINPUT: Adding extended input device "Logitech USB Keyboard" (type: KEYBOARD, id 6)
[127876.737] (**) Option "xkb_layout" "no"
[127876.831] (II) event0  - Logitech USB Keyboard: is tagged by udev as: Keyboard
[127876.831] (II) event0  - Logitech USB Keyboard: device is a keyboard
[127876.834] (II) config/udev: Adding input device Logitech USB Keyboard Consumer Control (/dev/input/event1)
[127876.834] (**) Logitech USB Keyboard Consumer Control: Applying InputClass "libinput keyboard catchall"
[127876.834] (**) Logitech USB Keyboard Consumer Control: Applying InputClass "system-keyboard"
[127876.834] (II) Using input driver 'libinput' for 'Logitech USB Keyboard Consumer Control'
[127876.837] (II) systemd-logind: got fd for /dev/input/event1 13:65 fd 22 paused 0
[127876.837] (**) Logitech USB Keyboard Consumer Control: always reports core events
[127876.837] (**) Option "Device" "/dev/input/event1"
[127876.837] (**) Option "_source" "server/udev"
[127876.841] (II) event1  - Logitech USB Keyboard Consumer Control: is tagged by udev as: Keyboard
[127876.841] (II) event1  - Logitech USB Keyboard Consumer Control: device is a keyboard
[127876.841] (II) event1  - Logitech USB Keyboard Consumer Control: device removed
[127876.841] (**) Option "config_info" "udev:/sys/devices/platform/soc/e00000000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/0000:02:02.0/0000:04:00.0/usb1/1-1/1-1:1.1/0003:046D:C31C.0002/input/input1/event1"
[127876.841] (II) XINPUT: Adding extended input device "Logitech USB Keyboard Consumer Control" (type: KEYBOARD, id 7)
[127876.842] (**) Option "xkb_layout" "no"
[127876.846] (II) event1  - Logitech USB Keyboard Consumer Control: is tagged by udev as: Keyboard
[127876.846] (II) event1  - Logitech USB Keyboard Consumer Control: device is a keyboard
[127876.849] (II) config/udev: Adding input device Logitech USB Keyboard System Control (/dev/input/event2)
[127876.849] (**) Logitech USB Keyboard System Control: Applying InputClass "libinput keyboard catchall"
[127876.849] (**) Logitech USB Keyboard System Control: Applying InputClass "system-keyboard"
[127876.849] (II) Using input driver 'libinput' for 'Logitech USB Keyboard System Control'
[127876.851] (II) systemd-logind: got fd for /dev/input/event2 13:66 fd 23 paused 0
[127876.851] (**) Logitech USB Keyboard System Control: always reports core events
[127876.851] (**) Option "Device" "/dev/input/event2"
[127876.851] (**) Option "_source" "server/udev"
[127876.855] (II) event2  - Logitech USB Keyboard System Control: is tagged by udev as: Keyboard
[127876.855] (II) event2  - Logitech USB Keyboard System Control: device is a keyboard
[127876.855] (II) event2  - Logitech USB Keyboard System Control: device removed
[127876.855] (**) Option "config_info" "udev:/sys/devices/platform/soc/e00000000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/0000:02:02.0/0000:04:00.0/usb1/1-1/1-1:1.1/0003:046D:C31C.0002/input/input2/event2"
[127876.855] (II) XINPUT: Adding extended input device "Logitech USB Keyboard System Control" (type: KEYBOARD, id 8)
[127876.855] (**) Option "xkb_layout" "no"
[127876.860] (II) event2  - Logitech USB Keyboard System Control: is tagged by udev as: Keyboard
[127876.860] (II) event2  - Logitech USB Keyboard System Control: device is a keyboard
[127876.862] (II) config/udev: Adding input device HDA ATI HDMI HDMI/DP,pcm=3 (/dev/input/event4)
[127876.863] (II) No input driver specified, ignoring this device.
[127876.863] (II) This device may have been added with another device file.
[127876.864] (II) config/udev: Adding input device HDA ATI HDMI HDMI/DP,pcm=7 (/dev/input/event5)
[127876.864] (II) No input driver specified, ignoring this device.
[127876.864] (II) This device may have been added with another device file.
[127876.865] (II) config/udev: Adding input device HDA ATI HDMI HDMI/DP,pcm=8 (/dev/input/event6)
[127876.865] (II) No input driver specified, ignoring this device.
[127876.865] (II) This device may have been added with another device file.
[127876.866] (II) config/udev: Adding input device HDA ATI HDMI HDMI/DP,pcm=9 (/dev/input/event7)
[127876.866] (II) No input driver specified, ignoring this device.
[127876.866] (II) This device may have been added with another device file.
[127876.867] (II) config/udev: Adding input device HDA ATI HDMI HDMI/DP,pcm=10 (/dev/input/event8)
[127876.867] (II) No input driver specified, ignoring this device.
[127876.867] (II) This device may have been added with another device file.
[127883.993] (EE) event0  - Logitech USB Keyboard: client bug: event processing lagging behind by 21ms, your system is too slow
[127891.071] (**) Option "fd" "19"
[127891.071] (II) event0  - Logitech USB Keyboard: device removed
[127891.071] (**) Option "fd" "22"
[127891.071] (II) event1  - Logitech USB Keyboard Consumer Control: device removed
[127891.072] (**) Option "fd" "23"
[127891.072] (II) event2  - Logitech USB Keyboard System Control: device removed
[127891.076] (II) UnloadModule: "libinput"
[127891.076] (II) systemd-logind: releasing fd for 13:66
[127891.092] (II) UnloadModule: "libinput"
[127891.092] (II) systemd-logind: releasing fd for 13:65
[127891.125] (II) UnloadModule: "libinput"
[127891.125] (II) systemd-logind: releasing fd for 13:64
[127891.202] (II) Server terminated successfully (0). Closing log file.

I don’t see anything obvious either. I’ve done some searches based on the message “glamor detected, failed to initialize EGL.” and got some posts about the radeon and radeonsi drivers. Maybe you can try to add them to VIDEO_CARDS and re-merge xorg-drivers and see if that works better.