Slackware - ARMThis forum is for the discussion of Slackware ARM.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What other two changes did you do by any chance? I'm still getting:
Code:
[ 15.400442] fb0: switching to vc4 from simple
[ 15.404810] vc4-drm gpu: bound fe600000.firmwarekms (ops vc4_fkms_ops [vc4])
[ 15.704332] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1
[ 15.988341] vc4-drm gpu: [drm] fb0: vc4drmfb frame buffer device
which it seems that it doesn't want to completely load the driver. I'm using version 5.18.9 from the official rpi source.
They were related to the kernel LOCALVERSION and one other change involving the kernel local version naming. I ran into a problem where the kernel was named similar to 5.18.x-armv8+. I also had to modify the boot/extlinux/extlinux.conf to add in the plus sign to the naming of Image-armv8 and the ramdisk. Those issues are already fixed now and should not be problematic going forward.
It looks like you have the FKMS driver loaded. Grab the default Rpi config for Slackware arm from here:
They were related to the kernel LOCALVERSION and one other change involving the kernel local version naming. I ran into a problem where the kernel was named similar to 5.18.x-armv8+. I also had to modify the boot/extlinux/extlinux.conf to add in the plus sign to the naming of Image-armv8 and the ramdisk. Those issues are already fixed now and should not be problematic going forward.
It looks like you have the FKMS driver loaded. Grab the default Rpi config for Slackware arm from here:
I'm using the exact same config.txt as the one provided in the link.
Thank you also for all the work on getting the rpi kernel going.
Yeah, no problem!
Did you build with --noconfig and --nopatches? My kernel was built with the stock bcm2711_defconfig and no patches. Basically a vanilla Raspberry Pi kernel fork. Technically should work for all Pi models, but I have not tried the Pi 3 just yet.
Did you build with --noconfig and --nopatches? My kernel was built with the stock bcm2711_defconfig and no patches. Basically a vanilla Raspberry Pi kernel fork. Technically should work for all Pi models, but I have not tried the Pi 3 just yet.
The settings to use the Broadcom VC4 driver are:
gpu_mem=128
dtoverlay=vc4-kms-v3d
I'll retest the mainline Kernel with those settings and assuming video works, make it the new default so it works out of the box with the rpi kernel fork.
Secondly, ensure that you don't have any X11 config within /etx/X11/xorg.conf.d that's configuring for the "Device".
There shouldn't be any by default.
Now VC4 is used rather than llvmpipe:
Code:
bash-5.1$ glxgears -info
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
GL_RENDERER = V3D 4.2
GL_VERSION = 2.1 Mesa 21.3.8
GL_VENDOR = Broadcom
The settings to use the Broadcom VC4 driver are:
gpu_mem=128
dtoverlay=vc4-kms-v3d
I'll retest the mainline Kernel with those settings and assuming video works, make it the new default so it works out of the box with the rpi kernel fork.
Secondly, ensure that you don't have any X11 config within /etx/X11/xorg.conf.d that's configuring for the "Device".
There shouldn't be any by default.
Now VC4 is used rather than llvmpipe:
Code:
bash-5.1$ glxgears -info
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
GL_RENDERER = V3D 4.2
GL_VERSION = 2.1 Mesa 21.3.8
GL_VENDOR = Broadcom
I tried this config file, but still getting llvmpipe. I've been doing a lot of testing on this machine. I probably need to start over clean. There is nothing in /etc/X11/xorg.conf.d/ that can be causing issues. I'm a bit perplexed as to why this is not working. It should since it is obviously working for me. Most likely something on my end. :/
I uploaded what I have. The kernel is at 5.18.7. I uploaded my dmesg log and the config.txt too. I went as far as removing all my dtb files, elf files, etc, etc and reinstalled the kernel and the raspberry pi firmware package. I am building a 5.18.9 kernel at the moment to see if i can reproduce a functioning environment.
EDIT: The kernel source package is available now on the mirror.
So I just upgraded to your kernel. I have a raspberry pi active that I use for something else and I wanted to see how config.txt would be set when playing with raspi-config. This is the setting that I'm using now on my slackware aarch64:
Code:
dtoverlay=vc4-kms-v3d
#hdmi_enable_4kp60=1
Using vc4-kms-v3d instead of vc4-kms-v3d-pi4 is giving me a really good desktop experience. I still show llvmpipe, but everything is working much, much better. I have vlc and I'm able to play an 1080 video at full screen with no stuttering using XFCE. I tested KDE and KDE Wayland. Wayland is definitely the poorest performer. X11 works fine if you disable the Compositor. By far, XFCE works the best. Not sure if commenting out hdmi_enable_4kp60 did anything.
This is the raspberry version that I have:
Code:
Raspberry Pi 4 Model B Rev 1.2
Can you test your pi with that dtoverlay to see what kind of performance you get?
Also, the hdmi errors went away too.
Last edited by stormtracknole; 07-06-2022 at 05:42 PM.
Reason: adding about the hdmi errors
Yes, those settings increase performance. I still see in glxinfo that I am using the v3d driver. Nothing says a thing about llvmpipe.
I compared the dtbs and other files in /boot to make sure I didn't have any extra firmware or driver related configuration. I cannot figure out the difference, other than the eeprom version and configuration being different.
Code:
root@fourb:/boot# rpi-eeprom-config
[all]
BOOT_UART=0
WAKE_ON_GPIO=0
POWER_OFF_ON_HALT=1
DHCP_TIMEOUT=45000
DHCP_REQ_TIMEOUT=4000
TFTP_FILE_TIMEOUT=30000
ENABLE_SELF_UPDATE=1
DISABLE_HDMI=0
BOOT_ORDER=0xf41
root@fourb:/boot# rpi-eeprom-update
BOOTLOADER: up to date
CURRENT: Tue Apr 26 10:24:28 UTC 2022 (1650968668)
LATEST: Tue Apr 26 10:24:28 UTC 2022 (1650968668)
RELEASE: critical (/usr/share/hwm-bw-raspberrypi/eeprom-firmware/bootloader/critical)
Use a text editor to modify /etc/rpi-eeprom-update to change the release.
VL805_FW: Dedicated VL805 EEPROM
VL805: up to date
CURRENT: 000138a1
LATEST: 000138a1
root@fourb:/boot#
What does /dev/dri/* show for you?
Code:
root@fourb:/boot# ls -la /dev/dri/*
crw-rw----+ 1 root video 226, 0 Dec 31 1969 /dev/dri/card0
crw-rw----+ 1 root video 226, 1 Dec 31 1969 /dev/dri/card1
crw-rw-rw- 1 root video 226, 128 Dec 31 1969 /dev/dri/renderD128
/dev/dri/by-path:
total 0
drwxr-xr-x 2 root root 100 Dec 31 1969 ./
drwxr-xr-x 3 root root 120 Dec 31 1969 ../
lrwxrwxrwx 1 root root 8 Dec 31 1969 platform-fec00000.v3d-card -> ../card0
lrwxrwxrwx 1 root root 13 Dec 31 1969 platform-fec00000.v3d-render -> ../renderD128
lrwxrwxrwx 1 root root 8 Dec 31 1969 platform-gpu-card -> ../card1
What about any udev rules in /etc/udev/rules.d related to vchiq? Or possibly any black listed modules? Or possibly the snd_bcm2835 module blacklisted?
It very well may be the rpi-userland package. Please remove it if it is installed. A reboot may be required. It handles the vchiq stuff for video.
So I remembered that I had some userland stuff that ldconfig was loaded. I made sure to remove that. I also removed your userland package. My machine still shows llvmpip, but I am pretty sure that I have something else lingering. Probably starting clean would clear. Never the less, the kernel package you built, along with the config file settings that I suggested are working pretty darn good. Even firefox is loading hd videos with no issues. I'm actually quite impressed. Thank you for the patience dealing with this. At least this gave me a great opportunity to learn more things about the rpi.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.