New major updates made in the $3 Pikofly Nintendo Switch modchip project

27002868.jpg

Late last year, a homebrew developer made a massive announcement: there was a new Nintendo Switch modchip coming soon, and it would support not just launch units, but also more modern OLED and Mariko Switch revisions (though not Erista). The icing on the cake was that the modchip to hack the Switch only cost $3. and consist of a RP2040-Zero unit, which hugely contrasted with the only other available modchip--the HWfly--which went for over $100 at the time. Dubbed the Pikofly chip, it would, in theory, be able to install custom firmware on your Switch.

Scene members quickly took notice, as many began working on breaking down how the chip functioned, with lots of information available in the Pikofly discussion thread. And now, thanks to their hard work, you can now take advantage of it, in order to get the Pikofly modchip working on your Switch. GBAtemp user Rehius has published a GitHub project page that has a firmware file and further documentation, while Flynnsmt4 managed to decrypt parts of the code, even creating a cycle-accurate emulator that further explains how the chip works. With these new milestones, people are already discussing techniques to solder the chip to their consoles.

If you're curious to see more, and how this unfolds, head on over to the Pikofly thread to see the latest discussion and updates.
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,388
Trophies
4
Location
Space
XP
14,022
Country
Norway
I always wondered why use a Pi at all. This seems like massive overkill to me, seems like something the average microcontroller should handle, something along the lines of an AtMega. Then again, I don’t know exactly what code this is running, so I may be entirely off-base and that cortex is doing voodoo on the Switch. I suppose availability of resources and big community make it more attractive.
RP2040 boards are cheaper than most other alternatives. Even cheaper than Arduino clones. But what makes them special is the PIO (programmable I/O) functionality, which makes possible things an ATmega just couldn't do, because emulating hardware protocols in software is very slow (not to mention very timing sensitive, and you don't have precise timing with a 8/16mhz clock) and ATmega chips already run at a slow clock speed. PIO negates the need for emulating them in software.
AFAIK, Switch chips use glitching, similar to Xbox 360 RGH. This is rather timing sensitive, so it's possible an ATmega chip is just too slow for the accurate timing that is needed to make it work reliably every time. In my own experience with Arduinos, timing sensitive I/O is really where they fall apart.
A Teensy would be an option, but, those cost several times more than a Pi Pico.
 
  • Like
Reactions: Foxi4

Foxi4

Endless Trash
Global Moderator
Joined
Sep 13, 2009
Messages
30,848
Trophies
3
Location
Gaming Grotto
XP
29,932
Country
Poland
The RP2040 has a special PIO hardware, which lets you execute very deliberate instructions in a single clock cycle. It's a compromise between bitbanging stuff with a CPU, or a very expensive CPLD/FPGA. It's small yet powerful, letting you even drive displays in real time, even unattended if you can program the DMA chain, for absolute 0% CPU usage.

To my knowledge, you need very short pulses to glitch the hardware (reverse-engineering the dumped firmware says it overclocks to 333MHz!), so I highly doubt a pity ATMega could handle this job. Or at least, definitely not an 8bit one.
Oh, that makes sense, thanks bud. I guess I’m just more used to seeing an ATMega 32U4 for stuff like this, but tighter timings and higher frequency requirements make sense if it’s sort of like a reset glitch hack.
 
  • Like
Reactions: Sono

orangy57

bruh
Member
Joined
Aug 17, 2015
Messages
923
Trophies
1
Age
21
Location
New Jersey
XP
2,988
Country
United States
I always wondered why use a Pi at all. This seems like massive overkill to me, seems like something the average microcontroller should handle, something along the lines of an AtMega. Then again, I don’t know exactly what code this is running, so I may be entirely off-base and that cortex is doing voodoo on the Switch. I suppose availability of resources and big community make it more attractive.
pretty sure the raspberry pi pico is just a microcontroller made by the raspberry pi ppl. The raspberry pi zero and regular pi are the ones with the arm processors. Raspberry pi naming schemes are getting garbled now since they have a tons of different SKUs that do mostly the same stuff. At least it's not as hard as finding the right arduino clone to use

EDIT: I'm wrong, even the pico even has an ARM Cortex processor inside but it's super low-power. I wonder if it was picked for convenience or if they needed more performance than an average microcontroller for some reason
 

JonJaded

Well-Known Member
Member
Joined
May 22, 2016
Messages
683
Trophies
0
XP
3,004
Country
United States
So cool so see this get rumored and come to life over the past couple of months. Truly amazing community we have here.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • SylverReZ @ SylverReZ:
    Why not they just mine Monero instead of scamming vulnerable people? If they have a decent machine they can hit a jackpot at any given time.
    +1
  • SylverReZ @ SylverReZ:
    Bitcoin on the other hand, requires a very powerful mining rig and is more costly.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, different cultures so probably they have their reasons
  • K3Nv2 @ K3Nv2:
    Yes a $2,000 rig for $5 a day
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Or could be in correlation to laws.
    +1
  • SylverReZ @ SylverReZ:
    Technically, cryptocurrencies aren't illegal, as long as you don't use it for criminal activity. If you sign up with an exchange, and that they get a tip from law enforcement, they have the right to freeze your assets.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, Yea I heard law is vastly different there
  • SylverReZ @ SylverReZ:
    Nigeria's central bank did make crypto illegal before, until last year they lifted the ban. Always make sure to check before you exchange. ;)
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, speaking of crypto i remember reading about a guy who spend like 10 grand bitcoin on a couple pizzas (when bitcoin wasnt as worthy as nowadays)
  • SylverReZ @ SylverReZ:
    @Xdqwerty, That's mental. If he had saved up when Bitcoin sky-rocketed in price, then he might've become the next Jeff Bezos for all I know.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, he couldnt know the price was gonna skyrocket anyway
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Then it dropped sometime in 2022, 2021 was when it really went up in price.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, I also recall watching a video of some failed games with their own crypto currency or smth like that, lemme link it to you (it's in spanish tho)
  • SylverReZ @ SylverReZ:
    @Xdqwerty, I remember that. Didn't Steam ban games with NFTs before somehow devs managed to circumvent it? Think EA tried to dabble in NFTs too.
  • SylverReZ @ SylverReZ:
    Glad to hear people realise that NFTs aren't worth it these days. They realise that they're JPEGs hosted on a file-hosting site like AWS or Google Drive.
  • Xdqwerty @ Xdqwerty:
    Atleast it has captions
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Meta also tried to create their own crypto, but that fell through.
  • SylverReZ @ SylverReZ:
    Was called Libra, they had around 100 employees and wanted to hire more near to end of the year.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, idk why facebook tried to do that metaverse thing if mmo games already existed before
  • Xdqwerty @ Xdqwerty:
    And Yea I refuse to call it meta
  • SylverReZ @ SylverReZ:
    @Xdqwerty, I refuse to call it Meta, too. It's a stupid name.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, then why did you call it like that a minute ago?
  • SylverReZ @ SylverReZ:
    I don't get why Facebook ever wanted to dabble into virtual reality, when other companies were doing it.
    +1
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Just to emphasize on what I mean.
    +1
    SylverReZ @ SylverReZ: @Xdqwerty, Just to emphasize on what I mean. +1