Merge branch 'new-readme' of git://github.com/Bengt/rpi-update

Conflicts:
	README.md
This commit is contained in:
James Nylen
2012-10-24 14:47:40 +00:00

View File

@@ -1,58 +1,67 @@
rpi-update
==========
# rpi-update
An easier way to update the firmware of your Raspberry Pi
An easier way to update the firmware of your Raspberry Pi.
Instructions
------------
## Preparations
There are two possible problems related to SSL certificates that may prevent
this tool from working.
- The time may be set incorrectly on your Raspberry Pi, which you can fix
by setting the time using NTP.
sudo ntpdate -u ntp.ubuntu.com
- The other possible issue is that you might not have the `ca-certificates`
package installed, and so GitHub's SSL certificate isn't trusted. If you are
on Debian, you can resolve this by typing:
sudo apt-get install ca-certificates
## Installing
To install the tool, run the following command:
<pre>
sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update
</pre>
sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && chmod +x /usr/bin/rpi-update
If you get errors relating to certificates, then the problem is likely due to one of two things. Either the time is set incorrectly on your Raspberry Pi, which you can fix by simply setting the time using NTP. The other possible issue is that you might not have the ca-certificates package installed, and so GitHub's SSL certificate isn't trusted. If you're on Debian, you can resolve this by typing:
## Updating
<pre>
sudo apt-get install ca-certificates
</pre>
Then, to update your firmware, just run the following command:
To then update your firmware, simply run the following command:
<pre>
sudo rpi-update
</pre>
To upgrade/downgrade to a specific firmware revision, specify it's Git hash as follows:
## Activating
<pre>
rpi-update <git hash>
</pre>
After the firmware has been sucessfully updated, you'll need to reboot to load
the new firmware.
If you'd like to set a different GPU/ARM memory split, then define gpu_mem in /boot/config.txt.
## Options
Expert options
--------------
If you'd like to set a different GPU/ARM memory split, then define `gpu_mem` in
`/boot/config.txt`.
There are a number of options for experts you might like to use, these are all environment variables you must set if you wish to use them.
To upgrade/downgrade to a specific firmware revision, specify its Git hash
(from the https://github.com/Hexxeh/rpi-firmware repository) as follows:
### SKIP_KERNEL
sudo rpi-update fab7796df0cf29f9563b507a59ce5b17d93e0390
#### Usage
### Expert options
SKIP_KERNEL=1 rpi-update
There are a number of options for experts you might like to use. These are all
environment variables you must set if you wish to use them.
#### Effect
#### `SKIP_KERNEL`
Will update everything EXCEPT the kernel.img files and the kernel modules. Use with caution, some firmware updates might depend a kernel update.
SKIP_KERNEL=1 sudo rpi-update
### ROOT_PATH/BOOT_PATH
Will update everything **except** the `kernel.img` files and the kernel modules.
Use with caution, some firmware updates might depend on a kernel update.
#### Usage
#### `ROOT_PATH` and `BOOT_PATH`
ROOT_PATH=/media/root BOOT_PATH=/media/boot rpi-update
ROOT_PATH=/media/root BOOT_PATH=/media/boot sudo rpi-update
#### Effect
Allows you to perform an "offline" update, ie update firmware on an SD card you're 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.
Allows you to perform an "offline" update, ie update firmware on an SD card you
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.