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

kiwihop

Member
Newcomer
Joined
Jan 8, 2015
Messages
11
Trophies
0
Age
38
XP
75
Country
Finally I think I found the RCMX86 usb problem, at least in my case.
I think it was the magnetic reed that was close to the switch fan and its magnet and was causing problems with GND.
I moved it a little bit down and it's working properly, no more problems with usb.

I'm also having issues with rcm x86 and usb.
The modchip works perfectly, can boot to both OFW and CFW (5 wires + Optional for RCM accidents), but I'm unable to inject payloads or use goldleaf usb install.
Console charges correctly.

I tried removing the reed switch but got the same behavior.

EDIT: Forgot to say that I'm running Switchboot 1.3.3

Any guesses?
Thanks!
 

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
I'm also having issues with rcm x86 and usb.
The modchip works perfectly, can boot to both OFW and CFW (5 wires + Optional for RCM accidents), but I'm unable to inject payloads or use goldleaf usb install.
Console charges correctly.

I tried removing the reed switch but got the same behavior.

EDIT: Forgot to say that I'm running Switchboot 1.3.3

Any guesses?
Thanks!

I may have a solution. Will sort tomorrow. 1:45am here... I`m off to bed!
 

kiwihop

Member
Newcomer
Joined
Jan 8, 2015
Messages
11
Trophies
0
Age
38
XP
75
Country
To add a bit more information, my trinket does not look exactly as the regular RCM x86.

The board is like the ones on tindie for the developer:

I cannot post links, google "tindie SAMD21 trinket M0 MOD"

The board data on the txt is:

UF2 Bootloader - (JOYCON -ON)(VOL UP -OFF) DUAL BOOT. RCM-X86
Model: Trinket M0
Board-ID: SAMD21E18A-Trinket-v0
 

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
Changelog: 1.3.4

  • Browse any folder on SD card to find your ini`s / payloads. Directories are identified and listed. No need for special "folders" any more...
  • Add via browsing, any payload / ini to hekate_ipl.ini
  • After any partition backup, the software will ask if you want to back up your current BOOT0/1. So you cannot forget it any more!
  • 8 backup folders available

Coming this evening. Final testing now.

--------------------- MERGED ---------------------------

To add a bit more information, my trinket does not look exactly as the regular RCM x86.

The board is like the ones on tindie for the developer:

I cannot post links, google "tindie SAMD21 trinket M0 MOD"

The board data on the txt is:

UF2 Bootloader - (JOYCON -ON)(VOL UP -OFF) DUAL BOOT. RCM-X86
Model: Trinket M0
Board-ID: SAMD21E18A-Trinket-v0

Can you test your USB lines? The "part 1" ie triggering RCM will work even if no USB data lines exist. It really does sound like a USB D-/D+ issue to me. Fancy taking a pic of your install?
 
  • Like
Reactions: peteruk

josete2k

Well-Known Member
Member
Joined
Apr 24, 2009
Messages
651
Trophies
1
Age
43
Location
Spain
XP
1,541
Country
Spain
Tip:

An auto Fusee-UF2 SXOS version would be great.

Launch fusee, check if license.dat is present and create one if doesn't exist...
 

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
Tip:

An auto Fusee-UF2 SXOS version would be great.

Launch fusee, check if license.dat is present and create one if doesn't exist...
Nice idea. Only one problem.

