RetroELEC Emulationstation/RetroArch/Kodi image for XU4

ring-0
Posts: 24
Joined: Fri Jan 03, 2020 4:59 am
languages_spoken: english
ODROIDs: XU4 and N2
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Unread post by ring-0 » Thu Jan 09, 2020 7:34 am

This is awesome :-)

ANy chance you can publish sources so I can contribute modifications here and there? And rebuild.

What cores are included?

I was working on this with a minimal Ubuntu image and AreaScout's GBM work, but encountered performance and compilation issues with some lr cores. I modified RetroPie to acknowledge the presence of the GBM drive in XU4 boards and adapt some things to it, but it's still a work in progress.

How is N64 emulation with your image? I noticed major issues with DYNAREC and some ROMs.

ring-0
Posts: 24
Joined: Fri Jan 03, 2020 4:59 am
languages_spoken: english
ODROIDs: XU4 and N2
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Unread post by ring-0 » Thu Jan 09, 2020 8:59 am

I wrote this to help mount external storage ROM directories to the /storage/rom mountpoints (it will ignore already mounted directories and also automatically leverage whatever cores are supported by checking for the existent rom directory):

Code: Select all

#!/bin/sh

ROMSDEVICE=/media/ROMS

for romcore in `ls /storage/roms`;
do
	if [[ -d "${ROMSDEVICE}" ]];
	then
		ROMDIR="${ROMSDEVICE}/$romcore"
		if [[ -d "${ROMDIR}" ]];
		then
			echo "Mounting ${ROMDIR} to /storage/roms/$romcore ..."
			mountpoint -q "/storage/roms/$romcore" || mount -t none -o bind $ROMDIR "/storage/roms/$romcore"
		fi
	fi
done
Is there a place to call this from boot? a la rc.local

escalade
Posts: 142
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 5 times
Been thanked: 38 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Unread post by escalade » Thu Jan 09, 2020 10:08 am

What’s the output of «pactl list sinks»? I will fix it just need to find some time, little busy with work atm :)
Maintainer of RetroELEC (XU4 support!)

escalade
Posts: 142
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 5 times
Been thanked: 38 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Unread post by escalade » Thu Jan 09, 2020 8:33 pm

Ok, so I've tested my XU4 with the onboard audio and I can't reproduce the reported audio issue. I have it connected to my soundbar with HDMI and I have audio in Emulationstation, Kodi and RetroArch with a fresh image.

@ring-0

Sure, you can put it in /storage/.config/autostart.sh. There's also /storage/.config/system.d for custom service units. I have tons of stuff after the transition to Wayland that I haven't commited yet, just really pressed for time but I will try to get around to it.

EDIT: N64 emulation runs great here.
Maintainer of RetroELEC (XU4 support!)

ciroreed
Posts: 34
Joined: Thu Dec 29, 2016 10:35 pm
languages_spoken: english, spanish, french
ODROIDs: C2, XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Unread post by ciroreed » Fri Jan 10, 2020 7:13 am

escalade wrote:
Thu Jan 09, 2020 10:08 am
What’s the output of «pactl list sinks»? I will fix it just need to find some time, little busy with work atm :)
Hope it helps :|

suspended lol, im going to try this out https://unix.stackexchange.com/a/171925/180099

EDIT: file system is read only, and im unable to find the root fs by mounting the sd on my laptop :\\ (im a noob)

Code: Select all

Sink #1
        State: SUSPENDED
        Name: alsa_output.0.stereo-fallback
        Description: Built-in Audio Stereo
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 48000Hz
        Channel Map: front-left,front-right
        Owner Module: 10
        Mute: no
        Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.0.stereo-fallback.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "Primary (*)"
                alsa.id = "Primary (*)"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "Odroid-XU4"
                alsa.long_card_name = "Odroid-XU4"
                device.bus_path = "/devices/platform/sound/sound/card0"
                sysfs.path = "/devices/platform/sound/sound/card0"
                device.form_factor = "internal"
                device.string = "hw:0"
                device.buffering.buffer_size = "384000"
                device.buffering.fragment_size = "192000"
                device.access_mode = "mmap+timer"
                device.profile.name = "stereo-fallback"
                device.profile.description = "Stereo"
                device.description = "Built-in Audio Stereo"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card"
        Ports:
                analog-output: Analog Output (priority: 9900)
        Active Port: analog-output
        Formats:
                pcm


ring-0
Posts: 24
Joined: Fri Jan 03, 2020 4:59 am
languages_spoken: english
ODROIDs: XU4 and N2
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Unread post by ring-0 » Fri Jan 10, 2020 8:21 am

escalade wrote:
Thu Jan 09, 2020 8:33 pm
Ok, so I've tested my XU4 with the onboard audio and I can't reproduce the reported audio issue. I have it connected to my soundbar with HDMI and I have audio in Emulationstation, Kodi and RetroArch with a fresh image.

@ring-0

Sure, you can put it in /storage/.config/autostart.sh. There's also /storage/.config/system.d for custom service units. I have tons of stuff after the transition to Wayland that I haven't commited yet, just really pressed for time but I will try to get around to it.

EDIT: N64 emulation runs great here.
Sweet, that is the route I went thru.

Feel free to maintain a devel branch, I can always take a look.

Is there any reason not to include some other cores?

BTW have you observed Emulationstation launching from Kodi getting stuck at the Wayland screen (grey background with mouse pointer).

Completely unrelated but annoying: I can't seem to find a way to keep a consistent profile for the Xbox 360 controller across ES/Retroarch/Kodi (Kodi just works though).

ring-0
Posts: 24
Joined: Fri Jan 03, 2020 4:59 am
languages_spoken: english
ODROIDs: XU4 and N2
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Unread post by ring-0 » Sat Jan 11, 2020 2:54 am

Hm, I can confirm persistent issues with weston. Launching ES results in a gray/Weston screen with no process launching.
I wonder how this can be traced.

escalade
Posts: 142
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 5 times
Been thanked: 38 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Unread post by escalade » Sat Jan 11, 2020 9:33 am

ring-0 wrote:
Fri Jan 10, 2020 8:21 am
Feel free to maintain a devel branch, I can always take a look.
Like I said, it's a question of having the time to do so.
Is there any reason not to include some other cores?
Which cores?
BTW have you observed Emulationstation launching from Kodi getting stuck at the Wayland screen (grey background with mouse pointer).
Completely unrelated but annoying: I can't seem to find a way to keep a consistent profile for the Xbox 360 controller across ES/Retroarch/Kodi (Kodi just works though).
All three apps have separate controller configuration, so I'm not quite sure what you are asking for.

I've uploaded a new build which reverts to using KMS/DRM for Emulationstation/RetroArch, as it seems Emulationstation has some issues with Wayland and we don't gain anything from running emulators on an additional graphics layer on the XU4 anyways.
Maintainer of RetroELEC (XU4 support!)

ciroreed
Posts: 34
Joined: Thu Dec 29, 2016 10:35 pm
languages_spoken: english, spanish, french
ODROIDs: C2, XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Unread post by ciroreed » Sun Jan 12, 2020 10:03 pm

Why fs (/) is readonly? and how can i solve it?

escalade
Posts: 142
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 5 times
Been thanked: 38 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Unread post by escalade » Mon Jan 13, 2020 4:25 pm

You can't. This image is based on LibreELEC, which has a read-only squashfs root. You'll notice that the /flash partition is only 512MB and contains a KERNEL and a SYSTEM (squashfs) file. This layout enables it to boot fast and be upgraded by dropping an image file in the /storage/.update folder. Most relevant things can be configured through Kodi by writing to files in the /storage partition. There isn't any package manager but you can run any distribution by using Docker.
Maintainer of RetroELEC (XU4 support!)

ciroreed
Posts: 34
Joined: Thu Dec 29, 2016 10:35 pm
languages_spoken: english, spanish, french
ODROIDs: C2, XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Unread post by ciroreed » Tue Jan 14, 2020 7:18 pm

escalade wrote:
Mon Jan 13, 2020 4:25 pm
You can't. This image is based on LibreELEC, which has a read-only squashfs root. You'll notice that the /flash partition is only 512MB and contains a KERNEL and a SYSTEM (squashfs) file. This layout enables it to boot fast and be upgraded by dropping an image file in the /storage/.update folder. Most relevant things can be configured through Kodi by writing to files in the /storage partition. There isn't any package manager but you can run any distribution by using Docker.
R.I.P.

edit: nvm i've installed kodi on a raw ubuntu image soo.. gl

thanks!

escalade
Posts: 142
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 5 times
Been thanked: 38 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Unread post by escalade » Tue Jan 14, 2020 9:35 pm

Use whatever large and unoptimized distro that suits you ;)
Maintainer of RetroELEC (XU4 support!)

ciroreed
Posts: 34
Joined: Thu Dec 29, 2016 10:35 pm
languages_spoken: english, spanish, french
ODROIDs: C2, XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Unread post by ciroreed » Wed Jan 15, 2020 3:04 am

escalade wrote:
Tue Jan 14, 2020 9:35 pm
Use whatever large and unoptimized distro that suits you ;)
just got another tv, and i've tried with the RETROElec, but no sound either. I just wana have sound and, I have no clue why im the only one sufering issues

escalade
Posts: 142
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 5 times
Been thanked: 38 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Unread post by escalade » Wed Jan 15, 2020 5:01 am

You can change Pulseaudio settings in /storage/.config/pulse-daemon.conf.d, this image has Pulseaudio 13 and alsa-lib/alsa-utils 1.2.1. Start reading Pulseaudio documentation, figure it out and let me know what you find. If tinkering is not your cup of tea, perhaps Ubuntu is a better choice :)
Maintainer of RetroELEC (XU4 support!)

escalade
Posts: 142
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 5 times
Been thanked: 38 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Unread post by escalade » Wed Jan 15, 2020 9:16 pm

New build is out:

Code: Select all

- Does periodic (weekly) FSTRIM instead of continuous discard
- Optimized cpufreq settings by using conservative governor and switching to performance when starting emulators thus running cool and quiet when not gaming
- Various under the hood plumbing and updates
These users thanked the author escalade for the post:
odroid (Thu Jan 16, 2020 11:52 am)
Maintainer of RetroELEC (XU4 support!)

escalade
Posts: 142
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 5 times
Been thanked: 38 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Unread post by escalade » Fri Jan 17, 2020 7:35 am

@ciroreed

It seems the latest alsa-lib split out something called the UCM which handles topology for advanced sound setups, perhaps that could be the reason you don't have audio. I've added that and also updated Pulseaudio to the latest git. Could you try the latest image?

If it still doesn't work, I'd be interested in the zipfile that you can find under the SMB share "Logs" on your XU4 after updating.
Maintainer of RetroELEC (XU4 support!)

iep
Posts: 1
Joined: Fri Jan 17, 2020 12:54 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Unread post by iep » Fri Jan 17, 2020 2:11 pm

Would it be possible to add Wireguard?

Also, off a fresh version of the latest image Kodi isn't starting. It seems to be giving this error:

Code: Select all

/usr/lib/kodi/kodi.bin: error while loading shared libraries: libXrandr.so.2: cannot open shared object file: No such file or directory

escalade
Posts: 142
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 5 times
Been thanked: 38 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Unread post by escalade » Fri Jan 17, 2020 6:01 pm

Sorry, seems I forgot to do a clean after doing a panfrost build deps got messed up. Doing a rebuild should be ready in a couple of hours. Yes, I will add wireguard.
Maintainer of RetroELEC (XU4 support!)

paher
Posts: 9
Joined: Sun May 12, 2019 1:07 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Unread post by paher » Fri Jan 17, 2020 10:51 pm

I had flashing kodi interface with latest image (from panfrost directory). Downgrade image fixed it

rinku
Posts: 14
Joined: Tue May 28, 2019 1:08 am
languages_spoken: english, french
Has thanked: 1 time
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Unread post by rinku » Sat Jan 25, 2020 1:45 am

I have an issue using twitch addon on kodi, it just crashes when I open a stream. Here's the dmesg output:

Code: Select all

[583870.526037] s5p_mfc_handle_error:468: Interrupt Error: 00000066
[583870.526105] s5p_mfc_queue_setup:915: State seems invalid. State = 109, vq->type = 9
[583870.526114] reqbufs_capture:542: Failed allocating buffers for CAPTURE queue
[583870.526314] vidioc_qbuf:603: Call on QBUF after unrecoverable error
I had this issue a long time ago, just wanted to check if it was fixed. But maybe there's not much to do about it

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 1 guest