246 Commits

Author SHA1 Message Date
Phil Elwell
e30e6978b6 Add Caveats section to README.md
Add a list of caveats to the README, with the intention of linking to it from any suggestion to run rpi-update.
2025-12-18 11:13:28 +00:00
Dom Cobley
0407f61fc3 rpi-update: Improve check and warning message for initramfs
Previously we were checking for an explicit ramfsfile= entry in config.txt,
but these days using auto_initramfs=1 is more common and not checked for.

Use device tree for check instead which should handle any scheme.
2025-08-04 19:30:25 +01:00
Phil Elwell
5114bb59da Remove bcm2711_64 as a build
With the dropping of the 32-bit bcm2711 (v7l) kernel, the generic 64-bit
build is now renamed to bcm2711 and the bcm2711_64 disappears; don't try
to download it.

See: https://github.com/raspberrypi/rpi-update/issues/47

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
2025-04-15 20:52:04 +01:00
Tim Gover
bb117f13b1 Merge pull request #46 from timg236/bcm2711-rt
Add support for bcm2711_rt kernel configuration
2025-03-25 19:34:40 +00:00
Dom Cobley
1dd909e2c8 Skip invalid hash when using custom FW_REPOLOCAL
There is a mode where you can run rpi-update without a network,
if you have a local copy of the repo files. e.g.

SKIP_DOWNLOAD=1 SKIP_REPODELETE=1 FW_REPOLOCAL=/home/dom/.rpi-firmware rpi-update

That is currently not usable because of the git hash check. So fix it.
2025-03-25 13:00:00 +00:00
Tim Gover
3b23a18754 Add support for bcm2711_rt kernel configuration
If WANT_64BIT_RT=1 is defined then download the
PREEMPT_RT variant of kernel8. The kernel is called
kernel8_rt.img
2025-03-25 07:16:39 +00:00
Andrew Scheller
7ce981c212 Ensure that the GitHub API token (stored in $CURL_OPTIONS_API) is passed to every GitHub API call 2024-09-10 14:27:23 +01:00
Andrew Scheller
a50ce4cbc6 Rename some URI variables for clarity 2024-09-10 14:27:23 +01:00
Andrew Scheller
3ef4adc92f Rename REPO_* variables to FIRMWARE_REPO_* 2024-09-10 14:27:23 +01:00
Andrew Scheller
096fb1a1fe Make setting the UPDATE_REPO_URI variable consistent with the other REPO_URI variables 2024-09-10 14:27:23 +01:00
Andrew Scheller
db82239f8d Add a LINUX_REPO_URI variable 2024-09-10 14:27:23 +01:00
Andrew Scheller
30ddca0584 Rename REDIRECTOR variable to REDIRECTOR_URI 2024-09-10 14:27:23 +01:00
Volkert de Buisonjé
f6fa0ed03e Update README.md to reflect change in newer OSes based on Debian Book…
See https://github.com/raspberrypi/rpi-update/pull/12
2024-05-07 14:02:45 +01:00
Dom Cobley
87db3f6e08 rpi-update: Fix missing default to master from last commit 2024-04-24 14:44:19 +01:00
Dom Cobley
f8755ab233 rpi-update: Remove deprecated BRANCH variable
BRANCH currently applies to both firmware and bootloader but typically they won't have
branches of the same name (e.g there is no stable branch of bootloader).

So remove the option and encourage using parameters for the two branches
2024-04-24 13:07:18 +01:00
Tim Gover
20942706ca bootloader: Use flashrom for bootloader updates on BCM2712 2024-02-20 15:03:47 +00:00
Dom Cobley
ef186b90da rpi-update: Skip updates to /opt if not in repo
The /opt tree is a build of the userland repo which is deprecated,
and is no longer provided by firmware/rpi-firmware repos.

Handle skipping these if they are missing.
2024-01-30 20:18:39 +00:00
Tim Gover
bbc8e9e388 Skip bootloader updates if rpi-eeprom package is too old
Skip the bootloader updates without stopping rpi-update of the firmware

See: https://github.com/raspberrypi/rpi-update/issues/28
2024-01-08 15:07:39 +00:00
Tim Gover
e85c4b6906 Switch SKIP_BOOTLOADER default to 0 2023-12-14 13:01:40 +00:00
Tim Gover
2a57b603df rpi-update: bootloader: Only remove pieeprom*.bin and recovery.bin
When switching to an explicit branch only remove the pieeprom and
recovery.bin files. On Pi4 this preserves the VL805 firmware binaries.

