Skip to content

boards/lm3s6965-ek: drop dns client and telnetd from qemu-protected - #21320

Merged
acassis merged 1 commit into
apache:masterfrom
Swatantra-66:boards/lm3s6965-shrink-protected
Nov 1, 2026
Merged

acassis merged 1 commit into
apache:masterfrom
Swatantra-66:boards/lm3s6965-shrink-protected

Conversation

@Swatantra-66

Copy link
Copy Markdown
Contributor

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 kflash to overflow by 288 bytes during the CI arm-ti build:

arm-none-eabi-ld: nuttx section `.data' will not fit in region `kflash'
arm-none-eabi-ld: region `kflash' overflowed by 288 bytes

This patch trims unused network features from qemu-protected:

  1. Disable DNS client (CONFIG_NETDB_DNSCLIENT): In QEMU, there is no DNS server and no built-in example uses DNS (nslookup was already dropped in commit 6feaf0e491). Removing the resolver library from libs/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.
  2. Disable Telnet daemon (CONFIG_NETUTILS_TELNETD): The primary console is already on UART0 (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):

Together, these two PRs completely clear the Linux (arm-ti) CI build across master.

Impact

  • Eliminates linker overflow region kflash overflowed by 288 bytes.
  • Leaves ~2.7 KiB of headroom in kflash and ~2 KiB in uflash.
  • No impact on existing test cases or system call verification.

Testing

  • Verified qemu-protected/defconfig entry ordering and normalization.
  • Verified commit message formatting and style guidelines.

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
@github-actions github-actions Bot added Size: XS The size of the change in this PR is very small Board: arm labels Nov 1, 2026
@Swatantra-66
Swatantra-66 force-pushed the boards/lm3s6965-shrink-protected branch from f019335 to 643decd Compare November 1, 2026 09:10
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

MemBrowse Memory Report · Explore what changed →

No memory changes detected for:


Catch memory regressions in CI with MemBrowse. Free for open source.

@acassis
acassis merged commit d9d9d3f into apache:master Nov 1, 2026
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Board: arm Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants