RetroELEC for the Odroid Go Advance (AArch64)

Third party OS images and hardware mods
escalade
Posts: 204
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 7 times
Been thanked: 64 times
Contact:

RetroELEC for the Odroid Go Advance (AArch64)

Post by escalade » Fri Jun 19, 2020 9:21 am

So I've finally got around to have some fun with the OGA sample I got (thanks Hardkernel!), and I've come a long way in getting my LibreELEC / LAKKA inspired remix working on it. Some may be familiar with it as I've been building it for the XU4 / x86_64 as well.

- LibreELEC base (appliance like "JeOS" with fast bootup, easy upgrades, easy setup)
- Boots to Emulationstation (can be changed with kernel command line options)
- RetroArch compiled for GLES3 with OGA driver and librga support (uses glcore on DRM/KMS with RGA scaling by default)
- Areascout's SDL2 fork
- Plymouth boot splash
- PPSSPP git (DRM/KMS using SDL2)
- Kodi 18.7.1 Leia (running on Wayland with Weston compositor)
- Weston desktop (controllable by joypad) with a terminal, Firefox, CMST (wireless manager), pavucontrol-qt (audio configuration) and cava (audio visualizer)
- Weston RDP and VNC backends available # systemctl start weston-rdp will start a 1280x720 Weston session in the background that is controllable using Microsoft Remote Desktop (TLS encryption)
- PulseAudio sound server
- Pulseaudio BT modules (https://github.com/EHfive/pulseaudio-modules-bt) offers A2DP codecs: Sony LDAC, aptX, aptX HD and AAC
- Pipewire and GStreamer multimedia framework
- V4L2 utilities and v4l2loopback
Transmission, Plex and SABnzbd available as systemd services
- F2FS used for the storage partition
- Headphone sensing script borrowed from Shanti Gilbert's EmuELEC
- NFSv4 server (/media and /storage/roms shared by default)
- AutoFS lets you access NFS shares by accessing /net/hostname/ in the filesystem
- Everything is built using GCC 10.1.0 with flags -mcpu=cortex-a35 -O2 -flto (most cores use -O3)
- Flatpak 1.8 lets you install additional software from the Flathub
- The OGA gamepad is configured in every app - plug 'n play (1.0 for now, will include autoconfig for 1.1 soon)
- The chdman tool from MAME is included to convert cue/iso to CHD
- AArch64 and ARM images available
- The PCSX ReARMed (did I get that right) on the AArch64 image is compiled with my ARM toolchain and then some manual labor to get a quick and easy multilib setup specifically for that core (it was too slow with lightrec)

Included RetroArch cores:

desmume
dosbox_core
ecwolf
fbneo
flycast
fuse
genesis_plus_gx
mame2003_plus
mgba
mupen64plus_next
pcsx_rearmed (32-bit)
puae
quicknes
scummvm
snes9x
vice_x64
yabasanshiro

All are latest git versions and tuned for the OGA. I must say it's quite a nice little unit, it really shines with the PCSX core I think. I'm also fond of the C64/Amiga cores. A picture speak louder than words, so let's have a look:


This is still a work in progress, so if you find something not working do let me know.

Download area is here: https://drive.google.com/drive/folders/ ... dygpjyZ0nQ
Default user is root password retroelec
Last edited by escalade on Fri Jul 10, 2020 7:33 am, edited 18 times in total.
These users thanked the author escalade for the post (total 7):
odroid (Fri Jun 19, 2020 9:26 am) • npaladin2000 (Fri Jun 19, 2020 9:50 am) • neonlightning (Fri Jun 19, 2020 10:28 am) • ducadan (Sat Jun 20, 2020 8:57 pm) • mad_ady (Mon Jun 22, 2020 11:53 pm) • joy (Fri Jun 26, 2020 3:36 pm) • sydarn2 (Fri Jul 10, 2020 1:02 am)
Maintainer of RetroELEC (XU4 / OGA / x86_64)

User avatar
npaladin2000
Posts: 144
Joined: Sun Jan 05, 2020 1:39 pm
languages_spoken: english
ODROIDs: Odroid Go Advance 1.0, 1.1
Has thanked: 23 times
Been thanked: 33 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by npaladin2000 » Fri Jun 19, 2020 9:52 am

Looks interesting, welcome to the club!

NOirBRight
Posts: 8
Joined: Mon Feb 17, 2020 1:20 pm
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by NOirBRight » Fri Jun 19, 2020 11:09 am

Looks like the first system that support BT.

User avatar
adventureFAN
Posts: 85
Joined: Sun Feb 23, 2020 4:22 am
languages_spoken: english, german
ODROIDs: OGA V1.1
Has thanked: 7 times
Been thanked: 23 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by adventureFAN » Fri Jun 19, 2020 7:40 pm

Nice! I will test it <3

It is possible to include the batocera EmulationStation?

escalade
Posts: 204
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 7 times
Been thanked: 64 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by escalade » Fri Jun 19, 2020 8:36 pm

I'm not familiar with it, but possibly. What does it offer over Retropie's fork?
Maintainer of RetroELEC (XU4 / OGA / x86_64)

User avatar
npaladin2000
Posts: 144
Joined: Sun Jan 05, 2020 1:39 pm
languages_spoken: english
ODROIDs: Odroid Go Advance 1.0, 1.1
Has thanked: 23 times
Been thanked: 33 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by npaladin2000 » Fri Jun 19, 2020 9:32 pm

escalade wrote:
Fri Jun 19, 2020 8:36 pm
I'm not familiar with it, but possibly. What does it offer over Retropie's fork?
Ability to configure RetroArch options right from the ES menu, including per-ROm core selection, a more advanced scraper (I think they somehow integrated Skyscraper). If you try Batocera or EmuELEC you'll see it right away in the menu, there's a ton more options than vanilla EmulationStation.

valadaa48
Posts: 114
Joined: Mon Feb 17, 2020 1:35 pm
languages_spoken: english
ODROIDs: odroid go advance
Has thanked: 3 times
Been thanked: 15 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by valadaa48 » Fri Jun 19, 2020 11:12 pm

Nice work on the new image!

RE: ES forks, just be aware that there is a massive userland component involved whose paths may not be amenable to your distribution. RR has a basic EmuELEC ES fork but some functionality is missing as npalandin2000 says. If you're interested in working together to make it work/clean it up let me know.

Also regarding aarch64 cores, Retroarch doesn't yet build these in their buildbot and certainly don't build cores optimized for our platform. I assume you are using buildroot? Would be nice if we could eventually have a buildbot of some sort to build these cores automatically so they can be shared across images instead of everyone going it alone. We have a http repo already http://eple.us/odroidgo2/ubuntu-18.04/aarch64/latest/

Feel free to use those or also submit your cores to add to the list.

escalade
Posts: 204
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 7 times
Been thanked: 64 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by escalade » Sat Jun 20, 2020 2:27 am

npaladin2000 wrote:
Fri Jun 19, 2020 9:32 pm
Ability to configure RetroArch options right from the ES menu, including per-ROm core selection, a more advanced scraper (I think they somehow integrated Skyscraper). If you try Batocera or EmuELEC you'll see it right away in the menu, there's a ton more options than vanilla EmulationStation.
Is a per-rom core selection needed though? I have packaged Skyscraper already, I'm not sure how much integration is needed as a simple script will go a long way. A ton more options doesn't equal better in my book, it just adds to the maintenance work of an already dead and multi forked project.
valadaa48 wrote:
Fri Jun 19, 2020 11:12 pm
RE: ES forks, just be aware that there is a massive userland component involved whose paths may not be amenable to your distribution. RR has a basic EmuELEC ES fork but some functionality is missing as npalandin2000 says. If you're interested in working together to make it work/clean it up let me know.
I'm using the same base OS as EmuELEC, so integration would probably be easy. Still haven't heard any compelling reasons to even consider it though.
Also regarding aarch64 cores, Retroarch doesn't yet build these in their buildbot and certainly don't build cores optimized for our platform. I assume you are using buildroot? Would be nice if we could eventually have a buildbot of some sort to build these cores automatically so they can be shared across images instead of everyone going it alone. We have a http repo already http://eple.us/odroidgo2/ubuntu-18.04/aarch64/latest/
I'm using the LibreELEC toolchain which in turn is based on GeexBox. It's similar to buildroot though. Some cores link dynamically against system libraries, so I'm not sure a "one core fits all" approach is likely to work.
Maintainer of RetroELEC (XU4 / OGA / x86_64)

User avatar
npaladin2000
Posts: 144
Joined: Sun Jan 05, 2020 1:39 pm
languages_spoken: english
ODROIDs: Odroid Go Advance 1.0, 1.1
Has thanked: 23 times
Been thanked: 33 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by npaladin2000 » Sat Jun 20, 2020 2:46 am

escalade wrote:
Sat Jun 20, 2020 2:27 am
npaladin2000 wrote:
Fri Jun 19, 2020 9:32 pm
Ability to configure RetroArch options right from the ES menu, including per-ROm core selection, a more advanced scraper (I think they somehow integrated Skyscraper). If you try Batocera or EmuELEC you'll see it right away in the menu, there's a ton more options than vanilla EmulationStation.
Is a per-rom core selection needed though? I have packaged Skyscraper already, I'm not sure how much integration is needed as a simple script will go a long way. A ton more options doesn't equal better in my book, it just adds to the maintenance work of an already dead and multi forked project.
Oh it's one of our more requested features actually. For some reason people feel the need to select an individual core for each ROM, it's not enough to sort them into a different system folder to determine what core they launch with.

User avatar
adventureFAN
Posts: 85
Joined: Sun Feb 23, 2020 4:22 am
languages_spoken: english, german
ODROIDs: OGA V1.1
Has thanked: 7 times
Been thanked: 23 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by adventureFAN » Sat Jun 20, 2020 6:06 am

And easy setups for each system. Like for example:
GBC integer scaling with filtering and with the Gamebatte core, GBA integer scale without filtering with the mGBA core, SNES aspect ratio with filtering and with the snes9x2010 core etc.
With the batocera/EmuELEC EmulationStation is it very easy to configure. "Noob-friendly" =P

Also the Wifi- and RetroAchievements setup is very easy with the virtual keyboard.
Or you can scrape video files.
Or you can see which bios files are needed.
Or customizable themes.
Or custom Game Collections

So much more comfort.

I don't know whats wrong with more comfort for all people.

User avatar
npaladin2000
Posts: 144
Joined: Sun Jan 05, 2020 1:39 pm
languages_spoken: english
ODROIDs: Odroid Go Advance 1.0, 1.1
Has thanked: 23 times
Been thanked: 33 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by npaladin2000 » Sat Jun 20, 2020 6:46 am

adventureFAN wrote:
Sat Jun 20, 2020 6:06 am
And easy setups for each system. Like for example:
GBC integer scaling with filtering and with the Gamebatte core, GBA integer scale without filtering with the mGBA core, SNES aspect ratio with filtering and with the snes9x2010 core etc.
With the batocera/EmuELEC EmulationStation is it very easy to configure. "Noob-friendly" =P

Also the Wifi- and RetroAchievements setup is very easy with the virtual keyboard.
Or you can scrape video files.
Or you can see which bios files are needed.
Or customizable themes.
Or custom Game Collections

So much more comfort.

I don't know whats wrong with more comfort for all people.
Well they're is a lot more back end involved with all of that, launch scripts and such, making things harder to maintain.

zztfoxdev
Posts: 27
Joined: Sat Jan 19, 2019 8:36 am
languages_spoken: english
ODROIDs: Odroid Go
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by zztfoxdev » Sat Jun 20, 2020 7:41 am

Getting on boot

***Error in mount_storage: mount_common could not mount (bunch of characters)

***Starting debugging shell for boot step: mount_storage...
Type exit to quit***

zztfoxdev
Posts: 27
Joined: Sat Jan 19, 2019 8:36 am
languages_spoken: english
ODROIDs: Odroid Go
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by zztfoxdev » Sat Jun 20, 2020 1:42 pm

Got the 3rd image listed to flash and run.

Also, is there any support for the OGA-BE built in wifi?

And Firefox does not start from the Emulation Station quit menu. Says it is not found?

escalade
Posts: 204
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 7 times
Been thanked: 64 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by escalade » Sat Jun 20, 2020 4:26 pm

adventureFAN wrote:
Sat Jun 20, 2020 6:06 am
And easy setups for each system. Like for example:
GBC integer scaling with filtering and with the Gamebatte core, GBA integer scale without filtering with the mGBA core, SNES aspect ratio with filtering and with the snes9x2010 core etc.
With the batocera/EmuELEC EmulationStation is it very easy to configure. "Noob-friendly" =P
This functionality is already in RetroArch actually, you can save core options shaders etc for each core, per game or globally.
Also the Wifi- and RetroAchievements setup is very easy with the virtual keyboard.
Being based on LibreELEC, you can set up wireless networks, bluetooth devices and other system services through Kodi. You can use RetroArch as well. I can see that it seems more practical to have it in the frontend though.
Or you can scrape video files.
Or you can see which bios files are needed.
Or customizable themes.
Or custom Game Collections

So much more comfort.

I don't know whats wrong with more comfort for all people.
Not against comfort at all, but this is all doable directly in RetroArch :)

