Captain Bob ruled that the offset is the RAM block count, not a literal 2048. - v3/include/blk_layout.h defines it, 2048 by default. block_subsystem.h derives BLK_RAM_BLOCKS (2080) and BLK_DISK_START from it. - Kconfig.kernel has the symbol. kernel/Makefile passes it to the kernel's C code and builds mkcapsule and mkartemis with it. - mkcapsule's two literal 2048s are now the knob. The default value is unchanged, so the layout and the media are as before. Test first: scripts/test_capsule_ram_blocks.sh, 8 checks. - The before-run failed 4: the knob did not exist and mkcapsule ignored it. Its three Makefile checks also hit a SIGPIPE flaw in the test, fixed before the after-run. - After: all 8 pass. The amd64 build and mkartemis build clean. All 40 capsules lint. The mesh boot passes 109 checks with POST 990/990. test_host_blocks, test_host_quit, test_host_unit and test-32 pass. Logs are in logs/20261118-ram-blocks-knob. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
11 lines
624 B
Plaintext
11 lines
624 B
Plaintext
FAIL: the knob's default is 2048, and BLK_RAM_BLOCKS and BLK_DISK_START are 2080 as before
|
|
PASS: default build: a page at 2047 is refused
|
|
PASS: default build: a page at 2048 is taken
|
|
FAIL: knob 4096: a page at 3000 is refused
|
|
PASS: knob 4096: a page at 4096 is taken
|
|
FAIL: kernel/Makefile: the kernel's C flags carry it
|
|
FAIL: kernel/Makefile: mkcapsule is built with it
|
|
FAIL: kernel/Makefile: mkartemis is built with it
|
|
RESULT: FAIL
|
|
note: the three kernel/Makefile checks failed before for two reasons -- no knob yet, and the test's own SIGPIPE flaw (printf | grep -q under pipefail), fixed in the test before the after-run
|