Skip to content

Latest commit

 

History

History
73 lines (46 loc) · 1.56 KB

README.md

File metadata and controls

73 lines (46 loc) · 1.56 KB

qemu-sunxi-yocto

Base repo for qemu-sunxi yocto

Introduction

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.

Supported branches

There are two branches supported right now:

  • scarthgap
  • kirkstone

Supported MACHINEs

The two MACHINEs that are supported are:

  • the default cubieboard
  • the customized cubieboard-ng, which is used with custom QEMU components.

Supported images

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

Build instructions for cubieboard and mistra-image

  1. Initialize repo
repo init -u https://github.com/straxy/qemu-sunxi-yocto -m default.xml -b scarthgap
repo sync -j4
  1. Setup environment
source setup-environment build_fb
  1. Start the build
DISTRO=mistra-framebuffer MACHINE=cubieboard bitbake mistra-image

Output image is in ./tmp/deploy/images/cubieboard.

  1. Create an empty SD card with
qemu-img create sd.img 1G
  1. 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
  1. Resize image to 1GiB
qemu-img resize sd.img 1G

SD card is ready to use.