balena-io-examples / x11-window-manager

Example project showing how to run a desktop manager with balenaCloud in order to run GUI applications.
43 stars 19 forks source link

Raspberry Pi 4 #7

Open sighmon opened 4 years ago

sighmon commented 4 years ago

Hi there, are there any plans to update this for running on a Raspberry Pi 4 64 bit image?

# Dockerfile.template
FROM balenalib/raspberrypi4-64:buster

Errors:

[main]     E: Unable to locate package raspberrypi-ui-mods
[main]     E: Unable to locate package rpd-icons
[main]     E: Unable to locate package gtk2-engines-clearlookspix
Ciantic commented 4 years ago

I managed to somehow to get it to deploly with arm64 version, but it throws me this:

[Logs]    [1/23/2020, 4:18:41 PM] [main] STARTING X
[Logs]    [1/23/2020, 4:18:41 PM] [main] hostname: No address associated with hostname
[Logs]    [1/23/2020, 4:18:41 PM] [main] xauth:  file /root/.Xauthority does not exist
[Logs]    [1/23/2020, 4:18:41 PM] [main] xauth: (stdin):1:  bad display name "c3eb0a2:0" in "add" command
[Logs]    [1/23/2020, 4:18:41 PM] [main]
[Logs]    [1/23/2020, 4:18:41 PM] [main]
[Logs]    [1/23/2020, 4:18:41 PM] [main] X.Org X Server 1.19.2
[Logs]    [1/23/2020, 4:18:41 PM] [main] Release Date: 2017-03-02
[Logs]    [1/23/2020, 4:18:41 PM] [main] X Protocol Version 11, Revision 0
[Logs]    [1/23/2020, 4:18:41 PM] [main] Build Operating System: Linux 4.9.0-8-arm64 aarch64 Debian
[Logs]    [1/23/2020, 4:18:41 PM] [main] Current Operating System: Linux c3eb0a2 4.19.71 #1 SMP PREEMPT Wed Jan 15 21:18:45 UTC 2020 aarch64
[Logs]    [1/23/2020, 4:18:41 PM] [main] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 cma=64M cma=256M video=HDMI-A-1:1920x1080@50 smsc95xx.macaddr=DC:A6:32:48:9F:2F vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000  dwc_otg.lpm_enable=0 console=null rootfstype=ext4 rootwait vt.global_cursor_default=0 root=PARTUUID=a1fb009e-02 rootwait
[Logs]    [1/23/2020, 4:18:41 PM] [main] Build Date: 03 November 2018  03:03:37AM
[Logs]    [1/23/2020, 4:18:41 PM] [main] xorg-server 2:1.19.2-1+deb9u5 (https://www.debian.org/support)
[Logs]    [1/23/2020, 4:18:41 PM] [main] Current version of pixman: 0.34.0
[Logs]    [1/23/2020, 4:18:41 PM] [main]        Before reporting problems, check http://wiki.x.org
[Logs]    [1/23/2020, 4:18:41 PM] [main]        to make sure that you have the latest version.
[Logs]    [1/23/2020, 4:18:41 PM] [main] Markers: (--) probed, (**) from config file, (==) default setting,
[Logs]    [1/23/2020, 4:18:41 PM] [main]        (++) from command line, (!!) notice, (II) informational,
[Logs]    [1/23/2020, 4:18:41 PM] [main]        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[Logs]    [1/23/2020, 4:18:41 PM] [main] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan 23 15:18:41 2020
[Logs]    [1/23/2020, 4:18:41 PM] [main] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[Logs]    [1/23/2020, 4:18:42 PM] [main] MESA-LOADER: failed to retrieve device information
[Logs]    [1/23/2020, 4:18:42 PM] [main] gbm: failed to open any driver (search paths /usr/lib/aarch64-linux-gnu/dri:${ORIGIN}/dri:/usr/lib/dri)
[Logs]    [1/23/2020, 4:18:42 PM] [main] gbm: Last dlopen error: /usr/lib/dri/vc4_dri.so: cannot open shared object file: No such file or directory
[Logs]    [1/23/2020, 4:18:42 PM] [main] failed to load driver: vc4
[Logs]    [1/23/2020, 4:18:42 PM] [main] gbm: failed to open any driver (search paths /usr/lib/aarch64-linux-gnu/dri:${ORIGIN}/dri:/usr/lib/dri)
[Logs]    [1/23/2020, 4:18:42 PM] [main] gbm: Last dlopen error: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory
[Logs]    [1/23/2020, 4:18:42 PM] [main] failed to load driver: kms_swrast
[Logs]    [1/23/2020, 4:18:42 PM] [main] gbm: failed to open any driver (search paths /usr/lib/aarch64-linux-gnu/dri:${ORIGIN}/dri:/usr/lib/dri)
[Logs]    [1/23/2020, 4:18:42 PM] [main] gbm: Last dlopen error: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory
[Logs]    [1/23/2020, 4:18:42 PM] [main] failed to load swrast driver
[Logs]    [1/23/2020, 4:18:42 PM] [main] couldn't get display device

when I look using balena logs mydevice

brainstorm commented 4 years ago

Check this one, works and has the appropriate packages for bullseye: https://github.com/CCHS-Melbourne/openpnp-kiosk

yuriploc commented 1 year ago

You should try balena blocks https://www.balena.io/docs/learn/more/examples/balenablocks/#balenablocks-built-for-balenacloud

brainstorm commented 1 year ago

A bit of a tangent to this issue, but you know of any balena block(s) supporting VNC or XPRA (perhaps third party/experimental?), @yuriploc? It'd love to drop one of those for my kiosk on my current Dockerfile.

yuriploc commented 1 year ago

A bit of a tangent to this issue, but you know of any balena block(s) supporting VNC or XPRA (perhaps third party/experimental?), @yuriploc? It'd love to drop one of those for my kiosk on my current Dockerfile.

AFAIK, nothing out of the box.