Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions br-external/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ source "$BR2_EXTERNAL_BR2RAUC_PATH/package/librespot/Config.in"
source "$BR2_EXTERNAL_BR2RAUC_PATH/package/pp3-api/Config.in"
source "$BR2_EXTERNAL_BR2RAUC_PATH/package/pp3-core/Config.in"
source "$BR2_EXTERNAL_BR2RAUC_PATH/package/pp3-web-ui/Config.in"
source "$BR2_EXTERNAL_BR2RAUC_PATH/package/rpi-eeprom/Config.in"
source "$BR2_EXTERNAL_BR2RAUC_PATH/package/rpi-utils/Config.in"
6 changes: 6 additions & 0 deletions br-external/package/rpi-eeprom/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config BR2_PACKAGE_RPI_EEPROM
bool "rpi-eeprom"
help
Raspberry Pi bootloader tools.

https://github.com/raspberrypi/rpi-eeprom
16 changes: 16 additions & 0 deletions br-external/package/rpi-eeprom/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from https://lore.kernel.org/buildroot/20241230000816.34cc40be@windsurf/T/#u
(should soon be part of buildroot release)

sudo mount /dev/mmcblk0p1 /boot
sudo EDITOR=vi rpi-eeprom-config -e

```
[all]
BOOT_UART=0
WAKE_ON_GPIO=1
POWER_OFF_ON_HALT=0
```

NOTE: POWER_OFF_ON_HALT=1 only makes sense if WAKE_ON_GPIO=0, c.f. https://www.raspberrypi.com/documentation/computers/raspberry-pi.html

=> so for now we have no reason to change the firmware params (or the firmware itself for that matter)
29 changes: 29 additions & 0 deletions br-external/package/rpi-eeprom/rpi-eeprom.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
################################################################################
#
# rpi-eeprom
#
################################################################################

RPI_EEPROM_VERSION = v2025.01.22-2712
RPI_EEPROM_SITE = $(call github,raspberrypi,rpi-eeprom,$(RPI_EEPROM_VERSION))
RPI_EEPROM_LICENSE = BSD-3-Clause
RPI_EEPROM_LICENSE_FILES = LICENSE

RPI_EEPROM_INSTALL = YES

# TODO: use latest firmware from that commit (check changelog)
# NOTE: current on my Rpi is 2023/01/11
# TODO: modify rpi-eeprom-update so that the correct boot partition is mounted (the one that is modified is the one that is loaded by uboot)
# (or simply move the resulting files from /boot to the correct /mnt)
# TODO: automate the update of the EEPROM config


define RPI_EEPROM_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/rpi-eeprom-config $(TARGET_DIR)/bin/rpi-eeprom-config
$(INSTALL) -D -m 0755 $(@D)/rpi-eeprom-digest $(TARGET_DIR)/bin/rpi-eeprom-digest
$(INSTALL) -D -m 0755 $(@D)/rpi-eeprom-update $(TARGET_DIR)/bin/rpi-eeprom-update
$(INSTALL) -D -m 0644 $(@D)/firmware-2711/default/pieeprom-2023-01-11.bin $(TARGET_DIR)/bin/firmware/default/pieeprom-2023-01-11.bin
$(INSTALL) -D -m 0644 $(@D)/firmware-2711/default/recovery.bin $(TARGET_DIR)/bin/firmware/default/recovery.bin
endef

$(eval $(generic-package))
6 changes: 6 additions & 0 deletions br-external/package/rpi-utils/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config BR2_PACKAGE_RPI_UTILS
bool "rpi-utils"
help
A collection of scripts and simple applications for Raspberry Pi.

https://github.com/raspberrypi/utils
12 changes: 12 additions & 0 deletions br-external/package/rpi-utils/rpi-utils.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
################################################################################
#
# rpi-utils
#
################################################################################

RPI_UTILS_VERSION = 33aa4da93d8da90d5075e8cd48e72cc90048b9f3
RPI_UTILS_SITE = $(call github,raspberrypi,utils,$(RPI_UTILS_VERSION))
RPI_UTILS_LICENSE = BSD-3-Clause
RPI_UTILS_LICENSE_FILES = LICENSE

$(eval $(cmake-package))
Binary file added pieeprom-2024-12-07.bin
Binary file not shown.