Hacking Hardware Picofly - a HWFLY switch modchip

urherenow

Well-Known Member
Member
Joined
Mar 8, 2009
Messages
4,774
Trophies
2
Age
48
Location
Japan
XP
3,673
Country
United States
  • Like
Reactions: CompSciOrBust

linuxares

The inadequate, autocratic beast!
Global Moderator
Joined
Aug 5, 2007
Messages
13,299
Trophies
2
XP
18,135
Country
Sweden
Well the rumour at the moment is that the author has sold the code to a company in china and funnily enough the China factories are ramping up production of the actual 2040 ic.
If this is true its possible we can still make our own. We will see
what rumors? I sure as heck haven't heard any of it from the horses mouth
 

FruithatMods

Well-Known Member
Member
Joined
Dec 16, 2018
Messages
128
Trophies
0
Age
34
XP
450
Country
Germany
My theory is that the "picofly" was never a full jailbreak in itself - it could only perform the voltage glitch after the timing parameters are found with "training" from the hwfly.
How would this scenario look like? Is it possible to somehow read back the timings from the hwfly chip once they have been found? Where are those stored? Can they be read through putty and the debug mode?
 

kylum

Well-Known Member
Member
Joined
Dec 8, 2008
Messages
394
Trophies
1
XP
1,479
Country
United States
Could you explain for me in training glitch process with orange light, why BOOT0 need to be written a payload? If we update switch OWF, will Boot0 change and makes hwfly chip malfunction and requires to reflash the chip as @kylum said?
I was wrong by the way. The scenario I mentioned did not cause the chip needing to be reflashed. Rather reset. The newer Hwfly-nx firmware didn’t have this problem.
 

whisky9

Well-Known Member
Newcomer
Joined
Aug 20, 2020
Messages
76
Trophies
0
XP
539
Country
Vietnam
I was wrong by the way. The scenario I mentioned did not cause the chip needing to be reflashed. Rather reset. The newer Hwfly-nx firmware didn’t have this problem.
I see some people comment still have this problem with 0.7.1 and they have to retrain (link ). I have no idea what causes this problem and why hwfly chip need to write payload to Boot0.
 

thesjaakspoiler

Well-Known Member
Member
Joined
Nov 20, 2018
Messages
971
Trophies
0
Age
124
XP
1,478
Country
Afghanistan
My theory is that the "picofly" was never a full jailbreak in itself - it could only perform the voltage glitch after the timing parameters are found with "training" from the hwfly.
Depending on the emmc that is used in the Switch a slightly different timing might be needed.
Finding the timing when to voltage glitch is possible with the spacecraft-nx code and a simple mpu/cpu.
Hard part is the injection of the altered code after the glitch.
Post automatically merged:

Some students did some voltage glitching on StarLink devices with a RP2040.
https://github.com/KULeuven-COSIC/Starlink-FI

They seem to be using a bit more components but maybe most of that is not needed.
(I recall seeing an Amiibo emulator with an mpu and just 2 capacitors powering itself from the RFID antenna signal).

The hard part to me seem like the code injection that needs to happen at the emmc bus speed.
An RP2040 can natively interface with an emmc.
Question is how to sync the bus speed with the Switch.
Maybe this is as simple as using the CLK signal from the emmc on the Switch.
 
Last edited by thesjaakspoiler,

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,155
Country
United States
This dumped firmware for rp2040 glitch from china.
Used "picotool save all" command from linux.
Post automatically merged:

Tested on Switch Lite
I don't believe you.
 
Last edited by binkinator,

linuxares

The inadequate, autocratic beast!
Global Moderator
Joined
Aug 5, 2007
Messages
13,299
Trophies
2
XP
18,135
Country
Sweden
This dumped firmware for rp2040 glitch from china.
Used "picotool save all" command from linux.
Post automatically merged:

Tested on Switch Lite
Uhm the original devs code is apparently kbs so what chip have you dumped?

Also the firmware.bin is empty. Just 0xff?
 
Joined
Sep 9, 2019
Messages
904
Trophies
1
Location
Switch scene
Website
github.com
XP
2,663
Country
Korea, North
Tested on Switch Lite
Vids or it didn't happen
Post automatically merged:

Uhm the original devs code is apparently kbs so what chip have you dumped?

