Merge pull request #6 from timg236/board_rev

Board rev
This commit is contained in:
timg
2019-09-09 13:50:39 +01:00
committed by GitHub
2 changed files with 37 additions and 4 deletions

17
firmware/release-notes.md Normal file
View File

@@ -0,0 +1,17 @@
# Raspberry Pi4 bootloader EEPROM release notes
## 2019-09-05 - Git d8189ed4 - (BETA)
* Update SDRAM setup to reduce power consumption.
## 2019-07-15 - Git 514670a2
* Turn green LED activity off on halt.
* Pad embedded config file with spaces for easier editing by end users.
* Halt now behaves the same as earlier Pi models to improve power behavior at halt for HATs.
* WAKE_ON_GPIO now defaults to 1 in the EEPROM config file.
* POWER_OFF_ON_HALT setting added defaulting to zero. Set this to 1 to restore the behavior where 'sudo halt' powers off all PMIC output.
* If WAKE_ON_GPIO=1 then POWER_OFF_ON_HALT is ignored.
* Load start4db.elf / fixup4db.dat in preference to start_db.elf / fixup_db.dat on Pi4.
* Embed BUILD_TIMESTAMP in the EEPROM image to assist version checking.
## 2019-05-10 - Git d2402c53 (RC2.1)
* First production version.

View File

@@ -201,8 +201,24 @@ checkDependencies() {
usage() { usage() {
cat <<EOF cat <<EOF
rpi-eeprom-update [options]... [FILE] rpi-eeprom-update [options]... [FILE]
Checks whether the Raspberry Pi bootloader EEPROM is up-to-date and Checks whether there Raspberry Pi bootloader EEPROM is up to date and
optionally updates the EEPROM. optionally updates the EEPROM at the next reboot.
The default update mechanism writes recovery.bin and pieeprom.upd to the
boot partition on the sd-card. At the next reboot the ROM runs recovery.bin
which flashes pieeprom.upd to the EEPROM. If the EEPROM update was successful
recovery.bin renames itself to recovery.000 to prevent it from running a
second time then resets the system. The system should then boot normally.
If /boot does not correspond to the boot partition on the sd-card and this
is not a NOOBS system then the mount point for BOOTFS should be defined
in /etc/default/rpi-eeprom-update
For reference, the flashrom update mechanism may be enabled by defining
USE_FLASHROM=1 in /etc/default/rpi-eeprom-update. This not recommended
because the SPI pins are muxed with audio and other device drivers may
be using SPI (e.g. HATs). This is also not safe in the event of a power
failure during the update of the EEPROM.
A backup of the current EEPROM config file is written to ${FIRMWARE_BACKUP_DIR} A backup of the current EEPROM config file is written to ${FIRMWARE_BACKUP_DIR}
before applying the update. before applying the update.
@@ -286,7 +302,7 @@ fileUpdate()
echo "*** INSTALLING ${1} ***" echo "*** INSTALLING ${1} ***"
[ -f "${1}" ] || die "\"${1}\" not found" [ -f "${1}" ] || die "\"${1}\" not found"
applyUpdate "$1" applyUpdate "$1"
echo "Bootloader EEPROM update complete. Please reboot." echo "Bootloader EEPROM update pending. Please reboot to apply the update."
} }
removePreviousUpdates() removePreviousUpdates()
@@ -352,7 +368,7 @@ FILE_UPDATE=""
MACHINE_OUTPUT="" MACHINE_OUTPUT=""
JSON_OUTPUT="no" JSON_OUTPUT="no"
CPU_VER="$(grep Revision /proc/cpuinfo | awk '{print $3}' | cut -c3)" CPU_VER="$(vcgencmd otp_dump | grep 30: | cut -c8)"
if [ "${CPU_VER}" != "3" ]; then if [ "${CPU_VER}" != "3" ]; then
# Not a BCM2711, no EEPROMs to update. # Not a BCM2711, no EEPROMs to update.