Amiberry Autostart problem on tinkerboard

Hi
I have asus tinkerboard and i installed dietpi on it
and i would like to every time i start dietpie, amiberry will automatic boot.
i installed amiberry from optimized software and set it to automatic boot but each time i reboot dietpi goes to command line
and amiberry not run.
please help me

best regards
m.m

Hi,

many thanks for your message. I did a quick test on my RPi3B+ and Amiberry is starting fine on reboot.

Do you see any error message on screen during boot?

hi
it says only amiberry.service is authorized or started.
is there any way to start amiberry manually from cmd?
thanks

Hi
i Tried with my rpi3 and it is worked very fine.
but with tinkerboard autostart not worked.

any solutions?

best regards
m.m

Please try to start the service manually: systemctl start amiberry
Also the service logs might give a hint:

systemctl status amiberry
journalctl -u amiberry

thanx
I will try.

hi
i use systemctl status amiberry

i found the problem but how can i solve?

the problem is :

unable to create window:could not initialize opengl /gles library

Hmm, I fear that there is some incompatibility with the Mali/GPU drivers and the installed libraries. I’ll have a closer look.

Can you please paste the output of the following commands:

apt show libmali-rk-midgard-t76x-r14p0-r0p0
ls -l /usr/lib/arm-linux-gnueabihf/*GL*

here is the result in attachment

Hehe, note the line break, at best execute the first line separately, then the second line :wink:.

Sorry

status

Hi,

if possible, connect via SSH to your system and copy/past the result. That’s easier than reading screen shots :wink:

Okay, lets go through the following tests:

cd /tmp
wget https://mirrors.netix.net/armbian/apt/pool/buster-desktop/libm/libmali-rk/libmali-rk-midgard-t76x-r14p0-r0p0_1.6-1-0armbian1_armhf.deb
dpkg -i --force-all libmali-rk-midgard-t76x-r14p0-r0p0_1.6-1-0armbian1_armhf.deb
systemctl restart amiberry
# If it still fails try the Mesa drivers
apt install libgles2 libegl1 libgbm1
systemctl restart amiberry

If (only) the last works, I will need to either build SDL2 against the matching development package of the Mali drivers we use, keep using the default Mesa drivers. AFAIK the Mesa drivers do not serve good performance with the version shipped in Debian Buster. Probably I take this as a chance to build the newest Mesa drivers with much better performance/support for Mali graphics, from what I read.

hi

the problem remains after executing first and second line :

cd /tmp
wget https://mirrors.netix.net/armbian/apt/pool/buster-desktop/libm/libmali-rk/libmali-rk-midgard-t76x-r14p0-r0p0_1.6-1-0armbian1_armhf.deb
dpkg -i --force-all libmali-rk-midgard-t76x-r14p0-r0p0_1.6-1-0armbian1_armhf.deb
systemctl restart amiberry

If it still fails try the Mesa drivers

apt install libgles2 libegl1 libgbm1
systemctl restart amiberry


root@DietPi:~# systemctl status amiberry
● amiberry.service - Amiberry Amiga Emulator (DietPi)
Loaded: loaded (/etc/systemd/system/amiberry.service; disabled; vendor preset
: enabled)
Active: failed (Result: exit-code) since Sat 2020-11-07 17:51:41 G
MT; 3min 12s ago
Docs: https://github.com/midwan/amiberry/wiki
Process: 785 ExecStart=/mnt/dietpi_userdata/amiberry/amiberry (code=ex
ited, status=255/EXCEPTION)
Main PID: 785 (code=exited, status=255/EXCEPTION)

Nov 07 17:51:40 DietPi systemd[1]: Started Amiberry Amiga Emulator (DietPi).
Nov 07 17:51:41 DietPi amiberry[785]: Unable to create window: Could not initial
ize EGL
Nov 07 17:51:41 DietPi systemd[1]: amiberry.service: Mai
n process exited, code=exited, status=255/EXCEPTION
Nov 07 17:51:41 DietPi systemd[1]: amiberry.service: Fai
led with result ‘exit-code’.

root@DietPi:/tmp# wget https://mirrors.netix.net/armbian/apt/pool/buster-desktop/libm/libmali-rk/libmali-rk-midgard-t76x-r14p0-r0p0_1.6-1-0armbian1_armhf.deb
–2020-11-07 18:04:06-- https://mirrors.netix.net/armbian/apt/pool/buster-desktop/libm/libmali-rk/libmali-rk-midgard-t76x-r14p0-r0p0_1.6-1-0armbian1_armhf.deb
Resolving mirrors.netix.net (mirrors.netix.net)… 87.121.121.2
Connecting to mirrors.netix.net (mirrors.netix.net)|87.121.121.2|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 7281572 (6.9M)
Saving to: ‘libmali-rk-midgard-t76x-r14p0-r0p0_1.6-1-0armbian1_armhf.deb’

libmali-rk-midgard-t76x-r14p0-r0p0_1.6-1-0armbian1_armhf.de 100%[========================================================================================================================================>] 6.94M 179KB/s in 30s

2020-11-07 18:04:42 (236 KB/s) - ‘libmali-rk-midgard-t76x-r14p0-r0p0_1.6-1-0armbian1_armhf.deb’ saved [7281572/7281572]

root@DietPi:/tmp# apt install libgles2 libegl1 libgbm1
Reading package lists… Done
Building dependency tree
Reading state information… Done
libegl1 is already the newest version (1.1.0-1).
libgles2 is already the newest version (1.1.0-1).
libgbm1 is already the newest version (18.3.6-2+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

In which order did you run the commands?
The idea was:

cd /tmp
wget https://mirrors.netix.net/armbian/apt/pool/buster-desktop/libm/libmali-rk/libmali-rk-midgard-t76x-r14p0-r0p0_1.6-1-0armbian1_armhf.deb
dpkg -i --force-all libmali-rk-midgard-t76x-r14p0-r0p0_1.6-1-0armbian1_armhf.deb
systemctl restart amiberry


Then check Armbian status.
2. If the first failed:

```text
apt install libgles2 libegl1 libgbm1
systemctl restart amiberry

Then check Armbian status again.

And another thing, could you check:

ls -al /dev/mali*
modinfo mali