forked from ge0rg/libxenon
-
Notifications
You must be signed in to change notification settings - Fork 53
Enable telnet console, add crash dump handling options, minor misc changes #52
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
Open
justanetworkgeek
wants to merge
21
commits into
Free60Project:master
Choose a base branch
from
justanetworkgeek:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… latent networks more stable.
…conditions. Removing but leaving working controller handling.
…conditions. Removing but leaving working controller handling.
…d but transmit was enabled. Re-enabled receive buffer and pushing this after testing with it.
…ed chars will echo back intrinsicly. Added externs for recv_buf and recv_len so that ththey can be used in libxenon programs.
…e things are verifiably working. Adding comments.
…ned via telnet and the console rebooted that way as well with controller and uart.
Swizzy
reviewed
Oct 20, 2025
…g stack trace for compat per Swizzy
Swizzy
approved these changes
Oct 20, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As I start to write libxenon programs again I found myself wanting a few features. Everything below I have tested with this build as best as I can using and RGH2 trinity console. This pr makes the following changes:
Increase the amount of and duration of DHCP probes globally on network initialization. This helps with slower connections from console->DHCP server.
Testing: DHCP works still. If link is down it's not an unbearably longer wait.
Enable the telnet console receive buffer and expose it globally so libxenon programs can also use it easily. (this code already existed in the code base, I just uncommented it and tested it pretty much)
Testing: PuTTY and Linux telnet clients work to read and write the telnet console. Trying to overload the receive buffer etc does not produce any issues.
When libxenon programs crash and
c_exceptis executed, it now brings up hardware again (USB and network) and the telnet console. Added more input handling options. Controller should be good for users without a UART. Telnet is also good for developing libxenon programs without access to UART as well. All of the possible input options can either reprint the stack trace or reboot the console in a number of ways.Testing: created a small program
handle-all-inputin my repo to test against. Forcing that program to crash I tried each new option I added in c_except.General compiler warnings cleanup. While making edits to other stuff I just wanted to silence the noise and make sure what I was doing wasn't causing any fallout. I only tackled warnings that were obvious like implicit declarations/missing headers and the like.
I built all the auxiliary libraries and also XeLL-Reloaded master with these changes and all is well. I wanted to contribute these changes on the off chance it helps other libxenon program developers. Much of this can likely be improved as I am no expert :D