Swatantra-66 opened a new pull request, #21320:
URL: https://github.com/apache/nuttx/pull/21320

   ## 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:
   ```text
   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`):
   - **#21219** resolved flash exhaustion for `lm3s6965-ek:qemu-flat`.
   - **This PR** resolves flash exhaustion for `lm3s6965-ek:qemu-protected`.
   
   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to