Hacking and Flashing Game & Watch (Dual Boot)

  Рет қаралды 28,287

Retro Tech Corner

Retro Tech Corner

Күн бұрын

In this video I'll be hacking Game & Watch (Mario Edition).
I'll be wiring debug port to USB-C port, upgrading flash chip and flashing retro-go and emulators along with original firmware (ie. dual boot).
Wiring debug port to USB-C allows for easier flashing in the future (no need to disassembly the device) and dual boot allows for original firmware to exist alongside retro-go emulators.
0:00 Intro
2:20 Wiring debug lines to USB-C port
23:34 Backup and unlock
36:15 Flash upgrade
46:42 Flashing retro-go
The following sources are used in this video:
- raspberry pi image with all the tools necessary: mega.nz/file/3NhmlJiA#uis6Xha... (source: facelesstech.wordpress.com/20...)
- retro-go NewUI (artwork and coverflow UI): github.com/olderzeus/game-and...
Some of the commands mentioned/used in the video:
1. Backup/unlock/restore
./1_sanity_check.sh rpi mario
./2_backup_flash.sh rpi mario
./3_backup_internal_flash.sh rpi mario
./4_unlock_device.sh rpi mario
./5_restore.sh rpi mario
2. Patching original firmware
export OPENOCD="/opt/openocd-git/bin/openocd"
make PATCH_PARAMS="--device=mario" LARGE_FLASH=1 flash_patched
3. Building and flashing retro-go
export COVERFLOW=1
make EXTFLASH_SIZE_MB=63 EXTFLASH_OFFSET=1048576 INTFLASH_BANK=2 flash
If you have G&W and want your device to be unlocked and upgraded please contact me at retrotechcorner@gmail.com
You can buy me a coffee if you like my content: buymeacoffee.com/RetroTechCorner
Please consider subscribing to my channel.
/ retrotechcorner
/ retrotechcorner

Пікірлер: 84
@randy7894
@randy7894 4 ай бұрын
Great solder skills and clear presentation.
@echark
@echark Жыл бұрын
Thanks a lot man this is really helpful !
@retrominimalist
@retrominimalist Жыл бұрын
This seems perfect for having all classic G&W games on the go. After I saw your video yesterday I ordered the Super Mario one and will order a soldering iron kit + the flash memory. Will report in a few months how it went. If it stops booting, I am in EU, maybe I can ship it to you for resurrection and fixing it (paying for the service of course).
@jmsterdam
@jmsterdam 6 ай бұрын
Its been a few months. How did it go?
@tonrookachat
@tonrookachat 11 ай бұрын
You make my dreams come true
@Stoohun
@Stoohun Жыл бұрын
great work
@arvacon
@arvacon Жыл бұрын
Hi. What is the temperature of your soldering iron, for the soldering of the chip? What kind of solder and flux do you use?
@patzik1910
@patzik1910 Жыл бұрын
The raspberry pi image is not available anymore…
@randomgamertype2771
@randomgamertype2771 Жыл бұрын
Great video and very informative, I am glad I found this (it came up in my suggested videos). Is there no way to flash the chip without it being in the game and watch? Doing it that way would take the flash time down from an hour to a matter of seconds. I've subscribed :)
@RetroTechCorner
@RetroTechCorner Жыл бұрын
It is possible but you'll still need to flash "internal" memory (ie. flash that's inside the microcontroller). Also - you need to build the image every time you add/remove rom files so you still need to build it. One option here is to build it once and then "clone" but which would probably be the fastest way of doing multiple devices at once.
@Djerique
@Djerique Жыл бұрын
Really fan of your videos! Great job! Do you also sell this solution? If yes, I have interest in that. Greetings from The Netherlands
@M19u3L1
@M19u3L1 Жыл бұрын
does it find the images of the game? or do you need to have them already. Nice video btw! You made that look so easy when it's really not
@RetroTechCorner
@RetroTechCorner Жыл бұрын
No, you have to find the artwork pack (it's on the internet...)
@PacMasterStudios
@PacMasterStudios Жыл бұрын
What would be the best type of memory chip? I know not much will fit, but I'm just gaging what I can use.
@red2
@red2 Жыл бұрын
Nice vid. I have a few questions. Is the Zelda G&W the same internally to the Mario one (can I wire it the same way) ? Which Raspberry Pi GPIO pins have you connected to? Did you use spacer headers or solder directly & which pins ? Also the Pi image you linked, whats the username / pw ? ta.
@RetroTechCorner
@RetroTechCorner Жыл бұрын
Zelda is essentially the same (have a look at my other video on Zelda). Debug header is slightly different but the pins we are using are in the same place. I soldered the wires directly but you can use header. username for the image is pi and the password is gameandwatch
@TheFrogger1108
@TheFrogger1108 Жыл бұрын
I have a question. Can you run the backup image of the Game and Watch on any kind of emulator? I really like the Mario clock and would like to run it on a pi and a larger screen.
@RetroTechCorner
@RetroTechCorner Жыл бұрын
I don't know but I don't think so - the application (eg. clock and the emulator) are native Cortex code so pi won't be enough to emulate it... Porting without source code is also unlikely...
@TheFrogger1108
@TheFrogger1108 Жыл бұрын
Thank you for your reply. It would really haven been a cool application for the clock. I really like it but the screen is pretty small and it's sad that the clock seems to be limited to this specific part of hardware. I hope you’ll make a video if you ever find a way to emulate it.
@iljacoveliers5834
@iljacoveliers5834 11 ай бұрын
Isn't there a command for getting the artwork, or do you have to manually put the artwork in the game folder ? Maybe I have missed it in the video ?
@RetroTechCorner
@RetroTechCorner 11 ай бұрын
I have another video (more recent) where I include the command and the artwork - please have a look in the Game&Watch playlist.
@JonnyOgg
@JonnyOgg Жыл бұрын
can you put gameboy advance games? or only gbc and gb games?
@billy_bikes
@billy_bikes 7 ай бұрын
I want to do this to my game and watch, so you can solder usb to the board. Thanks a lot for video, I'm new to soldering and I want to try this project, one building a modded gameboy, then I have some crazy ideas, I want one of those unhinged sp's modded, I want to do a rasp-pi boy fitted in sp and then I want to. I want to do another one with pi/ maybe that pie board and use a ds advanced gba reader, I think I saw you do it on video where you cut it and solder it to the pie. That would be sweet but my question for you is this, is that just a type of gauged copper wire that you are soldering? And what is a cheap setup for soldering if I'm new and want to do projects like I mentioned. Also an idea for you is if you look at my content, I try to make content for the beginner. Maybe you could do the same with this niche and make short ten min videos describing smaller portions of this so beginners like me can easily learn this skill set. A lot of the retro places that sell game mods are kinda uptight about soldering. You could be the bridge for the people who dont know. You are very very knowledgeable. Thanks for the video again!
@Lojalny
@Lojalny Жыл бұрын
Is possible to save states games ?
@baileygraham4975
@baileygraham4975 Ай бұрын
Do u have this same set up for the zelda one like been Able to install ver usb c and
@user-lz8nc2uw2d
@user-lz8nc2uw2d Ай бұрын
I have debian 12. I successfully made a backup, I rewired the memory to a new one (64). I managed to restore the factory firmware back to the new spi. I can't assemble and install the dual boot. looks like I need help with this...
@RETRONuts
@RETRONuts 6 ай бұрын
Idea: you could make a Dialog menu to do the flashing so it runs the commands on the RPI3 for you... :)
@arvacon
@arvacon Жыл бұрын
Can you use other programmers via USB port, like ST-Link v2 for example, or is this works only with raspberry pi? Also can this work with the raspberry Pi pico?
@RetroTechCorner
@RetroTechCorner Жыл бұрын
Yes, absolutely. You can use it with st-link. As for raspberry Pico - not sure, I don't have one. But one thing is certain - the whole build process will take (most likely) a lot longer...
@arvacon
@arvacon Жыл бұрын
@@RetroTechCorner I have not any of these programmers available right now, so I will need to order one of these, but as I have a CH341A programmer on hands, could this be useful too for this mod?
@VIRAL_DNA
@VIRAL_DNA Жыл бұрын
@@arvacon The CH341A will not work. It's not capable of SWD communication or Debugging. The Raspberry Pi Pico can be used, but it's very complicated and there's no guides available or even support for it written into game-and-watch-retro-go. Your best bet, and most affordable solution is the ST-Link V2 Clone which from official channels here in Canada costs less than $7 CAD or $3 - $4 CAD from China. You can also use a DAP-Link, though while supported, it too lacks documentation. The only other debugger besides the Pi and ST-Link V2 that is documented well and one of the cheaper debuggers is a Nucleo-64 Board like the NUCLEO-F103RB which is about $11 CAD. The J-Link Edu mini is another option if you have one.
@KegRaider
@KegRaider Жыл бұрын
with the enamel wires and insulating issue.... back in the day when I used to repair boards, I'd use good old ladies nail polish :) . Cheap and sets hard.
@KegRaider
@KegRaider Жыл бұрын
I have both the Mario and Zelda units. I just WISHED they would have included the little metal kickstand like the original G & W devices. Annoys the cr*p out of me the fact they are laying down all the time instead of on an angle like the older units.
@acarrado
@acarrado Жыл бұрын
The original Ball did not have the little metal kickstand. Nintendo would certainly argue they have not included it as a tribute to this first game :D
@timmhonthietayag1010
@timmhonthietayag1010 Жыл бұрын
Good job !! can this be done on zelda variants too?
@RetroTechCorner
@RetroTechCorner Жыл бұрын
Yes - take a look at my other video (Zelda). Same process essentially.
@timmhonthietayag1010
@timmhonthietayag1010 Жыл бұрын
@@RetroTechCorner thanks mate ! ill just gather up the courage and try this one hehe
@TroyFletcherKeyboards
@TroyFletcherKeyboards Жыл бұрын
41:00 be like "Now to remove solder mask from these pads... Carefully... Slowly..." Power tool: BBBBBZZZZZZZZZZZZ Nice job on the QFN package
@chetanjiva8874
@chetanjiva8874 Жыл бұрын
I flashed the 64mb modded version of zelda and the option to select game and left shows blank screen. I can't install retrogo because it says I have single bank memory (yours shows dual bank).Do you know the fix or workaround for this?
@RetroTechCorner
@RetroTechCorner Жыл бұрын
Not sure what the issue is but double check the soldering (ie. new chip) and make sure you used unofficial/modified version of openocd (with correct parameters @55:22 of the video)
@chetanjiva8874
@chetanjiva8874 Жыл бұрын
@@RetroTechCorner I tried flash_patched with git version "/opt/openocd-git/bin/openocd" from rpi image and it returns Exec format error. Makefile:270: flash_patch_int Error 2. --device=zelda and interface_"rpi". Zelda is working perfectly on the new chip so I don't think it's a soldering issue but I need to get the modded openocd working for dual bank flashing.
@jb2590
@jb2590 Жыл бұрын
@@chetanjiva8874 and @RetroTechCorner, Did you adjust your parameters to account for the original Zelda NOR flash of 8mb vs the Mario 1mb? you will want to double check my math but i believe you would change the the last make from "make EXTFLASH_SIZE_MB=63 EXTFLASH_OFFSET=1048576 INTFLASH_BANK=2 flash" to this instead "make EXTFLASH_SIZE_MB=56 EXTFLASH_OFFSET=8388608 INTFLASH_BANK=2 flash"
@iljacoveliers5834
@iljacoveliers5834 11 ай бұрын
Hello. I read here something about needing a patched version of openocd. I hope this is already included in the image ?
@RetroTechCorner
@RetroTechCorner 11 ай бұрын
Yes, it is
@arvacon
@arvacon Жыл бұрын
Hi friend. Please try to answer me to this question at least, because it is a little important and I don't want do all this effort without reason. How can you flash the device from the USB port, when the cover will be installed on the device, and the battery already connected to the board? I mean, don't you have to cut the power, reconnect, hold the power button etc, to make flash start? How will you make this without removing the battery? Can it be flashed with the battery connected finally? Otherwise there is no reason to do this mod...
@RetroTechCorner
@RetroTechCorner Жыл бұрын
Once the device is unlocked you can flash with battery connected.
@jozefgallik6200
@jozefgallik6200 Жыл бұрын
After couple of days struggling and using different images of Rasbian, and finally installing all necessary stuff on fresh oficial distro, I was able to run the dual boot with Mario & RetroGo. But after one day of playing with device, I am not able to use RetroGo. When I switch to it, I can see the logos of different retro systems, but when that intro finish and I should see the menu with games, the device turn off. Tried to reflash the RetroGo, but no luck - still the same behavior after that. Last game I played was bomberman2, if that matters.. Would anyone guess what the issue could be and how to fix? I thought that it might be some settings or game state went wrong, but after reflashing, the status should be initialized, right? Didn't use the saving and restoring saves stuff or so, as I had no progress that I would like to keep - except of the original Mario one, where I unlocked the first game and was able to start any level and select hard option, but that has nothing to do with RetroGo I guess, but I missed that during patching as well, so the Mario game is like as on new console..
@JohnDoe-el5ir
@JohnDoe-el5ir Жыл бұрын
maybe that external flash is damaged? maybe there is some check for it? someone posted somwhere that at the start he had corrupted memory and had to replace it, probably to ESD or overheat from hot air gun.
@deano30923
@deano30923 Жыл бұрын
Do you have a known working copy of the Rpi image? The default settings for openocd are wrong in ./bashrc and backing up the device works only after adjusting the version number, but then after I change the custom OCD path and run the following: make PATCH_PARAMS="--device=mario" LARGE_FLASH=1 flash_patched I get an error: make: *** [Makefile:270: flash_patched_int] Error 2 I am not fluent in understanding cli so any help would be appreciated :)
@qqryqq123
@qqryqq123 Жыл бұрын
did you use patched version of openocd? (export OPENOCD="/opt/openocd-git/bin/openocd")
@deano30923
@deano30923 Жыл бұрын
@@qqryqq123 Hi, Yes I did. I jumped on Discord and it was confirmed that the RPi image no longer works and was advised to use a Ubuntu VM.
@RetroTechCorner
@RetroTechCorner Жыл бұрын
I'll try to upload the image over the weekend.
@jammedboot
@jammedboot Жыл бұрын
I'd like to do this, but my screen broke. I look online, and I couldn't find a replacement. Do you know where I could find one?
@s.andrivet
@s.andrivet Жыл бұрын
I think that the screen is specially made for Nintendo so it is not available for purchase.
@RetroTechCorner
@RetroTechCorner Жыл бұрын
I don't think you'll be able to get the screen. Your best bet is to try to find non-working device and use the screen.
@VIRAL_DNA
@VIRAL_DNA Жыл бұрын
The screens are new old stock originally used in Cameras. You'd be lucky to find out just which models have these screens. I've been looking at creating a replacement solution, but with the systems selling for $25USD $35CAD there is little point at this time.
@JohnnyPhantomReviews
@JohnnyPhantomReviews Жыл бұрын
Will the link for the image be fixed?
@RetroTechCorner
@RetroTechCorner Жыл бұрын
Link updated in the video description.
@finalf137
@finalf137 Жыл бұрын
Will this also work on the Zelda model?
@RetroTechCorner
@RetroTechCorner Жыл бұрын
Yes - I've another video on Zelda. Same process essentially.
@Destrould
@Destrould Жыл бұрын
Отлично! Но мне кажется новый чип можно феном посадить не расширяя дорожки.
@RetroTechCorner
@RetroTechCorner Жыл бұрын
yes, it's possible. it's just easier when there's more space on the pads.
@stephanb5945
@stephanb5945 Жыл бұрын
if i look up all the numbers on the chip google show me then cars and car parts
@RetroTechCorner
@RetroTechCorner Жыл бұрын
Here's a list of supported chips with links: www.reddit.com/r/GameAndWatchMods/wiki/flash-upgrade/ I'm using this one: www.digikey.com/en/products/detail/MX25U51245GZ4I00/1092-1217-ND/9085437
@JonnyOgg
@JonnyOgg Жыл бұрын
@@RetroTechCorner on that order page, it has lots of check boxes, do i have to check some specific ones?
@nullbyt
@nullbyt Жыл бұрын
👀
@Orselo
@Orselo Жыл бұрын
Just got Mario game and watch. Does any do this? Will pay.
@RetroTechCorner
@RetroTechCorner Жыл бұрын
Where are you based?
@Orselo
@Orselo Жыл бұрын
@@RetroTechCorner Ontario Canada. Just outside of Toronto
@RetroTechCorner
@RetroTechCorner Жыл бұрын
I'm in Ireland so shipping would be expensive. Try discord group - there are people offering the service. Perhaps you'll find someone in Canada.
@melissaarevalo8695
@melissaarevalo8695 Жыл бұрын
@@Orselo Did you end up finding anyone to do this around Toronto?
@melissaarevalo8695
@melissaarevalo8695 Жыл бұрын
@@RetroTechCorner which discord is this?
@gamercatsz5441
@gamercatsz5441 Жыл бұрын
Anyone in Belgium/France Holland or Germany who had done this and can mod mine aswel (I pay you for your work obviously)
@RetroTechCorner
@RetroTechCorner Жыл бұрын
Join g&w discord - there's a marketplace there where people offer these services... I'm not sure if they flash actual ROMs as it can be... problematic due to copyrights etc..
@KeikakuLounge
@KeikakuLounge Жыл бұрын
Is there no way this can be done with usb alone?
@SuperEdit544
@SuperEdit544 Жыл бұрын
USB is just wired as a power supply,
@RetroTechCorner
@RetroTechCorner Жыл бұрын
nope, unless you wire debug port to unused usb pins..
@KeikakuLounge
@KeikakuLounge Жыл бұрын
@@RetroTechCorner I'm in love with the sound of that! Can you point me in the right direction?
@arvacon
@arvacon Жыл бұрын
@@KeikakuLounge That's what he shows in this video!
@MRFLUF69
@MRFLUF69 9 ай бұрын
Bro I can't do it I am only 12 😢 can you do it with only usb
@Ecci2
@Ecci2 8 ай бұрын
The USB-C port doesn't have data pins connected so it's only for power (I'm 12 asw lol)
@Goodgamer78
@Goodgamer78 8 ай бұрын
if you have money, there are some great modders who will do it for you
@user-hg7no3cn7i
@user-hg7no3cn7i 3 ай бұрын
I'm 12 as well and I have no idea what to do
Game & Watch: Super Mario Bros ALL 35 Secrets and Hidden Bits!
4:58
The Easter Egg Hunter
Рет қаралды 226 М.
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 11 МЛН
ОСКАР ИСПОРТИЛ ДЖОНИ ЖИЗНЬ 😢 @lenta_com
01:01
rC3 Talk: Hacking the Game & Watch
34:41
stacksmashing
Рет қаралды 73 М.
Hacking and flashing Game&Watch
30:01
Retro Tech Corner
Рет қаралды 38 М.
SIdecartridge TOS Emulator Quickstart
12:38
logronoide
Рет қаралды 1,2 М.
Reverse Engineering Game Code from the Neutral Zone
40:59
Retro Game Mechanics Explained
Рет қаралды 546 М.
How A Steam Bug Deleted Someone’s Entire PC
11:49
Kevin Fang
Рет қаралды 911 М.
Nintendo Game & Watch Review and Teardown!
11:08
This Does Not Compute
Рет қаралды 76 М.
Nintendo Game & Watch History
13:44
Nintendo Life
Рет қаралды 164 М.
Your USB-C Cable probably SUCKS! Sooo is that Bad?
10:54
GreatScott!
Рет қаралды 700 М.