mirror of
https://github.com/raspberrypi/rpi-update.git
synced 2026-01-20 21:13:38 +08:00
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=/ .
This commit is contained in:
10
README.md
10
README.md
@@ -113,6 +113,16 @@ are not currently booted from. Useful for installing firmware/kernel to a
|
||||
non-RPI customised image. Be careful, you must specify both options or neither.
|
||||
Specifying only one will not work.
|
||||
|
||||
#### `FW_SUBDIR`
|
||||
|
||||
sudo FW_SUBDIR=safe rpi-update
|
||||
|
||||
Allows the firmware to be installed to a subdirectory of /boot. This feature is
|
||||
intended to support the `os_prefix` setting that can be used in `config.txt`.
|
||||
By default, FW_SUBDIR is initialised to the value of `os_prefix` in effect when
|
||||
the device was booted, so as to overwrite the "running" firmware. To explicitly
|
||||
install with no subdirectory (to install into /boot), use `FW_SUBDIR=/`.
|
||||
|
||||
#### `BRANCH`
|
||||
|
||||
By default, clones the firmware files from the master branch, else uses the files
|
||||
|
||||
Reference in New Issue
Block a user