Also the firmware.bin is empty. Just 0xff?
Ok actually tbf he does claim these chips are from China, in DMs he told me that the Chinese were independently making their own glitch chip based on the same hardware but with their own software solution.
1673944606461.png

So if what he has is that then it wouldn't match what the Pikofly dev has built.

I'm still sceptical though. I know a lot of people who deal with mod chips and if China had one working I'm fairly sure I'd be hearing about it from one of those guys first and not some random dude who showed up on GBAtemp 3 days ago.
 
Last edited by CompSciOrBust,

linuxares

The inadequate, autocratic beast!
Global Moderator
Joined
Aug 5, 2007
Messages
13,299
Trophies
2
XP
18,135
Country
Sweden
Vids or it didn't happen
Post automatically merged:


Ok actually tbf he does claim these chips are from China, in DMs he told me that the Chinese were independently making their own glitch chip based on the same hardware but with their own software solution.
View attachment 347836
So if what he has is that then it wouldn't match what the Pikofly dev has built.

I'm still sceptical though. I know a lot of people who deal with mod chips and if China had one working I'm fairly sure I'd be hearing about it from one of those guys first and not some random dude who showed up on GBAtemp 3 days ago.
Thats the thing. It would be over twitter atleast. Im still confused why the firmware file is blank.

I really dont want anyone to damage their hardware. So I try to analyze this.
 

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,155
Country
United States
Thats the thing. It would be over twitter atleast. Im still confused why the firmware file is blank.

I really dont want anyone to damage their hardware. So I try to analyze this.

D0056E28-114A-409B-B6E1-887CED09B88E.jpeg

firmware.bin has about 85k of payload in there…

138375DE-2417-45BF-B9ED-12FC02D0C8A9.png

—-snip—-

4DC4E969-69E5-420C-9C6F-49DA45CE7FF0.png

the rest is probably just FF padding of the rest of the flash space. If this was just a dump of flash space it would be huge in comparison with the bulk being a lot of empty space.

….like the Trinket payloads.

1AFD76E3-AFBF-4A85-B49A-8E562585A589.jpeg
Post automatically merged:

Some idiot is going to have to take one for the team and just inject this into their switch and see what catches fire…
 

Mansi

Well-Known Member
Newcomer
Joined
Jan 14, 2023
Messages
70
Trophies
0
Age
30
XP
331
Country
Belarus
Picofly has nothing to do with the glitch from the Chinese. This is a different developer.
Dump was read from the board from the Chinese as is.
Large size is due to the dump program itself.
The dump needs to be reduced in a hex editor.

The fact that I registered 3 days ago does not mean that I am a troll, I am trying to help and tell my story with rp2040 from another supplier. Believe me or not, your choice.
 

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,155
Country
United States
Picofly has nothing to do with the glitch from the Chinese. This is a different developer.
Dump was read from the board from the Chinese as is.
Large size is due to the dump program itself.
The dump needs to be reduced in a hex editor.

The fact that I registered 3 days ago does not mean that I am a troll, I am trying to help and tell my story with rp2040 from another supplier. Believe me or not, your choice.

agreed. truncated it’s only 85k. An Average firmware is around 110k. It’s in the ballpark. How did you test it? Did you just inject the firmware or did you wire it all up and put it in a rp2040 and everything?
 
  • Like
Reactions: peteruk

Mansi

Well-Known Member
Newcomer
Joined
Jan 14, 2023
Messages
70
Trophies
0
Age
30
XP
331
Country
Belarus
agreed. truncated it’s only 85k. An Average firmware is around 110k. It’s in the ballpark. How did you test it? Did you just inject the firmware or did you wire it all up and put it in a rp2040 and everything?
They just sent a glitch, I switched to bootsel mode and counted through picotool. Firmware size may vary depending on code and compiler. There is a debug in hwfly, it is not in rp2040, here you save space)
Well... There are many other things in code you can remove and save memory.
Lots of nuances.
 
  • Like
Reactions: peteruk

dragonmaster

Ancient One
Member
Joined
Sep 9, 2005
Messages
613
Trophies
1
XP
1,671
Country
Greece
Where did you get it from?

Also the original pikofly is canceled since the dev doesn't want anything todo with it anymore
a pity, too much drama over it, though as i see it it will be released uncredited from a chinese company locked and not open source. scene nowadays is becoming dramatic.
 
  • Sad
Reactions: DreedPL

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: Also nice. Never really watched Fallout on Prime, but sounds like a good show. +1