Code Monkey home page Code Monkey logo

Comments (8)

daurnimator avatar daurnimator commented on June 18, 2024 3

Has anyone made progress on a joycon custom firmware?

from nintendo_switch_reverse_engineering.

CTCaer avatar CTCaer commented on June 18, 2024
  • Somewhat easy. You need a custom hidraw in linux to enable DFU mode and a simple "flasher" program.
    You can flash only the SPI though. You can't touch the ROM. The actual format for these "firmwares" is Broadcom PatchRAM.

  • You just write a compatible Patchram that patches the ROM and RAM on boot, and you flash it at the correct address inside the SPI

  • You can write around 448KB of PatchRAM. The RAM capacity is 64KB + 288KB.

For more on PatchRAMs check https://github.com/shuffle2/nxpad. Read the commits and the IDA parser script. It explains some of the entries in a PatchRAM. Also check the issue there, I explain the initial PatchRAM "loader" at the start of SPI. I can provide some more info on PatchRAMs if you want.

Additionally, there is a less time consuming way to flash though. I have a custom Joy-Con "firmware" that when you flash it via DFU the first time, you can then write to SPI anywhere via spi write subcmd, instead of going into DFU mode and you just reboot the controller. Maybe I can also provide you the incomplete flasher I have, but with your own risk.

Lastly, if you don't have a SPI Programmer, buy one. You will need it, if the PatchRAM you wrote in SPI does not work correctly. The joy-con do not have a recovery mode, they just bootloop.

from nintendo_switch_reverse_engineering.

TuxSH avatar TuxSH commented on June 18, 2024

Additionally, it would be very nice to have something to transmit UART data given by the console to the PC via bluetooth and vice-versa for low-level debugging.

How hard would it be to implement such a feature (I know that you need to remove auto-pairing/make the joycon not drop the BT connection) and/or is there anyone working on it?

from nintendo_switch_reverse_engineering.

CTCaer avatar CTCaer commented on June 18, 2024

It's probably possible. But it would be easier to change the initial patchram-loader to check for a key press and load stock or custom fw.
And that means that it would be easier to create your own patchram from scratch to only do this job:
Initialize UART and stream it through bt.
Because adding stuff is not so easy as patching stuff.

But patching should also be doable. Maybe sth like copying and stripping the uart buffer to bt buffer.
(I utilized usb-uart together with bt through stock patchram before).

I know there are some people trying to get this working (I'm not one of them).
But I don't know if they made any progress.

from nintendo_switch_reverse_engineering.

TuxSH avatar TuxSH commented on June 18, 2024

And that means that it would be easier to create your own patchram from scratch to only do this job:
Initialize UART and stream it through bt.

Doesn't that mean you lose the ability to reflash that joycon. Sorry, I'm not really experienced/comfortable enough with joy-con stuff.

from nintendo_switch_reverse_engineering.

CTCaer avatar CTCaer commented on June 18, 2024

The SPI region locking is actually locked in PatchRAM-level.
I have unlocked patched fw that allows you to make a firmware update through normal bthid.

Also, if you are creating your own fw from scratch, I assume that you'll give unrestricted access to SPI.

Last and most important, the DFU function is baked in ROM. You can only restrict it with PatchRAM. So with default config it should always be enabled.

from nintendo_switch_reverse_engineering.

 avatar commented on June 18, 2024

Could this be used to enter rcm mode?

from nintendo_switch_reverse_engineering.

CTCaer avatar CTCaer commented on June 18, 2024

nope. Joy-con has a pull up resistor there.

from nintendo_switch_reverse_engineering.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.