Skip to content

config/coreboot-t420-maximized: align defconfig with cleaned defconfig pattern#2148

Merged
tlaurion merged 1 commit into
linuxboot:masterfrom
tlaurion:save_t420-hotp-maximized_once_more
Jul 1, 2026
Merged

config/coreboot-t420-maximized: align defconfig with cleaned defconfig pattern#2148
tlaurion merged 1 commit into
linuxboot:masterfrom
tlaurion:save_t420-hotp-maximized_once_more

Conversation

@tlaurion

@tlaurion tlaurion commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator
  • Disable CONFIG_USE_PC_CMOS_ALTCENTURY (coreboot default when !USE_OPTION_TABLE, no functional impact on Heads)
  • Disable CONFIG_RAMINIT_ENABLE_ECC (Sandy Bridge native raminit, laptop DIMMs are non-ECC)
  • Add CONFIG_DRIVERS_LENOVO_HYBRID_GRAPHICS for T420 Optimus support
  • Switch from USE_OPTION_TABLE to OPTION_BACKEND_NONE per project preference (Heads manages runtime config via initrd, not CMOS)
  • Sync config_defconfig to match current .config
  • Document full inconsistency audit across all coreboot configs in doc/variation-to-defconfig.md

t420-hotp-maximized's CBFS Free Space: 6372 bytes (6 KiB)

With those changes

# Use coreboot.rom, because custom output files might not be processed by cbfstool
"/home/user/heads/build/x86/coreboot-25.09/EOL_t420-hotp-maximized/cbfstool" "/home/user/heads/build/x86/coreboot-25.09/EOL_t420-hotp-maximized/coreboot.rom" print
FMAP REGION: COREBOOT
Name                           Offset     Type           Size   Comp
cbfs_master_header             0x0        cbfs header        32 none
cpu_microcode_blob.bin         0x80       microcode       26624 none
fallback/romstage              0x68c0     stage          100216 none
fallback/ramstage              0x1f0c0    stage          148509 LZMA (317084 decompressed)
config                         0x43540    raw              3546 LZMA (11280 decompressed)
revision                       0x44380    raw               766 none
build_info                     0x446c0    raw               101 none
bootsplash.jpg                 0x44780    bootsplash      43282 none
fallback/dsdt.aml              0x4f0c0    raw             14520 none
vbt.bin                        0x529c0    raw              1368 LZMA (3985 decompressed)
cmos_layout.bin                0x52f80    cmos_layout      2120 none
fallback/postcar               0x53800    stage           30564 none
fallback/payload               0x5afc0    simple elf    7783616 none
(empty)                        0x7c74c0   null             6372 none
bootblock                      0x7c8dc0   bootblock       28672 none

Validating final CBFS/IFD configuration...
===================================================================
IFD vs CBFS Size Validation
===================================================================
IFD BIOS Region: 0x00018000 - 0x007fffff
IFD BIOS Size:   0x7E8000 (8096 KiB)
CONFIG_CBFS_SIZE: 0x7E7FFF (8095 KiB)

✓ CONFIG_CBFS_SIZE fits within IFD BIOS region
   Unused IFD capacity: 1 bytes (< 1 KiB)

CBFS Free Space: 6372 bytes (6 KiB)

===================================================================
✓ Validation complete
===================================================================

2026-07-01 20:23:52+00:00 INSTALL   build/x86/coreboot-25.09/EOL_t420-hotp-maximized/coreboot.rom => build/x86/EOL_t420-hotp-maximized/heads-EOL_t420-hotp-maximized-202607011619-v0.2.1-3084-ge3db198.rom
f2b3e665b19d29ef102722b76b089d953480ba3f0c95efaacfe53f7add2f7208  build/x86/EOL_t420-hotp-maximized/heads-EOL_t420-hotp-maximized-202607011619-v0.2.1-3084-ge3db198.rom
 8388608:build/x86/EOL_t420-hotp-maximized/heads-EOL_t420-hotp-maximized-202607011619-v0.2.1-3084-ge3db198.rom
