Home - notro/fbtft-spindle GitHub Wiki

2015-02-23
The FBTFT images have been discontinued.

The FBTFT images are built starting from a Raspian release using fbtft-spindle. Raspian itself is built using spindle.
The reason a Raspian image is used as a base, instead of building everything from scratch, is because packages gets updated all the time, and I want to be as close as possible to Raspian.

The images are built on Ubuntu 12.04

Install

git clone https://github.com/notro/fbtft-spindle
cd fbtft-spindle
./setup

Enter schroot

cd spindle
schroot -c spindle

Extend sudo timeout (for the cmptree stage)

sudo visudo
-Defaults        env_reset
+Defaults        env_reset, timestamp_timeout=60

Downgrade qemu to 1.0.1, install some packages and setup build machine

sudo ./downgrade_qemu
sudo apt-get install zip unzip
./wheezy-stage0
./wheezy-stage1

Build FBTFT images

Run from schroot inside spindle directory.

# unzip image and convert to qed
# 1st argument: Official Raspian image as zipfile
# optional 2nd argument: date: yyyy-mm-dd
../fbtft-stage0 img.zip [date]

# Install packages
../fbtft-stage1

# Configuration changes
../fbtft-stage2

# Optional stage:
# compare new base image with Raspian image and record changed/added files (~40min)
# result in: spindle/work/cmp_{boot,rootfs}.txt
../fbtft-stage4

# Install FBTFT kernels
../fbtft-stage5

# Make custom images for display shields
../fbtft-stage6

# leave schroot
exit

Zip up images and move them

pwd
fbtft-spindle

# ~30min
./zip-images

ls -l zip

piwik