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

[boot] Add enhanced debug display to setup.S for early startup debugging #1981

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

ghaerr
Copy link
Owner

@ghaerr ghaerr commented Sep 2, 2024

Adds significant optional debug display output to early setup operation, allowing one to both see, debug and learn about early ELKS kernel startup directly after being handed control by the boot sector.

Adds the ability to display output to serial COM1 instead of the console. If debugging on and going to console, allows waiting for a keypress so that contents are not quickly scrolled past.

The debugging output logs all block memory copies and stack switches during startup, for much greater visibility into the selection of DEF_INITSYS, REL_INITSYS, and other pretty arcane stuff in config.h. Update boot.txt documentation coming.

Here's an example of the setup debug display on the console, awaiting a keypress before starting the kernel:
ELKS setup debug

@Mellvik, this is the first in a series of PRs for issues discussed in Mellvik/TLVC#76 for enhancing our kernels by being able to more easily see what is going on. Feel free to port them over to TLVC. I've tried to make it such that files might be able to be ported directly over, with the exception of possible ELKS/TLVC naming or magic numbers.

@ghaerr ghaerr merged commit 5a49097 into master Sep 2, 2024
2 checks passed
@ghaerr ghaerr deleted the setup branch September 2, 2024 23:33
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.

1 participant