Super Mario Game & Watch Hacking

  • Thread starter Thread starter subcon959
  • Start date Start date
  • Views Views 147,544
  • Replies Replies 130
  • Likes Likes 27
I did it! Raspberry Pi only. I got mario 3, tetris, marble madness and mega man 2 and still had 300kb free! Vendos guide works but has a typo or two and some steps aren't quite correct. All backups and flashes worked 100% first try. It was easy to get a good connection with common female to male dupont cables. Save states are working and the emu is smooth and 60fps. Sorry for the bad camera!
Hi, do you mind to point the typos on the guide? thanks.
 
Hello,



I'm struggling with step 15. after sending the order "
./1_sanity_check.sh rpi mario" I have the message "
"Running sanity checks...
OpenOCD does not seem to be working. Please validate that you have it installed correctly!" . an idea can be? thank you.
 
Wrongly exported OPENOCD
check first:
$ echo OPENOCD

If there is no answer - empty, then you have to re-export OPENOCD correctly.


4 expl:
export OPENOCD="/home/user/.local/xPacks/@xpack-dev-tools/openocd/0.11.0-2.1/.content/bin/openocd"
 
Wrongly exported OPENOCD
check first:
$ echo OPENOCD

If there is no answer - empty, then you have to re-export OPENOCD correctly.


4 expl:
export OPENOCD="/home/user/.local/xPacks/@xpack-dev-tools/openocd/0.11.0-2.1/.content/bin/openocd"
There is an answer, I tried to reinstall it, it's the same ...
 
I passed step 15 successfully. now step 16 "Attempting to dump flash using adapter rpi.
Running OpenOCD ... (This can take up to a few minutes.)
Failed to dump SPI flash from device. Verify debug connection and try again. "Damn!
 
You are using RPI so you have 3 wires to connect
GND - pin 39
SWDIO - pin 18
SWCLK - pin 22

RPI has low current efficiency, so it is worth connecting the battery.
 
You are using RPI so you have 3 wires to connect
GND - pin 39
SWDIO - pin 18
SWCLK - pin 22

RPI has low current efficiency, so it is worth connecting the battery.
Thanks I will try.
The only things I changed:

6.tar xvf ../xpack-arm-none-eabi-gcc-10.2.1-1.1-linux-arm.tar.gz xpack-arm-none-eabigcc-10.2.1-1.1
6.tar xvf ../xpack-arm-none-eabi-gcc-10.2.1-1.1-linux-arm.tar.gz xpack-arm-none-eabi-gcc-10.2.1-1.1

10.npm install --global xpm @ latest
10.sudo npm install --global xpm @ latest

11. xpm install --global @ xpack-dev-tools / openocd @ latest
11. sudo xpm install --global @ xpack-dev-tools / openocd @ latest

12. export OPENOCD = "/ home/pi/.local/xPacks/@xpack-dev-tools/openocd/0.11.0-1.1/.content/bin/openocd"
12. export OPENOCD = "/ home/pi/.local/xPacks/@xpack-dev-tools/openocd/0.11.0-2.1/.content/bin/openocd"

15. ./ 1_sanity_check.sh rpi mario
15. ./1_sanity_check.sh rpi mario

if you see any errors do not hesitate. I hadn't thought about the voltage.
 
At step 16, is your G&W connected to usb-c charging, power on, and at the clock screen? Check my previous post for more:
Don't connect the battery but do connect the usb c power adapter and have it on at the clock screen. Watch this video from 2:30 and do what he does but replace "jlink" with "rpi" and dont do ./5_restore. That will get you to step 19 in the guide.
 
Last edited by ill_be_ur_Krillin,
  • Like
Reactions: rach58
Hello,
Well, everything works. I find that with the raspberry it is very unstable. moreover, it is impossible to flash with the mains, only with the battery and keeping the power button pressed. Thank you. What do you advise me in replacement memory?
 
Hello,



I'm struggling with step 15. after sending the order "
./1_sanity_check.sh rpi mario" I have the message "
"Running sanity checks...
OpenOCD does not seem to be working. Please validate that you have it installed correctly!" . an idea can be? thank you.
How did you solved this step?
Thank you.

EDIT: SOLVED. Need to hold power button.
 
Last edited by PolluxPT,
edit: After the third script crapped out in the middle i thought i was hosed, but eventually i got it to run and completed all 5 steps. woo!

If I have 3 SMB G&W's that I want to flash and maintain separately, I should rename the backup folders to the serial number, and manually move them in and out - - the backups from one will not work on the other, correct?
 
Last edited by dboynj,
Hello people,

is there a tutorial how to get the game and watch patches for MX25U51245GZ4I00 for Zelda Edition?

Thanks in advance
 
is there any current tutorial to mod a mario game and watch with raspberry pi? i cant seem to get openocd to work when i run /.1 so im stuck

Running sanity checks...
OpenOCD does not seem to be working. Please validate that you have it installed correctly!
 
Hello :)
Im new here but i know this Page nearly since it exists. But i only read it before :)
So this is my first Post and i have a quastion. Is here anyone from Germany or Europe that hacks the new Game and Watch Systems for others including the 16mb chip? That would be realy nice and more we can speak by PN :)

So for now, thanks for the many years of information and thanks anyone who would help me out.

Cheers
Patrick
 
Had to start a new rpi install, planning to upgrade memory to 64mb. Already flashed and have my backups. Problem is with gcc, it keeps giving me: /bin/sh: 1: arm-none-eabi-gcc: not found

Followed the steps several times and I don't know what I'm doing different from the first time I flashed this thing.
echo $PATH returns:
/home/pi/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/snap/bin:/opt/xpack-arm-none-eabi-gcc-10.2.1-1.1/bin

pi@raspberrypi:~/opt/xpack-arm-none-eabi-gcc-10.2.1-1.1/bin $
Above lists lots of files; arm-none-eabi-gcc is there.

arm-none-eabi-gcc --version
-bash: /home/pi/opt/xpack-arm-none-eabi-gcc-10.2.1-1.1/bin/arm-none-eabi-gcc: No such file or directory

Tried deleting, it all-- downloading the zip and extracting to the folder, redoing PATH etc.
 

Site & Scene News

Popular threads in this forum