@zztfoxdev

Uploaded new builds fixed some minor issues, give it a go. Firefox spins up fine here, it will take some moments on first launch to download and extract it though.
Maintainer of RetroELEC (XU4 / OGA / x86_64)

User avatar
npaladin2000
Posts: 144
Joined: Sun Jan 05, 2020 1:39 pm
languages_spoken: english
ODROIDs: Odroid Go Advance 1.0, 1.1
Has thanked: 23 times
Been thanked: 33 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by npaladin2000 » Sat Jun 20, 2020 7:48 pm

Actually RetroArch's scraping ability is horrible.

ducadan
Posts: 36
Joined: Sun Feb 02, 2020 7:07 pm
languages_spoken: english
Has thanked: 21 times
Been thanked: 3 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by ducadan » Sat Jun 20, 2020 8:53 pm

its nice to see media playback support with an easy to use interface of KODI.
I'm not familiar with KODI myself (until i'll flash an sd card with this iso) but can you listen to music while the screen is turned off for example, to conserve battery? What about with other media playback like video files? For example some tv shows(comedy ones) i can "watch" without needing a screen, so i'd like to turn it off to conserve battery. Is it possible?

edit: what are the shortcuts for brightness and volume?

zztfoxdev
Posts: 27
Joined: Sat Jan 19, 2019 8:36 am
languages_spoken: english
ODROIDs: Odroid Go
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by zztfoxdev » Sun Jun 21, 2020 2:04 am

