Commit Graph

691 Commits

Author SHA1 Message Date
Tim Gover
a2fb4ed28d rpi-eeprom-config: Process bootcode arg with other file replacements
It should be possible to change the config, public key, signature
and signed bootcode in a single operation.
2024-04-17 10:46:10 +01:00
Tim Gover
ca7a39efe9 pieeprom-2024-04-15: 2711: Promote stable release to DEFAULT 2024-04-16 09:55:05 +01:00
Tim Gover
c94506e598 pieeprom-2024-04-15: 2711: Fix tryboot mode in secure-boot - STABLE
Fix an issue where the tryboot flag was being reset and lost during
the secure-boot initialization.
2024-04-15 16:52:48 +01:00
Cody Scott
61023cbd32 Remove variable expansion in arithmetic
https://www.shellcheck.net/wiki/SC2004
2024-04-05 16:55:43 +01:00
Tim Gover
d8abe8c67d 2024-04-05: 2712: HAT+ fixes for max-current, custom CA cert for net install and enable over-clocking to > 3GHz (latest)
* bootloader: clock_2712: Remove restriction on arm_freq <= 3000
  See: https://github.com/raspberrypi/firmware/issues/1876
* arm_dt: Update max_current to match HAT value
* arm_dt: Remove unused legacy parameters (core_freq, arm_freq, uart0_clkrate and cache_line_size)
* Add support for custom CA cert for network install
    You need to specify
    HTTP_HOST=myhost.com
    HTTP_PATH=/path/to/files
    HTTP_CACERT_HASH=<hash>

    where <hash> is a sha256 hash of the der encoded ca certificate.
    CA cert is added using rpi-eeprom-config.
* Optimise Vbat current draw with charging disabled
* Display OTP boot status in UART log messages.
* Preliminary support for secure-boot OTP provisioning.
* Update PCIE DET_WAKE pinmux for D0 products
2024-04-05 12:39:42 +01:00
Tim Gover
14f05613b4 tools: rpi-eeprom-digest: Improve docs for secure-boot
Make it clearer that rpi-eeprom-digest is used create optionally
signed hashes for binary files.

For secure-boot the update-pieeprom.sh wrapper must be used
because only the boot configuration is signed by the customer
key rather than the entire SPI flash image.
2024-03-27 14:45:28 +00:00
Tim Gover
07bf72a919 tools: Preliminary tool support for signed-boot on 2712
Update rpi-eeprom-config to support replacement of bootcode.bin
with a customer counter-signed version.

Add a new rpi-sign-bootcode script which enables bootcode.bin
to be counter-signed with the customer key.

N.B. Signed boot on 2712 requires newer firmware which is currently
under development and has not been released.
2024-03-27 14:45:28 +00:00
Tim Gover
b745226b41 tools: rpi-otp-private-key: Update to same version as usbboot 2024-03-01 17:05:33 +00:00
Peter Harper
c478689de0 Add new cacertder option
Allows you to add a custom ca cert to an image.

Note: This option is only relevant for newer (as yet unreleased)
bootloader images that support custom CA certs and reserve a space for
this in the flash image.
2024-03-01 13:26:06 +00:00
Tim Gover
8c67b27665 rpi-eeprom-update: Only check for flashrom during an update
There's no need to check for flashrom when querying the current
version, removing pending updates etc.

See: https://github.com/raspberrypi/rpi-eeprom/issues/548
2024-03-01 10:28:58 +00:00
Tim Gover
18620870d7 rpi-eeprom-update: Output warnings to stderr
Output non-fatal warnings to stderr in order to avoid breaking
programs like rpi-eeeprom-config which parse the output of
rpi-eeprom-update.

Fixes: https://github.com/raspberrypi/rpi-eeprom/issues/548
2024-03-01 10:28:58 +00:00
Tim Gover
11c64e3721 rpi-eeprom-update: Use flashrom by default on Pi5
Use flashrom by default on Pi5 unless the the RPI_EEPROM_USE_FLASHROM
environment variable has been set to zero OR flashrom is not available.
2024-02-21 18:02:37 +00:00
Tim Gover
36e58db5c2 imager-release: 2712: Bump to 2024-02-16 v2024.02.16-2712 2024-02-18 22:23:26 +00:00
Tim Gover
b1a715b256 2024-02-16: 2712: u-boot loading and thermal throttling fixes (latest) (default)
* arm_loader: Move non-kernels back to 512KB
  See: https://github.com/raspberrypi/firmware/issues/1868

