aboutsummaryrefslogtreecommitdiff
path: root/images/cubieboard-2/README.md
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2018-10-25 13:39:22 -0700
committerJakob Odersky <jakob@odersky.com>2018-10-25 13:39:22 -0700
commit802e1268022d8398c565601fd324994e5eab5ca8 (patch)
tree8613df8340e9f7b5a6e27c654797f18853948114 /images/cubieboard-2/README.md
parentcfeb980e870a799676f07bb393c4957cfdd9e3a0 (diff)
downloadinfra-802e1268022d8398c565601fd324994e5eab5ca8.tar.gz
infra-802e1268022d8398c565601fd324994e5eab5ca8.tar.bz2
infra-802e1268022d8398c565601fd324994e5eab5ca8.zip
Add base image scripts for single-board computers
Diffstat (limited to 'images/cubieboard-2/README.md')
-rw-r--r--images/cubieboard-2/README.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/images/cubieboard-2/README.md b/images/cubieboard-2/README.md
new file mode 100644
index 0000000..9662bdf
--- /dev/null
+++ b/images/cubieboard-2/README.md
@@ -0,0 +1,23 @@
+# Minimal Debian Image for the Cubieboard 2
+
+Makefile for building a bootable image that may be directly flashed to a memory card and used with a Cubieboard 2.
+
+The image contains a very basic Debian installation with an OpenSSH server. It is also self-expanding: on first boot, the partitions contained in the image will be expanded to fill the availale size of the memory card.
+
+## Requirements
+
+Import (and trust) u-boot release key:
+
+ gpg --recv-keys E872DB409C1A687EFBE8633687F9F635D31D7652
+
+## Build
+
+*Note: creating the image requires super user privileges because `chroot` is invoked as part of the build process. The bootloader (in bootloader/) may be built without root.*
+
+Run the following to build a flashable image:
+
+ sudo make SSH_KEY_FILE=<path>
+
+where `SSH_KEY_FILE` is the absolute path of an SSH public key that will be used to login. SSH password login will be disabled, although the root account will nevertheless have its password set to "guest".
+
+This results in two image files `image.raw` and `image.bmap`. The former may be directly flashed to a memory card with a utility such as `dd`, whereas the latter is to be used with `bmaptool` (which promises perfomance increases of the flashing process).