Open Source Emulator Launcher

Post Reply
Ilya_MZP
Posts: 2
Joined: Sun Dec 30, 2018 6:07 am
languages_spoken: english, russian
ODROIDs: Odroid go
Has thanked: 0
Been thanked: 0
Contact:

Open Source Emulator Launcher

Post by Ilya_MZP »

Yesterday I started working on an open source emulator launcher for my version of a console on esp32.
It is based on Jkent's odroid-go-launcher which could install, update, uninstall and run apps.
But I didn't include the app support. Just a bare minimum emulator launcher.

It still needs a lot of work. (e.g. Brightness configuration sets random values) You know... It's only the second day since I started.
Here is the source code:
https://github.com/IlyaMZP/emulator-launcher-odroid-go

Prebuilt firmware file is in the repository.
Didn't have any way to test it. I don't have the Odroid Go.
But it should work.

mad_ady
Posts: 9354
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 599 times
Been thanked: 649 times
Contact:

Re: Open Source Emulator Launcher

Post by mad_ady »

Didn't have any way to test it. I don't have the Odroid Go.
Then what's your motivation for doing it?

User avatar
rooted
Posts: 8482
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 740 times
Been thanked: 339 times
Contact:

Re: Open Source Emulator Launcher

Post by rooted »


mad_ady wrote:
Didn't have any way to test it. I don't have the Odroid Go.
Then what's your motivation for doing it?

Ilya_MZP wrote:Yesterday I started working on an open source emulator launcher for my version of a console on esp32.

They stated the reason ;)

If I had to guess they plan on ordering a Go in the future and want to make sure it works?

mad_ady
Posts: 9354
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 599 times
Been thanked: 649 times
Contact:

Re: Open Source Emulator Launcher

Post by mad_ady »

Oh, I missed that :)

User avatar
rooted
Posts: 8482
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 740 times
Been thanked: 339 times
Contact:

Re: Open Source Emulator Launcher

Post by rooted »

mad_ady wrote:Oh, I missed that :)
Actually I did too and asked myself the same question you did.

Paspartout
Posts: 48
Joined: Fri Dec 28, 2018 2:13 am
languages_spoken: english, german
ODROIDs: Odroid go
Has thanked: 11 times
Been thanked: 16 times
Contact:

Re: Open Source Emulator Launcher

Post by Paspartout »

Ilya_MZP wrote:
Mon Dec 31, 2018 11:59 am
Yesterday I started working on an open source emulator launcher for my version of a console on esp32.
Nice work! I actually plan to do the same for my odroid-go, but preserve the app feature. The WROVER Module of the go has 16MB Flash and Go-Play only uses about 4MB, so in theory there could be many more apps installed in parallel than just one.

For your provided firmware: The ODROID-GO shares SPI Bus between display and SDCard. You have to make patches to esp-idf in order to make it work properly. It doesn't display any roms right now and monitors this message:

Code: Select all

E (576) spi: SPI2 already claimed by spi master.
E (576) spi_master: spi_bus_initialize(242): host already in use
opendir failed.
After rebuilding from source(using idf from crashoverride) and flashing only the launcher, it launches ROMS for NES, but quiting resulsts in this error:

Code: Select all

#0  0x4008813b in block_data_size (block=0x2f) at /home/paspartout/dev/repos/esp-idf-odroid/components/heap/multi_heap.c:155
#1  0x40088296 in disableAllWdts () at /home/paspartout/dev/repos/esp-idf-odroid/components/esp32/panic.c:374
#2  0x400efa1e in ff_sdmmc_ioctl (pdrv=<optimized out>, cmd=<optimized out>, buff=0x1)
    at /home/paspartout/dev/repos/esp-idf-odroid/components/fatfs/src/diskio_sdmmc.c:70
#3  0x400e248c in _svfiprintf_r (data=<optimized out>, fp=<optimized out>, fmt0=<optimized out>, ap=...)
    at ../../../.././newlib/libc/stdio/vfprintf.c:1544
#4  0x400f2bc7 in f_mkdir (path=0x800e2c00 '\377' <repeats 200 times>...)
    at /home/paspartout/dev/repos/esp-idf-odroid/components/fatfs/src/ff.c:4855
#5  0x400f2e42 in f_mkfs (path=0x30 '\377' <repeats 200 times>..., opt=100 'd', au=0, work=0x0, len=1073443244)
    at /home/paspartout/dev/repos/esp-idf-odroid/components/fatfs/src/ff.c:5527
#6  0x400e2c00 in _svfiprintf_r (data=<optimized out>, fp=<optimized out>, fmt0=<optimized out>, ap=...)
    at ../../../.././newlib/libc/stdio/vfprintf.c:1699
#7  0x400e2d2f in _svfiprintf_r (data=<optimized out>, fp=<optimized out>, fmt0=<optimized out>, ap=...)
    at ../../../.././newlib/libc/stdio/vfprintf.c:1769
#8  0x400e19e1 in _svfiprintf_r (data=<optimized out>, fp=<optimized out>, fmt0=<optimized out>, ap=...)
    at ../../../.././newlib/libc/stdio/vfprintf.c:1411
#9  0x400f2b05 in f_unlink (path=0x800d3d9f '\377' <repeats 200 times>...)
    at /home/paspartout/dev/repos/esp-idf-odroid/components/fatfs/src/ff.c:4798
#10 0x400e1922 in _svfiprintf_r (data=<optimized out>, fp=<optimized out>, fmt0=<optimized out>, ap=...)
    at ../../../.././newlib/libc/stdio/vfprintf.c:1411
#11 0x400d3d9f in _fopen_r (ptr=0x3ffd7ce4, file=<optimized out>, mode=<optimized out>) at ../../../.././newlib/libc/stdio/fopen.c:152
#12 0x400d1f6b in esp_intr_alloc_intrstatus (source=0, flags=<optimized out>, intrstatusreg=<unavailable>,
    intrstatusmask=<unavailable>, handler=<unavailable>, arg=<unavailable>, ret_handle=<unavailable>)
    at /home/paspartout/dev/repos/esp-idf-odroid/components/esp32/intr_alloc.c:6
Also you unfortunately can't copy strings in c like this. Just do it like you did for the NES.

Ilya_MZP
Posts: 2
Joined: Sun Dec 30, 2018 6:07 am
languages_spoken: english, russian
ODROIDs: Odroid go
Has thanked: 0
Been thanked: 0
Contact:

Re: Open Source Emulator Launcher

Post by Ilya_MZP »

Paspartout wrote:
Wed Jan 02, 2019 5:39 am
For your provided firmware: The ODROID-GO shares SPI Bus between display and SDCard. You have to make patches to esp-idf in order to make it work properly.
Thank you for testing! I didn't know that. I tried it on different hardware with SD card connected using SDMMC host.
Paspartout wrote:
Wed Jan 02, 2019 5:39 am
Also you unfortunately can't copy strings in c like this. Just do it like you did for the NES.
Yes. Somehow I didn't notice that. Will fix.
Paspartout wrote:
Wed Jan 02, 2019 5:39 am
it launches ROMS for NES
The only thing I've tested :D There are some mistakes (wrong slot/partition numbers for emulators).
Paspartout wrote:
Wed Jan 02, 2019 5:39 am
but quiting resulsts in this error:
Strange. Quiting worked for me, but that is different hardware. Going to be a little hard to find the cause.

I'm going to assemble Odroid Go using components that I have in the future to test everything properly.

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest