Base repo for qemu-sunxi yocto
This repository contains the manifest file for building the Yocto image for Cubieboard, which can be used in QEMU to follow tutorials from MistraSolutions blog.
There are two branches supported right now:
- scarthgap
- kirkstone
The two MACHINE
s that are supported are:
- the default
cubieboard
- the customized
cubieboard-ng
, which is used with custom QEMU components.
There are three supported images
- mistra-image - the basic image used as the starting point
- mistra-swupdate - the mistra-image adjusted for A/B partitioning and OTA updates using SWupdate
- update-image - the image based on mistra-swupdate which generates the update SWU file
- Initialize repo
repo init -u https://github.com/straxy/qemu-sunxi-yocto -m default.xml -b scarthgap
repo sync -j4
- Setup environment
source setup-environment build_fb
- Start the build
DISTRO=mistra-framebuffer MACHINE=cubieboard bitbake mistra-image
Output image is in ./tmp/deploy/images/cubieboard
.
- Create an empty SD card with
qemu-img create sd.img 1G
- Copy
.wic
image to the SD card
gunzip -c tmp/deploy/images/cubieboard/mistra-image-cubieboard.rootfs.wic.gz | dd of=sd.img bs=1M iflag=fullblock oflag=direct conv=fsync
- Resize image to 1GiB
qemu-img resize sd.img 1G
SD card is ready to use.