@LeGit / FG
I found a way to bypass the first 45166 access:
please hex edit 1st_read.bin offset 0x211B5A from "12 D0 0B 40" to "09 00 09 00".
recreate a selfboot image and test it on NullDC. If all when well then burnt it to CDR and test on a retail DC.
Cross your fingers and be prepared for a coaster.
Sadly I won't be home for another 24 hours or so so I am unable to try it yet. Perhaps FG could log in and have a bash in have meantime.
Just logged in the VNC, installed some things and tried hian's idea:
It boots in NullDC, and goes in-game (was going in-game without the hack also).
Bottomline, it hasn't changed anything in a NullDC point-of view.
Maybe ASSEMbler can try to burn it just to see.
I also noticed that the mounted files doesn't boot if advanced emulation is not checked in Daemon tools. It crashes NullDC in a few seconds (reading sector 45000 according to console) ...
@hian: I still want to know why it's always 09 00 09 00 ...
FG
Could this be a beakthrough?? Fingers crossed. I've been following this thread everytime someone makes a new post.
Please be more precise by what you mean by "same old shit". I personally beleive this will get cracked eventually, if the GD-R can boot on a retail DC using a SD2, making a CD-R boots should be possible with small, but clever, modifications.
The main difficulty here seems to be the non-standard way the binaries are made. Maybe they are this way because they are still in debug format, or maybe it simply is a game that uses its own custom libraries instead of the standard ones.
@hian: Have you checked the original ip.bin for custom bootstrap? It's possible that when we overwrite the custom bootstrap with the mil-cd exploit in the ip.bin we break something that's needed for Geist to boot well.
FG
Could you simply build your own gdi with only the original ip.bin and original bootbin. Like to create your own three tracks and make a gdi accordingly? I think the DreamcastSDK could actually let you do that (minus the gdi creation part of course) without a devkit, not sure though. Anyway the three track can easily be made with mkisofs also.
This way you could see the boot process (until another file than those two is loaded) but in gd-rom mode rather than in mil-cd mode.
Just an idea.
FG
@FG
the problem is not creating the image. The problem is how to make NullDC stop precisely at the beginning of the IP.BIN
I had the same problem the other day hian. In debugger mode I would click start then just as I see the commands about to appear where it dies I click stop and it is too late every time. I'll have to go through the source and figure out when it calls to narrow down the search so I can merely use goto.
FYI this is as close as I got before it died but my connection is being hammered by other things atm which wont help. I'm pretty sure I stopped and started it around the 8 bit VRAM writes.
I guess manually presing a key before each operation like in some C++ debugger would takes ages to reach ip.bin too ...
Couldn't a dump be made and THEN analysed?
FYI hian dynarec has been disabled for debugging anyway and it is nullDC 1.04 but it also fails to load the .cdi regardless.
My connection is pretty bad today and I've been distracted elsewhere so I haven't made much progress today - I also have a lot of preparations to do for Saturday so I'm going to be pretty busy until then but I'll mke time for an hour or so a day to test whatever FG forgot to test or to check out some things myself.
a few silly questions:
1. does the GDR work in a retail DC? I bet yes with swap trick/SD2
2. does the .gdi work in NullDC?
3. the hack I posted does not work on a retail DC, doesn't it? Does it failed the same way as previous CDRs?
just try to make sure my assumptions are correct.
@LeGIt
I found the way to make NullDC stop right at the beginning of the IP.BIN
Hexedit IP.BIN offset 0x3800 and change the code from "06 D0 2B 40 09 00 09 00" to "06 D0 00 00 09 00 2B 40" (this example is for the original IP.BIN)
00 00 is an illegal instruction and NullDC will stop right there
Start the debugger then press skip once (to skip the illegal code)
set a breakpoint (closest is the codes 2B 40 - JMP @R0)
go to NullDC's console and press "ENTER" to get NullDC running again and it will break at the breakpoint.
Now you can start debugging. Good luck!
In the meantime, I will start debugging the bios to learn more about how the system works - back to basics. Yes, that might take me ages but in the long run, I will be better equipped to handle difficult cases like this.