RetroELEC Emulationstation/RetroArch/Kodi image for XU4

escalade
Posts: 277
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 15 times
Been thanked: 127 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by escalade »

New image is out, download here.

Code: Select all

- Kodi 18.5 GBM
- Emulationstation (GLESv1/SDL2) and RetroArch (GLESv3/glcore) on Weston/Wayland
- Starts up with Kodi, but can be changed through kernel command line options frontend=ra/frontend=emulationstation/frontend=kodi/frontend=none
- Polished and simplified systemd units for a smoother startup
- Latest 5.4 kernel from @memeka with optimized and minimalized kernel configuration
- Latest libretro cores
- Fixed Emulationstation menu items, working terminal etc.
- Skyscraper
- glmark2
- Antimicro is included but not started by default
I did manage to get Sway up and running with @memeka's gbm compatibility hack and using output transform "flip180" to reverse the image, but there was other issues. I've settled for Weston as it does the job well and seems the most compatible/stable on ARM. Let me know what you guys think, I'm quite happy with the functionality in this build. Next up is submitting all the changes I've done lately, but it's quite the job and time is limited. Will keep hacking on this for sure :)
Last edited by escalade on Mon Dec 02, 2019 4:52 pm, edited 5 times in total.
Maintainer of RetroELEC (XU4 / OGA / x86_64)

User avatar
memeka
Posts: 4420
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 2 times
Been thanked: 60 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by memeka »

@escalade: did you try CAGE compositor?
https://github.com/Hjdskes/cage
it's also based on wlroots, so I was curious if it has the same issue - meaning the issue is with wlroots, or sway?

escalade
Posts: 277
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 15 times
Been thanked: 127 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by escalade »

I know about it but haven't tried. Worth a shot, I'll have a look tomorrow. Also, I could get RetroArch/Emulationstation running fine, but things like glmark2-es-wayland and weston-terminal was a no go on Sway.
Maintainer of RetroELEC (XU4 / OGA / x86_64)

frtorres
Posts: 11
Joined: Fri Nov 29, 2019 5:02 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by frtorres »

escalade wrote:
Thu Nov 21, 2019 7:04 am
New image is out, download here.

Code: Select all

- Kodi 18.5 GBM
- Emulationstation (GLESv1/SDL2) and RetroArch (GLESv3/glcore) on Weston/Wayland
- Starts up with Kodi, but can be changed through kernel command line options frontend=ra/frontend=emulationstation/frontend=kodi/frontend=none
- Polished and simplified systemd units for a smoother startup
- Latest 5.4 kernel from @memeka with optimized and minimalized kernel configuration
- Latest libretro cores
- Fixed Emulationstation menu items, working terminal etc.
- Skyscraper
- glmark2
- Antimicro is included but not started by default
I did manage to get Sway up and running with @memeka's gbm compatibility hack and using output transform "flip180" to reverse the image, but there was other issues. I've settled for Weston as it does the job well and seems the most compatible/stable on ARM. Let me know what you guys think, I'm quite happy with the functionality in this build. Next up is submitting all the changes I've done lately, but it's quite the job and time is limited. Will keep hacking on this for sure :)
First of all, my first message for a big thank you for this XU4 Build. Today I installed and booted kodi ok in a 4K Sony Bravia TV.

Some questions:

1. Is there a chance to have this kodi build working on a 4K display?.. beyond current 1920x1080@60Hz Resolution?
2. I am interested in having my XU4 board to record Dvb-T2 streams (local air TV) in LibreElec. Is it possible to have dvb-t2 drivers available in LibreElec raspberry builds?

Thanks again for this build. :!:

Francisco

User avatar
memeka
Posts: 4420
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 2 times
Been thanked: 60 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by memeka »

1. No. XU4 is limited to 1080p.
Actually most (all?) 4K devices use kodi at 1080p and only show video at 4K. This is because GPU which is used to show Kodi struggles with 4K, but video is bypassing GPU and displayed directly on the output. But in the case of XU4 the output is also limited to 1080p.

escalade
Posts: 277
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 15 times
Been thanked: 127 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by escalade »

@francisco

You have any details what kernel driver and kodi plugin u need?

@memeka

I tried Cage, couldn't get it to run at all it just crashes.
Maintainer of RetroELEC (XU4 / OGA / x86_64)

escalade
Posts: 277
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 15 times
Been thanked: 127 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by escalade »

New image is out:

Code: Select all

- Linux 5.4.1
- Systemd 244
- Latest Xwayland git brings multi buffering
- Updated puae and vice libretro cores gives 1 less frame input lag
- Default to KMS for vice/puae/fuse cores as EDID refresh rate switch won't activate in Wayland
- Activated a NEON optimization for puae-libretro
- Fixed installing addons from LibreELEC repository
- Added audiodecoder.sidplay to Kodi
These users thanked the author escalade for the post (total 2):
odroid (Mon Dec 02, 2019 10:24 am) • rooted (Mon Dec 02, 2019 3:38 pm)
Maintainer of RetroELEC (XU4 / OGA / x86_64)

frtorres
Posts: 11
Joined: Fri Nov 29, 2019 5:02 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by frtorres »

memeka wrote:
Fri Nov 29, 2019 7:00 am
1. No. XU4 is limited to 1080p.
Actually most (all?) 4K devices use kodi at 1080p and only show video at 4K. This is because GPU which is used to show Kodi struggles with 4K, but video is bypassing GPU and displayed directly on the output. But in the case of XU4 the output is also limited to 1080p.
Thanks @memeka.

I was using SPMC and android kodi build with kodi interface at 4k.

Unfortunately, AFAIK SPMC is not currently maintained.

It is true in kodi... 1080p. Lets see what happens. Thanks for your feedback

Chromoris
Posts: 7
Joined: Wed Jul 26, 2017 7:57 am
languages_spoken: english, dutch
ODROIDs: Odroid XU4 + Cloudshell
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by Chromoris »

I no longer see a separate Kodi folder/build. Is this no longer required?

escalade
Posts: 277
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 15 times
Been thanked: 127 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by escalade »

Yes, I decided to make things a bit simpler and build less images. Kodi is now included.
Maintainer of RetroELEC (XU4 / OGA / x86_64)

frtorres
Posts: 11
Joined: Fri Nov 29, 2019 5:02 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by frtorres »

escalade wrote:
Fri Nov 29, 2019 9:42 am
@francisco

You have any details what kernel driver and kodi plugin u need?

@memeka

I tried Cage, couldn't get it to run at all it just crashes.
Thanks escalade for your response.

Yes I have this DVB-T2 adapter: TBS 5520SE DVB-S2X/ Digital TV Tuner USB Box for Live TV. There are drivers that were included in LibreELEC distro.

Please consider these links:

Original linux drivers from OEM:
https://www.tbsdtv.com/download/index.html?path=4&id=43

Drivers from cvh team member (Libreelec), using these drivers to be included in Libreelec
http://cvh.libreelec.tv/

Latest Libreelec versions usually have a DVB Drivers Configuration Addon to install these cvh drivers with a proper kernel.

Hope this helps.

I can test an image with these drivers. Thanks in advance for considering this.

Best Regards, Francisco.

escalade
Posts: 277
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 15 times
Been thanked: 127 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by escalade »

Looks like I forgot to enable DVB drivers in my image, can you try the latest? I've added crazycat, digital_devices, dvb-latest and dvb-firmware as in the Generic build.
Maintainer of RetroELEC (XU4 / OGA / x86_64)

frtorres
Posts: 11
Joined: Fri Nov 29, 2019 5:02 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by frtorres »

escalade wrote:
Fri Dec 06, 2019 2:31 am
Looks like I forgot to enable DVB drivers in my image, can you try the latest? I've added crazycat, digital_devices, dvb-latest and dvb-firmware as in the Generic build.

Thanks escalade. I will test it. (RetroELEC-OdroidXU3.arm-9.1-devel-20191205173858-ea8d1e1.img.gz)

Did you include VDR Backend, present in kodi "Services Menu"? Dvb Utils normally present in LibreElec are also important (just to make sure). :|

Best Regards, Francisco.

escalade
Posts: 277
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 15 times
Been thanked: 127 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by escalade »

New image is out:

Code: Select all

