Comments (8)
Has anyone made progress on a joycon custom firmware?
from nintendo_switch_reverse_engineering.
-
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.
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.
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.
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.
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.
Could this be used to enter rcm mode?
from nintendo_switch_reverse_engineering.
nope. Joy-con has a pull up resistor there.
from nintendo_switch_reverse_engineering.
Related Issues (20)
- Looking for ideas on joy con charging HOT 2
- Pin 4 under console reset condition
- how to prevent auto-sleep?
- compile a list of joycon drivers and modules from different languages? HOT 2
- How to solve Subcommand 40 02
- Is there a list of Clone controllers which you have found to work (or not work) when plugged into other hosts?
- HD Rumble is not on par with the Switch
- Pinout for the joycon rail flex cable specifically? HOT 6
- When all USB ports are not working on dock HAC-007
- Do you know anything about switch game cards? I'm trying to use reverse engineering in one HOT 5
- Enabled HID Gyro/Acc over Bluetooth
- Wired joy con wired status response expansion
- Joystick operating voltage HOT 1
- Payloads HOT 1
- Anyway to reverse A/B X/Y
- About Pro controller/Joycon LTK error ,ask for help
- How do I test the the joycon buttons with a multimeter
- [Nintendo Switch.com]
- Joycon not connecting to Switch, powering up or charging/PCB issue? HOT 2
- Joycon L&R PCB dimensions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nintendo_switch_reverse_engineering.