Could you try this and test it on this.. for us ?MastaG wrote:So I gave it a shot, but your releases don't seem to be running from IDE drive using loader 0.6.x.
Gens4All starts but freezes after pressing start on the title screen.
NesterDC, Snes4All and GNUBoyLoaded boot into a black screen.
For compatibility with IDE (HDD/CF) you'll need to:
- Unscramble the boot binary (usually 1ST_READ.BIN)
- Hex patch the boot binary and replace: E4745FA0 with: EC745FA0
In Linux I usually just do: sed -i 's/\xE4\x74\x5F\xA0/\xEC\x74\x5F\xA0/g' 1ST_READ.BIN
- Make sure to append the bootloader (IP.BIN) when building with mkisofs and use LBA 0
mkisofs -C 0,0 -V Gens4All -G IP.BIN -rock -l -o gens4all.iso gens4all_directory
Then the resulting iso file should boot from SD but also from IDE
Gens4all RC4 Loaded Iso for SD
- Ian Micheal
- Developer
- Posts: 6290
- Location: USA
- Contact:
Re: Gens4all RC4 Loaded Iso for SD
-
- MegaDeath
- Posts: 222
Re: Gens4all RC4 Loaded Iso for SD
SureIan Micheal wrote:Could you try this and test it on this.. for us ?MastaG wrote:So I gave it a shot, but your releases don't seem to be running from IDE drive using loader 0.6.x.
Gens4All starts but freezes after pressing start on the title screen.
NesterDC, Snes4All and GNUBoyLoaded boot into a black screen.
For compatibility with IDE (HDD/CF) you'll need to:
- Unscramble the boot binary (usually 1ST_READ.BIN)
- Hex patch the boot binary and replace: E4745FA0 with: EC745FA0
In Linux I usually just do: sed -i 's/\xE4\x74\x5F\xA0/\xEC\x74\x5F\xA0/g' 1ST_READ.BIN
- Make sure to append the bootloader (IP.BIN) when building with mkisofs and use LBA 0
mkisofs -C 0,0 -V Gens4All -G IP.BIN -rock -l -o gens4all.iso gens4all_directory
Then the resulting iso file should boot from SD but also from IDE

I'll try to build it tomorrow, but I'll need to know if the boot executable is already scrambled or not.
I'm actually writing a script which takes care of building SD images from cdi files.
Only things left are:
- finding a way to detect whether a Dreamcast executable is katana, wince, or homebrew
- in case homebrew, finding out wether it's already scrambled (if it's a selbooting cdi, then it probably is, but I'm adding the possibility to build from plain files as well, in this case I need to know)
- Ian Micheal
- Developer
- Posts: 6290
- Location: USA
- Contact:
Re: Gens4all RC4 Loaded Iso for SD
It's unscrambledMastaG wrote:SureIan Micheal wrote:Could you try this and test it on this.. for us ?MastaG wrote:So I gave it a shot, but your releases don't seem to be running from IDE drive using loader 0.6.x.
Gens4All starts but freezes after pressing start on the title screen.
NesterDC, Snes4All and GNUBoyLoaded boot into a black screen.
For compatibility with IDE (HDD/CF) you'll need to:
- Unscramble the boot binary (usually 1ST_READ.BIN)
- Hex patch the boot binary and replace: E4745FA0 with: EC745FA0
In Linux I usually just do: sed -i 's/\xE4\x74\x5F\xA0/\xEC\x74\x5F\xA0/g' 1ST_READ.BIN
- Make sure to append the bootloader (IP.BIN) when building with mkisofs and use LBA 0
mkisofs -C 0,0 -V Gens4All -G IP.BIN -rock -l -o gens4all.iso gens4all_directory
Then the resulting iso file should boot from SD but also from IDE
I'll try to build it tomorrow, but I'll need to know if the boot executable is already scrambled or not.
I'm actually writing a script which takes care of building SD images from cdi files.
Only things left are:
- finding a way to detect whether a Dreamcast executable is katana, wince, or homebrew
- in case homebrew, finding out wether it's already scrambled (if it's a selbooting cdi, then it probably is, but I'm adding the possibility to build from plain files as well, in this case I need to know)
has to be scrambled does not boot on serial port ether..
-
- MegaDeath
- Posts: 222
Re: Gens4all RC4 Loaded Iso for SD
Alright I've created an iso file for testing:
https://mega.nz/file/D1ViiSqI#cM9C5pJD1 ... ilExoPCzWI
Steps I took:
So assuming that the 1ST_READ.BIN was already unscrambled and the IP.BIN is meant for homebrew (no katana stuff added by binhack), it should work.
But I can only test it tomorrow.
https://mega.nz/file/D1ViiSqI#cM9C5pJD1 ... ilExoPCzWI
Steps I took:
Code: Select all
# create empty directory
mkdir gens
cd gens
# unpack Slaminger's iso
7z x /home/mastag/Downloads/gens4all_v4_3.iso
# Patch 1ST_READ.BIN
sed -i 's/\xE4\x74\x5F\xA0/\xEC\x74\x5F\xA0/g' 1ST_READ.BIN
# Go one directory up and create the iso file
cd ..
mkisofs -C 0,0 -G gens/IP.BIN -rock -l -o gens4all_v4_3.iso gens
# Compress
zip gens4all_v4_3.zip gens4all_v4_3.iso
But I can only test it tomorrow.
- MoeFoh
- 1300
- Posts: 1380
Re: Gens4all RC4 Loaded Iso for SD
Didn't I read somewhere (megavolt85?), SQ's won't work with SD Serial?Ian Micheal wrote:I will have to try it but so far any hex patched bin for IDE has failed to load on sd serial port for me.. Good thing is serial port you can go over the 2gb limit of the gdemu have up to 32gb iso.. cant do that on gdemu ..
Last edited by MoeFoh on Sat Apr 16, 2022 9:26 am, edited 2 times in total.
- Ian Micheal
- Developer
- Posts: 6290
- Location: USA
- Contact:
Re: Gens4all RC4 Loaded Iso for SD
IM using the same on Snes4all build i did and it's working on serial port.. Same way TapamN is where i got the example.. This is working fine i tested it on serial the other day.. can have 4gb iso ..MoeFoh wrote:Didn't I read somewhere (megavolt85), SQ's won't work SD Serial?Ian Micheal wrote:I will have to try it but so far any hex patched bin for IDE has failed to load on sd serial port for me.. Good thing is serial port you can go over the 2gb limit of the gdemu have up to 32gb iso.. cant do that on gdemu ..
So every rom every made far better then gdemu or such limit
- Ian Micheal
- Developer
- Posts: 6290
- Location: USA
- Contact:
Re: Gens4all RC4 Loaded Iso for SD
He is talking about MMU..MoeFoh wrote:Didn't I read somewhere (megavolt85), SQ's won't work with SD Serial?Ian Micheal wrote:I will have to try it but so far any hex patched bin for IDE has failed to load on sd serial port for me.. Good thing is serial port you can go over the 2gb limit of the gdemu have up to 32gb iso.. cant do that on gdemu ..
- MoeFoh
- 1300
- Posts: 1380
Re: Gens4all RC4 Loaded Iso for SD
Another bonus point for the wrongly bad-mouthed SD Serial Mod.Ian Micheal wrote:IM using the same on Snes4all build i did and it's working on serial port.. Same way TapamN is where i got the example.. This is working fine i tested it on serial the other day.. can have 4gb iso ..MoeFoh wrote:Didn't I read somewhere (megavolt85), SQ's won't work SD Serial?Ian Micheal wrote:I will have to try it but so far any hex patched bin for IDE has failed to load on sd serial port for me.. Good thing is serial port you can go over the 2gb limit of the gdemu have up to 32gb iso.. cant do that on gdemu ..
So every rom every made far better then gdemu or such limit
- megavolt85
- Developer
- Posts: 2187
Re: Gens4all RC4 Loaded Iso for SD
I said that when the MMU is enabled, you cannot read data in RAM, it doesn’t matter if you just read data or using SQ, the only way to access is DMAMoeFoh wrote:Didn't I read somewhere (megavolt85), SQ's won't work with SD Serial?
-
- MegaDeath
- Posts: 222
Re: Gens4all RC4 Loaded Iso for SD
It works nowMastaG wrote:Alright I've created an iso file for testing:
https://mega.nz/file/D1ViiSqI#cM9C5pJD1 ... ilExoPCzWI
Steps I took:So assuming that the 1ST_READ.BIN was already unscrambled and the IP.BIN is meant for homebrew (no katana stuff added by binhack), it should work.Code: Select all
# create empty directory mkdir gens cd gens # unpack Slaminger's iso 7z x /home/mastag/Downloads/gens4all_v4_3.iso # Patch 1ST_READ.BIN sed -i 's/\xE4\x74\x5F\xA0/\xEC\x74\x5F\xA0/g' 1ST_READ.BIN # Go one directory up and create the iso file cd .. mkisofs -C 0,0 -G gens/IP.BIN -rock -l -o gens4all_v4_3.iso gens # Compress zip gens4all_v4_3.zip gens4all_v4_3.iso
But I can only test it tomorrow.

It's only missing out on Sonic 3 + Knuckles

Amazing how well it runs everything, even Sonic 3D is silky smooth.
This build seems to be a lot more refined as it also asks me to save to VMU when exiting a game, very nice!
I guess for IDE HDD/CF, all homebrew needs to be patched (and unscrambled in case it's being extracted from a selfboot image).
I hope a future update of DreamShell will detect homebew and auto-patch it upon loading

I'll finish my script and release it here for easy converting cdi images to iso for SD/IDE.
I'll make sure it will also work when pointing to a directory containing plain files.
Just need to add some logic to detect homebrew vs katana and scrambled vs unscrambled.
Then somebody can take care of converting everything

-
- Similar Topics
- Replies
- Views
- Last post
-
- 1 Replies
- 3530 Views
-
Last post by runkthepunk
-
- 0 Replies
- 3208 Views
-
Last post by Slaminger
-
- 4 Replies
- 9814 Views
-
Last post by Lichtkegel