israpps / wLaunchELF_ISR

Stable fork of the most famous file browser for Playstation 2
https://israpps.github.io/20210113_wLaunchELF_isr/
131 stars 10 forks source link

Which ps2sdk version to use to compile? #39

Open djseban opened 1 year ago

djseban commented 1 year ago

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 commented 1 year ago

Hi

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

djseban commented 1 year ago

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

israpps commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 11 months ago

not sure if youre still testing this...

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