* Limit throttled frequency to OS requested frequency rather than config.txt frequency.
   See: https://github.com/raspberrypi/rpi-eeprom/issues/518
2024-02-16 15:45:05 +00:00
Tim Gover
0e8ecbcf83 2024-02-14: 2712: Adjust SDRAM refresh based on temperature (latest)
* Adjust the SDRAM refresh interval based on the temperature. This
  addresses the gap in performance between the 8GB and 4GB variants.
  See https://github.com/raspberrypi/firmware/issues/1864
* Preliminary support for signed boot.
2024-02-14 08:58:47 +00:00
timg236
d4918d4d4c Merge pull request #539 from timg236/pieeprom-2024-02-08-2712
pieeprom-2024-02-08: 2712: Adjust SDRAM refresh based on temperature (latest)
2024-02-08 12:25:09 +00:00
Tim Gover
b5c7f1bee6 pieeprom-2024-02-08: 2712: Adjust SDRAM refresh based on temperature (latest)
* Adjust the SDRAM refresh interval based on the temperature. This
  addresses the gap in performance between the 8GB and 4GB variants.
  See https://github.com/raspberrypi/firmware/issues/1854
* Preliminary support for signed boot
2024-02-08 11:55:52 +00:00
timg236
c987375f1d Merge pull request #538 from timg236/pieeprom-2024-02-05
pieeprom-2024-02-05: 2712: Add support for HAT+ POE HATs (latest)
2024-02-05 16:53:46 +00:00
Tim Gover
99cb0bdaa2 pieeprom-2024-02-05: 2712: Add support for HAT+ POE HATs (latest)
* Add support for probing HAT+ POE HATs
* Implement DWC3 specific XHCI quirks
2024-02-05 15:18:32 +00:00
timg236
a8f2eb75b5 Merge pull request #537 from mocknen/warn-flashrom-not-found
Print warning when flashrom is not found, instead of silently ignorin…
2024-02-05 09:22:05 +00:00
Shogo Yamazaki
606c5d25e5 Print warning when flashrom is not found, instead of silently ignoring it 2024-02-04 11:50:06 +09:00
Peter Harper
88b33ab030 Merge pull request #528 from peterharperuk/nvme_boot_wd_fix
2024-01-24: NVMe boot fix for WD NVMe (latest)
2024-01-24 14:25:50 +00:00
Peter Harper
a7f982962b 2024-01-24: NVMe boot fix for WD NVMe (latest)
* Add a workaround for an issue seen when booting with WD Blue SN550 NVMe SSD
2024-01-24 12:48:26 +00:00
timg236
9df346bc1c Merge pull request #525 from timg236/pieeprom-2024-01-22-2712
2024-01-22: 2712: Fixes for small boot.img files + SD CD indicator (latest)
2024-01-22 15:57:58 +00:00
Tim Gover
68fca2166b 2024-01-22: 2712: Fixes for small boot.img files + SD CD indicator (latest)
* Fix issue boot.img end sector check - STABLE
  See:  https://github.com/raspberrypi/rpi-eeprom/issues/521
* Fix handling of files that use the last cluster in the partition
  See: https://github.com/raspberrypi/rpi-eeprom/issues/521
* Fix SD card detection
  See: https://github.com/raspberrypi/rpi-eeprom/issues/523
2024-01-22 15:54:03 +00:00
timg236
eca47c5f4c Merge pull request #524 from timg236/pieeprom-2024-01-22-2711
pieeprom-2024-01-22: 2711: Fix issue boot.img end sector check - STABLE
2024-01-22 10:58:02 +00:00
Tim Gover
097e2d0573 pieeprom-2024-01-22: 2711: Fix issue boot.img end sector check - STABLE
See https://github.com/raspberrypi/rpi-eeprom/issues/521
2024-01-22 10:51:22 +00:00
timg236
4b8e875510 Merge pull request #522 from timg236/pieeprom-2024-01-18-2711
2024-01-18: 2711: Fix issue with minimal sized FAT partition - STABLE
2024-01-18 20:10:04 +00:00
Tim Gover
21a78a91de 2024-01-18: 2711: Fix issue with minimal sized FAT partition - STABLE
* Fix handling of files that use the last cluster in the partition
  https://github.com/raspberrypi/rpi-eeprom/issues/521
2024-01-18 20:08:20 +00:00
timg236
cc020609fb Merge pull request #520 from timg236/pieeprom-2024-01-15-2712
pieeprom-2024-01-15: 2712: Add support for network-install (latest)
2024-01-16 16:03:48 +00:00
Tim Gover
d5f1ab30fa pieeprom-2024-01-15: 2712: Add support for network-install (latest)
* Add support for Network Install
* Preliminary D0 firmware support
2024-01-15 19:35:12 +00:00
timg236
8855da9889 Merge pull request #517 from timg236/pieeprom-2024-01-05-2712-default
Update default release to 2024-01-05 and mark as an automatic update
2024-01-08 11:43:57 +00:00
Tim Gover
a5b4f91caf Update RPi Imager release to 2024-01-05 2024-01-08 10:30:01 +00:00
Tim Gover
7232154170 pieeprom-2024-01-05: 2712: Promote to default (automatic update) 2024-01-08 10:24:11 +00:00
TrevorM
759460850c Updated documentation links
Documentation anchor IDs had been changed as they aren't Pi 4 specific now.
v.2024.01.05-2712
2024-01-08 09:29:00 +00:00
timg236
9e0bffb291 Merge pull request #515 from timg236/pieeprom-2024-05-01-2712
pieeprom-2024-01-05: 2712: Fix handling of FAT files without LFNs.
2024-01-06 08:35:44 +00:00
Tim Gover
258d0114c0 pieeprom-2024-01-05: 2712: Fix handling of FAT files without LFNs.
* Fix issues with SFN entries sometimes being treated as LFNs
  see https://github.com/raspberrypi/rpi-eeprom/issues/514
* Add a dedicated message for "M.2 HAT" not being found instead of
  the generic 'unsupported boot order' message when NVMe boot is
  skipped.
2024-01-06 08:33:36 +00:00
timg236
0cd761bc84 Update bug_report.yml 2024-01-05 15:58:49 +00:00
timg236
72cedfe5ee Merge pull request #512 from timg236/pieeprom-2023-12-14-default
pieeprom-2023-12-14: 2712: Promote pieeprom-2023-12-14 to default
2023-12-18 17:27:17 +00:00
Tim Gover
14e934cee3 pieeprom-2023-12-14: 2712: Promote pieeprom-2023-12-14 to default 2023-12-18 17:24:57 +00:00
Tim Gover
e407fb0030 rpi-eeprom-update: Tweak chipNotSupported message
Tweak the message to look like like an error.
2023-12-18 17:18:52 +00:00
timg236
b405ed7465 Merge pull request #511 from lurch/patch-1
rpi-eeprom-update: Fix package-names in error messages
2023-12-18 17:11:57 +00:00
Pavel Djundik
ef0cfffced Check that strings exists, suggest installing binutils 2023-12-18 17:11:09 +00:00
Andrew Scheller
a66e79ba99 rpi-eeprom-update: Fix package-names in error messages
Looks like some things have moved around in Bookworm.
2023-12-18 16:22:09 +00:00
Andrew Scheller
745eabf90e Fix typo in warning message 2023-12-18 11:55:29 +00:00
timg236
043841636c Merge pull request #507 from timg236/pieeprom-2023-12-14-2712
pieeprom-2023-12-14: 2712 + update imager release
2023-12-14 17:07:47 +00:00
Tim Gover
3f325bd482 pieeprom-2023-12-14: 2712: Fix boot partition parameter (latest)
* Fix an issue where the boot partition parameter in PM_RSTS was cleared
  before being checked.
  https://github.com/raspberrypi/firmware/issues/1853
* Add a specific fatal error pattern for RP1 not found - 4 long - 3 short
2023-12-14 17:04:22 +00:00
Tim Gover
52c5d89d48 imager: Update imager release to 2023-12-06 2023-12-12 10:27:19 +00:00
timg236
77402b6527 Merge pull request #506 from timg236/pieeprom-2023-12-06-default
pieeprom-2023-12-12: 2712: Promote 2023-12-06 to default release.
v2023.12.06-2712
2023-12-12 09:54:53 +00:00
Tim Gover
9c8d97d6a2 pieeprom-2023-12-12: 2712: Promote 2023-12-06 to default release.
Promote this bootloader to the default release and remove the
executable bit from the file.
2023-12-12 09:16:32 +00:00