mirror of
https://github.com/raspberrypi/rpi-eeprom.git
synced 2026-01-20 21:13:36 +08:00
Compare commits
72 Commits
v2020.09.0
...
v2021.04.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
194960a023 | ||
|
|
28878ba2c5 | ||
|
|
e049a0807f | ||
|
|
51d7c9bb78 | ||
|
|
b93a7569a3 | ||
|
|
cc347ddaa2 | ||
|
|
c297ba744c | ||
|
|
7cae0129e0 | ||
|
|
650e255daf | ||
|
|
504e18bb3a | ||
|
|
4b5a46947e | ||
|
|
1fc1d40117 | ||
|
|
7e6a961a24 | ||
|
|
953a7fe05f | ||
|
|
7208a1ca0f | ||
|
|
cc38b35bbe | ||
|
|
ffda73b9cd | ||
|
|
8dac90ae9a | ||
|
|
f7d7a9c8a6 | ||
|
|
6a47bc4900 | ||
|
|
eae21cbae3 | ||
|
|
75216fb64c | ||
|
|
f19990103e | ||
|
|
45accca3dc | ||
|
|
5d70742580 | ||
|
|
cecc46f687 | ||
|
|
4b7fcc65e9 | ||
|
|
949e9c49f8 | ||
|
|
1dab88d0d0 | ||
|
|
71ef83abbc | ||
|
|
6a310b5d4d | ||
|
|
34aa94bdd2 | ||
|
|
48864f3d1f | ||
|
|
503f1c0055 | ||
|
|
f7402923bc | ||
|
|
34b752e8be | ||
|
|
90daaae301 | ||
|
|
e6107348e0 | ||
|
|
650e942947 | ||
|
|
53f121d651 | ||
|
|
89a68bc405 | ||
|
|
f3b402d7e6 | ||
|
|
45800f00c7 | ||
|
|
e5d73dc857 | ||
|
|
b6d1893973 | ||
|
|
85425c0806 | ||
|
|
053f8483af | ||
|
|
7c26d67583 | ||
|
|
1e0be05d6e | ||
|
|
a4d7bdbef0 | ||
|
|
587683e8e5 | ||
|
|
953c9fea43 | ||
|
|
2e0801a4da | ||
|
|
8113d3f8a0 | ||
|
|
303c2e110d | ||
|
|
3408d368e3 | ||
|
|
4e51d9a735 | ||
|
|
ff27ccf694 | ||
|
|
26366bb378 | ||
|
|
a1e86f1350 | ||
|
|
bc5fba23cb | ||
|
|
5579d39ab0 | ||
|
|
7589fbf981 | ||
|
|
6b1851750a | ||
|
|
2971da10ee | ||
|
|
c5fea074c1 | ||
|
|
71a6049b2b | ||
|
|
7880114040 | ||
|
|
869c14518b | ||
|
|
b9955dba91 | ||
|
|
2c46b979dc | ||
|
|
26c4f2b3da |
29
.github/ISSUE_TEMPLATE/bug_report.md
vendored
29
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -9,7 +9,6 @@ This repository tracks bugs for the Raspberry Pi 4 bootloader EEPROM and Linux u
|
||||
* If you suspect a hardware problem then please read the [Boot Problems](https://www.raspberrypi.org/forums/viewtopic.php?p=437084) post first before contacting the reseller.
|
||||
* Support questions or should be posted on the Raspberry Pi [General Discussion](https://www.raspberrypi.org/forums/viewforum.php?f=63)**
|
||||
|
||||
|
||||
**Mandatory information**
|
||||
* Raspberry Pi model
|
||||
* Board revision (cat /proc/cpuinfo | grep Revision)
|
||||
@@ -27,24 +26,38 @@ Steps to reproduce the behavior:
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Bootloader version and configuration**
|
||||
If you have modified the default bootloader release or configuration then please attach the bootloader configuration vcgencmd bootloader_config and version (vcgencmd bootloader_version)
|
||||
Please include the bootloader version and config.
|
||||
```bash
|
||||
vcgencmd bootloader_version
|
||||
vcgencmd bootloader_config
|
||||
```
|
||||
|
||||
**SD card boot (please complete the following information):**
|
||||
**SD card boot (please complete the following information):**
|
||||
- SD card type
|
||||
- Partition information (sudo fdisk -l) if you are able to obtain this from another computer.
|
||||
|
||||
**Network boot (please complete the following information):**
|
||||
**USB boot (please complete the following information):**
|
||||
Verify that the the USB device works correctly when hot-plugged under Linux and attache the output of 'lsusb -vvv'
|
||||
|
||||
**Network boot (please complete the following information):**
|
||||
Network boot bug normally require one or more of the following log types. [PiServer](https://github.com/raspberrypi/piserver) is the officially supported network boot server.
|
||||
|
||||
- DHCP server configuration files e.g. dnsmasq.conf
|
||||
- Wireshark binary packet capture
|
||||
- UART logs
|
||||
- UART logs with `uart_2ndstage=1` set in `config.txt`
|
||||
|
||||
**USB boot (please complete the following information):**
|
||||
Verify that the the USB device works correctly when hot-plugged under Linux and attache the output of 'lsusb -vvv'
|
||||
**NVMe boot (please complete the following information):**
|
||||
|
||||
```bash
|
||||
sudo apt-get install nvme-cli
|
||||
sudo nvme list
|
||||
sudo nvme id-ctrl -H /dev/nvme0
|
||||
sudo nvme list-ns /dev/nvme0
|
||||
sudo nvme id-ns -H /dev/nvme0 --namespace-id=1
|
||||
```
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
||||
|
||||
The [Bootloader configuration](https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2711_bootloader_config.md) page describes how to enable UART or NETCONSOLE logs. For complex USB boot issues NETCONSOLE logs are recommended.
|
||||
The [Bootloader configuration](https://www.raspberrypi.org/documentation/computers/raspberry-pi.html#raspberry-pi-4-bootloader-configuration) page describes how to enable UART or NETCONSOLE logs. For complex USB boot issues NETCONSOLE logs are recommended.
|
||||
|
||||
|
||||
13
README.md
13
README.md
@@ -1,16 +1,17 @@
|
||||
# rpi-eeprom
|
||||
This repository contains the scripts and pre-compiled binaries used to create the `rpi-eeprom` package which is used to update the Raspberry Pi 4 bootloader and VLI USB xHCI controller EEPROMs.
|
||||
This repository contains the scripts and pre-compiled binaries used to create the `rpi-eeprom` package which is used to update the Raspberry Pi 4 bootloader and VLI USB controller EEPROMs.
|
||||
|
||||
# Support
|
||||
Please check the Raspberry Pi [general discussion forum](https://www.raspberrypi.org/forums/viewforum.php?f=63) if you have a support question.
|
||||
|
||||
# Reset to factory defaults
|
||||
The [Raspberry Pi Imager](https://www.raspberrypi.org/downloads/) provides an EEPROM recovery image which may be used to reset the bootloader and USB xHCI EEPROMs to factory defaults.
|
||||
To reset the bootloader back to factory defaults use [Raspberry Pi Imager](https://www.raspberrypi.com/software/) to write an EEPROM update image to a spare SD card. Select `Misc utility images` under the `Operating System` tab.
|
||||
|
||||
# Bootloader documentation
|
||||
* [The boot folder](https://www.raspberrypi.org/documentation/configuration/boot_folder.md)
|
||||
* [Config.txt boot options](https://www.raspberrypi.org/documentation/configuration/config-txt/boot.md)
|
||||
* [Bootloader EEPROM](https://www.raspberrypi.org/documentation/hardware/raspberrypi/booteeprom.md)
|
||||
* [Bootloader configuration](https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2711_bootloader_config.md)
|
||||
* [The boot folder](https://www.raspberrypi.com/documentation/computers/configuration.html#the-boot-folder)
|
||||
* [Config.txt boot options](https://www.raspberrypi.com/documentation/computers/config_txt.html#boot-options)
|
||||
* [Bootloader EEPROM](https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-4-boot-eeprom)
|
||||
* [Bootloader configuration](https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-4-bootloader-configuration)
|
||||
* [Updating the Compute Module 4 bootloader](https://www.raspberrypi.com/documentation/computers/compute-module.html#cm4bootloader)
|
||||
* [Release notes](firmware/release-notes.md)
|
||||
* [Releases](releases.md)
|
||||
|
||||
BIN
firmware/beta/pieeprom-2021-03-04.bin
Normal file
BIN
firmware/beta/pieeprom-2021-03-04.bin
Normal file
Binary file not shown.
BIN
firmware/beta/pieeprom-2021-03-17.bin
Normal file
BIN
firmware/beta/pieeprom-2021-03-17.bin
Normal file
Binary file not shown.
BIN
firmware/beta/pieeprom-2021-05-19.bin
Normal file
BIN
firmware/beta/pieeprom-2021-05-19.bin
Normal file
Binary file not shown.
BIN
firmware/beta/pieeprom-2021-06-11.bin
Normal file
BIN
firmware/beta/pieeprom-2021-06-11.bin
Normal file
Binary file not shown.
BIN
firmware/beta/pieeprom-2021-06-17.bin
Normal file
BIN
firmware/beta/pieeprom-2021-06-17.bin
Normal file
Binary file not shown.
BIN
firmware/beta/pieeprom-2021-06-25.bin
Normal file
BIN
firmware/beta/pieeprom-2021-06-25.bin
Normal file
Binary file not shown.
BIN
firmware/beta/pieeprom-2021-07-06.bin
Normal file
BIN
firmware/beta/pieeprom-2021-07-06.bin
Normal file
Binary file not shown.
BIN
firmware/beta/pieeprom-2021-09-23.bin
Normal file
BIN
firmware/beta/pieeprom-2021-09-23.bin
Normal file
Binary file not shown.
BIN
firmware/beta/pieeprom-2021-09-27.bin
Normal file
BIN
firmware/beta/pieeprom-2021-09-27.bin
Normal file
Binary file not shown.
BIN
firmware/beta/pieeprom-2021-10-04.bin
Normal file
BIN
firmware/beta/pieeprom-2021-10-04.bin
Normal file
Binary file not shown.
BIN
firmware/beta/pieeprom-2021-10-05.bin
Normal file
BIN
firmware/beta/pieeprom-2021-10-05.bin
Normal file
Binary file not shown.
Binary file not shown.
BIN
firmware/critical/pieeprom-2021-03-18.bin
Normal file
BIN
firmware/critical/pieeprom-2021-03-18.bin
Normal file
Binary file not shown.
BIN
firmware/critical/pieeprom-2021-04-29.bin
Normal file
BIN
firmware/critical/pieeprom-2021-04-29.bin
Normal file
Binary file not shown.
Binary file not shown.
BIN
firmware/old/beta/pieeprom-2020-07-16.bin
Normal file
BIN
firmware/old/beta/pieeprom-2020-07-16.bin
Normal file
Binary file not shown.
BIN
firmware/old/beta/pieeprom-2020-07-31.bin
Normal file
BIN
firmware/old/beta/pieeprom-2020-07-31.bin
Normal file
Binary file not shown.
BIN
firmware/old/beta/pieeprom-2020-09-03.bin
Normal file
BIN
firmware/old/beta/pieeprom-2020-09-03.bin
Normal file
Binary file not shown.
BIN
firmware/old/beta/pieeprom-2020-10-02.bin
Normal file
BIN
firmware/old/beta/pieeprom-2020-10-02.bin
Normal file
Binary file not shown.
BIN
firmware/old/beta/pieeprom-2020-10-28.bin
Normal file
BIN
firmware/old/beta/pieeprom-2020-10-28.bin
Normal file
Binary file not shown.
BIN
firmware/old/beta/pieeprom-2020-11-24.bin
Normal file
BIN
firmware/old/beta/pieeprom-2020-11-24.bin
Normal file
Binary file not shown.
BIN
firmware/old/beta/pieeprom-2020-12-11.bin
Normal file
BIN
firmware/old/beta/pieeprom-2020-12-11.bin
Normal file
Binary file not shown.
BIN
firmware/old/beta/pieeprom-2021-01-05.bin
Normal file
BIN
firmware/old/beta/pieeprom-2021-01-05.bin
Normal file
Binary file not shown.
BIN
firmware/old/beta/pieeprom-2021-01-11.bin
Normal file
BIN
firmware/old/beta/pieeprom-2021-01-11.bin
Normal file
Binary file not shown.
BIN
firmware/old/beta/pieeprom-2021-01-16.bin
Normal file
BIN
firmware/old/beta/pieeprom-2021-01-16.bin
Normal file
Binary file not shown.
BIN
firmware/old/beta/pieeprom-2021-02-16.bin
Normal file
BIN
firmware/old/beta/pieeprom-2021-02-16.bin
Normal file
Binary file not shown.
BIN
firmware/old/beta/vl805-000138a1.bin
Normal file
BIN
firmware/old/beta/vl805-000138a1.bin
Normal file
Binary file not shown.
@@ -3,6 +3,119 @@
|
||||
USB MSD boot also requires the firmware from Raspberry Pi OS 2020-08-20 or newer.
|
||||
https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2711_bootloader_config.md
|
||||
|
||||
## 2021-10-05 - Update for latest Broadcom SDRAM settings - BETA
|
||||
* Minor update for latest SDRAM tuning settings.
|
||||
|
||||
## 2021-10-04 - Add support for GPT FAT16 and increase USB timeouts - BETA
|
||||
* Update the FAT detection to support FAT16 for EFI/ESD paritions with
|
||||
GPT instead of assuming FAT32. The latest firmware is also required
|
||||
for a similar update.
|
||||
* Increase the timeouts for MSD SCSI commands to reduce the risk of
|
||||
timeouts when probing the capacity of slow to start devices
|
||||
e.g. USB RAID with spinning disks.
|
||||
|
||||
## 2021-09-27 - Fix recovery.bin rename issue and EEPROM netconsole - BETA
|
||||
* Fix recovery.bin rename issue
|
||||
* Update pieeprom-2021-09-27.bin to fix netconsole
|
||||
|
||||
## 2021-09-23 - Temporarily revert recovery.bin 2021-09-22 BETA/STABLE
|
||||
* Revert until fix for can be verified https://github.com/raspberrypi/rpi-eeprom/issues/367
|
||||
|
||||
## 2021-09-23 - Bootloader file-system updates - BETA
|
||||
This release makes major changes to the bootloader file-system code in order
|
||||
to support new features and should be treated as a bleeding edge BETA release!
|
||||
* Improve file-system performance to reduce boot time.
|
||||
* Preliminary support for IPV6 TFTP. Requires an updated start4.elf.
|
||||
Details to follow.
|
||||
* Fix VL805=1 option for CM4 IO boards that follow the same XHCI
|
||||
design as Pi4B. Start.elf will be updated in the next rpi-update release
|
||||
and the latest CM4 DTBs are required for the 'XHCI reset controller'
|
||||
* Preliminary support for loading signed boot image files.
|
||||
Requires updated GPU firmware.
|
||||
|
||||
## 2021-09-22 - Update recovery.bin to fix issue with large FAT partitions - STABLE
|
||||
* Bump the latest recovery.bin under beta to stable.
|
||||
|
||||
## 2021-09-22 - Update recovery.bin to fix issue with large FAT partitions - BETA
|
||||
* Fix an issue where the ROM fails to load larger recovery.bin files
|
||||
on FAT partitions with large cluster sizes.
|
||||
|
||||
## 2021-07-07 - Promote pieeprom-2021-07-06 to stable - STABLE
|
||||
* Promote the latest beta to stable. For CM4 users this adds NVMe
|
||||
boot support to the stable release.
|
||||
|
||||
## 2021-07-06 - Tidyup PXE debug strings - BETA
|
||||
* Remove redundant debug string - hexdump is more useful for debug.
|
||||
* Minor internal changes for manufacturing test.
|
||||
|
||||
## 2021-06-25 - Support 256MB gpu_mem with boot ramdisk - BETA
|
||||
* Tweak the address map so that boot ramdisks (e.g. rpiboot -d imager)
|
||||
work with large amounts of GPU memory.
|
||||
|
||||
## 2021-06-17 - Avoid unnecessary PCIe probe on CM4 - BETA
|
||||
* Avoid default PCIe / XHCI probe on CM4 unless required for the current boot
|
||||
mode (USB_MSD or NVME).
|
||||
* Leave PCIe RC in reset state when loading start.elf except for USB-MSD mode.
|
||||
|
||||
## 2021-06-11 - Add USB_MSD_STARTUP_DELAY option - BETA
|
||||
* Minor update to BRCM SDRAM settings.
|
||||
* Add USB_MSD_STARTUP_DELAY option (default 0 option). This adds a configurable
|
||||
delay (in milliseconds) the first time the USB host controller is initialised
|
||||
before device enumeration.
|
||||
Normally, this should not be required. However, some HDD enclosures may
|
||||
require an extended startup delay in order to spinup drives. Without this
|
||||
the get-capacity command may stall and timeout.
|
||||
|
||||
## 2021-05-19 - Use the latest BRCM SDRAM settings - BETA
|
||||
* Use the latest BRCM SDRAM settings.
|
||||
* FAT12 support for small bootloader ramdisk images.
|
||||
* Minor file-system performance optimisations.
|
||||
* Added recovery.bin config.txt option (erase_eeprom=1) to perform an
|
||||
SPI chip-erase operation instead of programming the bootloader image.
|
||||
|
||||
## 2021-04-30 - Update default version to 2021-04-29
|
||||
* The manufacturing release has been updated to pieeprom-2021-04-29 so update the default release to match this.
|
||||
|
||||
## 2021-04-29 - Pi400 - Reduce MII clock freq when probing ethernet PHY - STABLE
|
||||
* Pi400 - Reduce MII clock freq when probing ethernet PHY - STABLE
|
||||
|
||||
## 2021-04-19 - Promote 2021-03-18 from LATEST to DEFAULT - DEFAULT
|
||||
* Display VC_BUILD_ID strings instead of the SHA256 hash
|
||||
* Add support for [cm4] and [pi400] config conditionals filters.
|
||||
* Change network boot to use the same "RXID" Ethernet PHY configuration as the 5.10 kernel
|
||||
* TFTP - reply to duplicate ACKS
|
||||
* Skip rendering of HDMI diagnostics display for the first 8 seconds unless an error occurs.
|
||||
* UDP checksum fixes
|
||||
* Add support for the BCM2711 XHCI controller - BOOT_ORDER 0x5
|
||||
* XHCI protocol layer fixes for non-VLI controllers
|
||||
* Avoid USB MSD timeout if there is only one device
|
||||
* Implement tryboot for OS upgrade fallback
|
||||
* Check the update-timestamp before applying an update in SELF-UPDATE mode
|
||||
|
||||
## 2021-04-13 - Fix error pattern for HDMI and SDRAM failures - BETA/STABLE
|
||||
* Fix recovery.bin error handler so that the LED error pattern is still
|
||||
displayed even if HDMI or SDRAM fail.
|
||||
|
||||
## 2021-03-18 - Fix occasional reboot fail on Pi4B pre 1.4 - STABLE
|
||||
* Fix GPIO expander reset issue on some Pi4B 1.1 to 1.3 boards
|
||||
|
||||
## 2021-03-17 - Fix issue with PCIe bridges in Linux - BETA
|
||||
* NVMe BETA boot support broke PCIe bridges in Linux. This should fix the problem
|
||||
|
||||
## 2021-03-04 - NVMe boot support - BETA
|
||||
* Adds support for NVMe to the bootloader with a new NVMe boot mode "6"
|
||||
NVMe currently only works for controller 0 on namespace 1 with a page size of 4096 bytes
|
||||
and block size of 512 bytes
|
||||
* The default boot order has been updated to F641 for cm4 ONLY, so NVMe boot is
|
||||
attempted after SD and USB
|
||||
|
||||
To use the new NVMe add "6" to the BOOT_ORDER.
|
||||
|
||||
This requires the latest rpi-update firmware to work or else you will see a compatibility
|
||||
error on boot. You also need the latest kernel from rpi-update to load rootfs from NVMe
|
||||
see https://github.com/Hexxeh/rpi-firmware/commit/48570ba954a318feee348d4e642ebd2b58d9dd97
|
||||
and https://github.com/Hexxeh/rpi-firmware/commit/e150906874ff8b9fb6271971fa4238997369f790
|
||||
|
||||
## 2021-02-22 - Promote 2021-02-16 to stable - STABLE (LATEST)
|
||||
* Freezing for default/critical update.
|
||||
|
||||
|
||||
BIN
firmware/stable/pieeprom-2021-03-18.bin
Normal file
BIN
firmware/stable/pieeprom-2021-03-18.bin
Normal file
Binary file not shown.
BIN
firmware/stable/pieeprom-2021-04-29.bin
Normal file
BIN
firmware/stable/pieeprom-2021-04-29.bin
Normal file
Binary file not shown.
BIN
firmware/stable/pieeprom-2021-07-06.bin
Normal file
BIN
firmware/stable/pieeprom-2021-07-06.bin
Normal file
Binary file not shown.
Binary file not shown.
@@ -1,7 +1,7 @@
|
||||
Raspberry Pi 4 EEPROM bootloader rescue image
|
||||
*********************************************
|
||||
|
||||
The Raspberry Pi4 has a small EEPROM used to store the bootloader.
|
||||
The Raspberry Pi 4 has a small EEPROM used to store the bootloader.
|
||||
|
||||
This rescue image reverts the bootloader EEPROM to factory default settings.
|
||||
|
||||
@@ -10,11 +10,11 @@ version (138a1) with better full-speed Isochronous endpoint support.
|
||||
|
||||
To re-flash the EEPROM(s)
|
||||
|
||||
1. Unzip the contents of this zip file to a blank FAT formatted SD-SDCARD.
|
||||
1. Unzip the contents of this zip file to a blank FAT formatted SD-CARD
|
||||
2. Power off the Raspberry Pi
|
||||
3. Insert the sd-card.
|
||||
3. Insert the SD-CARD
|
||||
4. Power on Raspberry Pi
|
||||
5. Wait at least 10 seconds.
|
||||
5. Wait at least 10 seconds
|
||||
|
||||
This easiest method for creating and formatting the SD-CARD is to use the
|
||||
Raspberry Pi Imager from https://raspberrypi.org/downloads
|
||||
@@ -22,7 +22,7 @@ Raspberry Pi Imager from https://raspberrypi.org/downloads
|
||||
If successful, the green LED light will blink rapidly (forever), otherwise
|
||||
an error pattern will be displayed.
|
||||
|
||||
If a HDMI display is attached then screen will display green for success
|
||||
or red if failure a failure occurs.
|
||||
If a HDMI display is attached then the screen will display green for success
|
||||
or red if a failure occurs.
|
||||
|
||||
N.B. This image is not a bootloader it simply replaces the on-board bootloader.
|
||||
|
||||
13
imager/make-beta-release
Executable file
13
imager/make-beta-release
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
script_dir=$(cd "$(dirname "$0")" && pwd)
|
||||
|
||||
firmware_status=${firmware_status:-"beta"}
|
||||
firmware_dir=${script_dir}/../firmware/${firmware_status}
|
||||
pieeprom_version=$(basename $(ls ${firmware_dir}/pieeprom-*.bin | sort -V | tail -1) .bin | cut -d- -f2-5)
|
||||
vl805_version=$(basename $(ls ${firmware_dir}/vl805-*.bin | sort -V | tail -1) .bin | cut -d- -f2)
|
||||
|
||||
${script_dir}/make-release ${firmware_status} ${pieeprom_version} ${vl805_version} "${script_dir}" ${firmware_status}_release rpi-boot-eeprom-recovery-${firmware_status}
|
||||
|
||||
7
imager/make-imager-release
Executable file
7
imager/make-imager-release
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
script_dir=$(cd "$(dirname "$0")" && pwd)
|
||||
|
||||
${script_dir}/make-release critical 2021-04-29 000138a1 "${script_dir}" release rpi-boot-eeprom-recovery
|
||||
@@ -1,7 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Generates three variants of the rpi-eeprom-recovery.zip file for
|
||||
# SD, USB and NETWORK priority matching the raspi-config options.
|
||||
# SD, USB and NETWORK priority matching the raspi-config options,
|
||||
# plus a default (same as SD)
|
||||
|
||||
set -e
|
||||
|
||||
@@ -27,39 +28,61 @@ gen_release() {
|
||||
[ -f "${config}" ] || die "File not found \"${config}\""
|
||||
|
||||
(
|
||||
tmp_dir="$(mktemp -d)"
|
||||
tmp_dir="$(mktemp -d --tmpdir tmp.rpi-eeprom.XXXXXXXXXX)"
|
||||
cd "${tmp_dir}"
|
||||
cp "${script_dir}/vl805.bin" .
|
||||
cp "${script_dir}/README.txt" .
|
||||
cp "${firmware_dir}/recovery.bin" .
|
||||
cp "${firmware_dir}/vl805-${vl805_version}.bin" vl805.bin
|
||||
sha256sum vl805.bin | awk '{print $1}' > vl805.sig
|
||||
|
||||
"${script_dir}/../rpi-eeprom-config" \
|
||||
--config "${script_dir}/${config}" --out pieeprom.bin \
|
||||
"${script_dir}/pieeprom.bin" || die "Failed to create update EEPROM config with \"${config}\""
|
||||
--config "${config}" --out pieeprom.bin \
|
||||
"${firmware_dir}/pieeprom-${pieeprom_version}.bin" || die "Failed to create updated EEPROM config with \"${config}\""
|
||||
sha256sum pieeprom.bin | awk '{print $1}' > pieeprom.sig
|
||||
echo "Creating ${out}"
|
||||
zip "${out}" *
|
||||
cleanup
|
||||
)
|
||||
}
|
||||
|
||||
usage() {
|
||||
cat <<EOF
|
||||
make-release <tag>
|
||||
make-release <firmware_status> <pieeprom_version> <vl805_version> <config_dir> <output_dir> <output_basename>
|
||||
|
||||
Example tag "2020-09-03-vl805-000138a1"
|
||||
Example: make-release critical 2020-09-03 000138a1 . release rpi-boot-eeprom-recovery
|
||||
EOF
|
||||
exit
|
||||
}
|
||||
|
||||
trap cleanup EXIT
|
||||
tag="${1}"
|
||||
[ -n "${tag}" ] || usage
|
||||
release_dir="${script_dir}/release"
|
||||
rm -rf "${release_dir}"
|
||||
mkdir "${release_dir}"
|
||||
firmware_status="${1}"
|
||||
pieeprom_version="${2}"
|
||||
vl805_version="${3}"
|
||||
config_dir="${4}"
|
||||
output_dir="${5}"
|
||||
output_basename="${6}"
|
||||
|
||||
[ -n "${firmware_status}" ] || usage
|
||||
[ -n "${pieeprom_version}" ] || usage
|
||||
[ -n "${vl805_version}" ] || usage
|
||||
[ -n "${config_dir}" ] || usage
|
||||
[ -n "${output_dir}" ] || usage
|
||||
[ -n "${output_basename}" ] || usage
|
||||
|
||||
firmware_dir=${script_dir}/../firmware/${firmware_status}
|
||||
[ -d "${firmware_dir}" ] || (echo "${firmware_dir} doesn't exist" && exit 1)
|
||||
[ -f "${firmware_dir}/pieeprom-${pieeprom_version}.bin" ] || (echo "${firmware_status}/pieeprom-${pieeprom_version}.bin doesn't exist" && exit 1)
|
||||
[ -f "${firmware_dir}/vl805-${vl805_version}.bin" ] || (echo "${firmware_status}/vl805-${vl805_version}.bin doesn't exist" && exit 1)
|
||||
[ -d "${config_dir}" ] || (echo "${config_dir} doesn't exist" && exit 1)
|
||||
tag="${pieeprom_version}-vl805-${vl805_version}"
|
||||
# use realpath to ensure paths are absolute
|
||||
config_dir=$(realpath "${config_dir}")
|
||||
output_dir=$(realpath "${output_dir}")
|
||||
rm -rf "${output_dir}"
|
||||
mkdir "${output_dir}"
|
||||
|
||||
# Build the different boot priority flavours
|
||||
gen_release boot-conf-default.txt "${release_dir}/rpi-boot-eeprom-recovery-${tag}.zip"
|
||||
gen_release boot-conf-sd.txt "${release_dir}/rpi-boot-eeprom-recovery-${tag}-sd.zip"
|
||||
gen_release boot-conf-usb.txt "${release_dir}/rpi-boot-eeprom-recovery-${tag}-usb.zip"
|
||||
gen_release boot-conf-network.txt "${release_dir}/rpi-boot-eeprom-recovery-${tag}-network.zip"
|
||||
gen_release "${config_dir}/boot-conf-default.txt" "${output_dir}/${output_basename}-${tag}.zip"
|
||||
for variant in sd usb network; do
|
||||
gen_release "${config_dir}/boot-conf-${variant}.txt" "${output_dir}/${output_basename}-${tag}-${variant}.zip"
|
||||
done
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
../firmware/critical/pieeprom-2020-09-03.bin
|
||||
@@ -1 +0,0 @@
|
||||
../firmware/critical/recovery.bin
|
||||
@@ -1 +0,0 @@
|
||||
../firmware/critical/vl805-000138a1.bin
|
||||
19
releases.md
19
releases.md
@@ -1,20 +1,19 @@
|
||||
# rpi-eeprom releases
|
||||
This page provides links to the production and development release images for the Raspberry Pi 4 bootloader EEPROM. Normally, the
|
||||
# Raspberry Pi 4B, 400 and CM4 bootloader EEPROM releases
|
||||
This page provides links to the production and development release images for the bootloader EEPROM on BCM2711-based Raspberry Pi computers. Normally, the
|
||||
bootloader is automatically updated after an APT update via the [rpi-eeprom-update](https://www.raspberrypi.org/documentation/hardware/raspberrypi/booteeprom.md)
|
||||
utility. However, it's sometimes more convenient to use a recovery image to program the EEPROM with default settings for a given release, rather than updating via Linux.
|
||||
utility.
|
||||
|
||||
## Release notes
|
||||
Release notes are available [here](https://github.com/raspberrypi/rpi-eeprom/blob/master/firmware/release-notes.md).
|
||||
|
||||
## Recovery image
|
||||
The latest production EEPROM recovery image release is [2020-09-03](https://github.com/raspberrypi/rpi-eeprom/releases/tag/v2020.09.03-138a1) and can be installed via the [Raspberry Pi Imager](https://www.raspberrypi.org/downloads/).
|
||||
## Default release
|
||||
The default production EEPROM image release is [2020-09-03](https://github.com/raspberrypi/rpi-eeprom/releases/tag/v2020.09.03-138a1) and can be installed via the [Raspberry Pi Imager](https://www.raspberrypi.org/downloads/).
|
||||
|
||||
## USB MSD boot
|
||||
USB mass storage boot requires the 2020-09-03 EEPROM images and Raspberry Pi OS 2020-08-20 or newer.
|
||||
|
||||
For support please see use the Raspberry Pi [general discussion](https://www.raspberrypi.org/forums/viewforum.php?f=63) forum.
|
||||
Please see the [USB mass storage boot](https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/msd.md) guide.
|
||||
For support or hardware interoperability discussions please use the Raspberry Pi [general discussion](https://www.raspberrypi.org/forums/viewforum.php?f=63) forum.
|
||||
|
||||
## Old EEPROM images
|
||||
Old bootloader images are periodically removed from the APT package to reduce the disk space but are still available via Github [here](https://github.com/raspberrypi/rpi-eeprom/tree/master/firmware/old)
|
||||
Old bootloader images are periodically removed from the APT package to reduce the disk space, but are still available via Github [here](https://github.com/raspberrypi/rpi-eeprom/tree/master/firmware/old).
|
||||
|
||||
**N.B. These are not supported and may fail to boot on newer hardware revisions.**
|
||||
**Old releases may fail to boot on newer hardware revisions.**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
"""
|
||||
rpi-eeprom-config
|
||||
@@ -118,8 +118,6 @@ def apply_update(config, eeprom=None, config_src=None):
|
||||
sys.stdout.write("Updating bootloader EEPROM\n image: %s\nconfig_src: %s\nconfig: %s\n%s\n%s\n%s\n" %
|
||||
(eeprom_image, config_src, config, '#' * 80, config_str, '#' * 80))
|
||||
|
||||
sys.stdout.write("\n*** To cancel this update run 'sudo rpi-eeprom-update -r' ***\n\n")
|
||||
|
||||
# Ignore APT package checksums so that this doesn't fail when used
|
||||
# with EEPROMs with configs delivered outside of APT.
|
||||
# The checksums are really just a safety check for automatic updates.
|
||||
|
||||
@@ -30,10 +30,13 @@ FIRMWARE_BACKUP_DIR=${FIRMWARE_BACKUP_DIR:-/var/lib/raspberrypi/bootloader/backu
|
||||
ENABLE_VL805_UPDATES=${ENABLE_VL805_UPDATES:-1}
|
||||
RECOVERY_BIN=${RECOVERY_BIN:-${FIRMWARE_ROOT}/${FIRMWARE_RELEASE_STATUS}/recovery.bin}
|
||||
BOOTFS=${BOOTFS:-/boot}
|
||||
VCMAILBOX=${VCMAILBOX:-/opt/vc/bin/vcmailbox}
|
||||
CM4_ENABLE_RPI_EEPROM_UPDATE=${CM4_ENABLE_RPI_EEPROM_UPDATE:-0}
|
||||
RPI_EEPROM_UPDATE_CONFIG_TOOL="${RPI_EEPROM_UPDATE_CONFIG_TOOL:-raspi-config}"
|
||||
|
||||
# Automatic, critical updates are not applied unless the current bootloader version
|
||||
# is older than pieeprom-2020-09-03
|
||||
BOOTLOADER_AUTO_UPDATE_MIN_VERSION="${BOOTLOADER_AUTO_UPDATE_MIN_VERSION:-1599135103}"
|
||||
|
||||
DT_BOOTLOADER_TS=${DT_BOOTLOADER_TS:-/proc/device-tree/chosen/bootloader/build-timestamp}
|
||||
|
||||
EXIT_SUCCESS=0
|
||||
@@ -54,8 +57,8 @@ BOARD_TYPE=
|
||||
# Newer board revisions embed the VLI firmware in the bootloader EEPROM and
|
||||
# there is no way to separately update the VLI firmware. Consequently,
|
||||
# standalone vl805 update files do not trigger automatic updates.
|
||||
# Recovery.bin and the the SPI bootloader ignore vl805.bin files on boards
|
||||
# without a dedicate VL805 EEPROM.
|
||||
# recovery.bin and the SPI bootloader ignore vl805.bin files on boards
|
||||
# without a dedicated VL805 EEPROM.
|
||||
HAVE_VL805_EEPROM=0
|
||||
|
||||
TMP_EEPROM_IMAGE=""
|
||||
@@ -170,8 +173,18 @@ applyRecoveryUpdate()
|
||||
{
|
||||
[ -n "${BOOTLOADER_UPDATE_IMAGE}" ] || [ -n "${VL805_UPDATE_IMAGE}" ] || die "No update images specified"
|
||||
|
||||
getBootloaderCurrentVersion
|
||||
BOOTLOADER_UPDATE_VERSION=$(strings "${BOOTLOADER_UPDATE_IMAGE}" | grep BUILD_TIMESTAMP | sed 's/.*=//g')
|
||||
if [ "${BOOTLOADER_CURRENT_VERSION}" -gt "${BOOTLOADER_UPDATE_VERSION}" ]; then
|
||||
echo " WARNING: Installing an older bootloader version."
|
||||
echo " Update the rpi-eeprom package to fetch the latest bootloader images."
|
||||
echo
|
||||
fi
|
||||
echo " CURRENT: $(date -u "-d@${BOOTLOADER_CURRENT_VERSION}") (${BOOTLOADER_CURRENT_VERSION})"
|
||||
echo " UPDATE: $(date -u "-d@${BOOTLOADER_UPDATE_VERSION}") (${BOOTLOADER_UPDATE_VERSION})"
|
||||
|
||||
findBootFS
|
||||
echo "BOOTFS ${BOOTFS}"
|
||||
echo " BOOTFS: ${BOOTFS}"
|
||||
|
||||
# A '.sig' file is created so that recovery.bin can check that the
|
||||
# EEPROM image has not been corrupted (e.g. SD card corruption).
|
||||
@@ -228,6 +241,10 @@ applyRecoveryUpdate()
|
||||
|
||||
cp -f "${RECOVERY_BIN}" "${BOOTFS}/recovery.bin" \
|
||||
|| die "Failed to copy ${RECOVERY_BIN} to ${BOOTFS}"
|
||||
|
||||
echo ""
|
||||
echo "EEPROM updates pending. Please reboot to apply the update."
|
||||
echo "To cancel a pending update run \"sudo rpi-eeprom-update -r\"."
|
||||
}
|
||||
|
||||
applyUpdate() {
|
||||
@@ -297,13 +314,14 @@ checkDependencies() {
|
||||
BOARD_INFO="$(od -v -An -t x1 /sys/firmware/devicetree/base/system/linux,revision | tr -d ' \n')"
|
||||
elif grep -q Revision /proc/cpuinfo; then
|
||||
BOARD_INFO="$(sed -n '/^Revision/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo)"
|
||||
else
|
||||
elif command -v vcgencmd > /dev/null; then
|
||||
BOARD_INFO="$(vcgencmd otp_dump | grep '30:' | sed 's/.*://')"
|
||||
else
|
||||
echo "No Raspberry Pi board info found"
|
||||
exit ${EXIT_SUCCESS}
|
||||
fi
|
||||
|
||||
if [ $(((0x$BOARD_INFO >> 23) & 1)) -ne 0 ] && [ $(((0x$BOARD_INFO >> 12) & 15)) -eq 3 ]; then
|
||||
echo "BCM2711 detected"
|
||||
else
|
||||
if [ $(((0x$BOARD_INFO >> 23) & 1)) -eq 0 ] || [ $(((0x$BOARD_INFO >> 12) & 15)) -ne 3 ]; then
|
||||
# Not a BCM2711, no EEPROMs to update.
|
||||
echo "This tool only works with a Raspberry Pi 4"
|
||||
exit ${EXIT_SUCCESS}
|
||||
@@ -319,10 +337,8 @@ checkDependencies() {
|
||||
fi
|
||||
|
||||
if [ ${BOARD_TYPE} -eq 17 ] && [ ${BOARD_REVISION} -lt 4 ]; then
|
||||
echo "Dedicated VL805 EEPROM detected"
|
||||
HAVE_VL805_EEPROM=1
|
||||
else
|
||||
echo "VL805 firmware in bootloader EEPROM"
|
||||
HAVE_VL805_EEPROM=0
|
||||
fi
|
||||
|
||||
@@ -368,7 +384,7 @@ rpi-eeprom-update [options]... [FILE]
|
||||
Bootloader EEPROM update tool for the Raspberry Pi 4.
|
||||
|
||||
Checks whether the Raspberry Pi 4 bootloader and the VL805 USB controller
|
||||
EEPROMs are up-to-date and optionally updates the EEPROMs at the next reboot.
|
||||
EEPROMs are up to date and optionally updates the EEPROMs at the next reboot.
|
||||
|
||||
The default update mechanism writes recovery.bin and the EEPROM update
|
||||
image(s) (pieeprom.upd and vl805.bin) to the boot partition.
|
||||
@@ -398,18 +414,22 @@ Options:
|
||||
-b Outputs the path that pending EEPROM updates will be written to.
|
||||
-d Use the default bootloader config, or if a file is specified using the -f
|
||||
flag use the config in that file. This option only applies when a
|
||||
bootloader EEPROM update is needed; if the bootloader EEPROM is up-to-date
|
||||
bootloader EEPROM update is needed; if the bootloader EEPROM is up to date
|
||||
then its config will not be changed.
|
||||
-f Install the given file instead of the latest applicable update
|
||||
Ignores the FREEZE_VERSION flag in bootloader and is intended for manual
|
||||
firmware updates.
|
||||
-h Display help text and exit
|
||||
-i Ignore package checksums - for rpi-eeprom developers.
|
||||
-j Write status information using JSON notation
|
||||
-j Write status information using JSON notation (requires -m option)
|
||||
-l Returns the full path to the latest available EEPROM image file according
|
||||
to the FIRMWARE_RELEASE_STATUS and FIRMWARE_IMAGE_DIR settings.
|
||||
-m Write status information to the given file when run without -a or -f
|
||||
-r Removes temporary EEPROM update files from the boot partition.
|
||||
-r Removes temporary EEPROM update files from the boot partition. This also
|
||||
cancels a pending update.
|
||||
-s Skips silent, automatic upgrades for default releases if the current
|
||||
bootloader release is newer than the version specified by
|
||||
BOOTLOADER_AUTO_UPDATE_MIN_VERSION ${BOOTLOADER_AUTO_UPDATE_MIN_VERSION}
|
||||
-u Install the specified VL805 (USB EEPROM) image file.
|
||||
|
||||
Environment:
|
||||
@@ -436,19 +456,18 @@ directory first. The binaries are then promoted to 'latest' and finally 'default
|
||||
so the 'default' binary is always the most tested release.
|
||||
|
||||
default:
|
||||
The default bootloader image which is updated once new features in
|
||||
'latest' are stable or for critical hardware or security updates.
|
||||
|
||||
Raspberry Pi OS automatically updates the bootloader when a newer 'default' image
|
||||
is available following an APT update to the rpi-eeprom package.
|
||||
The default bootloader image which supports all current models and hardware
|
||||
revisions.
|
||||
If a critical bug fix is required then the minimum default version number
|
||||
(BOOTLOADER_AUTO_UPDATE_MIN_VERSION) in the rpi-eeprom package is updated
|
||||
causing the bootloader to be automatically updated.
|
||||
|
||||
latest:
|
||||
Contains the latest features which have undergone testing via the 'beta'
|
||||
release. The configuration parameters are stable.
|
||||
|
||||
beta:
|
||||
Contains experimental features and bug fixes. Configuration parameters may
|
||||
change in subsequent 'beta' releases.
|
||||
release. Backwards compatiblity for configuration parameters is maintained
|
||||
once a feature is in the latest release directory.
|
||||
If the 'latest' release is selected then bootloader is automatically upgraded
|
||||
when the rpi-eeprom package is updated.
|
||||
|
||||
As far as rpi-eeprom-update is concerned FIRMWARE_RELEASE_STATUS is just
|
||||
the subdirectory mapping under ${FIRMWARE_ROOT}. Therefore, custom release
|
||||
@@ -481,10 +500,10 @@ cause the system to fail to boot so automatic updates are disabled. We also
|
||||
recommend write-protecting the SPI EPPROM after flashing it using usbboot.
|
||||
|
||||
CM4 bootloader and EEPROM update instructions:
|
||||
https://www.raspberrypi.org/documentation/hardware/computemodule/cm-emmc-flashing.md
|
||||
https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2711_bootloader_config.md
|
||||
|
||||
usbboot instructions for flashing CM4 EMMC and bootloader EEPROM:
|
||||
https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2711_bootloader_config.md
|
||||
https://www.raspberrypi.org/documentation/hardware/computemodule/cm-emmc-flashing.md
|
||||
|
||||
The CM4 ROM does not support running recovery.bin from the EMMC on CM4 so this service
|
||||
is disabled by default. SELF_UPDATE from USB or Network boot is supported but this
|
||||
@@ -504,31 +523,35 @@ EOF
|
||||
|
||||
printVersions()
|
||||
{
|
||||
echo "Checking for updates in ${FIRMWARE_IMAGE_DIR}"
|
||||
echo "Use ${RPI_EEPROM_UPDATE_CONFIG_TOOL} to select either the default-production release or latest update."
|
||||
|
||||
if [ "${ACTION_UPDATE_BOOTLOADER}" = 1 ]; then
|
||||
echo "BOOTLOADER: update available"
|
||||
else
|
||||
echo "BOOTLOADER: up-to-date"
|
||||
echo "BOOTLOADER: up to date"
|
||||
fi
|
||||
|
||||
echo "CURRENT: $(date -u "-d@${BOOTLOADER_CURRENT_VERSION}") (${BOOTLOADER_CURRENT_VERSION})"
|
||||
echo " LATEST: $(date -u "-d@${BOOTLOADER_UPDATE_VERSION}") (${BOOTLOADER_UPDATE_VERSION})"
|
||||
echo "RELEASE: ${FIRMWARE_RELEASE_STATUS}"
|
||||
echo " CURRENT: $(date -u "-d@${BOOTLOADER_CURRENT_VERSION}") (${BOOTLOADER_CURRENT_VERSION})"
|
||||
echo " LATEST: $(date -u "-d@${BOOTLOADER_UPDATE_VERSION}") (${BOOTLOADER_UPDATE_VERSION})"
|
||||
echo " RELEASE: ${FIRMWARE_RELEASE_STATUS} (${FIRMWARE_IMAGE_DIR})"
|
||||
echo " Use ${RPI_EEPROM_UPDATE_CONFIG_TOOL} to change the release."
|
||||
|
||||
echo ""
|
||||
if [ "${HAVE_VL805_EEPROM}" = 1 ]; then
|
||||
echo " VL805_FW: Dedicated VL805 EEPROM"
|
||||
else
|
||||
echo " VL805_FW: Using bootloader EEPROM"
|
||||
fi
|
||||
if [ "${ACTION_UPDATE_VL805}" = 1 ]; then
|
||||
echo "VL805: update available"
|
||||
echo " VL805: update available"
|
||||
else
|
||||
if [ "$(id -u)" = "0" ]; then
|
||||
echo "VL805: up-to-date"
|
||||
echo " VL805: up to date"
|
||||
else
|
||||
echo "VL805: version unknown. Try sudo rpi-eeprom-update"
|
||||
echo " VL805: version unknown. Try sudo rpi-eeprom-update"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "CURRENT: ${VL805_CURRENT_VERSION}"
|
||||
echo " LATEST: ${VL805_UPDATE_VERSION}"
|
||||
echo " CURRENT: ${VL805_CURRENT_VERSION}"
|
||||
echo " LATEST: ${VL805_UPDATE_VERSION}"
|
||||
}
|
||||
|
||||
findBootFS()
|
||||
@@ -591,12 +614,30 @@ lookupVersionInfo()
|
||||
|
||||
getVL805CurrentVersion
|
||||
|
||||
ACTION_UPDATE_BOOTLOADER=0
|
||||
ACTION_UPDATE_VL805=0
|
||||
|
||||
if [ "${BOOTLOADER_UPDATE_VERSION}" -gt "${BOOTLOADER_CURRENT_VERSION}" ]; then
|
||||
ACTION_UPDATE_BOOTLOADER=1
|
||||
else
|
||||
BOOTLOADER_UPDATE_IMAGE=""
|
||||
fi
|
||||
|
||||
# If the '-s' flag for silent updates is specified then only update the
|
||||
# bootloader if the current version is older than the minimum version.
|
||||
if [ "${SILENT_UPDATE}" = 1 ] && [ -n "${BOOTLOADER_AUTO_UPDATE_MIN_VERSION}" ] && [ "${ACTION_UPDATE_BOOTLOADER}" = 1 ]; then
|
||||
if [ "${FIRMWARE_RELEASE_STATUS}" = "critical" ] || [ "${FIRMWARE_RELEASE_STATUS}" = "default" ]; then
|
||||
if [ "${BOOTLOADER_CURRENT_VERSION}" -ge "${BOOTLOADER_AUTO_UPDATE_MIN_VERSION}" ]; then
|
||||
echo "Skipping automatic bootloader upgrade. current ${BOOTLOADER_CURRENT_VERSION} >= min ${BOOTLOADER_AUTO_UPDATE_MIN_VERSION}"
|
||||
echo ""
|
||||
|
||||
# Clear the update requried flag
|
||||
ACTION_UPDATE_BOOTLOADER=0
|
||||
BOOTLOADER_UPDATE_IMAGE=""
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "${HAVE_VL805_EEPROM}" = 1 ]; then
|
||||
getVL805UpdateVersion
|
||||
if [ -n "${VL805_CURRENT_VERSION}" ] && [ -n "${VL805_UPDATE_VERSION}" ]; then
|
||||
@@ -629,9 +670,10 @@ checkAndApply()
|
||||
|
||||
if [ "${ACTION_UPDATE_BOOTLOADER}" = 1 ] || [ "${ACTION_UPDATE_VL805}" = 1 ]; then
|
||||
echo "*** INSTALLING EEPROM UPDATES ***"
|
||||
echo ""
|
||||
|
||||
printVersions
|
||||
applyUpdate
|
||||
echo "EEPROM updates pending. Please reboot to apply the update."
|
||||
else
|
||||
printVersions
|
||||
fi
|
||||
@@ -641,6 +683,7 @@ fileUpdate()
|
||||
{
|
||||
removePreviousUpdates
|
||||
echo "*** INSTALLING ${BOOTLOADER_UPDATE_IMAGE} ${VL805_UPDATE_IMAGE} ***"
|
||||
echo
|
||||
|
||||
if [ -n "${BOOTLOADER_UPDATE_IMAGE}" ]; then
|
||||
[ -f "${BOOTLOADER_UPDATE_IMAGE}" ] || die "Bootloader image \"${BOOTLOADER_UPDATE_IMAGE}\" not found"
|
||||
@@ -651,7 +694,6 @@ fileUpdate()
|
||||
fi
|
||||
|
||||
applyUpdate
|
||||
echo "EEPROM update pending. Please reboot to apply the update."
|
||||
}
|
||||
|
||||
removePreviousUpdates()
|
||||
@@ -676,7 +718,7 @@ checkVersion()
|
||||
{
|
||||
lookupVersionInfo
|
||||
|
||||
if [ "${BOOTLOADER_UPDATE_VERSION}" -gt "${BOOTLOADER_CURRENT_VERSION}" ]; then
|
||||
if [ "${ACTION_UPDATE_BOOTLOADER}" = 1 ] || [ "${ACTION_UPDATE_VL805}" = 1 ]; then
|
||||
echo "*** UPDATE AVAILABLE ***"
|
||||
printVersions
|
||||
write_status_info "EXIT_UPDATE_REQUIRED"
|
||||
@@ -697,11 +739,13 @@ write_status_info()
|
||||
bootloader_new="${BOOTLOADER_UPDATE_VERSION:-0}"
|
||||
vl805_cur="${VL805_CURRENT_VERSION}"
|
||||
vl805_new="${VL805_UPDATE_VERSION}"
|
||||
min_ver=${BOOTLOADER_AUTO_UPDATE_MIN_VERSION:-0}
|
||||
|
||||
if [ "${JSON_OUTPUT}" = "no" ]; then
|
||||
[ "${HAVE_VL805_EEPROM}" = "0" ] && vl805_eeprom="no" || vl805_eeprom="yes"
|
||||
cat > "${MACHINE_OUTPUT}" <<EOF
|
||||
EXITCODE="${exit_code}"
|
||||
BOOTLOADER_AUTO_UPDATE_MIN_VERSION=${min_ver}
|
||||
BOOTLOADER_CURRENT=${bootloader_cur}
|
||||
BOOTLOADER_LATEST=${bootloader_new}
|
||||
VL805_CURRENT="${vl805_cur}"
|
||||
@@ -713,6 +757,7 @@ EOF
|
||||
cat > "${MACHINE_OUTPUT}" <<EOF
|
||||
{
|
||||
"EXITCODE": "${exit_code}",
|
||||
"BOOTLOADER_AUTO_UPDATE_MIN_VERSION": ${min_ver},
|
||||
"BOOTLOADER_CURRENT": ${bootloader_cur},
|
||||
"BOOTLOADER_LATEST": ${bootloader_new},
|
||||
"VL805_CURRENT": "${vl805_cur}",
|
||||
@@ -726,6 +771,7 @@ EOF
|
||||
|
||||
AUTO_UPDATE_BOOTLOADER=0
|
||||
AUTO_UPDATE_VL805=0
|
||||
SILENT_UPDATE=0
|
||||
MACHINE_OUTPUT=""
|
||||
JSON_OUTPUT="no"
|
||||
IGNORE_DPKG_CHECKSUMS=${LOCAL_MODE}
|
||||
@@ -735,7 +781,7 @@ if [ ! -d "${PACKAGE_INFO_DIR}" ]; then
|
||||
fi
|
||||
|
||||
|
||||
while getopts A:abdhilf:m:ju:r option; do
|
||||
while getopts A:abdhilf:m:ju:rs option; do
|
||||
case "${option}" in
|
||||
A)
|
||||
if [ "${OPTARG}" = "bootloader" ]; then
|
||||
@@ -776,6 +822,8 @@ while getopts A:abdhilf:m:ju:r option; do
|
||||
removePreviousUpdates
|
||||
exit 0
|
||||
;;
|
||||
s) SILENT_UPDATE=1
|
||||
;;
|
||||
u) VL805_UPDATE_IMAGE="${OPTARG}"
|
||||
;;
|
||||
*) echo "Unknown argument \"${option}\""
|
||||
@@ -787,7 +835,7 @@ done
|
||||
checkDependencies
|
||||
if [ "${AUTO_UPDATE_BOOTLOADER}" = 1 ] || [ "${AUTO_UPDATE_VL805}" = 1 ]; then
|
||||
if getBootloaderConfig | grep FREEZE_VERSION=1; then
|
||||
echo "EEPROM version is frozen. Skipping update"
|
||||
echo "EEPROM version is frozen. Skipping automatic update"
|
||||
exit ${EXIT_EEPROM_FROZEN}
|
||||
else
|
||||
checkAndApply
|
||||
|
||||
16
test/configs/bootconf-2019-07-15.txt
Normal file
16
test/configs/bootconf-2019-07-15.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
16
test/configs/bootconf-2019-09-06.txt
Normal file
16
test/configs/bootconf-2019-09-06.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
FREEZE_VERSION=0
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
16
test/configs/bootconf-2019-09-10.txt
Normal file
16
test/configs/bootconf-2019-09-10.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
FREEZE_VERSION=0
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
23
test/configs/bootconf-2019-09-23.txt
Normal file
23
test/configs/bootconf-2019-09-23.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=15000
|
||||
TFTP_IP=
|
||||
BOOT_ORDER=0x1
|
||||
SD_BOOT_MAX_RETRIES=3
|
||||
NET_BOOT_MAX_RETRIES=5
|
||||
[none]
|
||||
FREEZE_VERSION=0
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
14
test/configs/bootconf-2019-09-25.txt
Normal file
14
test/configs/bootconf-2019-09-25.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
TFTP_IP=
|
||||
BOOT_ORDER=0x1
|
||||
SD_BOOT_MAX_RETRIES=3
|
||||
NET_BOOT_MAX_RETRIES=5
|
||||
[none]
|
||||
FREEZE_VERSION=0
|
||||
|
||||
14
test/configs/bootconf-2019-10-08.txt
Normal file
14
test/configs/bootconf-2019-10-08.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
TFTP_IP=
|
||||
BOOT_ORDER=0x1
|
||||
SD_BOOT_MAX_RETRIES=3
|
||||
NET_BOOT_MAX_RETRIES=5
|
||||
[none]
|
||||
FREEZE_VERSION=0
|
||||
|
||||
14
test/configs/bootconf-2019-10-16.txt
Normal file
14
test/configs/bootconf-2019-10-16.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
TFTP_IP=
|
||||
BOOT_ORDER=0x1
|
||||
SD_BOOT_MAX_RETRIES=3
|
||||
NET_BOOT_MAX_RETRIES=5
|
||||
[none]
|
||||
FREEZE_VERSION=0
|
||||
|
||||
15
test/configs/bootconf-2019-11-18.txt
Normal file
15
test/configs/bootconf-2019-11-18.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
TFTP_IP=
|
||||
TFTP_PREFIX=0
|
||||
BOOT_ORDER=0x1
|
||||
SD_BOOT_MAX_RETRIES=3
|
||||
NET_BOOT_MAX_RETRIES=5
|
||||
[none]
|
||||
FREEZE_VERSION=0
|
||||
|
||||
15
test/configs/bootconf-2019-12-03.txt
Normal file
15
test/configs/bootconf-2019-12-03.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
TFTP_IP=
|
||||
TFTP_PREFIX=0
|
||||
BOOT_ORDER=0x1
|
||||
SD_BOOT_MAX_RETRIES=3
|
||||
NET_BOOT_MAX_RETRIES=5
|
||||
[none]
|
||||
FREEZE_VERSION=0
|
||||
|
||||
15
test/configs/bootconf-2020-01-09.txt
Normal file
15
test/configs/bootconf-2020-01-09.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
TFTP_IP=
|
||||
TFTP_PREFIX=0
|
||||
BOOT_ORDER=0x1
|
||||
SD_BOOT_MAX_RETRIES=3
|
||||
NET_BOOT_MAX_RETRIES=5
|
||||
[none]
|
||||
FREEZE_VERSION=0
|
||||
|
||||
15
test/configs/bootconf-2020-01-17.txt
Normal file
15
test/configs/bootconf-2020-01-17.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
TFTP_IP=
|
||||
TFTP_PREFIX=0
|
||||
BOOT_ORDER=0x1
|
||||
SD_BOOT_MAX_RETRIES=3
|
||||
NET_BOOT_MAX_RETRIES=5
|
||||
[none]
|
||||
FREEZE_VERSION=0
|
||||
|
||||
15
test/configs/bootconf-2020-03-04.txt
Normal file
15
test/configs/bootconf-2020-03-04.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
TFTP_IP=
|
||||
TFTP_PREFIX=0
|
||||
BOOT_ORDER=0x1
|
||||
SD_BOOT_MAX_RETRIES=3
|
||||
NET_BOOT_MAX_RETRIES=5
|
||||
[none]
|
||||
FREEZE_VERSION=0
|
||||
|
||||
15
test/configs/bootconf-2020-03-16.txt
Normal file
15
test/configs/bootconf-2020-03-16.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
TFTP_IP=
|
||||
TFTP_PREFIX=0
|
||||
BOOT_ORDER=0x1
|
||||
SD_BOOT_MAX_RETRIES=3
|
||||
NET_BOOT_MAX_RETRIES=5
|
||||
[none]
|
||||
FREEZE_VERSION=0
|
||||
|
||||
15
test/configs/bootconf-2020-03-19.txt
Normal file
15
test/configs/bootconf-2020-03-19.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
TFTP_IP=
|
||||
TFTP_PREFIX=0
|
||||
BOOT_ORDER=0x1
|
||||
SD_BOOT_MAX_RETRIES=3
|
||||
NET_BOOT_MAX_RETRIES=5
|
||||
[none]
|
||||
FREEZE_VERSION=0
|
||||
|
||||
15
test/configs/bootconf-2020-04-09.txt
Normal file
15
test/configs/bootconf-2020-04-09.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
TFTP_IP=
|
||||
TFTP_PREFIX=0
|
||||
BOOT_ORDER=0x1
|
||||
SD_BOOT_MAX_RETRIES=3
|
||||
NET_BOOT_MAX_RETRIES=5
|
||||
[none]
|
||||
FREEZE_VERSION=0
|
||||
|
||||
15
test/configs/bootconf-2020-04-16.txt
Normal file
15
test/configs/bootconf-2020-04-16.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
TFTP_IP=
|
||||
TFTP_PREFIX=0
|
||||
BOOT_ORDER=0x1
|
||||
SD_BOOT_MAX_RETRIES=3
|
||||
NET_BOOT_MAX_RETRIES=5
|
||||
[none]
|
||||
FREEZE_VERSION=0
|
||||
|
||||
13
test/configs/bootconf-2020-05-15.txt
Normal file
13
test/configs/bootconf-2020-05-15.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
ENABLE_SELF_UPDATE=1
|
||||
DISABLE_HDMI=0
|
||||
SD_BOOT_MAX_RETRIES=1
|
||||
USB_MSD_BOOT_MAX_RETRIES=1
|
||||
BOOT_ORDER=0xf41
|
||||
|
||||
13
test/configs/bootconf-2020-05-26.txt
Normal file
13
test/configs/bootconf-2020-05-26.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
ENABLE_SELF_UPDATE=1
|
||||
DISABLE_HDMI=0
|
||||
SD_BOOT_MAX_RETRIES=1
|
||||
USB_MSD_BOOT_MAX_RETRIES=1
|
||||
BOOT_ORDER=0xf41
|
||||
|
||||
13
test/configs/bootconf-2020-05-27.txt
Normal file
13
test/configs/bootconf-2020-05-27.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
ENABLE_SELF_UPDATE=1
|
||||
DISABLE_HDMI=0
|
||||
SD_BOOT_MAX_RETRIES=1
|
||||
USB_MSD_BOOT_MAX_RETRIES=1
|
||||
BOOT_ORDER=0xf41
|
||||
|
||||
13
test/configs/bootconf-2020-05-28.txt
Normal file
13
test/configs/bootconf-2020-05-28.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
ENABLE_SELF_UPDATE=1
|
||||
DISABLE_HDMI=0
|
||||
SD_BOOT_MAX_RETRIES=1
|
||||
USB_MSD_BOOT_MAX_RETRIES=1
|
||||
BOOT_ORDER=0xf41
|
||||
|
||||
11
test/configs/bootconf-2020-06-03.txt
Normal file
11
test/configs/bootconf-2020-06-03.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
ENABLE_SELF_UPDATE=1
|
||||
DISABLE_HDMI=0
|
||||
BOOT_ORDER=0xf41
|
||||
|
||||
11
test/configs/bootconf-2020-06-12.txt
Normal file
11
test/configs/bootconf-2020-06-12.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
ENABLE_SELF_UPDATE=1
|
||||
DISABLE_HDMI=0
|
||||
BOOT_ORDER=0xf41
|
||||
|
||||
11
test/configs/bootconf-2020-06-15.txt
Normal file
11
test/configs/bootconf-2020-06-15.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
ENABLE_SELF_UPDATE=1
|
||||
DISABLE_HDMI=0
|
||||
BOOT_ORDER=0xf41
|
||||
|
||||
11
test/configs/bootconf-2020-07-06.txt
Normal file
11
test/configs/bootconf-2020-07-06.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
ENABLE_SELF_UPDATE=1
|
||||
DISABLE_HDMI=0
|
||||
BOOT_ORDER=0xf41
|
||||
|
||||
11
test/configs/bootconf-2020-07-16.txt
Normal file
11
test/configs/bootconf-2020-07-16.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
ENABLE_SELF_UPDATE=1
|
||||
DISABLE_HDMI=0
|
||||
BOOT_ORDER=0xf41
|
||||
|
||||
11
test/configs/bootconf-2020-07-31.txt
Normal file
11
test/configs/bootconf-2020-07-31.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
ENABLE_SELF_UPDATE=1
|
||||
DISABLE_HDMI=0
|
||||
BOOT_ORDER=0xf41
|
||||
|
||||
11
test/configs/bootconf-2020-08-31.txt
Normal file
11
test/configs/bootconf-2020-08-31.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
ENABLE_SELF_UPDATE=1
|
||||
DISABLE_HDMI=0
|
||||
BOOT_ORDER=0xf41
|
||||
|
||||
11
test/configs/bootconf-2020-09-02.txt
Normal file
11
test/configs/bootconf-2020-09-02.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
ENABLE_SELF_UPDATE=1
|
||||
DISABLE_HDMI=0
|
||||
BOOT_ORDER=0xf41
|
||||
|
||||
11
test/configs/bootconf-2020-09-03.txt
Normal file
11
test/configs/bootconf-2020-09-03.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
DHCP_TIMEOUT=45000
|
||||
DHCP_REQ_TIMEOUT=4000
|
||||
TFTP_FILE_TIMEOUT=30000
|
||||
ENABLE_SELF_UPDATE=1
|
||||
DISABLE_HDMI=0
|
||||
BOOT_ORDER=0xf41
|
||||
|
||||
7
test/configs/bootconf-2020-10-02.txt
Normal file
7
test/configs/bootconf-2020-10-02.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=0
|
||||
POWER_OFF_ON_HALT=1
|
||||
DISABLE_HDMI=0
|
||||
BOOT_ORDER=0xf41
|
||||
|
||||
5
test/configs/bootconf-2020-10-28.txt
Normal file
5
test/configs/bootconf-2020-10-28.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
|
||||
5
test/configs/bootconf-2020-11-24.txt
Normal file
5
test/configs/bootconf-2020-11-24.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
|
||||
5
test/configs/bootconf-2020-12-11.txt
Normal file
5
test/configs/bootconf-2020-12-11.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
|
||||
5
test/configs/bootconf-2021-01-05.txt
Normal file
5
test/configs/bootconf-2021-01-05.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
|
||||
5
test/configs/bootconf-2021-01-11.txt
Normal file
5
test/configs/bootconf-2021-01-11.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
|
||||
5
test/configs/bootconf-2021-01-16.txt
Normal file
5
test/configs/bootconf-2021-01-16.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
|
||||
5
test/configs/bootconf-2021-02-16.txt
Normal file
5
test/configs/bootconf-2021-02-16.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
[all]
|
||||
BOOT_UART=0
|
||||
WAKE_ON_GPIO=1
|
||||
POWER_OFF_ON_HALT=0
|
||||
|
||||
@@ -23,7 +23,7 @@ trap cleanup EXIT
|
||||
check_reduce_size()
|
||||
{
|
||||
# Verify that unused bytes are set to 0xff if the size of the config file is reduced.
|
||||
echo "check_update $1 $2"
|
||||
echo "check_reduce_size $1 $2"
|
||||
|
||||
image="${script_dir}/$1"
|
||||
conf="${script_dir}/$2"
|
||||
@@ -61,7 +61,7 @@ check_reduce_size()
|
||||
|
||||
check_loopback()
|
||||
{
|
||||
echo "check_update $1 $2"
|
||||
echo "check_loopback $1 $2"
|
||||
|
||||
image="${script_dir}/$1"
|
||||
conf="${script_dir}/$2"
|
||||
@@ -141,8 +141,12 @@ check_conf_size_too_large()
|
||||
fi
|
||||
}
|
||||
|
||||
check_loopback "../firmware/old/beta/pieeprom-2019-07-15.bin" "bootconf-2019-07-15.txt"
|
||||
cleanup
|
||||
echo "Check config read and loopback read/write against reference config files"
|
||||
versions="$(cd configs; ls *.txt | sed 's/bootconf-//g' | sed 's/.txt//g')"
|
||||
for ver in ${versions}; do
|
||||
check_loopback "../firmware/old/beta/pieeprom-${ver}.bin" "configs/bootconf-${ver}.txt"
|
||||
cleanup
|
||||
done
|
||||
|
||||
check_update "../firmware/old/beta/pieeprom-2019-07-15.bin" "pieeprom-2019-07-15-freeze.bin" "bootconf-2019-07-15-freeze.txt"
|
||||
cleanup
|
||||
|
||||
Reference in New Issue
Block a user