Exarkuniv / RetroPie-Extra

A collection of unofficial scripts for adding more emulators/ports/games to RetroPie.
MIT License
80 stars 23 forks source link

Add AetherSX2 for pi 4 / pi 5 64bit #181

Closed retropieuser closed 5 months ago

retropieuser commented 6 months ago

AetherSX2 / A Closed Source Fork of PCSX2 with ARM64 support

Following on from https://github.com/Exarkuniv/RetroPie-Extra/issues/177 I've taken a stab at this. Can you take a look and advice some tips as I've not written or pushed a script before

I don't have a pi 4 anymore but this should work with Pi 4 on a 64bit Raspberry Pi OS, such as the current stable OS they use. It won't work on buster and the old Official RetroPie image.

Exarkuniv commented 6 months ago

ill give this a shot and let you know

Exarkuniv commented 6 months ago

@retropieuser ok i gave this a shot

Executing (via xinit): /opt/retropie/emulators/aethersx2/AetherSX2-v1.5-3606/usr/bin/aethersx2 -nogui /home/pi/RetroPie/roms/ps2/Hulk (USA).iso

/dev/shm/retropie_xinitrc: line 9:  3318 Segmentation fault      /opt/retropie/emulators/aethersx2/AetherSX2-v1.5-3606/usr/bin/aethersx2 -nogui "/home/pi/RetroPie/roms/ps2/Hulk (USA).iso"
xinit: connection to X server lost

is what i get and the rom does not start. also should list that bios is needed. i dont know if i got the right ones

ill see what i can figure it out for more details

do you need a desktop?

retropieuser commented 6 months ago

Did you switch to the kernel8.img? I should've mentioned that's necessary for aethersx2, it seems to be 4kb memory pages only

Exarkuniv commented 6 months ago

no i did not, and yes for now best to add that until a image is releaced, i have a feeling that will be done for us at that time.

Exarkuniv commented 6 months ago

ok i got it to work so one thing is that it does not see the bios. it is looking for it in the ```/home/pi/.config/aethersx2/bios

not sure if we can change that or if a symblink is needed here. also a example of that bios name we are looking for is also good i have a bunch i and i found the folder through the menu but it is still not seeing them or liking them. not sure which

Exarkuniv commented 5 months ago

so i have been messing with this more i found that the issue was the .ini file was not being made

i was getting this error /home/pi/RetroPie-Setup/ext/RetroPie-Extra/scriptmodules/emulators/aethersx2.sh: line 53: f: command not found if seems to always come up t one time when no folders are there, but the folders are still made and the ini is made.

i have been testing the dolphin scritp since its close to it

Exarkuniv commented 5 months ago

ok i figured it out

Exarkuniv commented 5 months ago

@retropieuser ok i got back to this, sorry it took me this long i have a few tiny changes, but i want to get all my testing done first so the bios folder now works fine, and i was able to get a game playing

the thing is, i have no sound

whats a game that is working for you? and whats the checksum of the bios you are using

retropieuser commented 5 months ago

Pulseaudio or pipewire could be the issue there? I don't think I installed or edited those when building RetroPie manually though

So couple of games off top of my head that definitely work:-

Bully GTA 3 GTA San Andreas ICO Gradius V Dragon Quest V Final Fantasy X Kingdom Hearts 1 & 2

There's loads more I've tested and are alright

Edit:- I'll add the bios checksum later

Exarkuniv commented 5 months ago

thanks, i have audio in the main RP menu and in NES and SEGA games, just not PS2

all i did was use the latest lite OS and https://github.com/danielfreer/raspberrypi5-retropie-setup to install RP what OS are you useing

retropieuser commented 5 months ago

Oh okay. I used the official doc info

https://retropie.org.uk/docs/Manual-Installation/

I essentially installed raspberry pi os 64bit lite during the official imager, enabled ssh, wifi. Then did these steps except relating to the locale settings as that's already done by the imager

Exarkuniv commented 5 months ago

so no different then what i used,

here is the bios i have working ps2-0230e-20080220.bin im trying GTA3 (plays not that bad) but still no sound

here is a cut from my runcommand

[    1.9561] (Cubeb) Using normal 2 speaker stereo output.
[    1.9562] (Cubeb) Minimum latency: 40.00 ms (1920 audio frames)
[    1.9562] (Cubeb) Minimum latency is above requested latency: 1920 vs 960, adjusting to compensate.
[    1.9562] (Cubeb) Could not create stream: -1
[    1.9563] Opening PAD...
[    1.9563] Opening DEV9...
[    1.9563] DEV9: DEV9init
[    1.9564] DEV9: DEV9init2
[    1.9564] DEV9: DEV9init3
[    1.9636] DEV9: DEV9init ok
[    1.9636] DEV9: DEV9open
[    1.9636] DEV9: open r+: DEV9hdd.raw
[    1.9636] Opening USB...

is seems to see that audio should be playing but i have nothing this is a a clean reload of pi OS lite and a clean build or RP

retropieuser commented 5 months ago

Okay have added pulseaudio, that's a requirement for sound to work

Exarkuniv commented 5 months ago

Well I did try just only pulseaudio, nothing happened.

Guess I'll try it with a fresh from scratch load and see what happens

retropieuser commented 5 months ago

Strange, could always add things like libpulse-dev libsoundtouch-dev portaudio19-dev perhaps those are needed somehow

Exarkuniv commented 5 months ago

i think its good to go now. only why to know for sure is have people test it.

Dastronik commented 5 months ago

I have tested it and i got a Blackscreen and the Game won´t start . I switched to the kernel8.img , i have the right BIOS , i tested it with multiple Games ( GTA 3 included ) and i used the latest script . I´m on Raspberry Pi 5 . When you can tell me how i open the Runcommand window in Retropie to see what´s going on , then i can provide further Information .

Exarkuniv commented 5 months ago

Open this in a issue. Not in the pull for this script. Thx It will keep it cleaner