It's unlikely that these will be updated so just preserve whatever
was there instead of implementing an update mechanism for VL805
binaries.
2023-12-14 13:01:40 +00:00
Tim Gover
3abf3bcdb4 rpi-update: Update README for SKIP bootloader 2023-12-14 13:01:40 +00:00
timg236
62ef428cf9 rpi-update: Add support for updating the bootloader EEPROM (#24)
* Download the latest EEPROM release to the local
  /lib/firmware/raspberrypi/bootloader directory
* Update the rpi-eeprom tools
* Remove the old eeprom_version check
* Check bootloader commits as well as firwmware commits
* SKIP_BOOTLOADER default to 1 for now until fully tested
* Update recovery.bin if the bootloader revision has changed.
2023-12-11 18:48:40 +00:00
kralo
02d49298bd Update rpi-update (#23)
Warn about the most probable when update failed

I got to look around 10 minutes having ca-certificate and a current time, but no internet...
2023-12-06 19:14:24 +00:00
Phil Elwell
cf120f0a76 rpi-update: Allow some explicit non-custom kernels (#20)
rpi-update tries to avoid rendering a Pi non-bootable by detecting
when a custom kernel is being used. Since dtb filenames are not
qualified with the kernel name, overwriting the dtb files for a
custom kernel but leaving the custom kernel unchanged may stop the
Pi booting.

However, adding kernel=kernel8.img to config.txt is a way to select a
kernel with 4kB pages on a Pi 5. Treat kernel8.img and kernel_2712.img
as non-custom kernels, and also allow SKIP_KERNEL=0 to be used to
force the kernel to be updated.
2023-10-13 15:42:15 +01:00
Dave Stevenson
fc0d8daaf7 rpi-update: Retrieve 100 artifact results from Github.
Github pages the artifact results, by default only giving the latest
30, but can be increased to 100 per page. If your build has fallen
off that list, then tough luck.

Ideally we want to iterate through the pages as well by
adding &page=N, but that can come later.

https://github.com/raspberrypi/rpi-update/issues/21
2023-10-13 14:43:04 +01:00
Phil Elwell
cc8113fbe8 rpi-update: Cope with incorrect Pi 5 kernel names
The kernel autobuilds have been building kernel2712.img, not kernel_2712.img. Handle the incorrect name as well.
2023-10-13 11:21:53 +01:00
popcornmix
09d29d17db Merge pull request #19 from popcornmix/branch_hash
rpi-update: Extract git hash from artifact build from branch
2023-10-10 11:18:43 +01:00
Dom Cobley
9d8ad1e2f9 rpi-update: Extract git hash from artifact build from branch
This allows rpi-update rpi-6.6.y to correctly skip if no changes or run if there are changes.

See: https://forums.raspberrypi.com/viewtopic.php?p=2138683#p2138683
2023-10-06 19:12:52 +01:00
Dom Cobley
e9412a1cc1 rpi-update: Also include bcm2712 in build artifacts downloaded 2023-10-06 19:12:52 +01:00
Phil Elwell
ec441a8eed rpi-update: More complete Pi 5 support
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
2023-09-29 13:45:29 +01:00
Dom Cobley
cbaf10c16e rpi-update: Default to /boot/firmware if mountpoint exists
Future packaging of the linux kernel results in the mountpoint
of the boot partition moving to /boot/firmware. Lets handle that.
2023-08-31 14:03:57 +01:00
Dom Cobley
4a73c45eb6 rpi-update: Warn against unsupported command line parameters
There seem to be users who think passing '-y' or '-v' will do something useful.
Explicitly warn against this.
2023-07-24 17:08:05 +01:00
popcornmix
495dde84b3 Merge pull request #9 from popcornmix/artifact
README: Provide more details on targets for rpi-update
2023-02-06 18:47:01 +00:00
Dom Cobley
6bee884ebf README: Provide more details on targets for rpi-update 2023-01-25 17:11:23 +00:00
Phil Elwell
ff9cc42ea1 Merge pull request #5 from popcornmix/initrd
rpi-update: Warn if initramfs is configured
2023-01-25 16:55:58 +00:00
Phil Elwell
e388998678 Merge pull request #7 from popcornmix/artifact
Support updating from linux repo github artifacts
2023-01-25 15:50:09 +00:00
Dom Cobley
08ac3c2368 rpi-update: Support updating from an artifact archive 2023-01-25 15:35:22 +00:00
Dom Cobley
e28aa80194 rpi-update: Only copy kernel files if they exist 2023-01-20 20:02:01 +00:00
Dom Cobley
24e0eeb75a rpi-update: Add SKIP_FIRMWARE option 2023-01-20 20:02:01 +00:00
Dom Cobley
94a757bff9 rpi-update: Also consider BOOT_PATH for start4.elf
You only actually need start.elf files in BOOT_PATH, not necessarily in FW_PATH
2023-01-20 20:02:01 +00:00
Dom Cobley
23fb846604 rpi-update: Warn if initramfs is configured 2022-12-19 11:58:33 +00:00
Phil Elwell
03c32f0340 Merge pull request #4 from raspberrypi/kernel64
rpi-update: Only update 32/64 bit kernel and modules if currently present
2022-11-18 17:41:38 +00:00
Dom Cobley
e282169788 rpi-update: Only update 32/64 bit kernel and modules if currently present
We've seen reports of 64-bit distributions that rely on the absence of a 32-bit kernel
to get firmware to switch to 64-bit mode (rather that explicitly using arm_64bit=1),
and that assumption is broken when adding 32-bit kernels to the boot directory

Signed-off-by: Dom Cobley <popcornmix@gmail.com>
2022-11-18 17:01:28 +00:00
Dom Cobley
9c9259c0ca rpi-update: Avoid warning when vcgencmd not present 2022-11-18 16:57:04 +00:00
Dom Cobley
cfeffb48eb Support pruning compressed modules too 2022-04-13 15:46:53 +01:00
Dom Cobley
a2bb6ce989 rpi-update: More specific match on deleting firmware elf files
A user may have a custom start_file= entry and we should avoid deleting that
if it has a custom name
2022-01-04 15:35:27 +00:00
popcornmix
9cfb263a7a README: Update links to raspberrypi repo 2021-10-18 13:39:46 +01:00
popcornmix
f1734abc1e rpi-update: Switch to using raspberrypi repo 2021-10-18 13:35:40 +01:00
Andrew Scheller
3a30e618ad Add message explaining how to force an update (#317)
* Add message explaining how to force an update

* Tweak wording
2021-06-18 11:00:07 +01:00
RPI News
1656f78943 Replace Raspian with Raspberry Pi OS (#315) 2021-04-26 11:35:41 +01:00