- Linux 5.4.2 rebased @memeka with "odroid-izing" hardkernel patch
- Added Firefox (runs through a Docker container, Wayland native)
- Updated libretro core
These users thanked the author escalade for the post (total 2):
odroid (Tue Dec 10, 2019 9:46 am) • luukvbaal (Fri Dec 13, 2019 8:12 am)
Maintainer of RetroELEC (XU4 / OGA / x86_64)

frtorres
Posts: 11
Joined: Fri Nov 29, 2019 5:02 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by frtorres »

escalade wrote:
Tue Dec 10, 2019 5:45 am
New image is out:

Code: Select all

- Linux 5.4.2 rebased @memeka with "odroid-izing" hardkernel patch
- Added Firefox (runs through a Docker container, Wayland native)
- Updated libretro core
Hi escalade. Thanks for the new image.

I installed it, but unfortunalely dvb-t2 drivers were not included (addon to install them or in kernel)

X4 dmesg when connecting TBS dvb-t2:

[ 1225.762858] usb 3-1.2: USB disconnect, device number 4
[ 1228.802382] usb 3-1.2: new high-speed USB device number 5 using xhci-hcd
[ 1228.902591] usb 3-1.2: New USB device found, idVendor=734c, idProduct=5521, bcdDevice= 0.01
[ 1228.902597] usb 3-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0

Could you please check. Thanks.

Francisco.

escalade
Posts: 277
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 15 times
Been thanked: 127 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by escalade »

Sorry but unless you can point me to what's needed to support it, there's not much I can/will do as I don't have the hardware myself.
Maintainer of RetroELEC (XU4 / OGA / x86_64)

frtorres
Posts: 11
Joined: Fri Nov 29, 2019 5:02 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by frtorres »

escalade wrote:
Wed Dec 11, 2019 9:18 pm
Sorry but unless you can point me to what's needed to support it, there's not much I can/will do as I don't have the hardware myself.
Thanks Escalade.

I already pointed it out in a previous reply. See above, please. Anyway I repeat the information hoping it helps:

I have this DVB-T2 adapter: TBS 5520SE DVB-S2X/ Digital TV Tuner USB Box for Live TV. There are drivers that were included in LibreELEC distro.

Please consider these links:

Original linux drivers from OEM:
https://www.tbsdtv.com/download/index.html?path=4&id=43

Drivers from cvh team member (Libreelec), using these drivers to be included in Libreelec
http://cvh.libreelec.tv/

Latest Libreelec versions usually have a DVB Drivers Configuration Addon to install these cvh drivers with a proper kernel.

Regards and thans in advance for your help.

escalade
Posts: 277
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 15 times
Been thanked: 127 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by escalade »

Sorry, if it's not in the upstream kernel I'm not going to support it.
Maintainer of RetroELEC (XU4 / OGA / x86_64)

frtorres
Posts: 11
Joined: Fri Nov 29, 2019 5:02 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by frtorres »

Ok thanks.

rinku
Posts: 18
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

Post by rinku »

Thanks for the update.
However I have an issue with mounting NTFS drives with the last update. When I try to

Code: Select all

mount /dev/sdaX /media/XXX
, I get an error

Code: Select all

modprobe: FATAL: Module fuse not found in directory /lib/modules/
and the drive is not mounted. Any fix ?

escalade
Posts: 277
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 15 times
Been thanked: 127 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by escalade »

Sure, seems I left out the fuse module. New image has been uploaded.
Maintainer of RetroELEC (XU4 / OGA / x86_64)

rinku
Posts: 18
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

Post by rinku »

escalade wrote:
Mon Dec 16, 2019 12:33 am
Sure, seems I left out the fuse module. New image has been uploaded.
Thank you. The images on google drive are still dated of Decemeber 9th. Did you upload them elsewhere ?

escalade
Posts: 277
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 15 times
Been thanked: 127 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by escalade »

Look again, seems like the upload failed.
Maintainer of RetroELEC (XU4 / OGA / x86_64)

rinku
Posts: 18
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

Post by rinku »

Yup, it's alright now. Thank you !

bardem
Posts: 16
Joined: Sun Oct 29, 2017 9:34 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 3 times
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by bardem »

Love this image so far, it looks like the best implementation of Kodi I've yet seen in an odroid image.

Any idea how difficult it might be to install moonlight? I liked ORA but they leave Kodi on the backburner over there..

rinku
Posts: 18
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

Post by rinku »

New issue on the latest image : ppsspp doesn't work anymore. Can you do something about it ?
Edit: ppsspp is missing from /usr/bin/
I tried the ppsspp_libretro retroarch core, but it's very bugged and unplayable. Do you plan to put back the standalone ppsspp binaries ?

escalade
Posts: 277
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 15 times
Been thanked: 127 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by escalade »

@bardem

Not difficult at all, I've uploaded a new image with moonlight-embedded on it. I haven't integrated or tested it in any way though, as I don't use it myself.

@rinku

I've added it back in the latest image. I'd like to use only libretro cores at this point, but the ppsspp core is indeed horribly slow on the XU4.
These users thanked the author escalade for the post:
bardem (Fri Jan 03, 2020 7:25 am)
Maintainer of RetroELEC (XU4 / OGA / x86_64)

rinku
Posts: 18
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

Post by rinku »

escalade wrote:
Fri Dec 20, 2019 12:23 am
I've added it back in the latest image. I'd like to use only libretro cores at this point, but the ppsspp core is indeed horribly slow on the XU4.
It's not only slow, I can't even get video or background images working (tried with crisis core and MGS Peace Walker). Anyway thanks for adding it back.

bardem
Posts: 16
Joined: Sun Oct 29, 2017 9:34 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 3 times
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by bardem »

Wow thanks! I'll see if I can get it working and report back.

shepo
Posts: 30
Joined: Wed Jan 14, 2015 6:19 am
languages_spoken: english
ODROIDs: Odroid-XU4, Odroid-C2, Odroid Go Advance
Location: Brough, England
Has thanked: 0
Been thanked: 2 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by shepo »

works fine with x265 files up to now, great work
These users thanked the author shepo for the post (total 2):
escalade (Thu Dec 26, 2019 10:39 am) • odroid (Thu Dec 26, 2019 10:56 am)

escalade
Posts: 277
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 15 times
Been thanked: 127 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by escalade »

Cool, thanks for the feedback.
Maintainer of RetroELEC (XU4 / OGA / x86_64)

escalade
Posts: 277
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 15 times
Been thanked: 127 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by escalade »

New images uploaded:

Code: Select all

- Linux 5.4.6
- F2FS as default filesystem (both image and installer)
- Kodi is now set up to use ALSA only to fix passthrough issues
- The usual updates to cores etc.
- Latest Kodi Leia git brings some bugfixes

For anyone having issues, post logs from the SMB share "Logs".
These users thanked the author escalade for the post:
odroid (Tue Dec 31, 2019 8:48 am)
Maintainer of RetroELEC (XU4 / OGA / x86_64)

User avatar
odroid
Site Admin
Posts: 35846
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1299 times
Been thanked: 907 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by odroid »

@escalade,
We sent you email and PM. Please check it when you have time.
These users thanked the author odroid for the post:
escalade (Thu Jan 02, 2020 1:35 am)

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

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by ciroreed »

hey, nice project tho,

I have some issues. First of all I couldn't boot as is on my xu4, I had to manually update boot.ini to remove the code where boot script is testing for xu3 or xu4 and put directly this line alone:

Code: Select all

fatload mmc 0:1 0x44000000 exynos5422-odroidxu4.dtb
After that, due to my monitor I had to manually select this line aw:

Code: Select all

setenv videoconfig "drm_kms_helper.edid_firmware=edid/1360x768.bin"
So finally, I've been able to boot the system, etc but I don't have any sound. I've tested other xu4 images so far. For instance batocera image, last release, which works fine. But I wana run this project, I really like the idea.

Any help appreciated :)

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

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by ciroreed »

Just to provide more info about: This thread was about batocera, apparently they put kodi back in batocera but sound isn't working either, but only when kodi is running.
https://forum.batocera.org/d/3003-kodi- ... st-release

So my question is, how does batocera switches from ES to kodi? does it boots? if so, maybe someone can figure out the differences between kodi and ES bootstraping.

I have no clue

bardem
Posts: 16
Joined: Sun Oct 29, 2017 9:34 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 3 times
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by bardem »

+1 on the "no audio" problem. Been having it since the release on the 19th. I thought the problem was on my end since I'm fairly inexperienced with this stuff, but seeing someone else report it first confirms it's (possibly) not just me.

I also noticed that if I reboot the system, the next time it comes up it cannot connect to my wifi network. If I fully power off and boot it back up using the physical button on the system, then it DOES automatically connect again at startup.

EDIT: To be clear, there IS audio, but it only plays milliseconds of whatever is on screen before cutting out, resulting in a continuous popping sound.
Last edited by bardem on Fri Jan 03, 2020 7:41 am, edited 1 time in total.

bardem
Posts: 16
Joined: Sun Oct 29, 2017 9:34 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 3 times
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by bardem »

I've uploaded a pastebin of my Kodi log here: https://pastebin.com/5dCZjgEL

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

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by ciroreed »

bardem wrote:
Fri Jan 03, 2020 6:50 am
EDIT: To be clear, there IS audio, but it only plays milliseconds of whatever is on screen before cutting out, resulting in a continuous popping sound.
I don't have any sound whatsoever :( I hope my issue is related to yours

bardem
Posts: 16
Joined: Sun Oct 29, 2017 9:34 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 3 times
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by bardem »

Looks like it depends on the app for me, maybe. Like I get zero audio on Youtube, and intermittent stuttering on my Giant Bomb app.

escalade
Posts: 277
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 15 times
Been thanked: 127 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by escalade »

I will look into these issues when I have time, little busy with work after new year but I think I will have time this weekend. Sound is working for me, but I am using a USB audio adapter as I'm connected to an LCD.

For anyone technical, in the latest release I am using ALSA for Kodi and Pulseaudio for anything else. The kodi.service unit has KODI_AE_SINK=ALSA defined and suspends Pulseaudio. This is in order to allow for audio passthrough with ALSA. I suppose there might be an issue with this and the onboard audio, I will need to connect my XU4 to my TV to test. A replacement kodi.service can be placed in /storage/.config/system.d, previous builds used Pulseaudio. KODI_AE_SINK=PULSE might be a quickfix, in addition to removing the pacmd suspend commands from the .service file.

What about emulators, did anyone test? Is sound working there?
These users thanked the author escalade for the post:
bardem (Sun Jan 05, 2020 8:35 am)
Maintainer of RetroELEC (XU4 / OGA / x86_64)

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

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by paher »

Hi!

I am using sound via HDMI. I had a fast and stuttering sound in kodi with last image. The sound became correct after replacing ALSA with PULSE

bardem
Posts: 16
Joined: Sun Oct 29, 2017 9:34 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 3 times
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by bardem »

paher wrote:
Sun Jan 05, 2020 6:40 am
Hi!

I am using sound via HDMI. I had a fast and stuttering sound in kodi with last image. The sound became correct after replacing ALSA with PULSE
You wouldn't happen to be able to walk me through that process real quick, would you?

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

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by paher »

Copy kodi.service file from /usr/lib/systemd/system to /storage/.config/system.d.

Change lines

Environment=KODI_AE_SINK=PULSE
#ExecStartPre=/usr/bin/pacmd suspend 1
These users thanked the author paher for the post:
bardem (Tue Jan 07, 2020 3:22 am)

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

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by ciroreed »

escalade wrote:
Sun Jan 05, 2020 1:38 am
What about emulators, did anyone test? Is sound working there?
ES becomes completely freeze on load, retroarch has no sound too

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

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by ciroreed »

escalade wrote:
Sun Jan 05, 2020 1:38 am
I will look into these issues when I have time, little busy with work after new year but I think I will have time this weekend. Sound is working for me, but I am using a USB audio adapter as I'm connected to an LCD.

For anyone technical, in the latest release I am using ALSA for Kodi and Pulseaudio for anything else. The kodi.service unit has KODI_AE_SINK=ALSA defined and suspends Pulseaudio. This is in order to allow for audio passthrough with ALSA. I suppose there might be an issue with this and the onboard audio, I will need to connect my XU4 to my TV to test. A replacement kodi.service can be placed in /storage/.config/system.d, previous builds used Pulseaudio. KODI_AE_SINK=PULSE might be a quickfix, in addition to removing the pacmd suspend commands from the .service file.

What about emulators, did anyone test? Is sound working there?
Doing so, no sound either :\

Code: Select all


# login through ssh..

LibreELEC:~ # cd /storage/.config/system.d/
LibreELEC:~/.config/system.d # pwd
/storage/.config/system.d
LibreELEC:~/.config/system.d # ls
README                  kodi.service            openvpn.service.sample
cifs.mount.sample       nfs.mount.sample
LibreELEC:~/.config/system.d # cat kodi.service 
# /usr/lib/systemd/system/kodi.service
# /usr/lib/systemd/system/kodi.service

[Unit]
Description=Kodi Media Center
Wants=kodi.target
Conflicts=weston.service sway.service xorg.service emulationstation.service

[Service]
Environment=PULSE_RUNTIME_PATH=/run/pulse
# Environment=KODI_AE_SINK=ALSA
Environment=KODI_AE_SINK=PULSE
Environment=__GL_YIELD=USLEEP
Environment=HOME=/storage
Environment=KODI_TEMP=/storage/.kodi/temp
Environment=KODI_HOME=/usr/share/kodi/
EnvironmentFile=-/run/libreelec/kodi.conf
EnvironmentFile=-/run/libreelec/debug/kodi.conf
ExecStartPre=-/usr/lib/kodi/kodi-config
# ExecStartPre=/usr/bin/pacmd suspend 1
ExecStart=/usr/lib/kodi/kodi.sh --standalone -fs $KODI_ARGS $KODI_DEBUG
ExecStop=/bin/kill -TERM $MAINPID
ExecStopPost=/usr/bin/pacmd suspend 0
ExecStopPost=-/usr/lib/kodi/kodi-safe-mode
TimeoutStopSec=5
Restart=always
RestartSec=2
StartLimitInterval=0
LimitNOFILE=16384
LibreELEC:~/.config/system.d # 

FYI: I using hdmi and, because of my TV, I have to force the resolution through boot.ini

bardem
Posts: 16
Joined: Sun Oct 29, 2017 9:34 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 3 times
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by bardem »

Thanks Paher, that got audio working for me

escalade
Posts: 277
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 15 times
Been thanked: 127 times
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by escalade »

New build uploaded:

Code: Select all

- Kodi uses Pulseaudio by default again
- Fixed some Plymouth (boot splash) / installer issues
- Updated OpenAL and alsa-lib to latest git
- The usual RetroArch/libretro updates
Let me know if this solves the audio issues.
These users thanked the author escalade for the post (total 2):
odroid (Tue Jan 07, 2020 9:47 am) • paher (Wed Jan 08, 2020 5:36 am)
Maintainer of RetroELEC (XU4 / OGA / x86_64)

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

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by ciroreed »

escalade wrote:
Tue Jan 07, 2020 5:24 am
Let me know if this solves the audio issues.
Still no audio :(

Which files/logs do I need to provide more context on this issue?

thanks!

bardem
Posts: 16
Joined: Sun Oct 29, 2017 9:34 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 3 times
Been thanked: 0
Contact:

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by bardem »

Can you test your current setup on a TV? Something with a more "normal" resolution; I've found in the past that when I needed to comment out my specific resolution in the boot file (on other images, to be clear), that I would continue to have issues down the line.

Not saying that you're shit out of luck if it ends up working on a TV, but it would help narrow down the issues between 1) broken image and 2) broken setup.

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

Re: RetroELEC Emulationstation/RetroArch/Kodi image for XU4

Post by ciroreed »

bardem wrote:
Wed Jan 08, 2020 1:06 pm
Can you test your current setup on a TV? Something with a more "normal" resolution; I've found in the past that when I needed to comment out my specific resolution in the boot file (on other images, to be clear), that I would continue to have issues down the line.

Not saying that you're shit out of luck if it ends up working on a TV, but it would help narrow down the issues between 1) broken image and 2) broken setup.
I think that might be a posibility. I've tested many other images and audio was always a concern. However with batocera, audio works fine and I had to select (comenting boot.ini) as well. I might be able to test it with a different display sooner.

Thanks!

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 2 guests