add per-core kernel-mode options - #16
Open
raiden00pl wants to merge 4 commits into
Open
Conversation
raiden00pl
force-pushed
the
kernel-mode-support-pr2
branch
from
August 24, 2026 08:06
5f437a0 to
933a953
Compare
reboot_timeout was defined in the recovery default config and documented, but never read: _device_reboot() only uses max_retries and base_delay. Remove the dead option and its documentation. Signed-off-by: raiden00pl <raiden00@railab.me> Assisted-by: Claude Code
Kernel builds install every application as a standalone ELF binary, so the command name is the file name; entry points are renamed to main and flat-mode symbols like hello_main do not exist. AppBinDir lists the application directory as the command set, supports the cmd_check marker syntax (alternatives, regex, trailing _main), and falls back to symbol lookups over the unstripped binaries in bin_debug for names that are not files (NSH builtins, cmocka entries). Signed-off-by: raiden00pl <raiden00@railab.me> Assisted-by: Claude Code
Options needed to describe kernel-mode targets, where applications are standalone ELF binaries installed on the target filesystem and resolved from PATH rather than linked into the kernel image: - is_kernel_build: core .config selects CONFIG_BUILD_KERNEL - exec_cwd: working directory for spawned sim/qemu processes; a semihosting hostfs mount (qemu arm/riscv) resolves relative to it - boot_timeout: seconds to wait for the first shell prompt (default 5) - app_bindir: application binaries, bin/ next to the ELF unless set Signed-off-by: raiden00pl <raiden00@railab.me> Assisted-by: Claude Code
Host devices were spawned with cwd=None. Targets that mount a semihosting hostfs relative to the process working directory (qemu arm/riscv) then cannot find their applications, and the boot wait was fixed at 5s, too short for a kernel-mode boot. Use CoreConfig.exec_cwd for the spawn and CoreConfig.boot_timeout for the boot wait on the host and serial paths. Signed-off-by: raiden00pl <raiden00@railab.me> Assisted-by: Claude Code
raiden00pl
force-pushed
the
kernel-mode-support-pr2
branch
from
August 24, 2026 11:49
933a953 to
d4426f2
Compare
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
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.
extracted from #13