Skip to content

Wandboard (i.MX6)

Pablo Saavedra edited this page Nov 9, 2021 · 3 revisions

Introduction

This wiki page documents how to build an image with WPE for the Wandboard

Please be sure to first read the WPE introduction page and i.MX6 pages that gives an overview of the launchers and wpebackends available.

Building an image with WPE for the Wandboard with the etanviv (Mesa driver) drivers

Download and install repo tool from google

$ mkdir ${HOME}/bin
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ${HOME}/bin/repo
$ chmod +x ${HOME}/bin/repo
$ export PATH="${HOME}/bin/:${PATH}"

Get yocto layers from Freescale/NXP

We are using rocko version on this example (it is the last stable tested as of the moment of writing this). So to get the layers for that, we do:

$ mkdir wandboard-yocto
$ cd wandboard-yocto
$ repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b honister
$ repo sync

Get meta-webkit layer

$ cd sources
$ git clone https://github.com/Igalia/meta-webkit

Init the yocto build environment

$ cd .. 
$ MACHINE=wandboard DISTRO=fslc-wayland source setup-environment build
# Read and accept the EULA if you want to continue

Add meta-webkit to the layer list in bblayers.conf

Edit the file conf/bblayers.conf and add meta-webkit at the bottom of the BBLAYERS list , so it looks like this:

BBLAYERS = " \
  ${BSPDIR}/sources/poky/meta \
  ${BSPDIR}/sources/poky/meta-poky \
  \
  ${BSPDIR}/sources/meta-openembedded/meta-oe \
  ${BSPDIR}/sources/meta-openembedded/meta-multimedia \
  \
  ${BSPDIR}/sources/meta-freescale \
  ${BSPDIR}/sources/meta-freescale-3rdparty \
  ${BSPDIR}/sources/meta-freescale-distro \
  ${BSPDIR}/sources/meta-webkit \
"

Setup the build

  • Edit and add on conf/local.conf this
# Accelerated video support
IMAGE_INSTALL:append = " gstreamer1.0-plugins-imx  gstreamer1.0-plugins-imx-meta"

# WPEWebkit and cog launcher
IMAGE_INSTALL:append = " wpewebkit cog"

# Backend selection
PREFERRED_PROVIDER_virtual/wpebackend = "wpebackend-fdo"

# Uncomment this if you don't see video output via HDMI
# UBOOT_EXTLINUX_KERNEL_ARGS = "rootwait rw console=${console} video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24,bpp=32"

  • Note: un-commenting the line about UBOOT_EXTLINUX_KERNEL_ARGS is needed for wandboard QuadPlus

Build the image:

bitbake core-image-weston

Flash the image

When it finish simply uncompress and write raw the wic image (with dd for example) to an sdcard and boot the board with it

cat tmp/deploy/images/wandboard/core-image-weston-wandboard.wic.gz | gzip -dc | dd of=/dev/mmcblk0 bs=4k 

Boot the image.

Simply insert the microSD card into the board and boot it.

But beware that the wandboard has two sdcard slots, and only the one below the heatsink can be used for boot.