Skip to content

Pasbberry Pi 5 OVERLAP DETECTED! after "program_pubkey=1" #719

@Xamarin2019

Description

@Xamarin2019

Describe the bug

After programming Secure-boot with the configuration proogram_pubkey = 1 Raspberry Pi 5 gives an error:

[    0.000000] OF: reserved mem: OVERLAP DETECTED!
[    0.000000] atf@0 (0x0000000000000000--0x0000000000080000) overlaps with nvram@0 (0x0000000000038000--0x00000000000382c3)

It is also incorrectly read rpi-eeprom-config:
Traceback (most recent call last): File "/usr/bin/rpi-eeprom-config", line 607, in <module> main() File "/usr/bin/rpi-eeprom-config", line 599, in main current_config, config_src = read_current_config() ^^^^^^^^^^^^^^^^^^^^^ File "/usr/bin/rpi-eeprom-config", line 234, in read_current_config return (open(nvmem_base + d + "/nvmem", "rb").read().decode('utf-8'), "blconfig device") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9c in position 1: invalid start byte

Steps to reproduce the behaviour

Programm Secure-boot with the configuration proogram_pubkey = 1 on Raspberry Pi 5. Although the same image without the use of proogram_pubkey = 1 works without errors.

Device (s)

Raspberry Pi 5

Bootloader configuration.

rpi-eeprom-config

Traceback (most recent call last):
  File "/usr/bin/rpi-eeprom-config", line 607, in <module>
    main()
  File "/usr/bin/rpi-eeprom-config", line 599, in main
    current_config, config_src = read_current_config()
                                 ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/rpi-eeprom-config", line 234, in read_current_config
    return (open(nvmem_base + d + "/nvmem", "rb").read().decode('utf-8'), "blconfig device")
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9c in position 1: invalid start byte

System

raspinfo.txt

cat /etc/rpi-issue

Raspberry Pi reference 2024-11-19
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, b15527e15ba4d9e65126a454bfec2040b909dc1c, stage2

vcgencmd bootloader_version

2025/02/12 10:51:52
version f788aab60121515fe59c37c899186831e6c19585 (release)
timestamp 1739357512
update-time 1747297204
capabilities 0x000000ff

vcgencmd version

2025/02/12 10:51:52
Copyright (c) 2012 Broadcom
version f788aab6 (release) (embedded)

uname -a

Linux raspberrypi 6.6.51+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.51-1+rpt3 (2024-10-08) aarch64 GNU/Linux

Bootloader logs

No response

USB boot

No response

NVMe boot

No response

Network (TFTP boot)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting informationNo progress can be made until the requested information is provided

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions