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

Chinese BIOS does not work #3141

Closed
Qwest8K opened this issue Oct 25, 2019 · 16 comments
Closed

Chinese BIOS does not work #3141

Qwest8K opened this issue Oct 25, 2019 · 16 comments

Comments

@Qwest8K
Copy link

Qwest8K commented Oct 25, 2019

PCSX2 version: v1.5.0-3309

PCSX2 options: EE/IOP and VU default settings, disabled all speedhacks and fixes.

Plugins used: Default plugins and settings, except LilyPad with disabled Xinput and DirectInput APIs, unplugged second controller and assigned on keyboard first controller (DualShock 2).

Description of the issue: Black screen on trying to run BIOS of Chinese model PS2.

How to reproduce the issue: Dump bios from one and only Chinese PS2 model SCPH-50009 and run it on emulator.

Last known version to work: Unknown

PC specifications: CPU - Intel Core i7-4790K @ 4.00GHz; GPU - Zotac GeForce GTX 980 4GB; OS - Windows 7 SP1 64 Bit.

@ssakash
Copy link
Member

ssakash commented Oct 25, 2019

Could you provide the content of your emulog while reproducing this issue?

@Qwest8K
Copy link
Author

Qwest8K commented Oct 25, 2019

Yes.
emuLog.txt

@RedPanda4552
Copy link
Sponsor Contributor

Was this a "No Disc" boot? If not, could you try that?

@Qwest8K
Copy link
Author

Qwest8K commented Oct 25, 2019

It was boot without disk.

@ghost
Copy link

ghost commented May 29, 2020

While i was looking on emulogs posted here (ziped one): https://forums.pcsx2.net/Thread-Ape-Escape-2-SCCS-40001-C?pid=609711#pid609711
I noticed that bios can't load rom2:GB18030.

I also found that pcsx2 code, have possible issues:

namespace Ps2MemSize

ROM sizes are hardcoded which seems to be wrong because according to google ROM1, and EROM can have different size than hardcoded ones. For SCPH-50009 and SCPH-70006 both additional roms seems to be 512kb, and erom 3mb.

vtlb_MapBlock(eeMem->EROM, 0x1e040000,Ps2MemSize::ERom);

So this memory map will overwrite ROM1 (if full 512kb will be loaded).

Emulog provided by user on forum have more info than one provided here. This bios can't work properly without ROM2, so loading only BIN file for sure not gonna work.

open name rom2:GB18030 flag 1 data 4a678 open fd = -6

This is where bios fail for now when all files are provided.
As far as i know this is loaded by rom0:ADDROM2
GB18030 file is probably FONT file for Chinese characters.

Also maybe something is wrong here:

#define psR2s8(mem) (*(s8 *)&eeMem->ROM2[(mem) & 0x3ffff])

All this seems to be unused, or maybe i just can't find where.

That what i was able to find without having that PS2 model, and it's bios. Maybe that info will help somehow.

@Qwest8K
Copy link
Author

Qwest8K commented May 30, 2020

@kozarovv Sorry, but I do not see any log in the link that you showed.

@ghost
Copy link

ghost commented May 30, 2020

Post there was removed, and i didn't made copy.

In log with boot bios, last line before restart was:
open name rom2:GB18030 flag 1 data 4a678 open fd = -6

On log with game loading it was something about rom0:ADDROM2.
Looks like rom2 isn't properly supported in PCSX2. Plus issues i mentioned above.

@Qwest8K
Copy link
Author

Qwest8K commented May 30, 2020

@ghost
Copy link

ghost commented Jun 5, 2020

This version should fully support Chinese Bios, if someone is able to test, and post result, then i can create PR, or at least describe what is wrong. Full bios dump is required (.bin .rom1 .rom2).

pcsx2_chn.zip

@ghost ghost mentioned this issue Jun 5, 2020
18 tasks
@Qwest8K
Copy link
Author

Qwest8K commented Jun 5, 2020

@kozarovv I made tests as you asked me in PM in PCSX2 forum:

  1. Emulator's build that you provided to me really nicely runs BIOS of SCPH-50009 with .BIN and both .ROM files. In hardware mode, there is a graphic artifact at the bottom of the screen:
    Graphic artifact at the bottom of the screen
  2. However, if try to boot any game through the Chinese BIOS by a full load, then this screen will appear:
    gsdx_20200605203104
  3. And this is a log file of "Boot ISO (full)" through Chinese BIOS:
    emuLog if trying to run any game with Boot ISO (full).txt
  4. But with fast ISO boot, games runs as they should. In particular - Chinese edition of Ape Escape 2 [SCCS 40001]:
    Main menu of Chinese Ape Escape in PCSX2
  5. I tested it only a little time and game work on "Playable" level. Hardware mode has a color issue:
    Ape Escape 2 (China) hardware mode color issue

@ghost
Copy link

ghost commented Jun 5, 2020

Thank you for testing.

Full boot seems to be some different issue in pcsx2, not related to SCPH-50009 bios itself.
Looks like every BIOS that have additional rom1 size grater than 256KB will fail to full boot on pcsx2.
I tested that on my SCPH-50004 bios, and full boot also fail. I tried to fix that in few ways, including reserving more memory, but no luck for now.

This kind of roms also fail on build without my changes.

@lightningterror
Copy link
Contributor

Fixed in #3439

@seta-san
Copy link
Contributor

seta-san commented Aug 9, 2020

Yes.
emuLog.txt

@Qwest8K could you please write a compatibiltiy report for the chinese version of ape escape using the latest development build and the chinese bios?
https://forums.pcsx2.net/Thread-Ape-Escape-2-SCCS-40001-C?pid=576504#pid576504

@Qwest8K
Copy link
Author

Qwest8K commented Aug 13, 2020

@ab310714gz4700
Copy link

DTL-H50009 Debug Chinese BIOS does not work yet

@mirh
Copy link

mirh commented Oct 29, 2023

The problem there may be the debug part (#1549), not the region.

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

7 participants