mirror of
https://github.com/raspberrypi/rpi-eeprom.git
synced 2026-01-21 06:13:33 +08:00
Compare commits
6 Commits
v2024.11.1
...
pelwell-pa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
07fe5c48b7 | ||
|
|
585ec185f2 | ||
|
|
af0426b473 | ||
|
|
fe7bfc7201 | ||
|
|
9621ef6a92 | ||
|
|
4a7375bebe |
2
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
2
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@@ -80,7 +80,7 @@ body:
|
||||
attributes:
|
||||
label: Bootloader logs
|
||||
description: |
|
||||
If the problem can't be diagnosed from the bootloader HDMI diagnostics screen then we'll normally need to see more detailed logs to diagnose the problem. The bootloader and GPU firmware can be configured to enable log output to the UART pins `14` and `15` on the [40-pin GPIO header](https://www.raspberrypi.com/documentation/computers/os.html#gpio-and-the-40-pin-header)
|
||||
If the problem can't be diagnosed from the bootloader HDMI diagnostics screen then we'll normally need to see more detailed logs to diagnose the problem. The bootloader and GPU firmware can be configured to enable log output to the UART (GPIOs `14` and `15`, pins `8` and `10` on the [40-pin GPIO header](https://www.raspberrypi.com/documentation/computers/os.html#gpio-and-the-40-pin-header, or on the Debug header on a Pi 5)
|
||||
* To enable UART logging from the bootloader specify [BOOT_UART=1](https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#BOOT_UART) in the EEPROM config
|
||||
* To enable UART logging from the `start.elf` GPU firmware stage add [uart_2ndstage=1](https://www.raspberrypi.com/documentation/computers/config_txt.html#uart_2ndstage) to `config.txt`.
|
||||
* If you are familiar with using Wireshark then it's also possible to use [NETCONSOLE](https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#NETCONSOLE) write logs to UDP packets.
|
||||
|
||||
BIN
firmware-2711/latest/pieeprom-2024-12-07.bin
Normal file
BIN
firmware-2711/latest/pieeprom-2024-12-07.bin
Normal file
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,10 @@
|
||||
# Raspberry Pi4 bootloader EEPROM release notes
|
||||
|
||||
## 2024-12-07: Enable banklow (and so NUMA) by default (latest)
|
||||
|
||||
* Enable banklow (and so NUMA) by default
|
||||
banklow=1 (2712) and banklow=3 (2711) give the best performance.
|
||||
|
||||
## 2024-10-21: Fix PCIe BAR issue for some switches (latest)
|
||||
|
||||
* Boot-menu improvements
|
||||
|
||||
Binary file not shown.
BIN
firmware-2712/latest/pieeprom-2024-11-27.bin
Normal file
BIN
firmware-2712/latest/pieeprom-2024-11-27.bin
Normal file
Binary file not shown.
BIN
firmware-2712/latest/pieeprom-2024-12-07.bin
Normal file
BIN
firmware-2712/latest/pieeprom-2024-12-07.bin
Normal file
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,21 @@
|
||||
# Raspberry Pi5 bootloader EEPROM release notes
|
||||
|
||||
## 2024-12-07: Enable banklow (and so NUMA) by default (latest)
|
||||
|
||||
* Enable banklow (and so NUMA) by default
|
||||
banklow=1 (2712) and banklow=3 (2711) give the best performance.
|
||||
* enable_uart=1 now enables a Linix UART console on the 40-pin header
|
||||
unless a cable is detected on the dedicated boot-uart.
|
||||
* Recreate internal bl31 stub from clean git tree to fix dirty commit message.
|
||||
|
||||
## 2024-11-27: rp1fw: Add FIFO_STATE & DRAIN_TX, fix CAN_ADD_PROGRAM (default)
|
||||
|
||||
* rp1fw: Add FIFO_STATE & DRAIN_TX, fix CAN_ADD_PROGRAM
|
||||
RP1 firmware eb39cfd516f8c90628aa9d91f52370aade5d0a55 adds methods
|
||||
to drain the TX FIFO and retrieve the state of both FIFOs. It also
|
||||
fixes the CAN_ADD_PROGRAM implementation, which was fatally broken.
|
||||
* network-install - Update the UI to display the board model / variant.
|
||||
|
||||
## 2024-11-12: Promote 2024-11-12 to default release (default)
|
||||
|
||||
* Promote 2024-11 to the default release and archive older versions.
|
||||
|
||||
@@ -8,4 +8,4 @@ script_dir=$(cd "$(dirname "$0")" && pwd)
|
||||
${script_dir}/make-release critical 2023-01-11 000138c0 "${script_dir}/2711-config" release-2711 rpi-boot-eeprom-recovery 2711
|
||||
|
||||
# Pi5
|
||||
${script_dir}/make-release critical 2024-09-23 "" "${script_dir}/2712-config" release-2712 rpi-boot-eeprom-recovery 2712
|
||||
${script_dir}/make-release critical 2024-11-12 "" "${script_dir}/2712-config" release-2712 rpi-boot-eeprom-recovery 2712
|
||||
|
||||
@@ -111,7 +111,7 @@ def exit_error(msg):
|
||||
sys.stderr.write("ERROR: %s\n" % msg)
|
||||
sys.exit(1)
|
||||
|
||||
def shell_cmd(args, timeout=5, echo=False):
|
||||
def shell_cmd(args, timeout=10, echo=False):
|
||||
"""
|
||||
Executes a shell command waits for completion returning STDOUT. If an
|
||||
error occurs then exit and output the subprocess stdout, stderr messages
|
||||
@@ -180,7 +180,7 @@ def apply_update(config, eeprom=None, config_src=None):
|
||||
|
||||
# If flashrom is used then the command will not return until the EEPROM
|
||||
# has been updated so use a larger timeout.
|
||||
shell_cmd(args, timeout=60, echo=True)
|
||||
shell_cmd(args, timeout=180, echo=True)
|
||||
|
||||
def edit_config(eeprom=None):
|
||||
"""
|
||||
|
||||
@@ -189,6 +189,32 @@ prepareImage()
|
||||
fi
|
||||
}
|
||||
|
||||
runFlashrom()
|
||||
{
|
||||
attempts=5
|
||||
freq=16000
|
||||
|
||||
# If flashrom fails then retry at a lower speed.
|
||||
while [ ${attempts} -gt 0 ]; do
|
||||
echo "flashrom -p linux_spi:dev=${SPIDEV},spispeed=${freq} -w ${BOOTFS}/pieeprom.upd"
|
||||
if flashrom -p linux_spi:dev=${SPIDEV},spispeed=${freq} -w "${BOOTFS}/pieeprom.upd" >> "${FLASHROM_LOG}"; then
|
||||
echo "Verifying update"
|
||||
if flashrom -p linux_spi:dev=${SPIDEV},spispeed=${freq} -v "${BOOTFS}/pieeprom.upd" >> "${FLASHROM_LOG}"; then
|
||||
echo "VERIFY: SUCCESS"
|
||||
return 0
|
||||
else
|
||||
echo "VERIFY: FAIL"
|
||||
fi
|
||||
fi
|
||||
freq=8000
|
||||
attempts=$((attempts - 1))
|
||||
if [ ${attempts} -gt 0 ]; then
|
||||
echo "Failed to update bootloader using flashrom. Retrying."
|
||||
fi
|
||||
done
|
||||
return 1
|
||||
}
|
||||
|
||||
applyRecoveryUpdate()
|
||||
{
|
||||
[ -n "${BOOTLOADER_UPDATE_IMAGE}" ] || [ -n "${VL805_UPDATE_IMAGE}" ] || die "No update images specified"
|
||||
@@ -266,8 +292,7 @@ applyRecoveryUpdate()
|
||||
echo "a bootloader rescue SD card image which restores the default bootloader image."
|
||||
echo
|
||||
FLASHROM_LOG="$(mktemp)"
|
||||
echo "flashrom -p linux_spi:dev=${SPIDEV},spispeed=16000 -w ${BOOTFS}/pieeprom.upd"
|
||||
if flashrom -p linux_spi:dev=${SPIDEV},spispeed=16000 -w "${BOOTFS}/pieeprom.upd" > "${FLASHROM_LOG}"; then
|
||||
if runFlashrom; then
|
||||
# Success - remove update files from the boot partition
|
||||
removePreviousUpdates
|
||||
echo "UPDATE SUCCESSFUL"
|
||||
|
||||
Reference in New Issue
Block a user