Possible ESP32 Doom port for GO?

Moderators: mdrjr, odroid

Possible ESP32 Doom port for GO?

Unread postby psycotrip » Tue Jul 10, 2018 12:58 pm

I just bought an Odroid-GO from Ameridroid and was looking for possible projects when i came across an ESP32 port of doom. I was just wondering if anyone had the skill to get it running on the GO. I'm sure running something other than emulators would draw more attention for this wonderful device. It seems very possible at some point but I don't even know where to start. I would even consider starting a bounty for a skilled programmer.

Anyway here's the link
https://github.com/espressif/esp32-doom
psycotrip
 
Posts: 4
Joined: Tue Jul 10, 2018 12:47 pm
languages_spoken: english
ODROIDs: odroid-go

Re: Possible ESP32 Doom port for GO?

Unread postby davidknight247 » Tue Jul 10, 2018 3:41 pm

I’m personally not a fan of Doom but I’m certain someone will take this on.

I am considering a port of C-dogs in the near future though.
davidknight247
 
Posts: 29
Joined: Sun Jul 01, 2018 8:35 am
languages_spoken: english
ODROIDs: Odroid go

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Tue Jul 10, 2018 3:55 pm

Doom would be awesome - it's the standard "demo" for any platform :) I'd cernanly play it!

I'm guessing sound can be added fairly easily. Also, the key pad needs to be mapped. Regarding maps - one would need to add sd card support for loading wads from SD directly, without flashing them in flash. Menus might need reimplementing...
One important feature request I'd like to make is to add a menu for cheat codes so that you can input iddqd, idkfa, idclip, idspispopd, and the likes...
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby crashoverride » Fri Jul 13, 2018 1:39 pm

https://github.com/OtherCrashOverride/doom-odroid-go

This is provided for those wishing to play with it. I have no plans to support or further develop it.

It is an esp-idf project, so a build environment will need to be setup. Then the WAD file and project should be flashed:
1) ./flashwad.sh doom1-cut.wad
2) make flash monitor
crashoverride
 
Posts: 3918
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Fri Jul 13, 2018 2:51 pm

Sweet! Thanks!
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Thu Jul 19, 2018 10:44 pm

Who's not to say @crashoverride doesn't have a sense of humor? Here's a quote from the doom port
Code: Select all
unsigned long I_GetRandomTimeSeed(void)
{
   return 4; //per https://xkcd.com/221/
}

User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby crashoverride » Thu Jul 19, 2018 10:48 pm

Not my contribution. MY CODEZ R SRS BIZ!
crashoverride
 
Posts: 3918
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Wed Jul 25, 2018 10:43 pm

I got my GO and I'd like to give doom a try. @crashoverride is there a documentation about setting up express-if environment so I can compile it? Thanks
I've noticed that you adapted the code to the new partition scheme. I wonder how big the executable is and whether one could flash it + the wad along side the other emulators?

Future steps should include loading the WAD from the SD card instead - since now the display and SD can coexist thanks to your patches.
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby jutleys » Wed Jul 25, 2018 10:49 pm

Be nice if this can be added to the next firmware under a new menu called ports :) also is there any other way to get this on the device like a update.bin file.
Last edited by jutleys on Wed Jul 25, 2018 11:08 pm, edited 1 time in total.
jutleys
 
Posts: 51
Joined: Fri Jul 20, 2018 1:06 am
languages_spoken: english
ODROIDs: Odroid Go

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Wed Jul 25, 2018 11:07 pm

@jutleys: it should be possible to add to the alternate launcher (gogo): https://bitbucket.org/DavidKnight247/od ... m-emulator

@crashoverride: never mind, I found it: https://docs.espressif.com/projects/esp ... setup.html
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby jutleys » Wed Jul 25, 2018 11:23 pm

mad_ady wrote:@jutleys: it should be possible to add to the alternate launcher (gogo): https://bitbucket.org/DavidKnight247/od ... m-emulator

@crashoverride: never mind, I found it: https://docs.espressif.com/projects/esp ... setup.html


Oh nice whats the difference with the opensource menu does it look the same and it would be cool if you can do doom as a flash file for your menu.
jutleys
 
