Commit Graph

217 Commits

Author SHA1 Message Date
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
popcornmix
cefa51e73b Check for kernel7l or kernel8 for pi4 support
Latest 64-bit OS doesn't ship kernel7l
2021-01-13 16:22:07 +00:00
Andrew Ruthven
06a1d9a641 Handle /proc/cpuinfo not existing (#308)
I run rpi-update within a chroot on my NFS server for my diskless
Raspberry Pis, /proc/cpuinfo isn't in the chroot. This patch handles
that more gracefully.
2020-08-17 11:01:01 +01:00
Viktor Szakats
d4d7c377a4 always set user-agent for api.github.com requests (#305)
* always set user-agent for api.github.com requests

This makes the updater work in environments where user agent is disabled via `.curlrc` (or similar means), which would otherwise run into an `Invalid hash given` error.

Ref: https://developer.github.com/v3/#user-agent-required

* move `-A curl` to a variable
2020-06-10 13:23:56 +01:00
popcornmix
d2c11cd989 Handle unknown bootloader date 2020-06-01 15:12:53 +01:00
Phil Elwell
c32c752699 Support FW_SUBDIR a.k.a. os_prefix (#295)
* Support FW_SUBDIR a.k.a. os_prefix

The FW_SUBDIR environment variable is equivalent to the os_prefix config
setting, except that it is required to be the name of a directory. By
default, rpi-update will initialise FW_SUBDIR from the os_prefix setting
used to boot the device. A different subdirectory can be updated by
specifying a value for FW_SUBDIR in the environment, e.g.

    sudo FW_SUBDIR=safe rpi-update

To specify explicitly that no subdirectory is to be used, i.e. to force
installation into /boot, use FW_SUBDIR=/ .
2020-04-09 14:56:36 +01:00
satmandu
0916287b79 Allow user to skip updating VideoCore libraries (#292)
* Allow user to skip updating VideoCore libraries

Users who are running non-raspbian distributions, especially on other architectures
like arm64, may already have videocore libraries and applications compiled for arm64.
These will get overwritten unless updating the VideoCore libraries is skipped.

This implements a SKIP_VCLIBS option to allow that step to be skipped, which may be 
used alongside the SKIP_SDK option. This is also referred to in a suggestion for a
SKIP_USERLAND option here: https://github.com/Hexxeh/rpi-update/pull/221#issuecomment-243559009

Signed-off-by: Satadru Pramanik <satadru@umich.edu>
2019-12-13 15:19:41 +00:00
timg
8abc084233 Inform the user if the bootloader EEPROM is out of date (#286)
It's normally desirable to use the latest bootloader when testing the
latest firmware releases. rpi-eeprom-update is specific to Raspbian but
so rpi-update can't easily do the EEPROM update itself without
duplicating all the functionality. Instead, just indicate that the
bootloader is out of date unless FREEZE_VERSION has been specified.

N.B. The MIN_VERSION is set to the Sep-10 release which was
to stable today on Sep 18.
2019-09-20 19:15:07 +02:00
popcornmix
0f15053258 Handle partition size check when partition is nfs mount 2019-09-19 11:12:45 +01:00
popcornmix
54aa8b1f4d Skip v8+ modules when WANT_PI4=0 2019-09-03 19:21:32 +01:00
popcornmix
a0c5de1e32 Sanity check contents of updated rpi-update
See: https://github.com/Hexxeh/rpi-update/issues/285
2019-07-22 18:25:08 +01:00
Andrew Ruthven
d48253f83a Allow disabling the partition check logic (#283)
If you're running this script in a chroot on a server (NFSROOT), then
the partition check logic will fail.
2019-07-16 13:26:01 +01:00
popcornmix
cd8503ef3e Fix wildcard that missed start.elf/fixup.dat 2019-06-25 12:36:25 +01:00
popcornmix
882f5c188d Add support for Pi4 and warnings for dangerous updates
WANT_PI4=1 allows update from a Pi3 system but should be
used with caution.
2019-06-24 15:42:27 +01:00
Andrew Scheller
4246effd99 Small refactoring and tidyups (#279) 2019-06-11 23:29:10 +01:00
Andrew Scheller
bd9b831ffd Tweak wording in README (#278) 2019-06-11 22:11:56 +01:00
popcornmix
2271cc0448 Update readme to warn about pi-hole 2019-05-13 12:04:36 +01:00
popcornmix
e29bc9a868 Revert "Nullify user-defined --write-out option in cURL (#265)"
This reverts commit b431ad7cac.
2018-12-05 23:37:54 +00:00
popcornmix
f268411378 Revert "Add quoting around -w option of curl"
This reverts commit f2493af31d.
2018-12-05 23:37:47 +00:00
popcornmix
f2493af31d Add quoting around -w option of curl 2018-12-05 16:53:34 +00:00
Daniel Li
b431ad7cac Nullify user-defined --write-out option in cURL (#265)
* Nullify user-defined --write-out option in cURL
2018-12-05 15:18:57 +00:00
Nonflammable
d6af6ca191 Added RPI_REBOOT=1 expert option description. (#264) 2018-10-09 16:08:47 +01:00
popcornmix
866c310bab Add RPI_REBOOT option
See: https://github.com/Hexxeh/rpi-update/issues/263
2018-06-21 13:07:16 +01:00
popcornmix
551fe49161 Avoid exiting early when parsing git hash
See: https://github.com/Hexxeh/rpi-update/issues/245
2017-06-04 17:18:30 +01:00
popcornmix
53ac136db3 Avoid using gnu specific strtonum 2017-05-30 17:15:35 +01:00
popcornmix
a8e2f8503b Include a specific check for github API limit being hit 2017-05-30 14:57:09 +01:00
popcornmix
72cb59c7f5 With JUST_CHECK indicate when firmware is being downgraded 2017-05-30 13:44:16 +01:00
popcornmix
1ec851c437 Convert to long hashes before comparing with last hash from file
See: https://github.com/Hexxeh/rpi-update/issues/243
2017-05-30 13:44:05 +01:00
Alexander Graf
cabadf0b91 Support for GitHub API tokens added (fixes Hexxeh/rpi-update#151) (#237)
* Support for GitHub API tokens added (fixes Hexxeh/rpi-update#151)

Use it like this:

$ sudo GITHUB_API_TOKEN=“<my-api-token”> rpi-update

* Added details about the GITHUB_API_TOKEN option to README

* Corrected headline level
2017-03-15 14:16:18 +00:00
maxnet
d74ace7328 Imply SKIP_KERNEL=1 when custom kernel file name is set (#235)
Skip installation of kernel and .dtb files if the user has a
custom kernel.

Prevents users ending up with a bricked system that hangs on
rainbow screen, because the 4.9.x .dtb files do not work
with a 4.4.x custom kernel.

Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
2017-03-11 13:59:56 +00:00