Repository navigation
boards/lm3s6965-ek: drop dns client and telnetd from qemu-protected - #21320
Merged
acassis merged 1 commit intoNov 1, 2026
Merged
Conversation
The protected configuration for lm3s6965-ek partitions flash into 128 KiB for the kernel (kflash) and 128 KiB for user space (uflash). Recent additions to the kernel and VFS caused kflash to overflow by 288 bytes during the CI arm-ti build (arm-none-eabi-ld: section .data will not fit in region kflash). Disable the DNS client library (CONFIG_NETDB_DNSCLIENT) and the Telnet daemon (CONFIG_NETUTILS_TELNETD). In QEMU, DNS resolution is unused by the built-in examples, and dropping the resolver library saves ~3 KiB of code from the kernel image and ~2 KiB from user space, restoring ample flash headroom. Networking (DHCP, TCP/UDP, ping) and the ELF/module examples remain fully functional. Signed-off-by: Swatantra Yadav <[email protected]> Assisted-by: Google Gemini
Swatantra-66
requested review from
acassis,
anchao,
masayuki2009,
xiaoxiang781216 and
yamt
as code owners
November 1, 2026 09:09
xiaoxiang781216
approved these changes
Nov 1, 2026
Swatantra-66
force-pushed
the
boards/lm3s6965-shrink-protected
branch
from
November 1, 2026 09:10
f019335 to
643decd
Compare
|
acassis
approved these changes
Nov 1, 2026
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.
Summary
The protected configuration for
lm3s6965-ek(qemu-protected) partitions flash into 128 KiB for the kernel (kflash,0x00000000–0x00020000) and 128 KiB for user space (uflash,0x00020000–0x00040000), bounded by ARMv7-M MPU power-of-two alignment.Recent additions to kernel and VFS code caused
kflashto overflow by 288 bytes during the CIarm-tibuild:This patch trims unused network features from
qemu-protected:CONFIG_NETDB_DNSCLIENT): In QEMU, there is no DNS server and no built-in example uses DNS (nslookupwas already dropped in commit6feaf0e491). Removing the resolver library fromlibs/libc/netdb/frees ~3 KiB of code from the kernel image (kflash), wiping out the 288-byte overflow and providing ~2.7 KiB of headroom.CONFIG_NETUTILS_TELNETD): The primary console is already onUART0(CONFIG_UART0_SERIAL_CONSOLE=y), making telnetd unused in headless QEMU CI. Removing it frees ~2 KiB from user space (uflash).All core test objectives for this configuration (Cortex-M3 MPU memory protection, system calls, DHCP, TCP/UDP sockets, ping, and dynamic ELF/module loading) remain fully functional.
Relationship to PR #21219
Follows up on merged PR #21219 (commit
cb6d98746b):lm3s6965-ek:qemu-flat.lm3s6965-ek:qemu-protected.Together, these two PRs completely clear the
Linux (arm-ti)CI build across master.Impact
region kflash overflowed by 288 bytes.kflashand ~2 KiB inuflash.Testing
qemu-protected/defconfigentry ordering and normalization.