Let me give you some updates. Merry Christmas!
First: I'm now using N64 SDK, and the homebrew will most likely be based on an existing exemple inside the SDK called "pfs".
My first test was to make a RTC Test homebrew, unfortunately, it doesn't work on MESS for some reason.
For now, it's untested on real HW,
and IF it works on it, then you might actually expect a Block Viewer during the week because it will be really easy to program.
Second: If you want to read the System Area inside the disk with the Leo library from the SDK, then you might have to take a look at this:
http://pastebin.com/umq12QdJ
It does miracles. Thanks Zoinkity and OzOnE, what you gave me are really useful. That's my christmas present.
Third: I've done more documentation on the disk, thanks to OzOnE's Mario Artist Paint Studio dump.
Unfortunately, it's incomplete, corrupted and pretty much a bad dump in itself. If he wants to release it, it's up to him. It's only good to look at with a Hex Viewer.
And there's lots of funny debug messages. I didn't even expect to laugh at them, but I might just share some of them with you guys:
- "FATAL ERROR: CAN'T CREATE N64DD MANAGER, EXPECT THINGS TO FUCK UP"
- "Trying to create an icon which allready has a back sprite index %s- ARE YOU FUCKING MAD ??"
- "oh shit, i can't sync up this icon!!"
- "Dog Shit Alley!"
EDIT:
So here's the first release of 64DD Block Viewer. It's made with the SDK, and it works...
not on an Everdrive 64 v2.
It just doesn't work on it. It works on a HW v1, but that's it. I heard about using OS 1.27 and lower to get it working, but Jimmy130 and I couldn't find it, but anyway I've decided to give to you all, a development version:
https://mega.co.nz/#!dJRimJgR!1iqPx7TWcXuLmKpttbxe2_GZuy9SFFHVF-7-DkpFM2c
As a result,
the future dumper will probably only work on a 64drive because of simpler librairies and inconsistencies with the Everdrive 64. I have no idea how to manually do that to a SD card anyway.
It doesn't work on a development 64DD, but here's a detail about blocks:
LBA 2,3,7,10,11,12,16,17,18,19,20,21,22 and 23 CANNOT BE READ. I assume it's a copy protection of the System Area.
If you see "Disk ID: ????", that means it doesn't recognize the disk.
If you see "LEO_ERROR_GOOD", don't worry, that means everything's fine, either way, the Hex Viewer will blink in red to warn you of an error. If it doesn't, you're good to go.
Also, to ensure it works,
you must insert a disk BEFORE running the ROM. And then you can look at all the blocks of the disk. Feel free to manually type every bytes. lol
At least, be happy, dumping time should be soon enough. Maybe before 2015 if we're lucky.
I would want to release the source but it's based on a demo (pfs) which I only touched the main.c file.