So you have to have an internet connection to download Firefox first, before you can run it?

Will test later when I get off of work.

escalade
Posts: 204
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 7 times
Been thanked: 64 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by escalade » Sun Jun 21, 2020 3:12 am

@ducadan

No idea, I like to watch my media with picture. Have a look at the Flathub, I'm sure you can find something that will do what you want.

@zztfoxdev

Yeah, I could integrate it in the build, but then it wouldn't auto-update as the root fs in LibreELEC is read-only. My Firefox launcher script downloads it into the /storage partition. I figure you'll need an internet connection to enjoy a web browser anyways :)
Maintainer of RetroELEC (XU4 / OGA / x86_64)

User avatar
adventureFAN
Posts: 85
Joined: Sun Feb 23, 2020 4:22 am
languages_spoken: english, german
ODROIDs: OGA V1.1
Has thanked: 7 times
Been thanked: 23 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by adventureFAN » Sun Jun 21, 2020 5:31 am

It is possible in RetroArch, yes. But way more compicated for new users. It takes some time to get into RetroArch.

But yeah... it was only a suggestion ._.

zztfoxdev
Posts: 27
Joined: Sat Jan 19, 2019 8:36 am
languages_spoken: english
ODROIDs: Odroid Go
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by zztfoxdev » Sun Jun 21, 2020 8:48 am

Newest img 20200620 is giving me an error like the first.

Also for the image I do have working, where would one setup wifi?

shanti
Posts: 287
Joined: Fri Feb 15, 2019 3:12 am
languages_spoken: english, spanish
ODROIDs: Odroid N2
Has thanked: 62 times
Been thanked: 104 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by shanti » Sun Jun 21, 2020 4:08 pm

escalade wrote:
Fri Jun 19, 2020 9:21 am
- The PCSX ReARMed (did I get that right) on the AArch64 image is compiled with my ARM toolchain and then some manual labor to get a quick and easy multilib setup specifically for that core (it was too slow with lightrec)
Nice to see retroelec on the OGA!

I tried looking in your github but could not find it, would you share how you accomplished the pcsx multilib?

HHanzo
Posts: 29
Joined: Tue Dec 31, 2019 4:17 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by HHanzo » Mon Jun 22, 2020 12:37 am

which image had the fba libretro with Samurai Spritis Zero Special Final ?

escalade
Posts: 204
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 7 times
Been thanked: 64 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by escalade » Mon Jun 22, 2020 3:39 am

shanti wrote:
Sun Jun 21, 2020 4:08 pm
Nice to see retroelec on the OGA!

I tried looking in your github but could not find it, would you share how you accomplished the pcsx multilib?
Hey shanti, thanks for the welcome and sure thing: http://ix.io/2pNC

It's quick and dirty I know :) I'm thinking it should be relatively easy to make the LE toolchain multilib capable and perhaps add a "+multilib" flag or something to build a 32-bit armhf version of packages in addition to aarch64. Is there any other emulator that runs better as 32-bit though?

My local tree is a complete mess of uncommited changes atm so I've just uploaded a source tarball to my gdrive for now.
Maintainer of RetroELEC (XU4 / OGA / x86_64)

shanti
Posts: 287
Joined: Fri Feb 15, 2019 3:12 am
languages_spoken: english, spanish
ODROIDs: Odroid N2
Has thanked: 62 times
Been thanked: 104 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by shanti » Mon Jun 22, 2020 6:07 am

escalade wrote:
Mon Jun 22, 2020 3:39 am
shanti wrote:
Sun Jun 21, 2020 4:08 pm
Nice to see retroelec on the OGA!

I tried looking in your github but could not find it, would you share how you accomplished the pcsx multilib?
Hey shanti, thanks for the welcome and sure thing: http://ix.io/2pNC

It's quick and dirty I know :) I'm thinking it should be relatively easy to make the LE toolchain multilib capable and perhaps add a "+multilib" flag or something to build a 32-bit armhf version of packages in addition to aarch64. Is there any other emulator that runs better as 32-bit though?

My local tree is a complete mess of uncommited changes atm so I've just uploaded a source tarball to my gdrive for now.
For my use, yes, from the top of my head, OpenBOR, Picodrive and others I am forgetting, we did a few tests comparing them and PCSX, and openbor were the most affected by 64bits.

Thanks I will check the link :) and that is a good idea to probably try and implement the multi-lib, I will see what I can figure out and let you know

User avatar
npaladin2000
Posts: 144
Joined: Sun Jan 05, 2020 1:39 pm
languages_spoken: english
ODROIDs: Odroid Go Advance 1.0, 1.1
Has thanked: 23 times
Been thanked: 33 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by npaladin2000 » Mon Jun 22, 2020 9:10 am

escalade wrote:
Mon Jun 22, 2020 3:39 am
shanti wrote:
Sun Jun 21, 2020 4:08 pm
Nice to see retroelec on the OGA!

I tried looking in your github but could not find it, would you share how you accomplished the pcsx multilib?
Hey shanti, thanks for the welcome and sure thing: http://ix.io/2pNC

It's quick and dirty I know :) I'm thinking it should be relatively easy to make the LE toolchain multilib capable and perhaps add a "+multilib" flag or something to build a 32-bit armhf version of packages in addition to aarch64. Is there any other emulator that runs better as 32-bit though?

My local tree is a complete mess of uncommited changes atm so I've just uploaded a source tarball to my gdrive for now.
There are some Dreamcast games where flycast_xtreme 32 bit is faster than flycast 64 bit. I'm not sure how consistent that is though.

zztfoxdev
Posts: 27
Joined: Sat Jan 19, 2019 8:36 am
languages_spoken: english
ODROIDs: Odroid Go
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by zztfoxdev » Mon Jun 22, 2020 10:57 am

This is the error linux gives when the img failed in the other attempts:

Error mounting /dev/sdb2 at /media/username/STORAGE: wrong fs type, bad option, bad superblock on /dev/sdb2, missing codepage or helper program, or other error.

it recognizes the boot partition, just not the 2nd partition.

This includes both 20200620 images.

The one image that has worked is 20200619023937, but it does not pick up the OGA-BE built in wifi (wlan0)

shanti
Posts: 287
Joined: Fri Feb 15, 2019 3:12 am
languages_spoken: english, spanish
ODROIDs: Odroid N2
Has thanked: 62 times
Been thanked: 104 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by shanti » Mon Jun 22, 2020 4:15 pm

escalade wrote:
Mon Jun 22, 2020 3:39 am
Hey shanti, thanks for the welcome and sure thing: http://ix.io/2pNC

It's quick and dirty I know :) I'm thinking it should be relatively easy to make the LE toolchain multilib capable and perhaps add a "+multilib" flag or something to build a 32-bit armhf version of packages in addition to aarch64. Is there any other emulator that runs better as 32-bit though?
Hmm Am I missing something else on that package?

Couple of questions

I don't see how the core gets copied if you enable aarch64? it only gets copied if arch=arm ?

Code: Select all

if [ "${ARCH}" = "aarch64" ]; then
// libs and such, but no core gets copied
else
// core gets copied
fi
And second question, I've changed to the required libs I need (I ran ldd retroarch on my 32bit build and got all the required libs from there) but even though I patched the binary with patchelf I still cannot run the binary (error I get is. "not a dynamic executable"), is there something else I need to enable probably on the kernel?

(also why is the patchelf --set-interpreter in the lib copying loop?)

Edit: Nevermind I am blind :P got it sorted out

escalade
Posts: 204
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 7 times
Been thanked: 64 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by escalade » Mon Jun 22, 2020 5:41 pm

zztfoxdev wrote:
Mon Jun 22, 2020 10:57 am
Error mounting /dev/sdb2 at /media/username/STORAGE: wrong fs type, bad option, bad superblock on /dev/sdb2, missing codepage or helper program, or other error.
You'll need kernel F2FS support to mount it. I have the wifi adapter as well and it works fine here. Try 20200622012024.

@shanti

Simply because I was fast and sloppy when experimenting with it :)

Here's the somewhat cleaned up version: http://ix.io/2pQo

You'll also need to add /usr/lib32 to LD_LIBRARY_PATH.
Maintainer of RetroELEC (XU4 / OGA / x86_64)

zztfoxdev
Posts: 27
Joined: Sat Jan 19, 2019 8:36 am
languages_spoken: english
ODROIDs: Odroid Go
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by zztfoxdev » Mon Jun 22, 2020 11:09 pm

The same for 20200622...

***Error in mount_storage: Could not mount UUID=bd636eb4-8a29-4f6f-b87b-d243cc9c423 ***
###Starting debugging shell for boot step:mount_storage... type exit to quit ###

_

Seems like it is not expanding the partition because it cannot mount the mount_storage.

I feel like it is my fault somehow, but I got one of the images working before. Wonder what could be happening with these?

I am using balenaEtcher to flash the image to a card, is that OK?

shanti
Posts: 287
Joined: Fri Feb 15, 2019 3:12 am
languages_spoken: english, spanish
ODROIDs: Odroid N2
Has thanked: 62 times
Been thanked: 104 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by shanti » Tue Jun 23, 2020 7:19 am

escalade wrote:
Mon Jun 22, 2020 5:41 pm
zztfoxdev wrote:
Mon Jun 22, 2020 10:57 am
Error mounting /dev/sdb2 at /media/username/STORAGE: wrong fs type, bad option, bad superblock on /dev/sdb2, missing codepage or helper program, or other error.
You'll need kernel F2FS support to mount it. I have the wifi adapter as well and it works fine here. Try 20200622012024.

@shanti

Simply because I was fast and sloppy when experimenting with it :)

Here's the somewhat cleaned up version: http://ix.io/2pQo

You'll also need to add /usr/lib32 to LD_LIBRARY_PATH.
He, I came up with something similar

https://pastebin.com/8eVQHaG5

Still need to figure out if there is a way to not need 2 builds (arm and aarch64) but for now this works really nice! thanks for sharing!

escalade
Posts: 204
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 7 times
Been thanked: 64 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by escalade » Tue Jun 23, 2020 5:21 pm

shanti wrote:
Tue Jun 23, 2020 7:19 am
He, I came up with something similar

