Hacking WIP [Trinket] [Rebug] [Others] SWITCHBOOT_UF2 / FUSEE_UF2 modchip software

mattytrog

You don`t want to listen to anything I say.
OP
Member
Joined
Apr 27, 2018
Messages
3,708
Trophies
0
Age
48
XP
4,328
Country
United Kingdom
@mattytrog thanks for the update on this I will be trying it out and upgrading soon. I have a probably weird question for you. So I have a Trinket M0 installed in my switch and currently its pretty easy to press the reset button through the back of the case. I bought a thin "dockable" case off amazon like this: https://www.amazon.com/FYOUNG-Protective-Accessories-Controller-Protector/dp/B07BGWCFTZ in hopes of helping when holding it in your hand not pressing the reset button on the chip which pushes the volume up button.

I put the case on and found it was pressing reset button by itself and holding it down which I dont know what damage this could cause but one of the joycons would stop working and wouldnt charge etc. So my question is, is there anything I can do to fix this problem? is the reset button still needed to enter chip programming mode or would it be possible to desolder?
OK sir...

Your options are:

1) Modify the shield (recommended) so the Trinket is fitted directly to the RAM shield. You can cut a trinket-sized "flap" in the shield using just ordinary scissors.
2) Shave some height off the button "nipple" with a craft knife or similar
3) Remove button completely and use a pigtail(small length of wire) and solder to RST pad and touch it to GND.
4) Modify back cover slightly (create an indentation on the inside where the button "nipple" sits.) ie craft knife, or touch with soldering iron, cleaning up the indentation with a knife.
5) Drill small pinhole in back cover (ie a reset hole)

Thats about it.

I prefer modifying the shield personally. The best overall solution. I have outlined elsewhere why I think this and have done tests regarding cooling and rigidity of the console. There is no difference whatsoever pre-modification and post-modification.
 
Last edited by mattytrog,
  • Like
Reactions: Skater4599

Skater4599

Well-Known Member
Member
Joined
May 29, 2008
Messages
965
Trophies
1
Location
United States
XP
1,554
Country
United States
OK sir...

Your options are:

1) Modify the shield (recommended) so the Trinket is fitted directly to the RAM shield. You can cut a trinket-sized "flap" in the shield using just ordinary scissors.
2) Shave some height off the button "nipple" with a craft knife or similar
3) Remove button completely and use a pigtail(small length of wire) and solder to RST pad and touch it to GND.
4) Modify back cover slightly (create an indentation on the inside where the button "nipple" sits.) ie craft knife, or touch with soldering iron, cleaning up the indentation with a knife.
5) Drill small pinhole in back cover (ie a reset hole)

Thats about it.

I prefer modifying the shield personally. The best overall solution. I have outlined elsewhere why I think this and have done tests regarding cooling and rigidity of the console. There is no difference whatsoever pre-modification and post-modification.


Thank you sir, I will try those options starting with your reccomendation of modding the shield :)

I appreciate your time for answering!
 

mattytrog

You don`t want to listen to anything I say.
OP
Member
Joined
Apr 27, 2018
Messages
3,708
Trophies
0
Age
48
XP
4,328
Country
United Kingdom
Thank you sir, I will try those options starting with your reccomendation of modding the shield :)

I appreciate your time for answering!

No worries!