rm -rf "/home/user/heads/build/x86/EOL_t420-hotp-maximized/update_pkg"
mkdir -p "/home/user/heads/build/x86/EOL_t420-hotp-maximized/update_pkg"
cp "/home/user/heads/build/x86/EOL_t420-hotp-maximized/heads-EOL_t420-hotp-maximized-202607011619-v0.2.1-3084-ge3db198.rom" "/home/user/heads/build/x86/EOL_t420-hotp-maximized/update_pkg/"
cd "/home/user/heads/build/x86/EOL_t420-hotp-maximized/update_pkg" && sha256sum "heads-EOL_t420-hotp-maximized-202607011619-v0.2.1-3084-ge3db198.rom" >sha256sum.txt
cd "/home/user/heads/build/x86/EOL_t420-hotp-maximized/update_pkg" && zip -9 "/home/user/heads/build/x86/EOL_t420-hotp-maximized/heads-EOL_t420-hotp-maximized-202607011619-v0.2.1-3084-ge3db198.zip" "heads-EOL_t420-hotp-maximized-202607011619-v0.2.1-3084-ge3db198.rom" sha256sum.txt
  adding: heads-EOL_t420-hotp-maximized-202607011619-v0.2.1-3084-ge3db198.rom (deflated 3%)
  adding: sha256sum.txt (deflated 13%)
f2b3e665b19d29ef102722b76b089d953480ba3f0c95efaacfe53f7add2f7208  /home/user/heads/build/x86/EOL_t420-hotp-maximized/heads-EOL_t420-hotp-maximized-202607011619-v0.2.1-3084-ge3db198.rom
 8388608:/home/user/heads/build/x86/EOL_t420-hotp-maximized/heads-EOL_t420-hotp-maximized-202607011619-v0.2.1-3084-ge3db198.rom

Fixes #2147

…g pattern

- Disable CONFIG_USE_PC_CMOS_ALTCENTURY (coreboot default when
  !USE_OPTION_TABLE, no functional impact on Heads)
- Disable CONFIG_RAMINIT_ENABLE_ECC (Sandy Bridge native raminit,
  laptop DIMMs are non-ECC)
- Add CONFIG_DRIVERS_LENOVO_HYBRID_GRAPHICS for T420 Optimus support
- Switch from USE_OPTION_TABLE to OPTION_BACKEND_NONE per project
  preference (Heads manages runtime config via initrd, not CMOS)
- Sync config_defconfig to match current .config
- Document full inconsistency audit across all coreboot configs in
  doc/variation-to-defconfig.md

Signed-off-by: Thierry Laurion <insurgo@riseup.net>
Copilot AI review requested due to automatic review settings July 1, 2026 20:26
@tlaurion tlaurion changed the title config/coreboot-t420-maximized: align defconfig with cleaned defconfi… config/coreboot-t420-maximized: align defconfig with cleaned defconfig pattern Jul 1, 2026
@tlaurion tlaurion merged commit 420d71e into linuxboot:master Jul 1, 2026
2 of 3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Lenovo T420 “maximized” coreboot configuration to align defconfig with the current .config and the project’s preference for OPTION_BACKEND_NONE, while documenting a repo-wide audit of defconfig inconsistencies to prevent stale per-board drift.

Changes:

  • Switch T420 maximized away from the CMOS option table (USE_OPTION_TABLE) toward OPTION_BACKEND_NONE and clean related Kconfig toggles.
  • Disable ECC raminit and USE_PC_CMOS_ALTCENTURY for the T420 maximized configuration.
  • Expand doc/variation-to-defconfig.md with an audit narrative and per-option board breakdowns.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
doc/variation-to-defconfig.md Adds detailed audit documentation and summary counts for cross-board coreboot Kconfig inconsistencies.
config/coreboot-t420-maximized.config_defconfig Cleans defconfig entries to match the current .config intent (ECC/CMOS options).
config/coreboot-t420-maximized.config Switches option backend configuration and disables ECC raminit for this board.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


### CONFIG_USE_OPTION_TABLE

Total: **12 `=y`**, **35 `not set`**
ECC memory initialization. Most laptop DIMMs are non-ECC, so this is
typically harmless but useless.

Total: **14 `=y`**, **7 `not set`**, **34 absent** (non-native-raminit boards)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

t420-hotp-maximized doesn't build in origin/master

2 participants