Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeacekeeper <markus@projectdanube.org>2015-01-24 15:26:05 +0100
committerJames Valleroy <jvalleroy@mailbox.org>2015-01-29 05:15:54 -0500
commit215562de0adaf20f6d2a63de1e163237ba5b7eff (patch)
tree16d5f21e809a9cc683bc94ab0221a7d84c0b859d
parentd4ec43edb78cc3496cb8e3cc6666a2b28befdcdf (diff)
CubieTruck support
-rw-r--r--Makefile11
-rwxr-xr-xbin/freedombox-customize4
-rwxr-xr-xbin/mk_freedombox_image17
3 files changed, 31 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3cabde4..f490613 100644
--- a/Makefile
+++ b/Makefile
@@ -68,6 +68,17 @@ beaglebone: prep
$(SIGN)
@echo "Build complete."
+# build CubieTruck SD card image
+cubietruck: prep
+ $(eval ARCHITECTURE = armhf)
+ $(eval MACHINE = cubietruck)
+ $(eval DESTINATION = card)
+ $(MAKE_IMAGE)
+ $(TAR) $(ARCHIVE) $(IMAGE)
+ @echo ""
+ $(SIGN)
+ @echo "Build complete."
+
# build a virtualbox image
virtualbox: virtualbox-i386
diff --git a/bin/freedombox-customize b/bin/freedombox-customize
index 587cac1..e5feed2 100755
--- a/bin/freedombox-customize
+++ b/bin/freedombox-customize
@@ -125,6 +125,10 @@ case "$MACHINE" in
dd if=$rootdir/usr/lib/u-boot/am335x_boneblack/u-boot.img of="$image" \
count=2 seek=1 conv=notrunc bs=384k
;;
+ cubietruck)
+ dd if=$rootdir/usr/lib/u-boot/Cubietruck/u-boot-sunxi-with-spl.bin of="$image" \
+ seek=8 conv=notrunc bs=1k
+ ;;
esac
if $use_eatmydata ; then
diff --git a/bin/mk_freedombox_image b/bin/mk_freedombox_image
index 861b32d..81144f1 100755
--- a/bin/mk_freedombox_image
+++ b/bin/mk_freedombox_image
@@ -45,6 +45,9 @@ dreamplug_pkgs="linux-image-kirkwood u-boot-tools u-boot"
# Packages needed on the beaglebone
beaglebone_pkgs="linux-image-armmp u-boot-tools u-boot"
+# Packages needed on the cubietruck
+cubietruck_pkgs="linux-image-armmp-lpae u-boot-tools u-boot"
+
# Packages needed for gui-based self-hosted development
dev_pkgs="task-xfce-desktop emacs org-mode git mercurial iceweasel ca-certificates"
@@ -84,6 +87,18 @@ case "$MACHINE" in
--foreign /usr/bin/qemu-arm-static \
"
;;
+ cubietruck)
+ extra_pkgs="$cubietruck_pkgs"
+ extra_opts="\
+ --variant minbase \
+ --bootoffset=1mib \
+ --bootsize 128M \
+ --boottype vfat \
+ --no-kernel \
+ --no-extlinux \
+ --foreign /usr/bin/qemu-arm-static \
+"
+ ;;
virtualbox)
extra_opts="\
--grub \
@@ -113,7 +128,7 @@ else
VMDEBOOTSTRAP=vmdebootstrap
fi
-echo "starting vmdebootstrap"
+echo "starting $VMDEBOOTSTRAP"
# Run vmdebootstrap script to create image
sudo -H \
SUITE="$SUITE" \