[coreboot - Bug #614] (New) USE_OPTION_TABLE=y with HAVE_ACPI_RESUME=y build Error 1 on baytrail

Walter Sonius <[email protected]>
Newsgroups gmane.linux.bios
Message-ID <[email protected]>
Issue #614 has been reported by Walter Sonius.

----------------------------------------
Bug #614: USE_OPTION_TABLE=y with HAVE_ACPI_RESUME=y build Error 1 on baytrail
https://ticket.coreboot.org/issues/614

* Author: Walter Sonius
* Status: New
* Priority: Normal
* Target version: none
* Start date: 2025-10-19
* Affected versions: main
* Affected hardware: baytrail
----------------------------------------
On multiple tested Baytrail platforms, building coreboot errors when enabling CMOS support `USE_OPTION_TABLE` and `HAVE_ACPI_RESUME` active, while the later is the default for most platforms.

Affected hardware:
* bostentech/gbyt4
* jetwayipc/nf9n-2930 [CB:89279](https://review.coreboot.org/c/coreboot/+/89279)
* lenovo/h500s_10157 [CB:89170](https://review.coreboot.org/c/coreboot/+/89170)

Affected coreboot versions:
```
coreboot 25.06-77-g812d0e2f626d
coreboot 25.09-70-g98a54453284e
```

Reproduce:
```
make distclean
touch .config
./util/scripts/config --enable VENDOR_BOSTENTECH
./util/scripts/config --enable BOARD_BOSTENTECH_GBYT4

./util/scripts/config --enable USE_OPTION_TABLE
make olddefconfig

make
```

Error message:
```
...
    CC         bootblock/southbridge/intel/common/spi.o
    CC         bootblock/superio/ite/common/early_serial.o
    CC         bootblock/superio/ite/common/gpio.o
    LINK       cbfs/fallback/bootblock.debug
/home/neon/Desktop/coreboot/util/crossgcc/xgcc/bin/i386-elf-ld.bfd: section .car.mrc_var LMA wraps around address space
/home/neon/Desktop/coreboot/util/crossgcc/xgcc/bin/i386-elf-ld.bfd: build/bootblock/drivers/pc80/rtc/option.o: in function `acpi_is_wakeup_s3':
/home/neon/Desktop/coreboot/src/include/acpi/acpi.h:1984:(.text.sanitize_cmos+0xf): undefined reference to `acpi_get_sleep_type'
make: *** [src/arch/x86/Makefile.mk:83: build/cbfs/fallback/bootblock.debug] Error 1

```

A workaround to get CMOS support enabled and build is to have `HAVE_ACPI_RESUME` disabled (removed from Kconfig) for these boards. 

However if the board also has an active serial port with `CONFIG_CONSOLE_SERIAL` coreboot console output, you have to disable that as well otherwise you get the Error below (Jetway nf9n-2930).

```
    CC         bootblock/southbridge/intel/common/reset.o
    CC         bootblock/southbridge/intel/common/spi.o
    CC         bootblock/superio/fintek/common/early_serial.o
    LINK       cbfs/fallback/bootblock.debug
/home/neon/Desktop/coreboot/util/crossgcc/xgcc/bin/i386-elf-ld.bfd: section .car.mrc_var LMA wraps around address space
make: *** [src/arch/x86/Makefile.mk:83: build/cbfs/fallback/bootblock.debug] Error 1

```

Contrary the `google/rambi/ninja` image builds without this error:
```
make distclean
touch .config
./util/scripts/config --enable VENDOR_GOOGLE
./util/scripts/config --enable BOARD_GOOGLE_NINJA

./util/scripts/config --enable USE_OPTION_TABLE
make olddefconfig

make
```



-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: https://ticket.coreboot.org/my/account
_______________________________________________
coreboot mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.