https://pastebin.com/8eVQHaG5

Still need to figure out if there is a way to not need 2 builds (arm and aarch64) but for now this works really nice! thanks for sharing!
I think adding a gcc-multilib package and modifying scripts/build a bit it should be possible, I'll probably have a look at some point but like you say this works really nice for now :) BTW, you'll need to LD_PRELOAD the arm-mem library when running retroarch32. I forgot about that, not sure if it makes any difference regarding emulation performance though.
Maintainer of RetroELEC (XU4 / OGA / x86_64)

shanti
Posts: 287
Joined: Fri Feb 15, 2019 3:12 am
languages_spoken: english, spanish
ODROIDs: Odroid N2
Has thanked: 62 times
Been thanked: 104 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64 /

Post by shanti » Wed Jun 24, 2020 7:42 am

escalade wrote:
Tue Jun 23, 2020 5:21 pm
shanti wrote:
Tue Jun 23, 2020 7:19 am
He, I came up with something similar

https://pastebin.com/8eVQHaG5

Still need to figure out if there is a way to not need 2 builds (arm and aarch64) but for now this works really nice! thanks for sharing!
I think adding a gcc-multilib package and modifying scripts/build a bit it should be possible, I'll probably have a look at some point but like you say this works really nice for now :) BTW, you'll need to LD_PRELOAD the arm-mem library when running retroarch32. I forgot about that, not sure if it makes any difference regarding emulation performance though.
"you'll need to LD_PRELOAD the arm-mem library when running retroarch32"

Haven't had to do that, and I get a nice performance on PCSX_rearmed, but even if I did needed to do that I did not know how :P But doing a bit of google on the matter I don't think it would make a difference in performance, but I will test later :)

escalade
Posts: 204
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 7 times
Been thanked: 64 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64)

Post by escalade » Wed Jun 24, 2020 7:54 am

New image 20200623233251 uploaded:

- Added AntimicroX to control the desktop with OGA joypad
- Added CMST (Connman wireless manager)
- Added pavucontrol-qt
- Added ScummVM libretro core
- Added Skyscraper
- Added Weston RDP and VNC backends ("systemctl start weston-rdp" or "systemctl start weston-vnc" to enable)
These users thanked the author escalade for the post:
odroid (Wed Jun 24, 2020 3:04 pm)
Maintainer of RetroELEC (XU4 / OGA / x86_64)

zztfoxdev
Posts: 27
Joined: Sat Jan 19, 2019 8:36 am
languages_spoken: english
ODROIDs: Odroid Go
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64)

Post by zztfoxdev » Wed Jun 24, 2020 2:40 pm

Still the same error as previous. 20200623.

I am using the OGA-BE (REV 1.1) if that has any bearing.

Do you unzip the gz file to get the image and is there something I am suppose to do with the SHA256 checksum file?

escalade
Posts: 204
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 7 times
Been thanked: 64 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64)

Post by escalade » Wed Jun 24, 2020 10:07 pm

You can troubleshoot it by connecting a keyboard and entering this command:

# blkid
/dev/mmcblk0p1: SEC_TYPE="msdos" LABEL_FATBOOT="RETROELEC" LABEL="RETROELEC" UUID="2306-4902" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="fb4e2816-01"
/dev/mmcblk0p2: LABEL="STORAGE" UUID="[b]39dcc1f9-9f6f-4e95-9c79-751058129e7a[/b]" BLOCK_SIZE="4096" TYPE="f2fs" PARTUUID="fb4e2816-02"


It'll show the partitions on your SD card. It seems the storage partition is not mounting for some reason, check that the UUID is as highlighted above. RetroELEC uses UUID to mount it's partitions, check that the bootloader uses the correct one:

# cat /flash/extlinux/extlinux.conf
LABEL RetroELEC
LINUX /KERNEL
FDT /rk3326-odroidgo2-linux.dtb
APPEND boot=UUID=2306-4902 disk=UUID=[b]39dcc1f9-9f6f-4e95-9c79-751058129e7a[/b] quiet loglevel=3 frontend=emulationstation console=tty0 net.iframes=0 fbcon=rotate:3 ssh


Then try to mount it like this:

# mount -t f2fs /dev/mmcblk0p2 /storage

If that's successful (which I suppose it itsn't), you should be able to type "exit" and it should start booting normally. Let me know how it goes.
Maintainer of RetroELEC (XU4 / OGA / x86_64)

zztfoxdev
Posts: 27
Joined: Sat Jan 19, 2019 8:36 am
languages_spoken: english
ODROIDs: Odroid Go
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64)

Post by zztfoxdev » Thu Jun 25, 2020 1:56 am

it did not work, so here are my outputs:

--------------------------------------------------
# blkid
/dev/mmcblk0p2: LABEL="STORAGE" UUID="39dcc1f9-9f6f-4e95-9c79-751058129e7a" TYPE="f2fs"
/dev/mmcblk0p1: LABEL="RETROELEC" UUID="2306-4902" TYPE="vfat"
/dev/loop0: TYPE="squashfs"

