Skip to content

[Pi4/CM4] Bootloader ignores gpio conditional #743

@AKprotonme

Description

@AKprotonme

Describe the bug

A bootloader config conditional that previously worked no longer takes effect([gpio17=1]). In this exemple, when GPIO 17 is high at power-on, the bootloader should select partition 2, but it continues to boot the default partition.

The same boot.conf (Provided in the bootloader configuration) works on the 2024/07/30 version

vcgencmd bootloader_version
2024/07/30 14:02:35
version 5f18ffb61682740ed1751ba59952843d7521314f (release)
timestamp 1722344555
update-time 1746103095
capabilities 0x000000ff

But fails on the latest one.

Steps to reproduce the behaviour

1- Prepare boot.conf, include a conditional with the gpio such as
[gpio17=1]
PARTITION=2

2- Generate the bootloader with update-pieeprom and program the EEPROM using usbboot

3-Expected behavior

The bootloader applies the [gpio17=1] conditional and boots from partition 2 (diagnostics previously showed it “trying partition 2”).

4-Actual behavior

The conditional appears ignored and the system boots the default partition without attempting partition 2.

Device (s)

Raspberry Pi CM4

Bootloader configuration.

[gpio17=1]
PARTITION=2

[all]
BOOT_UART=1
WAKE_ON_GPIO=0
POWER_OFF_ON_HALT=1
HDMI_DELAY=0
BOOT_ORDER=0xf1
ENABLE_SELF_UPDATE=0
SIGNED_BOOT=0

System

No response

Bootloader logs

No response

USB boot

No response

NVMe boot

No response

Network (TFTP boot)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions