Skip to content
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

Which ps2sdk version to use to compile? #39

Open
djseban opened this issue May 9, 2023 · 8 comments
Open

Which ps2sdk version to use to compile? #39

djseban opened this issue May 9, 2023 · 8 comments

Comments

@djseban
Copy link

djseban commented May 9, 2023

Hey,

I recently tried to compile wLE ISR with the newest PS2 SDK - there were some build errors, but I eventually managed to get compiler to spit out the BOOT.ELF - unfortunately it does not start on PS2 (black screen).

My question is what ps2sdk version to use?

@israpps
Copy link
Owner

israpps commented May 9, 2023

Hi

ps2dev/ps2dev:v1.0 is required to compile this

@djseban
Copy link
Author

djseban commented May 9, 2023

Hey, thanks for the response. There is no such version (only v1.1 and up), am I wrong?

@israpps
Copy link
Owner

israpps commented May 9, 2023

Hey, thanks for the response. There is no such version (only v1.1 and up), am I wrong?

Unfortunately, v1.0 has no binary release on the ps2dev repository. it was a quick thing done before the newlib port, wich was the start of several issues that degraded homebrew software stability over time.

v1.0 is only available as a docker image.

It can be used locally with docker or with github actions, for instance: peek the compilation workflow of this repository

@djseban
Copy link
Author

djseban commented May 9, 2023

Thanks! I succeeded building it with docker image!
I won't hide I was looking more for doing my own VM with libs, rather than docker - I am actually investigating an issue with pasting files in SCPH-7000x with IDE->SD card adapter (FC1307A). Didn't know what might be an issue here, so I reckoned I'd start with decreasing buffer size while writing to hdd0:/ - of course my first hunch didn't turn out to be right, so I'll investigate further.

Do you maybe know which commit exactly is v1.0? I would be more than happy to provide ubuntu binaries somewhere.

@israpps
Copy link
Owner

israpps commented May 9, 2023

Thanks! I succeeded building it with docker image! I won't hide I was looking more for doing my own VM with libs, rather than docker - I am actually investigating an issue with pasting files in SCPH-7000x with IDE->SD card adapter (FC1307A). Didn't know what might be an issue here, so I reckoned I'd start with decreasing buffer size while writing to hdd0:/ - of course my first hunch didn't turn out to be right, so I'll investigate further.

Do you maybe know which commit exactly is v1.0? I would be more than happy to provide ubuntu binaries somewhere.

the problem is that ps2dev is composed of at least 7 repositories...

I'm not sure wich commits. they all must be before the date when newlib port was added to PS2SDK...

If youre debugging HDD I/O issues you will probably need debug versions of the HDD drivers, and compiling wLE with the UDPTTY configuration with a value of 1 to retransmit IOP CPU debug information over udp (wich can be catched with ps2client or netcat

@djseban
Copy link
Author

djseban commented May 10, 2023

Thanks a ton! I managed to compile ps2sdk v1.0 and set up ps2client/ps2link env. Turns out I get this:
atad: Error: DMA timeout. atad: error: ATA failed, -502 atad: Timeout while waiting on busy (0x88). atad: Timeout while waiting on busy (0x88). pfs: Error: Disk error partition 0, block 4248, err -5 atad: Timeout while waiting on busy (0x88).
when filecopy locks up. This is with GAMESTAR_WORKAROUND either 0 or 1
With Gamestar workaround enabled at all times I get:
atad: Error: Command error: status 0x51, error 0x84. atad: error: ATA failed, -510 atad: Error: DMA timeout. atad: error: ATA failed, -502 atad: Timeout while waiting on busy (0x88). atad: Timeout while waiting on busy (0x88). pfs: Error: Disk error partition 0, block 4248, err -5 atad: Timeout while waiting on busy (0x88). atad: Timeout while waiting on busy (0x88). atad: Timeout while waiting on busy (0x88). atad: Timeout while waiting on busy (0x88). atad: Timeout while waiting on busy (0x88).
-510 is CRC error, -502 timeout. Also, on error, activity led on the device becomes solid lit.

About my soldering, I am rather confident about it, taking into account I soldered it a few times on other consoles already (that's the first with SD adapter for me). Also, while troubleshooting I resoldered all wires with better kynar cable... Not sure how to continue, would you have some guesses?

Cheers

@djseban
Copy link
Author

djseban commented May 10, 2023

Seems that enabling MWDMA mode 2 makes the device stable while writing, but it freezes up while using any of the UDMA modes (tried 0 and 4). MWDMA/2 speed is comparable to UDMA mode 0.. Interesting why it happens :)

@israpps
Copy link
Owner

israpps commented Jul 18, 2023

not sure if youre still testing this...

but: https://github.com/ps2homebrew/PS2HDDTester

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants