Super Mario Game & Watch Hacking

impeeza

¡Kabito!
Member
Joined
Apr 5, 2011
Messages
6,356
Trophies
3
Age
46
Location
At my chair.
XP
18,696
Country
Colombia
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.
 

rach58

Member
Newcomer
Joined
Jan 10, 2022
Messages
7
Trophies
0
Age
49
XP
34
Country
France
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.
 

luk_pop

Well-Known Member
Member
Joined
Apr 30, 2017
Messages
129
Trophies
0
Age
42
Location
mytown
XP
1,945
Country
Poland
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"
 

rach58

Member
Newcomer
Joined
Jan 10, 2022
Messages
7
Trophies
0
Age
49
XP
34
Country
France
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 ...
 

rach58

Member
Newcomer
Joined
Jan 10, 2022
Messages
7
Trophies
0
Age
49
XP
34
Country
France
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!
 

luk_pop

Well-Known Member
Member
Joined
Apr 30, 2017
Messages
129
Trophies
0
Age
42
Location
mytown
XP
1,945
Country
Poland
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.
 

rach58

Member
Newcomer
Joined
Jan 10, 2022
Messages
7
Trophies
0
Age
49
XP
34
Country
France
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.
 

ill_be_ur_Krillin

Member
Newcomer
Joined
May 27, 2018
Messages
16
Trophies
0
Age
42
XP
449
Country
United States
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

rach58

Member
Newcomer
Joined
Jan 10, 2022
Messages
7
Trophies
0
Age
49
XP
34
Country
France
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?
 

PolluxPT

New Member
Newbie
Joined
Feb 3, 2022
Messages
1
Trophies
0
Age
43
XP
25
Country
Portugal
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,

dboynj

New Member
Newbie
Joined
Mar 14, 2022
Messages
1
Trophies
0
Age
47
Location
nj
XP
45
Country
United States
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,

Igdirli76

Member
Newcomer
Joined
Feb 17, 2019
Messages
10
Trophies
0
Age
33
XP
92
Country
Germany
Hello people,

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

Thanks in advance
 

david watters

Active Member
Newcomer
Joined
Oct 18, 2013
Messages
30
Trophies
1
Age
35
Location
Inwood, Florida
XP
348
Country
United States
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!
 

Planlos1988

New Member
Newbie
Joined
May 19, 2022
Messages
2
Trophies
0
Age
35
Location
Germany
XP
33
Country
Germany
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
 

rjw35

New Member
Newbie
Joined
Aug 8, 2022
Messages
1
Trophies
0
Age
40
Location
Pennsylvania
XP
13
Country
United States
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

General chit-chat
Help Users
    HiradeGirl @ HiradeGirl: Have a nice day. Life. Week. Month. year.