summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wolf <gwolf@gwolf.org>2018-07-18 17:57:39 -0500
committerGunnar Wolf <gwolf@gwolf.org>2018-07-18 17:57:39 -0500
commit34ae4edb004f23a773875c81e9a888379101e579 (patch)
treeda67da44001e5771f551382a9344633e4eb2e755
parentfc3d384e860d18d0985dbf35e149b4f27c16dd49 (diff)
Updating README
-rw-r--r--.gitignore3
-rw-r--r--README.md69
2 files changed, 54 insertions, 18 deletions
diff --git a/.gitignore b/.gitignore
index f20ba5f..2bdeb29 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
-# suggested build result filename
+# suggested build result and log filenames
raspi3.img
+raspi3.log
# after compress.sh
compr.img
compr.img.bz2
diff --git a/README.md b/README.md
index be49fc5..2d0a8ab 100644
--- a/README.md
+++ b/README.md
@@ -9,34 +9,69 @@ See https://wiki.debian.org/RaspberryPi3#Preview_image for where to obtain the l
## Option 2: Building your own image
-If you prefer, you can build a Debian buster Raspberry Pi 3 image yourself. For
-this, first install the
-[requirements](http://git.liw.fi/vmdb2/tree/README)
-of vmdb2. Then run the following:
+If you prefer, you can build a Debian buster Raspberry Pi 3 image
+yourself. If you are reading this document online, you should first
+clone this repository:
```shell
git clone --recursive https://github.com/Debian/raspi3-image-spec
cd raspi3-image-spec
```
+For this you will first need to install `vmdb2`. As of July 2018, this
+repository still ships vmdb2, but will probably be deprecated in the
+future. You can choose:
+
+- `vmdb2` is available as a package for Testing and Unstable. If your
+ Debian system is either, quite probably installing it systemwide is
+ the easiest and most recommended way.
+
+- If you are using Debian stable (stretch) or for some reason prefer
+ not to install the package, `vmdb2` is presented as a submodule in
+ this project. First install the
+ [requirements](http://git.liw.fi/vmdb2/tree/README) of `vmdb2`:
+
+ ```shell
+ apt install kpartx parted qemu-utils qemu-user-static python3-cliapp \
+ python3-jinja2 python3-yaml
+ ```
+
+ Note that `python3-cliapp` is not available in Stretch, but as it
+ does not carry any dependencies, can be manually installed by
+ [fetching its .deb package ](https://packages.debian.org/buster/python3-cliapp)
+ and installing it manually.
+
Then edit [raspi3.yaml](raspi3.yaml) to select the Debian repository that you
want to use:
-- If you want to use the snapshot with which the build was tested, use
- `http://snapshot.debian.org/archive/debian/20171007T213914Z/`. This is what
- is pre-configured in raspi3.yaml. However, due to a [missing
- feature](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=763419) on
- snapshots, to make the build work, you have to disable an expiration check
- by APT. To do so, edit raspi3.yaml to replace all
- `apt-get` invocations with `apt-get -o Acquire::Check-Valid-Until=false`
-- If you want to use the latest versions of each software, you can replace
- `http://snapshot.debian.org/archive/debian/20171007T213914Z/` in raspi3.yaml
- with `http://deb.debian.org/debian`. Of course, this means that the
- build may break or fail to boot if there are regressions in the latest
- versions.
+- The images now build correctly with the main repository! If you want
+ to build your image following the regular Testing (*buster*)
+ distribution, leave `raspi3.yaml` as it is
+ - Stable (*stretch*) is not supported, as we require linux ≥ 4.14
+ and raspi3-firmware ≥ 1.20171201-1.
+
+- Testing is, however, constantly changing. You might want to choose a
+ specific point in its history to build with. To do this, locate the
+ line with `qemu-debootstrap: buster` in `raspi3.yaml`. Change
+ `mirror: http://deb.debian.org/debian` to `mirror:
+ http://snapshot.debian.org/archive/debian/20171007T213914Z/`.
+ - Due to a
+ [missing feature](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=763419)
+ on snapshots, to make the build work, you have to disable an
+ expiration check by APT. To do so, edit raspi3.yaml to replace
+ all `apt-get` invocations with `apt-get -o
+ Acquire::Check-Valid-Until=false`
Once you have edited raspi3.yaml, you can generate the image by
-issuing the following:
+issuing the following. If you are using the systemwide `vmdb2`:
+
+```shell
+umask 022
+sudo env -i LC_CTYPE=C.UTF-8 PATH="/usr/sbin:/sbin:$PATH" \
+ vmdb2 --output raspi3.img raspi3.yaml --log raspi3.log
+```
+
+Or, if you are using it from the submodule in this repository
```shell
umask 022