Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Debug Output Patch for 1.0.0-6.2.0 #182

Closed
wants to merge 8 commits into from

Conversation

roblabla
Copy link
Contributor

@roblabla roblabla commented Feb 8, 2019

Implementation of https://gist.github.com/roblabla/440f3ceaa0b2d3ca530c2a43fe258420#file-03-wip-enabledebugoutput-md for 1.0.0 to 6.2.0.

Untested, as I still lack the hardware necessary. If anyone has a modded joycon rail and could make sure both the UART configuration and the OutputDebugString patches work, I'd be grateful.

To configure UART output, you should compile hekate with -DDEBUG_OUTPUT_PORT=1 (or 2, based on whether you want right or left joycon to output uart).

Note that this PR makes Hekate too fat to fit the RCM payload. You'll want to remove -DMENU_LOGO_ENABLE from the makefile for now if you want to test.

@m4xw
Copy link
Contributor

m4xw commented Feb 8, 2019

Note that this PR makes Hekate too fat to fit the RCM payload. You'll want to remove -DMENU_LOGO_ENABLE from the makefile for now if you want to test.

Might be a good first candidate for the patcher module

@CTCaer
Copy link
Owner

CTCaer commented Feb 8, 2019

I can test that when possible.

Might be a good first candidate for the patcher module

Yeah maybe its time for patching things to get their own module, but you never know what happens next, it may still fit.

@m4xw
Copy link
Contributor

m4xw commented Feb 8, 2019

Yeah maybe its time for patching things to get their own module, but you never know what happens next, it may still fit.

Indeed

@roblabla
Copy link
Contributor Author

roblabla commented Feb 9, 2019

So after fixing the few clumsy mistakes, this now boots. But it doesn't seem to work - at least on 6.2.0. There's no output beyond Hekate's "hello". The test is being done using a modded right joycon rail. I wonder if the DEBUG_OUTPUT_UART_CONF patch is broken somehow 🤔 . Otherwise, there's a good chance the right joycon rail isn't powered on unless the system detects a joycon or something along those lines.

I'm thinking of changing my strategy - implementing an exosphere SMC that prints to UART, and have the kernel patch just forward there. It would also make the patch much more compact, and easier to port to new versions.

@CTCaer
Copy link
Owner

CTCaer commented Feb 9, 2019

What about the line inversions happening for Joy-cons?

@CTCaer
Copy link
Owner

CTCaer commented Jul 7, 2022

This reference I guess is superseded by meso uart printing.
Although you still need to do a simple change there, so it automatically checks and reconfigures uart port before printing, in case a joycon port was selected.

@CTCaer CTCaer closed this Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants