-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working ps2 elf #72
Comments
I tried to collect all the options from 6.02.22 to 15.10.20: none works, even if it is being assembled and launched. Moreover, the elf turns out to be 14.3MB in size, that is, less than the 16 MB working elf available on the network. |
If the problem is in the new toolchain, is it possible to find out which toolchain is ok? I tried using different versions of ps2dev: either errors come out, or everything compiles, but it doesn't work. |
The problem is related to the sm64 docker image. If someone solves this problem, then anyone will do the assembly according to the instructions. In the current case, we can use the mkst sm64 docker image, which allows us to compile a working build. |
With the latest ps2dev update from 09/20/2022, everything is working correctly again...but only on emulator((( |
The last successful build I made was back in 2020, and now I no longer have a PS2, so unfortunately I can't help right now. |
Thank you very much for the answer. I'm not compressing the resulting ELF. ELF was loaded on Play+, but had no control, and on PCSX2 it worked with full functionality. On the real hardware (ps2 90004 pal and ps2 90004 ntsc) I had a black screen. If I use mkst docker sm64 image from 1 year ago, then ELF is compiled and loaded on emu and ps2. |
Hi @xdccrlz . Could you please elaborate on this? I don't see a difference in the mkst dockerfile that would be of importance. Do you mean that you have kept a docker image built last year (presumably with a year-old sdk) that works? |
I believe that mkst has not updated its docker image since August last year, when work on the project stopped on active sm64-port/ps2 forks. At the same time, in August 21, the ps2dev version was released, as a result of which a working elf was compiled. Unlike the build of 20, it allowed only two correctly working modes: 480i and 480p, and it started working after applying more than one patch: for example, 60fps and widescreen. The assembly with the old toolchain allowed not only to apply patches, but also worked with all modes of progressive scan using gsm. After switching to the new toolchain, gsm became useless. And with the capabilities of gskit_hires, somehow they didn't really figure it out. As a result, after 09/20/12, new versions of ps2dev allow you to build a working build, but, as already mentioned, only in two modes, probably this is enough. It was important for me to get a high-quality full-screen picture without disproportions, I got it. But without finding out what exactly in the toolchain breaks the assembly without visible errors, we risk getting a black screen again at any time. |
And another important point, it's not the mkst docker file, which is not involved in the compilation at all, but the sm64 docker image, which contains a year-old "successful" version of ps2dev. |
Yes thank you for the answer and clearing that up. Indeed I agree but if the docker image is built now according to the instructions (step 3), it will have the non-working SDK. So the follow-up question is: how do I get or build the docker image today with the working sdk? Sorry if I'm missing or not understanding something... thanks again for replying. |
Apparently, you need to purge docker from the old image, which is picked up by being detected locally. Then the first command with docker will go online for the latest ps2dev, which, as mentioned above, is quite a working one. |
I will add that the image should not only be removed from the images section, but also run command to purge in the docker settings. |
As I expected, the new ps2dev development build broke elf again: hello, black screen! |
IMHO the optimal build is obtained if:
|
@xdccrlz excellent thank you. Pardon my ignorance, would you mind explaining how to do step 3? Thanks. |
src/pc/gfx/gfx_ps2_wapi.c |
Thanks! I saw that that color depth had been fixed in a recent PR. I wanted to build this with as many updates as possible, so instead of going back to code from 04.08.21 I tried the following based on your advice:
Everything seems to be working ok with good colors and the gray bars removed from the main screen. Also packing the elf does not increase load times by much (if at all), at least from a usb drive and the resulting elf is 4.9 MiB. |
A good plan and a competent approach! |
Your approach is more elegant, thank you! |
Instead of rolling back to the old SDK it would be more correct to look into why this doesn't work on real HW with the new one sometimes, because I'm pretty sure fjtrujy tested it after upgrading and it worked. But for now this would be the best solution. |
I completely agree, moreover, a few posts ago I stated the same thing. But, if I can still figure out the code of this project, then, alas, I have no way to look for a black cat in the ps2dev room. As for fjtrujy's requests, I can't support you so fervently, because, firstly, using his ps2dev fork, I also failed to get a working build, and secondly, all his pr from August 2021, imho, did not greatly improve the project, at least deprived it of the opportunity work with the GSM utility. |
In no case should take all of the above as a claim to anyone! All of you who are somehow involved in this project are great fellows and clever! Thank you for the fact that this project exists! |
fjtrujy today posted ps2dev. Build works only on emulators. |
What patches exactly? I want to create a branch in a fork |
Widescreen and 60fps. Last patch must be fixed: it’s very old and conflict with some files. |
will try it out, thanks a lot. |
baserom hash error arising, any idea? |
You need to find the right rom file. Some info about http://www.sm64.com/hashes.html. |
Will try it out, thanks a bunch! |
So I take the widescreen file from enhancements folder, put it in my enhancements folder and run
in base folder using terminal, is that it? |
will skip the patches, the 60fps patch is causing major slowdowns on real hardware |
60fps.patch need a fix for gfx_ps2_wapi.c. Widescreen patch is very usefull on the hdtv. |
I see. I am unable to get it working, but will try it out in the future. I personally don't need widescreen but if there's demand, sure. |
The most common reason for working on real hardware and not on emulator is alignment issues. Buffers on EE should be aligned to 64 bytes, and those on IOP aligned to 16 bytes |
I see |
Might be fixed now courtesy of fjtrujy. |
ooh, will test it out! |
my save vanished :( Will try to debug and see |
Does anyone have a working elf going for the ps2 branch? If so, under which host system?
The text was updated successfully, but these errors were encountered: