-
Notifications
You must be signed in to change notification settings - Fork 1
Notes #3
Description
Compiles with gkbmdz/ps2dev:latest, which is ps2sdk from 2021-10-16 (ps2sdk:v1.3.0 is from 2021-06-18), until including:
commit 26be1af9657d691a0dcbbbf4ba285eb231a53c76
Author: Maximus32 <rgaiser@gmail.com>
Date: Mon Jun 6 21:49:01 2022 +0200
Dynamically check fakemodule list, fixes PADEMU on SMB/HDD with some games
Jay-Jay's last commit is aa531a8
TODO: Test ELM. If it works: Switch to a slightly newer ps2sdk, try again, if it still works: Move forward!
DONE! Result: Yes, works, including ELM/popstarter. In PCSX2 and on real hardware. Branch: "smaller-steps", Commit cf7215d
Next commit would be 49e383c ("Fix: rename __NR__Exit to __NR_KExit"), which works around a syscall renaming in ps2sdk in 2022/05/31 (ps2dev/ps2sdk@00a4a9a) - means I have to either skip that patch, or move to a newer toolchain.
When skipping this patch and (reverting this commit) and merging all commits until end of 2022 (see branch smaller-steps-2), building fails with
make[1]: Entering directory '/project'
In file included from src/supportbase.c:8:
./modules/iopcore/common/cdvd_config.h:82:5: error: unknown type name ‘bd_fragment_t’
82 | bd_fragment_t frags[BDM_MAX_FRAGS];
| ^~~~~~~~~~~~~
make[1]: *** [Makefile:744: obj/supportbase.o] Error 1
make[1]: Leaving directory '/project'
make: *** [Makefile:218: all] Error 2
This was introduced in 8f04d00 at 2022-06-15.
TODO: Try building with a newer ps2sdk and try again
DONE!:
- ps2sdk "redsonbr/ps2dev:latest" (2023-03-23)
apk add make git python3 py3-yaml bash
- required additional commits to get it building:
- Applied changes from a98ee6b also at elfldr's Makefile and elfldr.c
-> Works, including ELM/popstarter - but only in pcsx2, not on real hardware! (Branch: smaller-steps-redsonbr)
** TODO:** Apply more commits and try again
DONE!:
- ps2sdk "redsonbr/ps2dev:latest" (2023-03-23)
apk add make git python3 py3-yaml bash
- Applied all commits until end of 2022
-> Works, including ELM/popstarter - but only in pcsx2, not on real hardware! (Branch: end-of-2022)
** TODO:** Apply more commits and try again
DONE!:
- ps2sdk "redsonbr/ps2dev:latest" (2023-03-23)
apk add make git python3 py3-yaml bash
- Applied all commits until 2023-03-31
-> OPL hangs on start with blinking network activity icon, probably while populating ETH games list (Branch: 2023-03-31)
** TODO:** Ignore last failure, but apply more commits and try again
DONE!:
- ps2sdk "redsonbr/ps2dev:latest" (2023-03-23)
apk add make git python3 py3-yaml bash
- Applied all commits until 2023-08-19
-> Works, including ELM/popstarter! (Branch: 2023-08-19)
** TODO:** ps2homebrew switched from ps2dev/ps2dev:latest to ghcr.io/ps2homebrew/ps2homebrew:main (c276b43). Try with that!
DONE!: Works, including ELM/popstarter! (Branch: 2023-08-19)
TODO:
- Check "About" screen (and add myself)
- Change CI to use ghcr.io/ps2homebrew/ps2homebrew:main
- elfldr Makefile: "-G8192" or "-G0"? -> both works on pcsx2, so stick with "-G8129"
- Test on PS2 -> failed!
- Clean up commits -> done
- Overwrite master branch -> done
- Update PR at Jay-jay
** TODO**: ??? Clueless... ????
- Try the "smaller-steps" branch on real hardware -> works!
- Try to update elfldr to be more similar to ps2sdk's? -> done (branches elfldr-update and elfldr-update2) no change: works in PCSX2, but not on PS2
- Try to build the "smaller-steps" branch with different sdks and try again on hardware?
- Revert the commit that switched to ps2sdk's elfldr and try if OPL still loads normal ELFs?
- test "elfldr-update3" branch -> black screen
- What about this commit ps2dev/ps2sdk@3f0c5cb: 928085d64ecc29075819760ae143e8348 ?
- Here are some older ps2sdk versions as docker image: https://github.com/ps2dev/ps2sdk/pkgs/container/ps2sdk/versions?filters%5Bversion_type%5D=tagged
Here's another commit that looks helpful for elfldr: fb847e6