# cat /flash/extlinux/extlinux.conf
LABEL RetroELEC
LINUX /KERNEL
FDT /rk3326-odroidgo2-linux.dtb
APPEND boot=UUID=2306-4902 disk=UUID=39dcc1f9-9f6f-4e95-9c79-751058129e7a quiet loglevel=3 frontend=emulationstation console=tty0 net.iframes=0 fbcon=rotate:3 ssh

#mount -t f2fs /dev/mmcblk0p2 /storage
mount: mounting /dev/mmcblk0p2 on /storage failed: Structure needs cleaning

---------------------------------------------------------

The two things that stand out to me are that mmcblk0p2 is showing up first in order and what is loop0.

Thanks for helping me so far, these are areas of Linux I have not dabbled in yet and it is teaching me a lot :)
Last edited by zztfoxdev on Thu Jun 25, 2020 7:03 am, edited 1 time in total.

mdrjr
Site Admin
Posts: 11753
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 25 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64)

Post by mdrjr » Thu Jun 25, 2020 6:35 am

I tried to test your image and I found a few issues, maybe you can help me.

1. f2fs partition is corrupted on all images, I re-created the f2fs partition with mkfs.f2fs and replaced extlinux.conf uuid
2. Wifi isn't detected, maybe old kernel or u-boot?
3. Analog pad doesn't work on Wayland

Maybe those issues are because some config files are stored on the f2fs?
Can you share the contents of a working f2fs partition?

escalade
Posts: 204
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 7 times
Been thanked: 64 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64)

Post by escalade » Thu Jun 25, 2020 7:18 am

Thanks for the info guys, I found the issue. I mistakenly enabled compression support for the F2FS filesystem, which isn't supported until kernel version 5.6. I've uploaded a fixed image 20200624235429, with the following changes:

- F2FS issue fixed
- Flatpak version 1.8
- Added ScummVM additional data files under /usr/share/scummvm

Regarding wifi, which dongle are you using? I've got this one that came with the device, and it works with the included rt2x00usb driver:

Code: Select all

# lsusb
Bus 001 Device 002: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Perhaps the 1.1 comes with a different one? I suppose the joypad might be different as well, which would explain AntimicroX not working correctly. The configuration is stored in /storage/.config/antimicroX/retroelec.gamecontroller.amgp, it contains the GUID for the 1.0 joypad. Can you get me the output of # sdl2-jstest -l from yours?
Maintainer of RetroELEC (XU4 / OGA / x86_64)

mdrjr
Site Admin
Posts: 11753
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 25 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64)

Post by mdrjr » Thu Jun 25, 2020 8:55 am

Im using go advance black internal wifi.
You can enable the esp8089 driver in our kernel tree
These users thanked the author mdrjr for the post:
escalade (Thu Jun 25, 2020 6:25 pm)

zztfoxdev
Posts: 27
Joined: Sat Jan 19, 2019 8:36 am
languages_spoken: english
ODROIDs: Odroid Go
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64)

Post by zztfoxdev » Thu Jun 25, 2020 10:49 am

Can confirm 20200624 does now work on OGA-BE with the exclusion of wifi, as confirmed.

Is enabling esp8089 something a user can do, or does the dev have to enable it via a new image?

mdrjr
Site Admin
Posts: 11753
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 25 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64)

Post by mdrjr » Thu Jun 25, 2020 11:02 am

Dev needs to build the kernel with support for it

Charli69
Posts: 7
Joined: Thu Jun 25, 2020 5:33 pm
languages_spoken: german
ODROIDs: odroid go, odroid go advance
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64)

Post by Charli69 » Thu Jun 25, 2020 5:47 pm

Hi, the new image doesnt work on the first OGA either.

escalade
Posts: 204
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 7 times
Been thanked: 64 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64)

Post by escalade » Thu Jun 25, 2020 6:45 pm

mdrjr wrote:
Thu Jun 25, 2020 8:55 am
Im using go advance black internal wifi.
You can enable the esp8089 driver in our kernel tree
That's odd, I've already included esp8089:

Code: Select all

GO2:~ # modinfo esp8089
filename:       /lib/modules/4.4.189/kernel/drivers/net/wireless/esp8089/esp8089.ko
license:        GPL
description:    Driver for SDIO interconnected eagle low-power WLAN devices
author:         Espressif System
alias:          sdio:c*v6666d1111*
depends:        
intree:         Y
vermagic:       4.4.189 SMP mod_unload aarch64
parm:           no_txampdu:Disable tx ampdu. (int)
parm:           no_rxampdu:Disable rx ampdu. (int)
parm:           eagle_path:eagle path (charp)
parm:           esp_reset_gpio:ESP8089 CH_PD reset GPIO number (int)
Is there some specific firmware required as well? Could you get me your dmesg output? Maybe it's not auto-loading for some reason, could someone try connecting a keyboard and running # modprobe esp8089? Perhaps CONFIG_SDIO_UART is needed, as it's an SDIO device? I'm rebuilding to add it now.

@Charli69

What kind of problem do you have?
Maintainer of RetroELEC (XU4 / OGA / x86_64)

Charli69
Posts: 7
Joined: Thu Jun 25, 2020 5:33 pm
languages_spoken: german
ODROIDs: odroid go, odroid go advance
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64)

Post by Charli69 » Thu Jun 25, 2020 7:53 pm

@escalade
***Error in mount_storage: mount_common could not mount (bunch of characters)
***Starting debugging shell for boot step: mount_storage...
Type exit to quit***

mdrjr
Site Admin
Posts: 11753
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 25 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64)

Post by mdrjr » Thu Jun 25, 2020 9:25 pm

On the latest image, f2fs works. so no more issues here

Joypad works on wayland fine.

only the wifi driver doesn't work..
So far I identified one issue regarding the wifi.

You need to include the rk3326-odroidgo2-linux-v11.dtb as well for the newer revision board

You can use a logic like:
if test ${hwrev} = 'v11'; then
load mmc 1:1 ${dtb_loadaddr} rk3326-odroidgo2-linux-v11.dtb
else
load mmc 1:1 ${dtb_loadaddr} rk3326-odroidgo2-linux.dtb
fi
To select the correct dtb

Even changing the dtb still doesn't load the esp8089 driver yet, I'm still looking on why

Charli69
Posts: 7
Joined: Thu Jun 25, 2020 5:33 pm
languages_spoken: german
ODROIDs: odroid go, odroid go advance
Has thanked: 0
Been thanked: 0
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64)

Post by Charli69 » Thu Jun 25, 2020 10:30 pm

IMG_20200625_152254.jpg
IMG_20200625_152254.jpg (493.03 KiB) Viewed 1914 times
OdroidGoAdvance.aarch64-9.2-devel-20200625132615-odroidgo2

escalade
Posts: 204
Joined: Thu Mar 14, 2019 8:34 pm
languages_spoken: english and norwegian
Has thanked: 7 times
Been thanked: 64 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64)

Post by escalade » Fri Jun 26, 2020 4:22 am

mdrjr wrote:
Thu Jun 25, 2020 9:25 pm
On the latest image, f2fs works. so no more issues here

Joypad works on wayland fine.

only the wifi driver doesn't work..
So far I identified one issue regarding the wifi.

You need to include the rk3326-odroidgo2-linux-v11.dtb as well for the newer revision board

You can use a logic like:
if test ${hwrev} = 'v11'; then
load mmc 1:1 ${dtb_loadaddr} rk3326-odroidgo2-linux-v11.dtb
else
load mmc 1:1 ${dtb_loadaddr} rk3326-odroidgo2-linux.dtb
fi
To select the correct dtb

Even changing the dtb still doesn't load the esp8089 driver yet, I'm still looking on why
Thanks, I've found a few more missing pieces regarding the v1.1 so currently doing a full rebuild.
Maintainer of RetroELEC (XU4 / OGA / x86_64)

shanti
Posts: 287
Joined: Fri Feb 15, 2019 3:12 am
languages_spoken: english, spanish
ODROIDs: Odroid N2
Has thanked: 62 times
Been thanked: 104 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64)

Post by shanti » Fri Jun 26, 2020 5:11 am

mdrjr wrote:
Thu Jun 25, 2020 9:25 pm
On the latest image, f2fs works. so no more issues here

Joypad works on wayland fine.

only the wifi driver doesn't work..
So far I identified one issue regarding the wifi.

You need to include the rk3326-odroidgo2-linux-v11.dtb as well for the newer revision board

You can use a logic like:
if test ${hwrev} = 'v11'; then
load mmc 1:1 ${dtb_loadaddr} rk3326-odroidgo2-linux-v11.dtb
else
load mmc 1:1 ${dtb_loadaddr} rk3326-odroidgo2-linux.dtb
fi
To select the correct dtb

Even changing the dtb still doesn't load the esp8089 driver yet, I'm still looking on why
I assume its because it is not enabled on the Kconfig

Code: Select all

CONFIG_ESP8089=m
Which also needs the newest kernel by HK https://github.com/hardkernel/linux/tre ... dgoA-4.4.y

mdrjr
Site Admin
Posts: 11753
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 25 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64)

Post by mdrjr » Fri Jun 26, 2020 6:38 am

@shanti its enabled as module just like our kernel
https://github.com/hardkernel/linux/blo ... nfig#L1665

shanti
Posts: 287
Joined: Fri Feb 15, 2019 3:12 am
languages_spoken: english, spanish
ODROIDs: Odroid N2
Has thanked: 62 times
Been thanked: 104 times
Contact:

Re: RetroELEC for the Odroid Go Advance (AArch64)

Post by shanti » Fri Jun 26, 2020 9:33 am

mdrjr wrote:
Fri Jun 26, 2020 6:38 am
@shanti its enabled as module just like our kernel
https://github.com/hardkernel/linux/blo ... nfig#L1665
I am talking about this particular build, LE (as CE and EE) uses a predefined kconfig, I assume RetroELEC does as well, so if its not set up there it won't pick it up, but that is just my guess.

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 0 guests