You do need the reset button I`m afraid... Unless you use Fusee-UF2. Then I guess you can remove it as you probably never need change it once flashed.
 

angelo_

Member
Newcomer
Joined
Apr 23, 2019
Messages
11
Trophies
0
Age
26
XP
90
Country
Brazil
Hmmm... Are you doing it while fitted to console? If so, you have:

Problems with your USB lines (wrong way around / poor GND connection)

OR

You have corrupted the bootloader. In which case, you will need a Raspberry pi and OpenOCD to recover it. There is a Raspi image with openocd in my modchip thread OP so you can unbrick.

I had to dessolder from the Switch and connect directly to the computer to update, and now it works.
 
  • Like
Reactions: mattytrog

mrdude

Developer
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,226
@mattytrog

Hi dude, here's a feature request. As you now have emunand stuff in your payload and also you cater for SXOS and Dual boot etc, can you add a couple of lines of code to do this:

1: Create a folder in the root of the sd card - emummc
2: Create a file in the folder you created called - emummc.ini

emummc.ini - contents should be:

[emummc]
emummc_enabled = 1
emummc_sector = 0x2
emummc_nintendo_path = Emutendo


This would allow people using Atmosphere (new one), to use the same hiddden emunand partition that SXOS uses - so only 1 nand image is required and nsp installed games can be used on both SXOS and Atmosphere at the same time, all save data is compatible with both firmwares and you can switch between Atmos if you want to use plugins such as emuiibo, then if you want to jump back to SXOS and have game saves with added lives etc (from amiibos), you can easily go back and have the best of both worlds/CFW's.

I plan on adding this to Argon-NX mod myself - but I'm sure some of your users would appreciate it - until Atmosphere devs add that code automatically to their own CFW.
 

mattytrog

You don`t want to listen to anything I say.
OP
Member
Joined
Apr 27, 2018
Messages
3,708
Trophies
0
Age
48
XP
4,328
Country
United Kingdom
@mattytrog

Hi dude, here's a feature request. As you now have emunand stuff in your payload and also you cater for SXOS and Dual boot etc, can you add a couple of lines of code to do this:

1: Create a folder in the root of the sd card - emummc
2: Create a file in the folder you created called - emummc.ini

emummc.ini - contents should be:

[emummc]
emummc_enabled = 1
emummc_sector = 0x2
emummc_nintendo_path = Emutendo


This would allow people using Atmosphere (new one), to use the same hiddden emunand partition that SXOS uses - so only 1 nand image is required and nsp installed games can be used on both SXOS and Atmosphere at the same time, all save data is compatible with both firmwares and you can switch between Atmos if you want to use plugins such as emuiibo, then if you want to jump back to SXOS and have game saves with added lives etc (from amiibos), you can easily go back and have the best of both worlds/CFW's.

I plan on adding this to Argon-NX mod myself - but I'm sure some of your users would appreciate it - until Atmosphere devs add that code automatically to their own CFW.
Yes. Emummc support is coming in 1.4.0.

Ahead of you sir! All done. Just uf2 to make and push to git.
 
  • Like
Reactions: peteruk and mrdude

mrdude

Developer
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,226
@mattytrog,

Thanks bud! There's no rush - just when you feel up to it. We can do it manually no problem for now. It would be good though to add that to a chip. I'm going to make it do it if I press V+ and V- at the same time on argon-nx.
 
Last edited by mrdude,
  • Like
Reactions: peteruk

mattytrog

You don`t want to listen to anything I say.
OP
Member
Joined
Apr 27, 2018
Messages
3,708
Trophies
0
Age
48
XP
4,328
Country
United Kingdom
Yep. Brilliant.

I`m just in two minds wether to release now, which is fine... But the problem is most people will use Hekate. I`m thinking I should wait until Hekate drops so I can combine both implementations.

If I`m putting things in that Hekate will never have in it, then fine. I can do what I like... :P

However, if I create problems for Hekate, I`d be really mad at myself, then I`d be running around like a blue-arsed fly correcting things.

CTCAer is the boss. How he does things, is how he does things... I follow and match accordingly.

Shit rolls downhill. And I`m downhill.
 
  • Like
Reactions: mrdude

mrdude

Developer
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,226
Yes, you're probably correct to wait a day or two - TBH it's just a small code change anyway, so no hassle to implement when the time is right. I've already got my switch set up so for me it's not a drama, more for other people to make life a little easier I guess. But you're right to wait. So thanks for looking.
 

mattytrog

You don`t want to listen to anything I say.
OP
Member
Joined
Apr 27, 2018
Messages
3,708
Trophies
0
Age
48
XP
4,328
Country
United Kingdom
Yes, you're probably correct to wait a day or two - TBH it's just a small code change anyway, so no hassle to implement when the time is right. I've already got my switch set up so for me it's not a drama, more for other people to make life a little easier I guess. But you're right to wait. So thanks for looking.
No worries. It is a piece of cake to implement. Once you have a grasp of FatFS, it is trivial.

