| 1 | Upcoming release - coreboot 24.12 |
| 2 | ================================= |
| 3 | |
| 4 | We are pleased to announce the release of coreboot 24.12, another significant |
| 5 | milestone in our ongoing commitment to delivering open-source firmware |
| 6 | solutions. This release includes 970 commits, contributed by 126 dedicated |
| 7 | individuals from our global community. The updates in 24.12 bring |
| 8 | various enhancements, optimizations, and new features that further improve the |
| 9 | reliability and performance of coreboot across supported platforms. |
| 10 | |
| 11 | We extend our sincere thanks to the patch authors, reviewers, and everyone |
| 12 | involved in the coreboot community for their hard work and dedication. Your |
| 13 | contributions continue to advance and refine coreboot with each release. As |
| 14 | always, thank you for your support and collaboration in driving the future of |
| 15 | open-source firmware. |
| 16 | |
| 17 | The next coreboot release, 25.03, is planned for mid March. |
| 18 | |
| 19 | Significant or interesting changes |
| 20 | ---------------------------------- |
| 21 | |
| 22 | ### drivers/option: Add forms in cbtables |
| 23 | |
| 24 | Introduce a mechanism so that coreboot can provide a list of options to |
| 25 | post-coreboot code. The options are grouped together into forms and |
| 26 | have a meaning name and optional help text. This can be used to let |
| 27 | payloads know which options should be displayed in a setup menu, |
| 28 | for instance. Although this system was written to be used with edk2, |
| 29 | it has been designed with flexibility in mind so that other payloads |
| 30 | can also make use of this mechanism. The system currently lacks a way |
| 31 | to describe where to find option values. |
| 32 | |
| 33 | This information is stored in a set of data structures specifically |
| 34 | created for this purpose. This format is known as CFR, which means |
| 35 | "coreboot forms representation" or "cursed forms representation". |
| 36 | Although the "forms representation" is borrowed from UEFI, CFR can |
| 37 | be used in non-UEFI scenarios as well. |
| 38 | |
| 39 | The data structures are implemented as an extension of cbtables records |
| 40 | to support nesting. It should not break backwards compatibility because |
| 41 | the CFR root record (LB_TAG_CFR_ROOT) size includes all of its children |
| 42 | records. The concept of record nesting is borrowed from the records for |
| 43 | CMOS options. It is not possible to reuse the CMOS records because they |
| 44 | are too closely coupled with CMOS options; using these structures would |
| 45 | needlessly restrict more capable backends to what can be done with CMOS |
| 46 | options, which is undesired. |
| 47 | |
| 48 | Because CFR supports variable-length components, directly transforming |
| 49 | options into CFR structures is not a trivial process. Furthermore, CFR |
| 50 | structures need to be written in one go. Because of this, abstractions |
| 51 | exist to generate CFR structures from a set of "setup menu" structures |
| 52 | that are coreboot-specific and could be integrated with the devicetree |
| 53 | at some point. Note that `struct sm_object` is a tagged union. This is |
| 54 | used to have lists of options in an array, as building linked lists of |
| 55 | options at runtime is extremely impractical because options would have |
| 56 | to be added at the end of the linked list to maintain option order. To |
| 57 | avoid mistakes defining `struct sm_object` values, helper macros exist |
| 58 | for supported option types. The macros also provide some type checking |
| 59 | as they initialise specific union members. |
| 60 | |
| 61 | It should be possible to extend CFR support for more sophisticated |
| 62 | options like fan curve points. |
| 63 | |
| 64 | |
| 65 | ### Makefile.mk: Skip unnecessary recompiles when static.{c,h} are updated |
| 66 | |
| 67 | The generated static.c file output by sconfig is currently added as a |
| 68 | prerequisite for all objects to ensure that static.h exists before |
| 69 | compiling anything that might need it. However, this forces every single |
| 70 | object out of date when the compiled devicetree is updated, even though |
| 71 | not every file actually needs static.h. |
| 72 | |
| 73 | Only static.h actually needs to exist before compilation of other |
| 74 | objects, since static.c is an independent compilation unit that doesn't |
| 75 | need to exist before other objects can be built. Thus, change the |
| 76 | prerequisite from static.c to static.h, and add a rule for static.h that |
| 77 | depends on static.c. The recipe is a simple `true` since sconfig |
| 78 | generates static.c and static.h at the same time. To prevent unnecessary |
| 79 | recompiles, make static.h an order-only prerequisite [1] using the new |
| 80 | generated files argument for create_cc_template to ensure that the |
| 81 | header exists before any object might need it, but without forcing a |
| 82 | recompile of all objects by default whenever it is updated. |
| 83 | |
| 84 | On a clean build, all objects will be compiled since they do not exist, |
| 85 | and these will occur after static.h is generated due to the default |
| 86 | order-only prerequisite. On subsequent incremental compiles, sources |
| 87 | that do need static.h will be appropriately marked out of date due to |
| 88 | the generated .d dependency files from the compiler, which list static.h |
| 89 | as a normal prerequisite for each objects that do include it, which |
| 90 | overrides the default order-only prerequisite. The dependency files |
| 91 | generated for all other objects will not include static.h, and thus the |
| 92 | objects will not be updated since the default order-only dependency does |
| 93 | not force them out of date. |
| 94 | |
| 95 | After updating the devicetree of qemu-i440fx after a clean build, |
| 96 | comparing the build log with `make --debug=why` with the generated |
| 97 | dependency files indicates that only objects that actually depend on |
| 98 | static.h were rebuilt, instead of every object. Running a timeless |
| 99 | incremental build after making a change in the devicetree yielded |
| 100 | identical roms when performed with this patch and main, with the only |
| 101 | difference being the number of objects that needed to be rebuilt. Also |
| 102 | tested with the E6430. |
| 103 | |
| 104 | [1] <https://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html> |
| 105 | |
| 106 | |
| 107 | ### sconfig: Move config_of_soc from device.h to static.h |
| 108 | |
| 109 | Many sources include device.h and thus static.h, but many only need the |
| 110 | function declarations and type definitions, not the compiled devicetree |
| 111 | from sconfig. This causes many unnecessary recompiles whenever the |
| 112 | devicetree is updated due to the dependency. Address this by moving the |
| 113 | config_of_soc macro directly into the generated static.h header, as it |
| 114 | seems to be the only line in device.h that actually requires static.h. |
| 115 | For now, static.h remains included in device.h so that the build is not |
| 116 | affected. Subsequent commits will include static.h directly into sources |
| 117 | that actually need it, after which it can be dropped from device.h. |
| 118 | |
| 119 | Some statistics for C objects: |
| 120 | |
| 121 | Dell Latitude E6400 (GM45/ICH9): |
| 122 | 669 total objects |
| 123 | 181 depend on static.h |
| 124 | 2 require static.h |
| 125 | |
| 126 | Dell Latitude E6430 (Ivy Bridge/Panther Point): |
| 127 | 693 total objects |
| 128 | 199 depend on static.h |
| 129 | 3 require static.h |
| 130 | |
| 131 | Lenovo ThinkCentre M700 / M900 Tiny (Kaby Lake): |
| 132 | 794 total objects |
| 133 | 298 depend on static.h |
| 134 | 23 objects require static.h |
| 135 | |
| 136 | MSI PRO Z690-A (WIFI) DDR4 (Alder Lake): |
| 137 | 959 total objects |
| 138 | 319 depend on static.h |
| 139 | 25 require static.h |
| 140 | |
| 141 | The number of objects was determined by grepping the build log for |
| 142 | calls to CC, the number of objects that depend on static.h was |
| 143 | determined by grepping for calls to CC after touching static.h, and the |
| 144 | number of objects that actually require the static.h related lines from |
| 145 | device.h was determined by grepping for objects that failed to build |
| 146 | after removing the static.h lines from device.h and running make with |
| 147 | the --keep-going flag. |
| 148 | |
| 149 | |
| 150 | ### Makefile: Fix no-op incremental build |
| 151 | |
| 152 | If make is ran a second time after an initial clean compile, the entire |
| 153 | rom will be rebuilt. Subsequent calls to make will not rebuild the rom. |
| 154 | This initial rebuild was due to build/util/kconfig/conf being newer than |
| 155 | config.h, and the subsequent rebuild of the header marked everything |
| 156 | else as out of date. The reason conf was newer than config.h is because |
| 157 | it was being treated as an intermediate file [1]. In the rule for |
| 158 | config.h, conf is a prerequisite, but since it is treated as an |
| 159 | intermediate, its rule will not be run if config.h exists and all the |
| 160 | prerequisites of conf (i.e. its source files) are also up to date. |
| 161 | |
| 162 | On a clean build after a make menuconfig, config.h exists, satisfying |
| 163 | these conditions. In this case, config.h is treated as being up to date |
| 164 | even though conf does not exist. However, if another target does not |
| 165 | exist and also has conf as a prerequisite, conf will then be built so |
| 166 | that the target can be built. This caused conf to be newer than |
| 167 | config.h, but by default GNU Make deletes intermediate files after a |
| 168 | build which would prevent conf from affecting config.h on subsequent |
| 169 | rebuilds. |
| 170 | |
| 171 | However, commit dd6efce934fb ("Makefile: Add .SECONDARY") adds the |
| 172 | .SECONDARY special target, which prevents intermediate files from being |
| 173 | deleted after the build [2]. Thus, conf persists to the first no-op |
| 174 | build, making config.h out of date. Since config.h is updated during |
| 175 | this first rebuild, conf is no longer newer than it, and thus subsequent |
| 176 | no-op builds behave as expected. |
| 177 | |
| 178 | Fix this by preventing conf from being treated as an intermediate file |
| 179 | by adding it as a prerequisite of the .NOTINTERMEDIATE special target, |
| 180 | which causes conf to always be rebuilt if it does not exist. Thus, on |
| 181 | the initial clean compile, config.h will be updated after building conf |
| 182 | as a prerequisite, preventing config.h from being marked out of date on |
| 183 | a subsequent rebuild. |
| 184 | |
| 185 | [1] <https://www.gnu.org/software/make/manual/html_node/Chained-Rules.html> |
| 186 | [2] <https://www.gnu.org/software/make/manual/html_node/Special-Targets.html> |
| 187 | |
| 188 | |
| 189 | ### drivers/efi/uefi_capsules.c: coalesce and store UEFI capsules |
| 190 | |
| 191 | How it approximately works: |
| 192 | |
| 193 | (During a normal system run): |
| 194 | 1. OS puts a capsule into RAM and calls UpdateCapsule() function of EFI |
| 195 | runtime |
| 196 | 2. If applying the update requires a reboot, EFI implementation creates |
| 197 | a new CapsuleUpdateData* EFI variable pointing at the beginning of |
| 198 | capsules description (not data, but description of the data) and does |
| 199 | a warm reboot leaving capsule data and its description in RAM to be |
| 200 | picked by firmware on the next boot process |
| 201 | |
| 202 | (After DEV_INIT:) |
| 203 | 3. Capsules are discovered by checking for CapsuleUpdateData* variables |
| 204 | 4. Capsule description in memory and capsule data is validated for |
| 205 | Sanity |
| 206 | 5. Capsule data is coalesced into a continuous piece of memory |
| 207 | |
| 208 | (On BS_WRITE_TABLES via dasharo_add_capsules_to_bootmem() hook:) |
| 209 | 6. Buffer with coalesced capsules is marked as reserved |
| 210 | |
| 211 | (On BS_WRITE_TABLES via lb_uefi_capsules() hook:) |
| 212 | |
| 213 | 7. coreboot table entry is added for each of the discovered capsules |
| 214 | |
| 215 | (In UEFI payload:) |
| 216 | 8. CapsuleUpdateData* get removed |
| 217 | 9. coreboot table is checked for any update capsules which are then applied |
| 218 | |
| 219 | |
| 220 | |
| 221 | Additional coreboot changes |
| 222 | --------------------------- |
| 223 | |
| 224 | * Add Serial Flash Discoverable Parameters (SFDP) Support |
| 225 | * Add Replay Protected Monotonic Counter (RPMC) Support |
| 226 | * arch/arm64: Add Clang as supported compiler |
| 227 | * Add initial experimental Link-time Optimization (LTO) support |
| 228 | * util/scripts: Add script to capture commands from build |
| 229 | * Transform more devicetree options into booleans |
| 230 | * Make more mainboards using the AZALIA_PIN_DESC macro |
| 231 | * More effort for reworking the audio jacks setup |
| 232 | * libgfxinit: Add option to configure screen rotation |
| 233 | * Additional functions supposed in ACPI interface for Intel WiFi and BT devices |
| 234 | |
| 235 | |
| 236 | |
| 237 | Changes to external resources |
| 238 | ----------------------------- |
| 239 | |
| 240 | ### Toolchain updates |
| 241 | |
| 242 | * binutils from 2.42 to 2.43.1 |
| 243 | * GCC from 14.1.0 to 14.2.0 |
| 244 | * CMake from 3.29.3 to 3.30.2 |
| 245 | * LLVM from 18.1.6 to 18.1.8 |
| 246 | |
| 247 | |
| 248 | ### Git submodule pointers |
| 249 | |
| 250 | * 3rdparty/arm-trusted-firmware: Update from commit id c5b8de86c8 to 15e5c6c91d (693 commits) |
| 251 | * 3rdparty/blobs: Update from commit id a8db7dfe82 to 14f8fcc1b4 (15 commits) |
| 252 | * 3rdparty/fsp: Update from commit id 800c85770b to 851f7105d8 (24 commits) |
| 253 | * 3rdparty/intel-microcode: Update from commit id 5278dfcf98 to 8ac9378a84 (4 commits) |
| 254 | * 3rdparty/open-power-signing-utils: add SecureBoot utility for OpenPOWER |
| 255 | |
| 256 | |
| 257 | ### External payloads |
| 258 | |
| 259 | * U-Boot: Upgrade from 2024.04 to 2024.07 |
| 260 | * payloads/edk2: Update default branch for MrChromebox repo to 2024-08 |
| 261 | |
| 262 | |
| 263 | |
| 264 | Platform Updates |
| 265 | ---------------- |
| 266 | |
| 267 | ### Added 39 mainboards: |
| 268 | |
| 269 | * Arm Neoverse N2 |
| 270 | * ASROCK IMB-1222 |
| 271 | * Dell Inc. Latitude E5420 |
| 272 | * Dell Inc. Latitude E5520 |
| 273 | * Dell Inc. Latitude E5530 |
| 274 | * Dell Inc. Latitude E6220 |
| 275 | * Dell Inc. Latitude E6230 |
| 276 | * Dell Inc. Latitude E6320 |
| 277 | * Dell Inc. Latitude E6330 |
| 278 | * Dell Inc. Latitude E6420 |
| 279 | * Dell Inc. Latitude E6520 |
| 280 | * Dell Inc. Latitude E6530 |
| 281 | * Dell Inc. OptiPlex 3050 Micro |
| 282 | * Erying Polestar G613 Pro (TGL-H) |
| 283 | * GIGABYTE GA-H77M-D3H |
| 284 | * Google -> Fatcat_ish |
| 285 | * Google -> Fatcatite |
| 286 | * Google -> Fatcatnuvo |
| 287 | * Google -> Felino |
| 288 | * Google -> Francka |
| 289 | * Google -> Hylia |
| 290 | * Google -> Kanix |
| 291 | * Google -> Navi |
| 292 | * Google -> Pujjogatwin |
| 293 | * Google -> Rull |
| 294 | * Google -> Skywalker |
| 295 | * Google -> Telith |
| 296 | * Google -> Uldrenite |
| 297 | * Hardkernel ODROID-H4 / H4+ / H4 Ultra |
| 298 | * HP Compaq 8200 Elite USDT |
| 299 | * HP Compaq 8300 Elite SFF |
| 300 | * Intel Frost Creek |
| 301 | * LattePanda LattePanda Mu |
| 302 | * Lenovo ThinkCentre M920 Tiny |
| 303 | * MiTAC Computing Whitestone 2 |
| 304 | * Star Labs Star Labs Byte Mk II (N200) |
| 305 | * Star Labs Star Labs StarFighter Mk I (i3-1315U, i7-13700H and i9-13900H) |
| 306 | * Topton X2F_N100 |
| 307 | * VIA EPIA-EX (work in progress) |
| 308 | |
| 309 | |
| 310 | ### Updated CPUs/SoCs |
| 311 | |
| 312 | * Via C7 |
| 313 | * Intel Pantherlake |
| 314 | * Intel Snowridge |
| 315 | * Intel Xeon SP |
| 316 | * MediaTek MT8196 |
| 317 | |
| 318 | |
| 319 | |
| 320 | Statistics from the 24.08 to the 24.12 release |
| 321 | ---------------------------------------------- |
| 322 | |
| 323 | * Total commits: 970 |
| 324 | * Total authors: 126 |
| 325 | * New authors: 20 |
| 326 | |
| 327 | |
| 328 | |
| 329 | coreboot Links and Contact Information |
| 330 | -------------------------------------- |
| 331 | |
| 332 | * Main Web site: <https://www.coreboot.org> |
| 333 | * Downloads: <https://coreboot.org/downloads.html> |
| 334 | * Source control: <https://review.coreboot.org> |
| 335 | * Documentation: <https://doc.coreboot.org> |
| 336 | * Issue tracker: <https://ticket.coreboot.org/projects/coreboot> |
| 337 | * Donations: <https://coreboot.org/donate.html> |