Hacking Hardware Picofly - a HWFLY switch modchip

Deleted member 194275

Edson Arantes do Nascimento
Member
Joined
Aug 19, 2009
Messages
2,685
Trophies
2
XP
4,351
The only thing i can say, it works fine with Mariko (with few exceptions).

I can't say who is bEhind the development, but Right now I wonder is thiS the only Thing they cAn do... ;)
you telling you know stuff, so... hwfly can boot atmosphere but can't boot other most of the other OS like Linux distros. My question is: picofly is limited to Atmosphere or it will boot linux?
 

thesjaakspoiler

Well-Known Member
Member
Joined
Nov 20, 2018
Messages
993
Trophies
0
Age
124
XP
1,521
Country
Afghanistan
you telling you know stuff, so... hwfly can boot atmosphere but can't boot other most of the other OS like Linux distros. My question is: picofly is limited to Atmosphere or it will boot linux?
Just like sxos and the hwfly, these modchips are exclusively for atmosphere.
For booting the linux kernel, you would need to change the code that is injected.
But nobody is interested in running Linux on a Switch.
Not even Android is interesting enough.
 

evil_santa

Well-Known Member
Member
Joined
Jan 15, 2020
Messages
380
Trophies
1
Age
39
XP
1,878
Country
Germany
you telling you know stuff, so... hwfly can boot atmosphere but can't boot other most of the other OS like Linux distros. My question is: picofly is limited to Atmosphere or it will boot linux?
Lol
Hwfly boots Hekate, and hekate can boot all other distros.
Picofly boot hekate 🤯
More is not needed 😉
 
Joined
Sep 9, 2019
Messages
904
Trophies
1
Location
Switch scene
Website
github.com
XP
2,663
Country
Korea, North
Lol
Hwfly boots Hekate, and hekate can boot all other distros.
Picofly boot hekate 🤯
More is not needed 😉
While that's true, before booting in to Hekate a chain loader payload is ran from the NAND first. The chip just glitches the Switch in to running that instead of the official bootloader and then the chain loader runs Hekate. Because the chain loader runs before Hekate it has to do some hardware initialization stuff which can only be done once per boot. If done incorrectly the Linux kernel can't boot. Afaik from what I've been told by people doing hw research on the Switch the current chip firmwares (Spacecraft, HWFly-NX) all initialize the hardware incorrectly so HOS can boot but booting non-HOS firmwares is impossible. This can be fixed by replacing the chain loader on the NAND but then if the chip reflashes the NAND for whatever reason it will revert to being unable to boot Linux. The chip itself needs to contain an updated chain loading payload.
 

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,157
Country
United States
Ok so for those of you just tuning in here. It seems the code is already out in the wolf. You just need to install a boot loader / chain loader into your .uf2

Full src or just the beta that’s been floating around?

You mean we can throw on something like argon-nx and just go?
 

OhGeeRobbie

New Member
Newbie
Joined
Feb 1, 2022
Messages
3
Trophies
0
Age
43
XP
38
Country
United States
Beta? Naw it’s way past that and likely already out there you’d just need to put your little chain loader converted from binary and into the .uf2 code package. Allegedly.
Post automatically merged:

I haven’t had this much fun since … will someone mod my mf oled yesterday
 

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,157
Country
United States
  • Like
Reactions: peteruk

ByteFun

Member
Newcomer
Joined
May 6, 2021
Messages
17
Trophies
0
Age
34
XP
85
Country
Russia
Do you think it's so easy to replace the bootloader? The main code is encrypted, as is the bootloader code. I think you can put your bootloader in emmc через hekate? Will the chip load a custom bootloader in the switch?
 
  • Like
Reactions: Xavier91ns

Adran_Marit

Walküre's Hacker
Member
Joined
Oct 3, 2015
Messages
3,781
Trophies
1
Location
42*South
XP
4,569
Country
Australia
Ok so for those of you just tuning in here. It seems the code is already out in the wolf. You just need to install a boot loader / chain loader into your .uf2
Yall mean the china code that was leaked a few days ago and generated this discussion or did new code release in which case where is the source?
 

xldon2lx

Active Member
Newcomer
Joined
Nov 20, 2022
Messages
37
Trophies
0
Age
36
XP
125
Country
Philippines
While that's true, before booting in to Hekate a chain loader payload is ran from the NAND first. The chip just glitches the Switch in to running that instead of the official bootloader and then the chain loader runs Hekate. Because the chain loader runs before Hekate it has to do some hardware initialization stuff which can only be done once per boot. If done incorrectly the Linux kernel can't boot. Afaik from what I've been told by people doing hw research on the Switch the current chip firmwares (Spacecraft, HWFly-NX) all initialize the hardware incorrectly so HOS can boot but booting non-HOS firmwares is impossible. This can be fixed by replacing the chain loader on the NAND but then if the chip reflashes the NAND for whatever reason it will revert to being unable to boot Linux. The chip itself needs to contain an updated chain loading payload.
For ELI5 purposes...

What @CompSciOrBust is talking about(chain loader payload) is the sdloader.enc from hwfly-nx firmware. It is inserted directly in the boot0 partition. Spacecraft-NX doesn't provide a sdloader.enc file because the firmware of the modchip writes to it instead when some conditions are met(ie. it doesn't detect the modified chainloader in boot0)

:)
 

Girtana1

Well-Known Member
Member
Joined
Jun 22, 2016
Messages
123
Trophies
0
XP
959
Country
United States
Lol
Hwfly boots Hekate, and hekate can boot all other distros.
Picofly boot hekate 🤯
More is not needed 😉
Exactly, I'm like "what are these bozos talkin about" lol
Wish there was a better place of discussion for PikoFly that was for people a little more on the 'up n up'

(I thought I recognized your name too, haven't peaked in the server in a while but you're the NAND guy, hope everything's been well :grog:)
 
  • Like
Reactions: evil_santa

OhGeeRobbie

New Member
Newbie
Joined
Feb 1, 2022
Messages
3
Trophies
0
Age
43
XP
38
Country
United States
Exactly, I'm like "what are these bozos talkin about" lol
Wish there was a better place of discussion for PikoFly that was for people a little more on the 'up n up'

(I thought I recognized your name too, haven't peaked in the server in a while but you're the NAND guy, hope everything's been well :grog:)
Excuse me but no. I got this.
 

Adran_Marit

Walküre's Hacker
Member
Joined
Oct 3, 2015
Messages
3,781
Trophies
1
Location
42*South
XP
4,569
Country
Australia
Exactly, I'm like "what are these bozos talkin about" lol
Wish there was a better place of discussion for PikoFly that was for people a little more on the 'up n up'

(I thought I recognized your name too, haven't peaked in the server in a while but you're the NAND guy, hope everything's been well :grog:)
Spoiler he's evil ;)

Just waiting for all the stuff to happen
 
  • Like
Reactions: Girtana1

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    BigOnYa @ BigOnYa: You guys probably wearing winter jackets when in 60's in Cali.