I just had some clone features and reset features in there too. Best to wait :)
 
  • Like
Reactions: mrdude

linuxares

The inadequate, autocratic beast!
Global Moderator
Joined
Aug 5, 2007
Messages
13,272
Trophies
2
XP
18,084
Country
Sweden
Matty I wonder. Since these chips can be updated via the USB port. Would it possible to run a tiny cable out of the Switch so you can update the chip with new versions of your UF2?
I wish it was possible via homebrew but I guess we're far away from that.
 

mattytrog

You don`t want to listen to anything I say.
OP
Member
Joined
Apr 27, 2018
Messages
3,708
Trophies
0
Age
48
XP
4,328
Country
United Kingdom
Matty I wonder. Since these chips can be updated via the USB port. Would it possible to run a tiny cable out of the Switch so you can update the chip with new versions of your UF2?
I wish it was possible via homebrew but I guess we're far away from that.
Not as far as you might think...

In theory, it should already be possible to update via usb if you boot into ubuntu.

Double-press reset and it should show up in ubuntu as a regular usb drive (using the inbuilt connections that we made when fitting the chip).


Otherwise: Via PC...
You do not need a usb cable at all...

Just double-press RESET and select SAMD21 Update Mode in Switchboot menu. And TRINKETBOOT/ SWITCHBOOT will pop right up.
 

linuxares

The inadequate, autocratic beast!
Global Moderator
Joined
Aug 5, 2007
Messages
13,272
Trophies
2
XP
18,084
Country
Sweden
Not as far as you might think...

In theory, it should already be possible to update via usb if you boot into ubuntu.

Double-press reset and it should show up in ubuntu as a regular usb drive (using the inbuilt connections that we made when fitting the chip).


Otherwise: Via PC...
You do not need a usb cable at all...

Just double-press RESET and select SAMD21 Update Mode in Switchboot menu. And TRINKETBOOT/ SWITCHBOOT will pop right up.
Oh really? Nice!
 

mrdude

Developer
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,226
@mattytrog - question regarding modchips.

I've got my switch chippped - I can use sxos and install games via usb using my switch dock + plugging in a usb drive. Also I can enter trinket boot no problem & use memloader to access micro sd card contents via usb.

The issue I have is with Goldleaf 5, SX installer etc, and Zadig never shows up any usb connection or device is connected - so I can't do usb installs using that software, which is kind of weird as USB obviously works fine (as stated above).

Do you know what would cause this? I'm using windows 10 and all my other usb devices work fine, and also with memloader it works fine on my switch as well - so the usb ports are fine + so is the connection/wiring.

Have you had this issue yourself?
 

mattytrog

You don`t want to listen to anything I say.
OP
Member
Joined
Apr 27, 2018
Messages
3,708
Trophies
0
Age
48
XP
4,328
Country
United Kingdom
@mattytrog - question regarding modchips.

I've got my switch chippped - I can use sxos and install games via usb using my switch dock + plugging in a usb drive. Also I can enter trinket boot no problem & use memloader to access micro sd card contents via usb.

The issue I have is with Goldleaf 5, SX installer etc, and Zadig never shows up any usb connection or device is connected - so I can't do usb installs using that software, which is kind of weird as USB obviously works fine (as stated above).

Do you know what would cause this? I'm using windows 10 and all my other usb devices work fine, and also with memloader it works fine on my switch as well - so the usb ports are fine + so is the connection/wiring.

Have you had this issue yourself?
Which UF2 file are you using?
 

mrdude

Developer
Developer
Joined
Dec 11, 2015
Messages
3,071
Trophies
1
Age
56
XP
8,226
Which UF2 file are you using?

I've tried my own and your latest one (trinket m0) - I can send you mine if you want to test it. I've never been able to access usb with Goldleaf or SX Installer on any payloads. But it works fine using SX installer with a usb drive/switch hub - just not pc.

My utf2 looks for autoboot.bin in the root of the microsd card (also your power led probably won't work on your trinket if you use this as the board layout has that changed).
 

Attachments

  • CURRENT.zip
    77.8 KB · Views: 74
Last edited by mrdude,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Veho @ Veho: Skill issue.