You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

This is a really handy link that is in the Quickstarts:

https://layers.openembedded.org/layerindex/branch/krogoth/layers/

I think it would be a good idea to show customers how to find packages/recipes that they can add to their build, using this.

Also, how to add layers with devtool.

http://www.yoctoproject.org/docs/2.2/dev-manual/dev-manual.html#understanding-and-creating-layers


http://www.yoctoproject.org/docs/2.2/kernel-dev/kernel-dev.html#modifying-an-existing-recipe


https://stash.phytec.com/projects/KSP5015/repos/meta-density-vega/browse?at=refs%2Fheads%2Fkrogoth


http://www.yoctoproject.org/docs/2.2/toaster-manual/toaster-manual.html



  • Download BSP manifest and set up your local repo by using the 'repo init' and 'repo sync' commands (used machine 1 for beckman, includes wifi, need to remove NAND and add eMMC)
  • The $YOCTO_DIR/sources directory contains the meta layers
  • Check OpenEmbedded for pre made layers
  • Create your own meta layer with the following command
    • yocto-layer create mycustomlayer
    • move the layer into the sources directory 'mv meta-mycustomlayer ../sources/
  • Create a Git repo and add your layer (TODO: move this to the last step)
    • host$ cd ../sources/meta-racer
    • host$ git init && git add . && git commit -s
  • Add your new layer to the bblayers.conf file (..../build/conf/bblayers.conf)
  • Customizing your layer
    • Change priority to +1 of ...../meta-phytec/conf/layer.conf "BBFILE_PRIORITY_phytec"
    • copy the machine configuration from the '..../meta-phytec/conf/machine/' directory to your layers '..../conf/machine' directory
      • Don't forget to copy any files included in the machine configuration!
    • Specify your custom Device Tree
      • This is done throught the KERNEL_DEVICETREE variable in the machine configuration file
    • Make a .bbappend file for your kernel recipe
      • see .....sources/meta-phytec/recipes-kernel/linux/linux_mainline_x.x.x-phyx.bb
        • need to create a similar file in .....sources/meta-mycustomlayer/recipes-kernel/linux/ with a .bbappend filetype
        • add machine name as a COMPATIBLE_MACHINE
    • Make a .bbappend file for your bootloader recipe
      • see ....sources/meta-phytec/recipes-bsp/<bootloader>/something.bb
        • need to create a similar file in .....sources/meta-mycustomlayer/recipes-bsp/<bootloader>/ with a .bbappend filetype
        • add machine name as a COMPATIBLE_MACHINE
    • Specify your custom machine configuration
      • This is done through the MACHINE variable in the local.conf file in the build directory (DO NOT append .conf!!!)
    • bitbake your image
  • No labels