libretro / libretro-uae

PUAE libretro
GNU General Public License v2.0
115 stars 62 forks source link

Wii U build not working from 10/04 onwards #283

Closed Azy77 closed 3 years ago

Azy77 commented 4 years ago

Hi, I am using nightly from 8th April which works fine but from 10/04 onwards the kickstarts do not load on the Wii U, there is a red screen which changes to black but kickstarts do not load, tested a500, a600, a1200.

sonninnos commented 4 years ago

Thanks for reporting.

Is it possible to get stdout log with WiiU? UAE outputs all relevant information there, so unfortunately RA's log will not be of any use.

Edit: Currently all logging goes through libretro, so no worries anymore.

Azy77 commented 4 years ago

Not sure what stdout is, how do I do that?

sonninnos commented 4 years ago

Sorry, but I have no idea how WiiU works. Stdout/stderr is the stuff that is outputted to the console when running the executable with --verbose.

Around that time there was an update that fixed linux-ARM builds, so maybe it has something to do with this. Very hard to say, but if older versions work, then most likely yes.

rsn8887 commented 4 years ago

To get logs that are saved to retroarch/logs, go to settings->logging. Then enable logs, set log levels to 0 (DEBUG), enable log to file and enable timestamps. Then start the core. After the crash, you should have log files in retroarch/logs/. Read these log files using a PC or laptop and copy/paste them onto pastebin.net. Share the link to pastebin.net here.

Azy77 commented 4 years ago

Thanks for the info. The core does not actually crash, it just fails to load the kickstart then when I insert lha then restart there is a red screen then black and it remains black but I can still access the RA menu.

Would a log still be created?

sonninnos commented 4 years ago

Yes, that is not a crash dump log, and it will help if it indeed contains also stdout rows.

Can you navigate to RA saves directory and locate the generated config file puae_libretro.uae and post the contents?

Azy77 commented 4 years ago

I currently have p-uae core from 8th april, I will download latest core then load it up then post the contents of that file.

sonninnos commented 4 years ago

Hey @phcoder, might you have any ideas with this, since it appears this started right after the endianness-fixes?

crystalct commented 4 years ago

Hi guys, few days ago i started to fix PS3 build of libretro-uae and after accomplished fixing, i tried to start core without succes. After a lot of study i wasn't able to start anything and a doubt started on my mind.... Big endian problems? Let's see in opened issues... bingo! So i take the versione of 8 April and applied same fix of the current version. Bingo again!! Libretro.uae works correctly on PS3. Now i will apply next commits after 8 April to understand where and when was introduced a big endian issure (i hope the only one big endian issue). My work to fix PS3 build on current version is: https://github.com/crystalct/libretro-uae

image

image

sonninnos commented 4 years ago

Excellent news! Looks like just some cleanup needed before PR readiness.

crystalct commented 4 years ago

Found commit that introduced that big endian issue: https://github.com/libretro/libretro-uae/commit/9c512a45d711e8b5b5126e0a2dd3b48d2806dc95

crystalct commented 4 years ago

A not elegant fix....

retrodep/machdep/m68kops.h:

#if defined (WIIU) || defined (__CELLOS_LV2__)
#include <retro_endianness.h>
#if RETRO_IS_BIGENDIAN
#define WORDS_BIGENDIAN
#endif
#include "../../sources/src/md-generic/m68kops.h"
#elif defined (__x86_64__)
#include "../../sources/src/md-amd64-gcc/m68kops.h"
#elif defined (__i386__)
#include "../../sources/src/md-i386-gcc/m68kops.h"
#elif defined(__powerpc__)
#include "../../sources/src/md-ppc-gcc/m68kops.h"
#else
#include <retro_endianness.h>
#if RETRO_IS_BIGENDIAN
#define WORDS_BIGENDIAN
#endif
#include "../../sources/src/md-generic/m68kops.h"
#endif

retrodep/machdep/m68k.h:

#if defined (WIIU) || defined (__CELLOS_LV2__)
#include "../../sources/src/md-generic/m68k.h"
#elif defined (__x86_64__)
#include "../../sources/src/md-amd64-gcc/m68k.h"
#elif defined (__i386__)
#include "../../sources/src/md-i386-gcc/m68k.h"
#elif defined(__powerpc__)
#include "../../sources/src/md-ppc-gcc/m68k.h"
#else
#include "../../sources/src/md-generic/m68k.h"
#endif

...because WIIU and __CELLOS_LV2__ must be before others or powerpcis recognized by PS3 (and i suppose by WIIU too).

sonninnos commented 4 years ago

How about instead: #elif defined(__powerpc__) && !defined(WIIU) && !defined(__CELLOS_LV2__)

crystalct commented 4 years ago

Yes Is Better. I thought the same thing After my post 🤭

Il lun 19 ott 2020, 17:18 Tony notifications@github.com ha scritto:

How about instead:

elif defined(powerpc) && !defined(WIIU) && !defined(__CELLOS_LV2__)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/libretro/libretro-uae/issues/283#issuecomment-712238633, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMY7LOKM7FZIGRLOZWYO6DSLRKERANCNFSM4MSZ3VUQ .

sonninnos commented 3 years ago

@Azy77 Could you test the current WiiU build once it is available?

crystalct commented 3 years ago

@vaguerant could you test this core on WiiU? There wasn't reply from @Azy77 :-(

vaguerant commented 3 years ago

Seems to be working on my end, I think. I have no experience emulating Amiga computers, but I was able to boot an A500 game successfully. I tried another game (A600, I think?) but just got booted back to the AmigaDOS screen. Possibly I needed to use different settings, I really don't know what I'm doing. But the core certainly seems to be reading the Kickstart ROMs successfully, so the issue as stated seems resolved to me.

crystalct commented 3 years ago

You are always precious, thanks! @sonninnos , i think this issue can be closed.

Azy77 commented 3 years ago

Sorry guys for no reply I don't use wii u anymore. Either way, glad issue got sorted for you guys.

On 30 Oct 2020 14:30, "crystalct" notifications@github.com wrote:

You are always precious, thanks! @sonninnos https://github.com/sonninnos , i think this issue can be closed.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/libretro/libretro-uae/issues/283#issuecomment-719586130, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJO55VXVLPDOKL5UD6SM5UDSNLEYVANCNFSM4MSZ3VUQ .