Unable to run wayland on RPI3 with aarch64

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

Unable to run wayland on RPI3 with aarch64

Postby tetrox » Sun Sep 22, 2019 12:12 am

Hi,

I have a RPI3 that I setup with aarch64.
I installed the sway package but when I try to start it, it will print: "unable to create backend drm device"
Having "dtoverlay=vc4-kms-v3d" in config.txt doesn't seem to change anything.
Here are my loaded modules:

$this->bbcode_second_pass_code('', 'Module Size Used by
joydev 28672 0
hidp 32768 0
ccm 20480 0
lz4 16384 4
lz4_compress 45056 1 lz4
des_generic 28672 0
bnep 32768 2
arc4 16384 0
libarc4 16384 1 arc4
md4 16384 0
vc4 196608 0
cec 65536 1 vc4
brcmfmac 323584 0
rc_core 57344 1 cec
drm_kms_helper 208896 1 vc4
brcmutil 20480 1 brcmfmac
drm 561152 2 drm_kms_helper,vc4
smsc95xx 45056 0
drm_panel_orientation_quirks 20480 1 drm
hci_uart 143360 0
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
btqca 20480 1 hci_uart
btbcm 16384 1 hci_uart
usbnet 53248 1 smsc95xx
btintel 32768 1 hci_uart
cfg80211 782336 1 brcmfmac
mii 20480 2 smsc95xx,usbnet
bluetooth 610304 27 hidp,btqca,btintel,hci_uart,btbcm,bnep
bcm2835_v4l2 69632 0
raspberrypi_hwmon 16384 0
v4l2_common 20480 1 bcm2835_v4l2
videobuf2_vmalloc 20480 1 bcm2835_v4l2
videobuf2_memops 20480 1 videobuf2_vmalloc
videobuf2_v4l2 32768 1 bcm2835_v4l2
videobuf2_common 61440 2 videobuf2_v4l2,bcm2835_v4l2
ecdh_generic 16384 2 bluetooth
ecc 36864 1 ecdh_generic
rfkill 32768 5 bluetooth,cfg80211
videodev 237568 4 v4l2_common,videobuf2_v4l2,bcm2835_v4l2,videobuf2_common
bcm2835_thermal 16384 0
i2c_bcm2835 20480 0
snd_bcm2835 32768 0
pwm_bcm2835 16384 0
bcm2835_wdt 16384 0
mc 61440 3 videodev,videobuf2_v4l2,videobuf2_common
crypto_user 16384 0')
tetrox
 
Posts: 3
Joined: Mon Jan 01, 2018 4:14 pm

Re: Unable to run wayland on RPI3 with aarch64

Postby WebReflection » Wed Oct 16, 2019 11:52 am

this is what I use for BENJA

$this->bbcode_second_pass_code('', '
# WARNING: it replaces /boot/config.txt
# make a backup with your one if you want to rollback
echo "dtoverlay=vc4-fkms-v3d,cma-384

gpu_mem=128
gpu_mem_256=128
gpu_mem_512=196
gpu_mem_1024=384

dtparam=audio=on
dtparam=spi=on

[all]
avoid_warnings=1
disable_splash=1
boot_delay=0
">config.txt

sudo mv config.txt /boot/

# for modern Pi & 64bit
if [ -f /boot/boot.txt ]; then
# modify boot.scr to reserve cma memory and make the boot silent
while ! sudo pacman -S --needed --noconfirm uboot-tools
do
:
done
sudo sed -i "s/rootwait/rootwait quiet loglevel=0 cma=384MB@128MB/" /boot/boot.txt
sudo mkimage -T script -C none -n "Raspberry Pi" -d /boot/boot.txt /boot/boot.scr
fi

# for older Pi & 32bit
if [ -f /boot/cmdline.txt ]; then
# modify cmdline.txt mostly to make the boot silent (cma might be ignored)
sudo sed -i "s/rootwait/rootwait quiet loglevel=0 cma=384MB@128MB/" /boot/cmdline.txt
fi

')
WebReflection
 
Posts: 104
Joined: Tue Apr 02, 2013 6:49 pm

Re: Unable to run wayland on RPI3 with aarch64

Postby WebReflection » Wed Oct 16, 2019 11:59 am

P.S. if you want to keep your boot config as is, you can setup the rest via command line:

$this->bbcode_second_pass_code('', '
bash <(curl -s https://archibold.io/benja/setup/rpi_quiet)
')

that would install the right things to make your GPU work ;-)
WebReflection
 
Posts: 104
Joined: Tue Apr 02, 2013 6:49 pm

Re: Unable to run wayland on RPI3 with aarch64

Postby andrewboring » Thu Dec 05, 2019 4:55 pm

I haven't used Sway personally, but if it's anything like Weston, you may need a helper application to start it with appropriate privileges (similar to weston-launch) to access the card0 device.

There's probably more info in the system journal related to the Sway startup process.

With Weston, I'd usually see any number of logged messages telling me why it can't set up the DRM device (because of a permissions issue in /run/user/1000, $XDG_something_something not set correctly, no permission to open /dev/dri/card0 as an unprivileged user, trying to start it from an SSH session instead of a virtual terminal, etc).
andrewboring
 
Posts: 13
Joined: Wed Jun 20, 2018 5:07 pm

Re: Unable to run wayland on RPI3 with aarch64

Postby maggu2810 » Tue Dec 17, 2019 10:44 am

Please have also a look at:
https://github.com/raspberrypi/linux/issues/3046

Would it be possible to apply that respective patch for the aarch64 kernel package archlinux ARM provides?
maggu2810
 
Posts: 35
Joined: Thu May 29, 2014 12:52 pm


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 5 guests