Posts: 51
Joined: Fri Jul 20, 2018 1:06 am
languages_spoken: english
ODROIDs: Odroid Go

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Thu Jul 26, 2018 12:57 am

I'll look into the menu if others don't beat me to it
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby crashoverride » Thu Jul 26, 2018 3:07 am

A device firmware update is currently being tested that will allow easily loading Doom, the emulators, or any other 3rd party application.
crashoverride
 
Posts: 3918
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Possible ESP32 Doom port for GO?

Unread postby jutleys » Thu Jul 26, 2018 3:20 am

Awesome can't wait keep up the great work .
jutleys
 
Posts: 51
Joined: Fri Jul 20, 2018 1:06 am
languages_spoken: english
ODROIDs: Odroid Go

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Thu Jul 26, 2018 4:36 am

Sweet!
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Thu Jul 26, 2018 8:02 pm

Here are some screenshots of doom in action on the GO: https://imgur.com/a/UTmiaBn
It's surprisingly good. A little bit of tearing when turning, but not really noticeable. The main problem (apart from sound, saving) is the inability to switch weapons. A shoots, B opens doors (or viceversa), Start opens the menu and Select toggles the map on and off. Most likely the Select (or volume?) should be remapped to cycling weapons.

Other than that, it's great. But you need to sing the doom theme yourself.
I may play with the code if I ever get time
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby jutleys » Thu Jul 26, 2018 8:26 pm

Looks awesome hope we can get this on the new firmware that's being released that will make it easy for 3rd party apps to be installed.
jutleys
 
Posts: 51
Joined: Fri Jul 20, 2018 1:06 am
languages_spoken: english
ODROIDs: Odroid Go

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Thu Jul 26, 2018 11:41 pm

A bit offtopic @crashoverride, but will you consider adding the possibility to flash firmware[0-9].bin from your device firmware? They are meant to be flashed to their respective partition, so that users can manage what they flash.
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby crashoverride » Fri Jul 27, 2018 2:03 am

Doom has been packaged for today's (20180726) device firmware release:
https://github.com/OtherCrashOverride/doom-odroid-go/releases/tag/20180726

1) Download "Doom.fw" and place it on the SD card at /odroid/firmware.
2) Flash the 20180726 device firmware.
3) Doom will be present on the list of firmware.
crashoverride
 
Posts: 3918
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Possible ESP32 Doom port for GO?

Unread postby mameise » Fri Jul 27, 2018 2:20 am

Maybe stupid question: till now we needed a .bin file to flash. Now it are .fw files. How would i get a .fw out of my arduino sketch or firmware.bin i made? Thanks :)
mameise
 
Posts: 79
Joined: Sat Jul 07, 2018 6:40 am
languages_spoken: english german
ODROIDs: ODROID-GO

Re: Possible ESP32 Doom port for GO?

Unread postby crashoverride » Fri Jul 27, 2018 2:29 am

The ".fw" file is a custom file format developed for ODROID-GO. It can be created with the following tool:
https://github.com/OtherCrashOverride/odroid-go-firmware/tree/master/tools/mkfw

You will need to create an application "tile" (icon) that is 86x48. Then, ffmpeg can convert it to raw:
Code: Select all
ffmpeg -i tile.png -f rawvideo -pix_fmt rgb565 tile.raw


Use the mkfw tool to create the firmware.fw file:
Code: Select all
./mkfw "Application Description" tile.raw 0 16 1048576 app build/application.bin

The numbers "0 16" specify the ESP32 partition type and subtype (application/ota0).
The number "1048576" specifies the size of the partition (1MB).
The "build/application.bin" is the .bin file generated from your application build or sketch.
crashoverride
 
Posts: 3918
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Possible ESP32 Doom port for GO?

Unread postby mameise » Fri Jul 27, 2018 3:08 am

Thanks for the quick reply. Will try in about 2 hours :) Lets see if i got it ;)
mameise
 
Posts: 79
Joined: Sat Jul 07, 2018 6:40 am
languages_spoken: english german
ODROIDs: ODROID-GO

Re: Possible ESP32 Doom port for GO?

Unread postby jutleys » Fri Jul 27, 2018 3:14 am

No sound on doom is this normal?
jutleys
 
Posts: 51
Joined: Fri Jul 20, 2018 1:06 am
languages_spoken: english
ODROIDs: Odroid Go

Re: Possible ESP32 Doom port for GO?

Unread postby crashoverride » Fri Jul 27, 2018 3:17 am

jutleys wrote:No sound on doom is this normal?

Yes.

https://github.com/OtherCrashOverride/doom-odroid-go#known-bugs
Code: Select all
    ESP32-DOOM does not support sound or music.
    ESP32-DOOM does not support saving or loading of savegames.


I did not write it, and I do not support it. I just packaged it and provided it for the community to experiment.
crashoverride
 
Posts: 3918
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Fri Jul 27, 2018 3:19 am

But do you play it? Admit it!
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby jutleys » Fri Jul 27, 2018 3:29 am

So for every emulator app like the sinclar one we have to flash it to play it like doom? If yes why can't it reside like the coleco app on menu or doom?
jutleys
 
Posts: 51
Joined: Fri Jul 20, 2018 1:06 am
languages_spoken: english
ODROIDs: Odroid Go

Re: Possible ESP32 Doom port for GO?

Unread postby crashoverride » Fri Jul 27, 2018 3:43 am

jutleys wrote:why can't it reside like the coleco app on menu or doom?

There are too many technical issues preventing it. As an example, including the current ZXSpectrum binary will crash the device and/or the application. This is due to the hardware state of the VSPI peripheral when 80Mhz PSRAM is enabled.

There is nothing preventing a community developed menu system from including (and supporting) anything it choses. However, for the Go-Play application, it is not practical for me to test, integrate, and maintain external binaries.
crashoverride
 
Posts: 3918
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Fri Jul 27, 2018 4:49 am

What are the benefit of 80MHz psram? Was ram a bottleneck?
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby mameise » Fri Jul 27, 2018 5:16 am

crashoverride wrote:The ".fw" file is a custom file format developed for ODROID-GO. It can be created with the following tool:
https://github.com/OtherCrashOverride/odroid-go-firmware/tree/master/tools/mkfw

You will need to create an application "tile" (icon) that is 86x48. Then, ffmpeg can convert it to raw:
Code: Select all
ffmpeg -i tile.png -f rawvideo -pix_fmt rgb565 tile.raw


Use the mkfw tool to create the firmware.fw file:
Code: Select all
./mkfw "Application Description" tile.raw 0 16 1048576 app build/application.bin

The numbers "0 16" specify the ESP32 partition type and subtype (application/ota0).
The number "1048576" specifies the size of the partition (1MB).
The "build/application.bin" is the .bin file generated from your application build or sketch.


worked perfect. at least no switching of sd cards anymore and all in one place. next step will be to integrate the phone into the open source menu :)
mameise
 
Posts: 79
Joined: Sat Jul 07, 2018 6:40 am
languages_spoken: english german
ODROIDs: ODROID-GO

Re: Possible ESP32 Doom port for GO?

Unread postby crashoverride » Fri Jul 27, 2018 5:42 am

mad_ady wrote:What are the benefit of 80MHz psram? Was ram a bottleneck?

It was only a bottleneck in the menu. The menu is smoother/faster now.
crashoverride
 
Posts: 3918
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Fri Jul 27, 2018 7:33 pm

I've made a small change of the doom code on my fork to add support for:
* Volume -> Toggle weapons. Currently toggles only between shotgun and chaingun - not sure why not other weapons
* Menu -> Enables strafing. Menu + Left -> Strafe left, Menu + Right -> Strafe right.

You can download the precompiled demo image from here: https://github.com/mad-ady/doom-odroid- ... er/Doom.fw
It's more playable than the default, but still needs a lot of love.

Things to do:
* figure out how to toggle through all weapons
* add cheats to the menu (inject keystrokes or call the corresponding cheat function directly) - because I'm a big cheater :D
* Add save/load support to/from SD with pre-named slots.
* Enable Nightmare mode (currently it asks you to press Y). Goes well together with cheats :D
* Enable sound (how hard can it be?)
* Try out other WADs. Either release them as different Apps, or hack the menu to load a different WAD directly from SD (sounds like over my skill level). Save/load should be correlated with the WAD being used (e.g. save to odroid/doom1-cut.wad/savegame1.sav)
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby jutleys » Fri Jul 27, 2018 7:38 pm

Great work and basically this is how flashing looks pretty simple i made some videos enjoy :).

Quick video showing flashing 3rd party apps https://youtu.be/jbqP9pF20SI

Quick video showing doom for odroid go Doom Odroid Go https://youtu.be/pYLVgxJ-uGU
Attachments
image.jpg
image.jpg (62.97 KiB) Viewed 1859 times
jutleys
 
Posts: 51
Joined: Fri Jul 20, 2018 1:06 am
languages_spoken: english
ODROIDs: Odroid Go

Re: Possible ESP32 Doom port for GO?

Unread postby davidknight247 » Sat Jul 28, 2018 12:53 am

The frame rate on Doom looks very smooth considering the cpu performance. Nice!
davidknight247
 
Posts: 29
Joined: Sun Jul 01, 2018 8:35 am
languages_spoken: english
ODROIDs: Odroid go

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Sat Jul 28, 2018 1:08 am

I wonder if increasing psram frequency would reduce the tearing you can see when turning quickly. Is it something you could change in the makefile or does it require in depth tweaking?
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Sat Jul 28, 2018 5:03 pm

Ok, I started to poke around the code and fixed (or so hope to) cycling through weapons. You can get a new version here: https://github.com/mad-ady/doom-odroid- ... er/Doom.fw
Use the Volume key to cycle through all weapons with ammo.

@crashoverride: can you point out an example code where you add persistency on power off? Now when turning off Doom it starts from the beginning - I wonder if in your case you do a memory dump and restore?
Or maybe I should focus on fixing save/load...
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby crashoverride » Sat Jul 28, 2018 5:20 pm

mad_ady wrote:can you point out an example code where you add persistency on power off?

https://github.com/OtherCrashOverride/go-play/blob/1953f92b8f98f9723f87f0369c0400da7704cad6/gnuboy-go/main/main.c#L244-L294

mad_ady wrote:I wonder if in your case you do a memory dump and restore?

No, all the emulators are capable of saving their state to a file. This is effectively a "save game". Doom does not support saving state. You will need to save/load games instead.
crashoverride
 
Posts: 3918
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Sat Jul 28, 2018 6:33 pm

Thanks. I think I will change file open/read/write to access the sd card. Also I will need to bypass the "input save name" dialog...
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby mameise » Sun Jul 29, 2018 2:42 pm

Thank you mad_ady for the updated version. Really fun to play. If you can handle save game also it would be amazing!
mameise
 
Posts: 79
Joined: Sat Jul 07, 2018 6:40 am
languages_spoken: english german
ODROIDs: ODROID-GO

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Sun Jul 29, 2018 5:19 pm

It's next on my todo list :)
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby jutleys » Sun Jul 29, 2018 5:46 pm

Is sound possible on doom and would it be possible to get a wolf 3d port working.
jutleys
 
Posts: 51
Joined: Fri Jul 20, 2018 1:06 am
languages_spoken: english
ODROIDs: Odroid Go

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Sun Jul 29, 2018 6:33 pm

I'm interested in sound as well. It's also on my todo list, but I fear it might slow down the engine. We'll see.
Regarding wolfenstein - there may be wolfenstein wads for doom that should be easier to work with.

One more thing - it might be a big benefit to get wad load support from sd card - now that sd and screen work at the same time. The advantage would be faster loading time (no wad flashing), bigger wads (like plutonia/tnt) and maybe a simpler wad switching mechanism.
@crashoverride: can you please point out a file save/load example on sd?
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Mon Jul 30, 2018 6:44 pm

With the help of crashoverride I made the necessary changed to move the project to 80MHz PSRAM. This should bring better performance for other things like future sound support. There is still some screen tearing when turning, but that seems to be caused by a lack of VSYNC.
You can get the prebuilt fw from the same link above (includes weapon cycling and other changes).
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Mon Jul 30, 2018 11:52 pm

Today has been a slow day at work and the boss was away so I had time to play with the save/load mechanism (crashoverride got me started, as usual).

I implemented some fake save game names (since you can't type text), and also removed some if(0) or return 0 statements used to disable save/load logic.

Save games are now saved on sd in odroid/data/doom (needs to be created manually). So far save games look fine and get written to disk, but I'm not sure if they are loadable or not.

I've gotten stuck at load games though. I identified some functions which should get called to load a save, but the log messages show they are never called from the menu... I don't know what's wrong... I started to do diffs with the official prboom and there are lots of changes - most of them memory allocation in iram or psram.

I'll look into it tomorrow as well, but if I can't get it to work, I'll have to start my holyday without save/load support :(

Here are the changes:
https://github.com/mad-ady/doom-odroid- ... 49a4999c2f

PS. Recording are broken if the player used switch weapon because of my "improvements"
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby mameise » Mon Jul 30, 2018 11:58 pm

Crossing fingers :) Unfortunatelly i cannot help at all because i do not understand anything. But i really look forward to save feature :)
mameise
 
Posts: 79
Joined: Sat Jul 07, 2018 6:40 am
languages_spoken: english german
ODROIDs: ODROID-GO

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Tue Jul 31, 2018 1:13 am

Save is working, load is not. But I haven't released this yet, but it can be built.
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby mameise » Tue Jul 31, 2018 1:48 am

No hurry ;) i will start from beginning till load is also working.

I am also wondering how we could get all episodes working... would this be possible?
mameise
 
Posts: 79
Joined: Sat Jul 07, 2018 6:40 am
languages_spoken: english german
ODROIDs: ODROID-GO

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Tue Jul 31, 2018 3:27 am

I'm sure it will be possible to play all episodes. There are some hacks done by expressif to hardcode some stuff, but it can be undone. I am confident sound will work one day as well.

@crashoverride: can I use backtrace() or backtrace_symbols() to see a stack trace on serial?
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby crashoverride » Tue Jul 31, 2018 5:31 am

mad_ady wrote:can I use backtrace() or backtrace_symbols() to see a stack trace on serial?

If you use "make monitor" to view the serial console output, it will automatically start a remote GDB session when a panic or abort() occurs. You can then use GDB's "bt" (backtrace) command. Debugging is "fatal" and program execution can not be resumed.
crashoverride
 
Posts: 3918
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Possible ESP32 Doom port for GO?

Unread postby mad_ady » Tue Jul 31, 2018 8:24 pm

I've managed to force quick load of the first save, unfortunately it doesn't work. Here is some debug output:
Code: Select all
M_Responder: Processing ch 189
M_LoadGame choice 0... demorecording=0, compatibility_level=17, prboom_2_compatibility=13
M_LoadSelect: selected choice 0
G_LoadGame: slot 0, command 0
G_DoLoadGame...
G_DoLoadGame: About to call G_SaveGameName(name,33,0,0)
G_DoLoadGame: About to call M_ReadFile(/sd/odroid/data/doom/prbmsav0.ds, savebuffer)
Attempting M_ReadFile /sd/odroid/data/doom/prbmsav0.ds
E (16767) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
E (16767) diskio_sdmmc: sdmmc_read_blocks failed (263)
Couldn't read file /sd/odroid/data/doom/prbmsav0.ds: (Unknown Error)
abort() was called at PC 0x400e264f on core 0

Backtrace: 0x40088cab:0x3ffdcb80 0x40088e03:0x3ffdcba0 0x400e264f:0x3ffdcbc0 0x400e90af:0x3ffdcbe0 0x400e2931:0x3ffdcc00 0x400ea52f:0x3ffdcc20 0x400ed462:0x3ffdd470 0x400eddab:0x3ffdd4e0 0x401352e3:0x3ffdd510 0x4011e3b9:0x3ffdd530 0x400e298b:0x3ffdd5c0 0x400d3221:0x3ffdd6b0

Entering gdb stub now.



@crashoverride: is this because I'm not using mutex-es as you suggested? I'll have to learn to use mutexes then...
User avatar
mad_ady
 
Posts: 4431
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Possible ESP32 Doom port for GO?

Unread postby jutleys » Tue Jul 31, 2018 11:49 pm

When i flashed doom and go back to original firmware the nes roms always disappear i need to copy them all back all the others are fine ?
jutleys
 
Posts: 51
Joined: Fri Jul 20, 2018 1:06 am
languages_spoken: english
ODROIDs: Odroid Go

Next

Return to General Chat

Who is online

Users browsing this forum: No registered users and 3 guests