Hacking EZ4 kernel 2.02 released

  • Thread starter Thread starter EZ-Flash2
  • Start date Start date
  • Views Views 5,749
  • Replies Replies 32
  • Likes Likes 10

EZ-Flash2

Official EZ-FLASH Stuff
Member
Joined
Jul 16, 2003
Messages
1,240
Reaction score
1,106
Trophies
3
XP
4,029
Country
China
http://www.ezflash.cn/ez-flash-iv-kernel-2-02-released/

We added GLOBAL SOFTRESET AND SLEEP(GSS) patch and customized hotkey configuration file.

default softreset key combination is “L + UP + B”, default sleep key combination is “L + R + START”, default wake up key combination is “START + SELECT”.

Some games can not apply the GSS patch properly, you can use “L+B” to launch them without GSS patch.

If you want to set your own hotkey combination, there is a file named “KEYSET.CFG” in the EZ4Kernel 2.02 package. please check it out. This file must placed in the root of SD card.

We also made a quick tutorial at here

Jump to download

Credits: @kuwanger Thanks for the softreset and sleep hack code.
 
I have noticed an issue with a few ROMs when writing them to NOR. The following games would write to NOR, but would result in a filesize on the NOR of 8448Kb instead of the regular 8192Kb.
That's So Raven (USA).gba (CRC32: 8E190698)
Banjo-Kazooie - Grunty's Revenge (Europe) (En,Fr,De).gba (CRC32: FB4F38E2)

Now, at first I thought the issue could be the apostrophe (special character) in the name so I tried removing that. But that didn't work, the games would still cause this issue. And then I came across "Ab durch die Hecke (Germany).gba" (CRC32: 31E57A19) which also acted the same way. There are no special characters in the name. The only thing these games have in common is that they are all using an EEPROM Save type. But other games that use EEPROM saving are fine.

Can someone verify these issues using these three games?

That's So Raven (USA).gba (CRC32: 8E190698)
Banjo-Kazooie - Grunty's Revenge (Europe) (En,Fr,De).gba (CRC32: FB4F38E2)
Ab durch die Hecke (Germany).gba (CRC32: 31E57A19)

Note: I've tried with the official 2.02 release of the kernel and fresh ROMs and SD Cards. I know for certain that Banjo-Kazooie worked perfectly fine from NOR on 2.01 but now just reset loops on 2.02 due to the bigger file size on NOR.

None of the ROMs I am using are trimmed.
 
Ok, I figured it out (sorry for tripple posting, but I figured it would be better to have the sollution/findings in a separate post instead of burried "within" the issue.

I noticed what these three games have in common: They don't contain any padding, or have been purposely manipulated by the developers to *appear* not to be padded (The last 8 bytes of "That's so Raven" and "Ab durch die Hecke" reads "baisoku!")

It seems as if the GSS Patch gets appended to the end of the ROM if it can't find any padding, increasing the size on NOR by 256Kb, presumably due to NOR block sizes (the GSS patch is probably a lot smaller but write operations on the NOR are probably alligned in 256Kb blocks).

On a side note: The EZ-Flash Team has overlooked of documenting a feature when writing to NOR: If you write a ROM to NOR you can decide of you want the GSS Patch to be applied (by pressing Select) or not (by pressing L+Select). This is very usefull since launching a GSS Patched game off of the NOR will always activate the GSS Patch even if you launch it with L+B. The 256Kb still gets appended when writing to the NOR without the patch enabled, my guess is they are only not patching in the instructions to the game code to execute the GSS Patches.

So, everything's working at least, not sure if appending the additional 256Kb block might cause issues with "non-trimmable" 128Mbit ROMs, though.
 
Ok, I figured it out (sorry for tripple posting, but I figured it would be better to have the sollution/findings in a separate post instead of burried "within" the issue.

I noticed what these three games have in common: They don't contain any padding, or have been purposely manipulated by the developers to *appear* not to be padded (The last 8 bytes of "That's so Raven" and "Ab durch die Hecke" reads "baisoku!")

It seems as if the GSS Patch gets appended to the end of the ROM if it can't find any padding, increasing the size on NOR by 256Kb, presumably due to NOR block sizes (the GSS patch is probably a lot smaller but write operations on the NOR are probably alligned in 256Kb blocks).

On a side note: The EZ-Flash Team has overlooked of documenting a feature when writing to NOR: If you write a ROM to NOR you can decide of you want the GSS Patch to be applied (by pressing Select) or not (by pressing L+Select). This is very usefull since launching a GSS Patched game off of the NOR will always activate the GSS Patch even if you launch it with L+B. The 256Kb still gets appended when writing to the NOR without the patch enabled, my guess is they are only not patching in the instructions to the game code to execute the GSS Patches.

So, everything's working at least, not sure if appending the additional 256Kb block might cause issues with "non-trimmable" 128Mbit ROMs, though.


it will be fixed in next release, the quick tutorial also fixed.
 
Great news! I'm so glad that these features were added. I'm also really happy to see that you've been working with kuwanger - One of the last bastions of the GBA hacking glory days. :) Here's hoping that GB/GBC and NES drag'n'drop can become a thing (still dreaming. :P )!
 
Sleep hack is awesome. Awesome, awesome. I'm not having a lot of success with the global reset hotkey though. Actually, none so far, but I've only tried a few games. Can someone suggest a game for which the global reset code is known to work, so I can see it (or figure out what I'm doing wrong)? Ty.
 
whats the patch folder for? and i cant put metroid zero to sleep mode? any reason why? the rom?
 
Having issues with Kirby - Nightmare in Dream Land. Game loads but when I push START the game freezes.

I've tried both (U) and (E) ROMs from No-Intro and GoodGBA... Anyone else have this problem?
 
Having issues with Kirby - Nightmare in Dream Land. Game loads but when I push START the game freezes.

I've tried both (U) and (E) ROMs from No-Intro and GoodGBA... Anyone else have this problem?

Q: My game crashes/behaves oddly when I launch it from PSRAM (example: Banjo-Kazooie - Grunty's Revenge)
A: The GSS Patch is not 100% compatible with all games, some games simply wont work with the patch running. The EZ-Flash Team has provided us with a way of launching the games without the GSS Patch enabled. Simply launch the Game with the button combination "L+B" from the file selection menu.
 
i am gonna stay with the 2.01 for now. this one seems to be a really good one and stable.. while the 2.02 gets fixed\better

what are the sleep hacks for? to put any game to sleep, or to make the games that come with the sleep function work?
 
i am gonna stay with the 2.01 for now. this one seems to be a really good one and stable.. while the 2.02 gets fixed\better

what are the sleep hacks for? to put any game to sleep, or to make the games that come with the sleep function work?
It puts any game to sleep. Not a feature I ever used.
 
Q: My game crashes/behaves oddly when I launch it from PSRAM (example: Banjo-Kazooie - Grunty's Revenge)
A: The GSS Patch is not 100% compatible with all games, some games simply wont work with the patch running. The EZ-Flash Team has provided us with a way of launching the games without the GSS Patch enabled. Simply launch the Game with the button combination "L+B" from the file selection menu.


Thanks for that. Had a brainfart. :wacko:
 
It puts any game to sleep. Not a feature I ever used.
i rather not use it cuz game compatibility and may break stuff...
i had the "in game menu" patch in my flashcarts, some games had issues with it for example graphical glitches

btw, i seen they also patch soft reset.. whats the difference between that, and the normal softreset (start+select+a+b)
 

Site & Scene News

Popular threads in this forum