Coder Social home page Coder Social logo

meta-dk1-stm32-extras's Introduction

OpenEmbedded demo extras layer for the OpenEmbedded BSP layer for the Custom STM32 DK1

This layer provides demo extras and examples for the i.MX8MM EVK.

Dependencies

This layer depends on:

  • URI: git://git.yoctoproject.org/poky

    • branch: kirkstone
    • layers: meta
  • meta-custom-dk1-stm32-bsp

    • branch: kirkstone

Building image

A good starting point for setting up the build environment is is the official Yocto Project wiki.

Before attempting the build, the following metalayer git repositories shall be cloned into a location accessible to the build system and a branch listed below shall be checked out. The examples below will use /path/to/OE/ as a location of the metalayers.

Additional optional layers handled by means of dynamic layers:

  • git://github.com/openembedded/meta-openembedded.git (branch: kirkstone)

With all the source artifacts in place, proceed with setting up the build using oe-init-build-env as specified in the Yocto Project wiki.

In addition to the content in the wiki, the aforementioned metalayers shall be referenced in bblayers.conf in this order:

BBLAYERS ?= " \
   /path/to/OE/poky/meta \
   /path/to/OE/meta-openembedded/meta-oe \
   /path/to/OE/meta-openembedded/meta-networking \
   /path/to/OE/meta-openembedded/meta-python \
   /path/to/OE/meta-mainline-common \
   /path/to/OE/meta-dk1-stm32-bsp \
   /path/to/OE/meta-dk1-stm32-extras \
   "

The following specifics should be placed into local.conf:

MACHINE = "custom-stm32-dk1"
DISTRO ?= "customstm32dk1linux"

Both local.conf and bblayers.conf are included verbatim in full at the end of this readme.

Once the configuration is complete, a full demo system image suitable for evaluation can be built using:

$ bitbake customstm32dk1-image

Once the build completes, the images are available in:

tmp/deploy/images/custom-stm32-dk1/

The SD card image is specifically in:

customstm32dk1-image-demo-custom-stm32-dk1.wic.gz

And shall be written to the SD card using dd:

$ gunzip customstm32dk1-image-custom-stm32-dk1.wic.gz
$ dd if=customstm32dk1-image-custom-stm32-dk1.wic of=/dev/sdX; sync

Example local.conf

MACHINE = "custom-stm32-dk1"
DL_DIR = "/path/to/OE/downloads"
DISTRO ?= "customstm32dk1linux"
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES = "debug-tweaks"
USER_CLASSES ?= "buildstats"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    HALT,${TMPDIR},100M,1K \
    HALT,${DL_DIR},100M,1K \
    HALT,${SSTATE_DIR},100M,1K \
    HALT,/tmp,10M,1K"
PACKAGECONFIG:append:pn-qemu-native = " sdl"
PACKAGECONFIG:append:pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"

Example bblayers.conf

# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
	/path/to/OE/poky/meta \
	/path/to/OE/meta-openembedded/meta-oe \
	/path/to/OE/meta-openembedded/meta-networking \
	/path/to/OE/meta-openembedded/meta-python \
	/path/to/OE/meta-mainline-common \
    /path/to/OE/meta-dk1-stm32-bsp \
    /path/to/OE/meta-dk1-stm32-extras \
	"
	

Example Installing the BSP and build the custom image

# Get Yocto (kirkstone) source and dependencies
	
	$ git clone http://git.yoctoproject.org/git/poky -b kirkstone yocto
	$ cd yocto
	$ git clone https://source.denx.de/denx/meta-mainline-common.git -b kirkstone
	$ git clone https://github.com/openembedded/meta-openembedded.git -b kirkstone
	$ git clone https://github.com/andreluizeng/meta-dk1-stm32-bsp.git
	$ git clone https://github.com/andreluizeng/meta-dk1-stm32-extras.git
	
# Set the build environment

	$ source oe-init-build-env build-custom-stm32-dk1
	
# Change the local.conf and bblayers.conf as presented before (example of local.conf and bblayers.conf)

# Build the custom image

	$ bitbake customstm32dk1-image
	

meta-dk1-stm32-extras's People

Contributors

sightvisiontech avatar

Watchers

André Silva avatar

Forkers

issamsayyaf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.