The people who dislike SXOS won`t be thankful for it.

I plan on just using Fusee-UF2 and people can just put switchboot on there if they need it.

Fusee-UF2 already does SXOS (not generating licence code) - their sx loader is called "payload.bin"... Just drop that on there ;)
 
  • Like
Reactions: peteruk

josete2k

Well-Known Member
Member
Joined
Apr 24, 2009
Messages
651
Trophies
1
Age
43
Location
Spain
XP
1,541
Country
Spain
Yeah, it launches payload.bin but I like the idea of storing my license.dat in the chip (and I don't use hekate).

A flag to activate the license generator (hexedit) colud be a good way to make it.

Just ideas...
 
Last edited by josete2k,

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
Yeah, it launches payload.bin but I like the idea of storing my license.dat in the chip (and I don't use hekate).

A flag to activate the license generator (hexedit) colud be a good way to make it.

Just ideas...
Yeah... I can do a "hold both vol buttons while powering on" to generate licence.dat
 
  • Like
Reactions: josete2k

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
Right... Haven`t made UF2s yet... Too busy :(

Fusee-UF2 v2.1
Changelog:
  • Press both volume buttons during power-on to recreate your license.dat (needs hex-editing into UF2 as usual)
  • Press vol up OR vol down during power-on to recreate paths_info.txt
Completely optional update.

Busy day today...
 

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
V1.3.4 attached - half way through adding support for parsing the straps_info file from fusee-UF2 for strap indication. But its bed time. So I`ll do it tomorrow.

Anyway... v1.3.4 as a BIN in this attachment. Launch with TegraRCMsmash or use Fusee-UF2 or whatever...

Let me know if you find anything fooked up. Remember I`m = idiot.
 

Attachments

  • switchboot.zip
    78.3 KB · Views: 145
  • 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
Hi mattytrog, did you find anything new about rcmx86 and the usb issue?
Progress steady... Been busy all day. I am working on it I promise!

In the meantime... Disconnect the reed switch and see if it improves. I`m looking for the datasheet for this USB logic IC.

And to everyone else...

Making UF2s now... The new drill is...

Use Fusee-UF2 - it will create a file.
New Switchboot versions will be able to read this file and display chip info.

This way, you don`t need to update the fookin UF2 every time...

This is the new modchip info screen. Using a Fusee-UF2 "straps_info.txt" file.
Screenshot1.jpg
 
  • 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
Switchboot v1.3.4 uploaded... Using JUST the bin file now - no longer UF2s... Because...

UF2s are back. People wanted the UF2 version, so I will be making both.
Flash-and-forget Fusee-UF2 is now the default UF2 payload launcher... Fusee-UF2 v2.1 & staying that way! (Unless something crucial pops up)

OP Updated... Please read through it

The advantages of this are:
No more constant UF2 updates - Just drag / drop payload to a chosen location... Thats it.

There are button options in Fusee-UF2 if you want them - read OP for details.

These locations are... Posted this the other day. But oh well... This is built-in so you can view whenever you like.
Code:
Welcome to Fusee-UF2 Information.
Usable paths... Only payload.bin and payloadx.bin are displayed on error screen.
Made to just boot payload.bin(or payloadx.bin depending of selection in SAMD21, eg payload2.bin)

Hidden hardcoded paths:

Heirarchy of payloads looked for (in order...paths/files should be EXACTLY as below... Choose one...

The first one found will boot.

1. bootloader/switchboot.bin (my hekate mod for chipped units)
2. argon/argon.bin (touchscreen payload launcher)
3. payload.bin (Can be anything you want it to be)
4. Payloads/payload.bin (Can be anything you want it to be)(keeps SD root tidy)
5. payload1.bin (changes depending on SAMD setting)
6. Payloads/payload1.bin (changes depending on SAMD setting)(keeps SD root tidy)
7. bootloader/update.bin (last chance saloon - for Kosmos etc users - no need for payload.bin if this present - probably hekate)

Remember... First entry found will boot. Kosmos users don`t need to do anything... update.bin will boot automatically

This migration from constant UF2 updates was necessary. Getting silly keep making different UF2s

So, now... NUTSHELL ALERT:::

From a new install...

"Flash and Forget™ © etc etc etc" - I`m trolling by the way...

  • Flash Switchboot part 1 for desired strap control - either dual-boot or perma-CFW boot
  • Flash Fusee-UF2 - Then sort your payloads out. Done.
Good luck!

@josete2k
 
Last edited by mattytrog,

kiwihop

Member
Newcomer
Joined
Jan 8, 2015
Messages
11
Trophies
0
Age
38
XP
75
Country
Hi all!

I have an update regarding the usb issue.

I've contacted the vendor of the RCM x86 from tindie and he told me that the usb issue is related to the switch FW version (7.0.1 in my case)

He told me to try with these files on the modchip: github /euclala/RCM-X86/tree/master/ex_SD_reload (cannot post links, sorry)

flash the UF2
x86.load on the sd root
and a payload.bin on sd root

With these files, usb runs without problems: I've installed a 8gb nsp without issues and I'm able to inject payloads with tegrarcmgui.

@mattytrog from the comments on github, seems like you helped the dev with this code. At least in my case, this code seems to do something that correctly sets the USB interface.

Hope that helped. Thanks!
 
  • Like
Reactions: luzifers and snam11

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
I cannot remember! I am still looking for the datasheet for the logic chip.
Hi all!

I have an update regarding the usb issue.

I've contacted the vendor of the RCM x86 from tindie and he told me that the usb issue is related to the switch FW version (7.0.1 in my case)

He told me to try with these files on the modchip: github /euclala/RCM-X86/tree/master/ex_SD_reload (cannot post links, sorry)

flash the UF2
x86.load on the sd root
and a payload.bin on sd root

With these files, usb runs without problems: I've installed a 8gb nsp without issues and I'm able to inject payloads with tegrarcmgui.

@mattytrog from the comments on github, seems like you helped the dev with this code. At least in my case, this code seems to do something that correctly sets the USB interface.

Hope that helped. Thanks!
Thanks for letting me know. I've been going over datasheets to try and suss out this chip. I think that I may need to create something that physically resets the USB bus (a bit like the samd update mode).

If you look in depreciated on my git, you will find shax loader from back in the day. Based off sx gear like the one you downloaded. May help...
 
  • Like
Reactions: snam11

Sparacis

Member
Newcomer
Joined
Mar 23, 2019
Messages
12
Trophies
0
Age
34
XP
141
Country
United States
Appreciate the work on this!

Quick question I prefer to have switchboot preloaded on the trinket rather than deal with payload bins since I switch SD cards a bunch. Any chance you could post up how to create your .bin to uf2?

I found this but it is old not sure if the same method would apply

Thanks!
 

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
Appreciate the work on this!

Quick question I prefer to have switchboot preloaded on the trinket rather than deal with payload bins since I switch SD cards a bunch. Any chance you could post up how to create your .bin to uf2?

I found this but it is old not sure if the same method would apply

Thanks!
Sure. I'll make uf2s when I get back. I'm keeping switchboot uf2s as well. Was going to just use the fusee/bin approach. But I'm going to continue both.

Will be a full set of uf2 files with 1.3.4 this evening UK time
 
  • Like
Reactions: Sparacis

josete2k

Well-Known Member
Member
Joined
Apr 24, 2009
Messages
651
Trophies
1
Age
43
Location
Spain
XP
1,541
Country
Spain
But you still need the sd files (in all your sd cards) in order to boot hekate cfw.

So, you can place the switchboot.bin in all your sd cards too and use the Fusee-UF2...

Just an idea.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: @Sicklyboy, $150 isn't that bad for a jtag slim on ebay