Hacking and Flashing Game&Watch (Zelda, linux VM)

  Рет қаралды 14,497

Retro Tech Corner

Жыл бұрын

In This video I'm (again) going back to hacking and flashing Game&Watch - and this time it's Zelda variant. Just as in my most recent video I'll be using linux VM as I think it's a faster and more convenient.
Here are the links to my previous videos on Game and Watch hacking:
Mario variant, dual boot, linux VM: kzfaq.info/get/bejne/d5aEZZl1v9q8mqs.html
Mario variant, dual boot, RPi: kzfaq.info/get/bejne/h9iampqJ1LzXm6M.html
Zelda, retro-go only, RPi: kzfaq.info/get/bejne/eKyGocypkqqaYGQ.html
Here's a link to VM image I'm using. It contains all the tools you need, including a script I made to help with coverflow artwork.
mega.nz/file/Tt4TUK6A#rqYRUdWyFb1k47PzeXoGUzvbfJq2OhrM8Ak0ErF0Fas
login: adam
passwd: gameandwatch
Alternative link: drive.google.com/file/d/1Hufz0JupE2pSLhS4sAhHnmCys-40Iw2_/view?usp=sharing
Here's a link to ST-Link device I'm using (colors may vary but it's the same device):
amazon US: amzn.to/3ls1qXp
amazon UK: amzn.to/3XxCpYi
I'm using MX25U51245GZ4I00 chip. Full list of compatible chips is here: www.reddit.com/r/GameAndWatchMods/wiki/flash-upgrade/
Here's the link to the page where I sourced the pinouts from - it's a very well written and well worth reading page (note that it's not dual boot so you may need to follow the video if you want original games and retro-go):
community.element14.com/challenges-projects/project14/hacktheholidays/b/blog/posts/the-n-o-before-christmas-upgrade-time
Here are the commands I'm using in the video (Zelda):
--- Backup and unlock
./1_sanity_check.sh stlink zelda
./2_backup_flash.sh stlink zelda
./3_backup_internal_flash.sh stlink zelda
./4_unlock_device.sh stlink zelda
./5_restore.sh stlink zelda
--- Patching of original firmware
make PATCH_PARAMS="--device=zelda" LARGE_FLASH=1 ADAPTER=stlink flash_patched
--- Generating artwork
make_covers.sh nes
(repeat for each system you want to flash)
--- Build and flash retro-go
make romdef
make COVERFLOW=1 GNW_TARGET=zelda EXTFLASH_SIZE_MB=60 EXTFLASH_OFFSET=4194304 INTFLASH_BANK=2 flash
And here are the commands you can use if you have Mario variant (covered in previous video):
--- Backup and unlock
./1_sanity_check.sh stlink Mario
./2_backup_flash.sh stlink Mario
./3_backup_internal_flash.sh stlink Mario
./4_unlock_device.sh stlink Mario
./5_restore.sh stlink mario
--- Patching of original firmware
make PATCH_PARAMS="--device=mario" LARGE_FLASH=1 ADAPTER=stlink flash_patched
--- Generating artwork
make_covers.sh nes
(repeat for each system you want to flash)
--- Build and flash retro-go
make romdef
make COVERFLOW=1 GNW_TARGET=mario EXTFLASH_SIZE_MB=63 EXTFLASH_OFFSET=1048576 INTFLASH_BANK=2 flash
Please consider subscribing to my channel.
You can buy me a coffee if you like my content: buymeacoffee.com/RetroTechCorner
retrotechcorner
RetroTechCorner

Пікірлер: 44
@nixtan3139
@nixtan3139 2 ай бұрын
I just want to drop by to say thank you. Your video helped me to Jb my game and watch Zelda. It took me half a day because I lifted one of the pad on the motherboard when I tried to remove the original memory chip. However all is good now. I managed to save it.
@arvacon
@arvacon Жыл бұрын
In case of someone can't make VM image to work on windows 10 with vmware workstation (and trying for hours like me), there is a workaround about the issue that says that "this image is not compatible" etc. All you need to do is just load the image and don't run it yet. Then go to the upper bar and choose VM-> Manage-> Change hardware compatibility and just follow the steps from the window that will open. Then choose to fix the same vmx file and you are done. Now you can run the image successfully.
@arvacon
@arvacon Жыл бұрын
Ps: If ubuntu run sluggish, then go to VM -> Settings -> Display -> 3D graphics, and uncheck that box. Then ubuntu will run normally.
@clickinz
@clickinz Жыл бұрын
Excellent mod 👏👏👏👏. Great work!
@M19u3I
@M19u3I Жыл бұрын
👌 excellent as always
@Take_It_Easy_Man_
@Take_It_Easy_Man_ 5 ай бұрын
Great videos on the game and watch. 👍 Those are some awesome tutorials. Greatly appreciated 👍
@RetroTechCorner
@RetroTechCorner 5 ай бұрын
Glad you like them!
@RetroTechCorner
@RetroTechCorner Жыл бұрын
Here's the new link where you can download VM image: drive.google.com/file/d/1Hufz0JupE2pSLhS4sAhHnmCys-40Iw2_/view?usp=sharing
@planetaretro
@planetaretro Жыл бұрын
as soon as i finalize the last step the game just dont boot. kepps black screen. even if every step occur mostly equal. the difference is that im using a 16mb chop instead of 64 and when i run the large flash script i got an error. another odd thing is thar my screen shows 3 tasks instead of 63 like yours what can i do?
@BorgixD
@BorgixD Жыл бұрын
Nice video, what is the extension need it for game and watch roms?
@aryas4928
@aryas4928 Жыл бұрын
Would I be able to add Pokémon gold on stock chip
@PrimoAngelo00
@PrimoAngelo00 Жыл бұрын
Thank you for your guide! Using the VM images you provided it went flowless till flashing retro go with also patched original software (25:20 minutes:seconds). Even keeping holding the power button, I have an endless loop with "state: FLASHAPP_INIT" that repeats over and over without ever stopping. Do you have any advice on how to do it? Flashing the original firmware, patched firmware or just retro go (without original software) is done without any problems. But if I try to flash retro go AFTER original patched for dual boot, I get this bootloop. A thousand thanks!
@iljacoveliers5834
@iljacoveliers5834 Жыл бұрын
Is there a command that checks, if the total size of roms and covers, is within the limits of the 64mb ? That it warns you if you have too much data for the custom firmware ? It seems after the custom firmware build, it says something about the Capacity, Usage and Free space, but that's after the build, would be nice if it warns you before it starts building it.
@pittstone
@pittstone Жыл бұрын
Does your How to support gbc roms? How to i add gbc roms to your folders to build?
@jeromebullard6123
@jeromebullard6123 Жыл бұрын
Do games like super Mario 3 and Zelda games that have save states work or no? I mean does it save your game?
@Callofdutywarzone222
@Callofdutywarzone222 11 ай бұрын
Hi RTC do you do the to my game and watch if I pay you let me know how you can do and how much we will cost me for this job please thanks
@seanocansey2956
@seanocansey2956 6 ай бұрын
Hopefully, this is not a stupid question.... but if every Zelda game and watch is shipped with the same firmware, why isn't there a generic backup file of the original flash content? Is it because of copyright laws, or does every device have a unique serial number?
@seanocansey2956
@seanocansey2956 6 ай бұрын
Because if the microcontroller and flash chip are whipped, there would be no way for the mcu or flash to know the origin of the .bin files, so is it to protect yourself from copyright?
@holoflu
@holoflu Жыл бұрын
Bro its impossiblee to dowload ur image from mega for free, its forcing me to pay in order to download a huge file, plss help! another link would be awesome!
@pietronetutube
@pietronetutube Жыл бұрын
Hello and first thank you for the tutorial!! Second, would you have a link to buy the new flash? Thx
@RetroTechCorner
@RetroTechCorner Жыл бұрын
I'm using MX25U51245GZ4I00 (64MB). I buy them here: ie.farnell.com/macronix/mx25u51245gz4i00/flash-memory-512mbit-40-to-85deg/dp/3129236 but you can buy those on aliexpress as well..
@pietronetutube
@pietronetutube Жыл бұрын
@@RetroTechCorner thx a lot !
@homerghost
@homerghost Жыл бұрын
Sorry if this is mentioned in this video (I'm watching it now!) but can these scripts be easily used with the stock chip? Thanks!
@RetroTechCorner
@RetroTechCorner Жыл бұрын
Yes, you can do this all with stock chip. But it's just 1mb (or 4mb in case of Zelda) and you won't fit too many games...
@aryas4928
@aryas4928 Жыл бұрын
Could it fit Pokémon
@holoflu
@holoflu Жыл бұрын
if im gonna do it with stock memory chip, i skip the patch part, right?
@RetroTechCorner
@RetroTechCorner Жыл бұрын
Yes, but you won't be able to fit many games on original flash...
@aryas4928
@aryas4928 Жыл бұрын
Would I be able to fit Pokémon gold on stock chip
@homebrewGT2
@homebrewGT2 5 ай бұрын
​@@RetroTechCornerlike how many fit in the original?
@nizce1
@nizce1 Жыл бұрын
Hi, thought id try your VM. But just wanted to check if you're using a M1/2 Mac or Intel?
@RetroTechCorner
@RetroTechCorner Жыл бұрын
Intel...
@448johnr
@448johnr 6 ай бұрын
@@RetroTechCorner Do you know if there's a way to get this VM image to run on an Apple Silicon Mac?
@RetroTechCorner
@RetroTechCorner 5 ай бұрын
No idea. It's.different architecture so (probably) not...
@sicktuna5168
@sicktuna5168 Жыл бұрын
I try to flash my Zelda g&w and I'm stuck on step 3. Could you please share the internal flash backup? My screen stays black and it doesn't turn on anymore. I hope that I could unlock it with a copy of the internal flash. Thank you very much
@RetroTechCorner
@RetroTechCorner Жыл бұрын
Sorry, I'm unable to share Nintendo software (for legal reason)..
@yoaltrockmetal
@yoaltrockmetal Жыл бұрын
Hello, could you please share your script for the covers ? thanks
@RetroTechCorner
@RetroTechCorner Жыл бұрын
The script is included in the image I shared...
@yoaltrockmetal
@yoaltrockmetal Жыл бұрын
@@RetroTechCorner i know but I can’t download the image for free, mega is asking to pay.
@RetroTechCorner
@RetroTechCorner Жыл бұрын
oh, sorry - didn't know that... You can download the script here: github.com/RetroTechCorner/gnw-covers You'll most likely need to adjust the two variables: roms_dir and covers_dir
@yoaltrockmetal
@yoaltrockmetal Жыл бұрын
@@RetroTechCorner Thank you so much for your help 😃
@crisperycjusz3807
@crisperycjusz3807 Жыл бұрын
@@RetroTechCorner what am I doing wrong? Can you help? $: ./make_covers.sh nes ./make_covers.sh: linia 21: crc32: nie znaleziono polecenia Super Mario Bros.nes: Cover not found!
@sailfish8804
@sailfish8804 8 ай бұрын
After successfully flashing a G&W Mario, I wanted to flash the Zelda version. Unfortunately I get this problem: Hash mismatch in FLASH. Flashing failed. Flashing chunk 14 failed... power cycle unit and retry? (y/n) Unfortunately it is not possible to continue. I have already created a new image, but without success. This error always occurs: Preparing chunk 15 / 64 in file /tmp/flash_chunk.SctPqW Flashing! . . . Starting flash process Please see the LCD for interactive status. State: FLASHAPP_CHECK_HASH_RAM Hash mismatch in FLASH. Flashing failed. Flashing chunk 14 failed... power cycle unit and retry? (y/n) ^Cmake[1]: *** [Makefile.common:716: flash_extflash] Interrupt make: *** [Makefile.common:726: flash] Interrupt Do you or anyone else have an idea?
@olDirdey
@olDirdey 7 ай бұрын
I also had this error when recopying games. Start at the point where you restore the backups. After the process you should see something on the screen again