Tinker Board S can't run Balena WPE

I’m trying to run Balena WPE on a Tinker Board S but it fails.

I have set all 3 of the RESIN_HOST_CONFIG_gpu_mem config vars.

The logs in Balena Cloud says:

Rebooting
10.05.19 15:04:33 (+0200) Supervisor starting
10.05.19 15:04:26 (+0200)  main  * failed to open vchiq instance
10.05.19 15:04:27 (+0200)  main  * failed to open vchiq instance
10.05.19 15:04:28 (+0200)  main  * failed to open vchiq instance
10.05.19 15:04:29 (+0200)  main  * failed to open vchiq instance
10.05.19 15:04:30 (+0200)  main  * failed to open vchiq instance
10.05.19 15:04:31 (+0200)  main  * failed to open vchiq instance
10.05.19 15:04:32 (+0200)  main  * failed to open vchiq instance
10.05.19 15:04:33 (+0200)  main  * failed to open vchiq instance
10.05.19 15:04:36 (+0200) Service exited 'main sha256:532992ba063c3f855d30f87ec1cefa6299cbe228506dffcde2bed24d9735b081'
10.05.19 15:04:38 (+0200) Restarting service 'main sha256:532992ba063c3f855d30f87ec1cefa6299cbe228506dffcde2bed24d9735b081'
10.05.19 15:04:33 (+0200)  main  * failed to open vchiq instance
10.05.19 15:04:35 (+0200)  main  * failed to open vchiq instance
10.05.19 15:04:35 (+0200)  main  * failed to open vchiq instance
10.05.19 15:04:38 (+0200)  main  * failed to open vchiq instance
10.05.19 15:04:38 (+0200)  main  * failed to open vchiq instance
...

Hi @bjornnuppeke, the Balena WPE project is for the Raspberry Pi devices. The RESIN_HOST_CONFIG_gpu_mem values also just apply to Raspberry Pi (setting the values in its confog.json), not the ASUS Tinker Board, which is a completely different set of hardware. Thus that project is not suitable for the Pi. That’s why it’s complaining as well, vchiq is the the Pi’s VideoCore interaction tool.

What are you trying to do, actually?

For a similar display-oriented project that is cross-platform, you can possibly check:

Or you are aiming for something else?

Thank you for the answer @imrehg. That explains a lot!

My goal is a kiosk/dashboard, so the electronjs repo you mentioned seems to work just as well. Great tip. Thanks!

Trying out the resin-electronjs service. I can’t get mouse and keyboard to work. Do you have any experience of this @imrehg?

There are a lot of errors in the BalenaCloud logs:

15.05.19 09:55:04 (+0200) Supervisor starting
15.05.19 09:54:58 (+0200)  main  hostname: No address associated with hostname
15.05.19 09:54:58 (+0200)  main  xauth: (stdin):1:  bad display name "2aacba6:1" in "add" command
15.05.19 09:54:58 (+0200)  main  
15.05.19 09:54:58 (+0200)  main  
15.05.19 09:54:58 (+0200)  main  X.Org X Server 1.19.2
15.05.19 09:54:58 (+0200)  main  Release Date: 2017-03-02
15.05.19 09:54:58 (+0200)  main  X Protocol Version 11, Revision 0
15.05.19 09:54:58 (+0200)  main  Build Operating System: Linux 4.9.0-8-armmp-lpae armv7l Debian
15.05.19 09:54:58 (+0200)  main  Current Operating System: Linux 2aacba6 4.4.103-yocto-standard #1 SMP Wed Apr 10 06:38:44 UTC 2019 armv7l
15.05.19 09:54:58 (+0200)  main  Kernel command line: root=PARTUUID=f5612e0d-02 rw rootfstype=ext4 rootwait console=tty1 console=ttyS3,115200n8
15.05.19 09:54:58 (+0200)  main  Build Date: 03 November 2018  05:53:43AM
15.05.19 09:54:58 (+0200)  main  xorg-server 2:1.19.2-1+deb9u5 (https://www.debian.org/support) 
15.05.19 09:54:58 (+0200)  main  Current version of pixman: 0.34.0
15.05.19 09:54:58 (+0200)  main         Before reporting problems, check http://wiki.x.org
15.05.19 09:54:58 (+0200)  main         to make sure that you have the latest version.
15.05.19 09:54:58 (+0200)  main  Markers: (--) probed, (**) from config file, (==) default setting,
15.05.19 09:54:58 (+0200)  main         (++) from command line, (!!) notice, (II) informational,
15.05.19 09:54:58 (+0200)  main         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
15.05.19 09:54:58 (+0200)  main  (==) Log file: "/var/log/Xorg.1.log", Time: Wed May 15 07:54:58 2019
15.05.19 09:54:58 (+0200)  main  (==) Using system config directory "/usr/share/X11/xorg.conf.d"
15.05.19 09:54:58 (+0200)  main  MESA-LOADER: failed to retrieve device information
15.05.19 09:54:58 (+0200)  main  gbm: failed to open any driver (search paths /usr/lib/arm-linux-gnueabihf/dri:${ORIGIN}/dri:/usr/lib/dri)
15.05.19 09:54:58 (+0200)  main  gbm: Last dlopen error: /usr/lib/dri/rockchip_dri.so: cannot open shared object file: No such file or directory
15.05.19 09:54:58 (+0200)  main  failed to load driver: rockchip
15.05.19 09:54:59 (+0200)  main  EGL_MESA_drm_image required.
15.05.19 09:55:01 (+0200)  main  Electron 1.6.x has reached the end of its support cycle.
15.05.19 09:55:01 (+0200)  main   Developers are encouraged to upgrade their applications to a newer series.
15.05.19 09:55:01 (+0200)  main   Read about newer series at https://electronjs.org/releases .
15.05.19 09:55:01 (+0200)  main   Read about Electron support at https://electronjs.org/docs/tutorial/support#supported-versions .
15.05.19 09:55:01 (+0200)  main  [49:0515/075501.423968:ERROR:bus.cc(427)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
15.05.19 09:55:01 (+0200)  main  [49:0515/075501.482069:WARNING:audio_manager.cc(317)] Multiple instances of AudioManager detected
15.05.19 09:55:01 (+0200)  main  [49:0515/075501.482132:WARNING:audio_manager.cc(278)] Multiple instances of AudioManager detected
15.05.19 09:55:01 (+0200)  main  [49:0515/075501.621108:ERROR:bus.cc(427)] Failed to connect to the bus: /usr/bin/dbus-launch terminated abnormally without any error message
15.05.19 09:55:01 (+0200)  main  [49:0515/075501.991922:ERROR:browser_gpu_channel_host_factory.cc(125)] Failed to create channel.
15.05.19 09:55:01 (+0200)  main  [49:0515/075501.992076:ERROR:browser_gpu_channel_host_factory.cc(125)] Failed to create channel.
15.05.19 09:55:01 (+0200)  main  [49:0515/075501.992499:ERROR:browser_gpu_channel_host_factory.cc(125)] Failed to create channel.
15.05.19 09:55:01 (+0200)  main  [49:0515/075501.993226:ERROR:browser_gpu_channel_host_factory.cc(125)] Failed to create channel.
15.05.19 09:55:01 (+0200)  main  [49:0515/075501.993738:ERROR:browser_gpu_channel_host_factory.cc(125)] Failed to create channel.

@bojrnuppeke will give it a try on the a device that we have at hand and let you know what we see. Will keep you posted!

Otherwise, the display part does work?

Yes, the display part works as intended. Thanks for taking the time @imrehg!