Monday, June 13, 2016

Building Yocto for DENX M53EVK

# Depending on when you are reading this, you may need to replace "krogoth" by something newer

# Step 1: Clonning
$ git clone git://git.yoctoproject.org/poky
$ cd poky/
$ git checkout krogoth

$ git clone git://git.openembedded.org/meta-openembedded
$ cd meta-openembedded
$ git checkout krogoth
$ cd ..

$ git clone git://git.yoctoproject.org/meta-fsl-arm
$ cd meta-fsl-arm
$ git checkout krogoth
$ cd ..

$ git clone git://github.com/Freescale/meta-fsl-arm-extra.git
$ cd meta-fsl-arm-extra
$ git checkout krogoth
$ cd ..

# Step 2: Configuring
$ export MACHINE="m53evk"
$ source oe-init-build-env

# Then edit your bblayers.conf file to add meta-openembedded/meta-oe, meta-fsl-arm, and meta-fsl-arm-extra:
$ vi conf/bblayers.conf # (.../poky/build/conf/bblayers.conf)

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

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

BBLAYERS ?= " \
  /home/peter/m53evk/poky/meta \
  /home/peter/m53evk/poky/meta-poky \
  /home/peter/m53evk/poky/meta-yocto-bsp \
  /home/peter/m53evk/poky/meta-openembedded/meta-oe \
  /home/peter/m53evk/poky/meta-fsl-arm \
  /home/peter/m53evk/poky/meta-fsl-arm-extra \
  "

# Step 3: Build
$ bitbake core-image-minimal
...
Parsing of 1584 .bb files complete (0 cached, 1584 parsed). 2117 targets, 178 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.30.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "CentOSLinux-7.2.1511"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "m53evk"
DISTRO            = "poky"
DISTRO_VERSION    = "2.1"
TUNE_FEATURES     = "arm armv7a vfp  neon"
TARGET_FPU        = "softfp"
meta              
meta-poky         
meta-yocto-bsp    = "krogoth:8f51f6153a09f8048fb4c4ce9cf4a19655240de4"
meta-oe           = "krogoth:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta-fsl-arm      = "krogoth:3f34509381092a893b8efe4451018b8d67a5abf6"
meta-fsl-arm-extra = "krogoth:698cf389aa446244a39b597fbf58be1d55096500"

2 comments:

  1. It doesn't really work...

    WARNING: linux-denx-3.9-r0 do_fetch: Failed to fetch URL git://git.denx.de/linux-denx.git;branch=m53evk-rel-2013-05-02-v3.9, attempting MIRRORS if available
    ERROR: linux-denx-3.9-r0 do_fetch: Fetcher failure: Fetch command failed with exit code 128, output:
    Cloning into bare repository '/home/peter/m53evk/poky/build/downloads/git2/git.denx.de.linux-denx.git'...

    fatal: The remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed

    ERROR: linux-denx-3.9-r0 do_fetch: Function failed: Fetcher failure for URL: 'git://git.denx.de/linux-denx.git;branch=m53evk-rel-2013-05-02-v3.9'. Unable to fetch URL from any source.
    ERROR: Logfile of failure stored in: /home/peter/m53evk/poky/build/tmp/work/m53evk-poky-linux-gnueabi/linux-denx/3.9-r0/temp/log.do_fetch.21744
    ERROR: Task 49 (/home/peter/m53evk/poky/meta-fsl-arm-extra/recipes-kernel/linux/linux-denx_3.9.bb, do_fetch) failed with exit code '1'

    ReplyDelete
  2. Any way to solve this problem ?

    ReplyDelete