Repository navigation
boards/ab32vg1-generic: Disable procfs in ostest to fit the SRAM - #21778
Merged
Merged
Conversation
ab32vg1-generic:ostest runs from the 114 KB SRAM. After apache#21724 the image does not fit: riscv-none-elf-ld: region `sram' overflowed by 54 bytes This configuration starts ostest_main and has no shell, and ostest does not read /proc, so nothing in it uses procfs. Disable it: this frees about 12 KB. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]>
This was referenced Nov 12, 2026
Merged
xiaoxiang781216
approved these changes
Nov 12, 2026
acassis
approved these changes
Nov 12, 2026
|
This was referenced Nov 12, 2026
casaroli
marked this pull request as draft
November 12, 2026 14:08
casaroli
marked this pull request as ready for review
November 12, 2026 14:08
This was referenced Nov 12, 2026
🔗 Cross-repo PR dependenciesThe read-only Build run reported the following dependent PR(s) and fetched head SHA(s): |
🔗 Cross-repo PR dependenciesThe read-only Build run reported the following dependent PR(s) and fetched head SHA(s): |
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.
depends-on: /pull/21800
Summary
ab32vg1-generic:ostestruns from the 114 KB SRAM (sramregion, 116736 bytes). Since #21724 master does not link it, and every CI run of therisc-v-01group fails:This configuration starts
ostest_mainand has no shell, and ostest does not read/proc, so nothing in it uses procfs. DisableCONFIG_FS_PROCFS: this frees about 12 KB.Impact
Only
ab32vg1-generic:ostest: no/proc. No code change.Testing
ab32vg1-generic:ostest, make, riscv-none-elf-gcc 14.3 (bytes of the 116736-bytesramregion):Other options measured on master:
STACK_COLORATIONoff frees 1368 bytes (but ostest uses it for its interrupt stack test),SCHED_DUMP_TASKSoff frees 1628 bytes.make savedefconfiggives this defconfig, and the build withEXTRAFLAGS="-Wno-cpp -Werror"has no warning. Not run on the board (no hardware).