element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
WaRP7
  • Products
  • Dev Tools
  • Single-Board Computers
  • WaRP7
  • More
  • Cancel
WaRP7
Blog Warp7 Yocto : Part1 : setup, configure and generate Warp7 binaries
  • Blog
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join WaRP7 to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: tusharp
  • Date Created: 16 Sep 2016 7:30 AM Date Created
  • Views 9980 views
  • Likes 4 likes
  • Comments 89 comments
  • tusharp
  • imx7
  • yocto
  • image
  • bitbake
  • warp7
  • embedded
  • yocto-bsp
  • linux
Related
Recommended

Warp7 Yocto : Part1 : setup, configure and generate Warp7 binaries

tusharp
tusharp
16 Sep 2016

Contents

1. Warp7 Yocto Part1 <-- You are here

2. Warp7 Yocto Part2

3. Warp7 Sensors demo - mpl3115a2

4. Warp7 Sensors demo - fxos8700cq

5. Warp7 IoT demo

 

The Warp7 is a next generation Wearable and IoT development platform.

plz refer  NXP and element14 website for more platform related information.

 

Warp7 Board

fd53fb.jpg

CPU Board

34nmm39.jpg

IO Board

2dkfsao.jpg

 

In this blog we will

1. Download warp7 yocto sources.

2. Setup required environment.

3. add/customise warp7 machine configs.

4. Compile and generate binaries.

 

 

A bit on yocto before we start :

oq9937.jpg

 

If you are new to yocto , plz make sure to check the yocto project before proceeding.

 

Platform Setup:

I am using Ubuntu 14.04 x86_64 for the build process. you can use do this from a Virtual Machine (vmware, virtualbox) also.

 

We need to install some packages on which yocto depends for the build process.

sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev \
xterm sed cvs subversion coreutils texi2html python-pysqlite2 help2man make gcc g++ desktop-file-utils libgl1-mesa-dev \
libglu1-mesa-dev mercurial autoconf automake groff curl lzop u-boot-tools

 

vr90kz.jpg

 

Download repo:

We need to have a repo tool to pull yocto sources.

 

mkdir ~/bin
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
export PATH=~/bin:$PATH

 

Download Yocto:

following steps will help download yocto sources from NXP(Freescale) official repository:

 

mkdir warp7_yocto
cd warp7_yocto
repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b krogoth
repo sync

 

Before building the yocto bsp we need to update the yocto build with warp7 config.

To configure we need to pass the proper MACHINE name as a macro.

 

Determine machine name:

echo; ls sources/*/conf/machine/*.conf | sed s/\.conf//g | sed -r 's/^.+\///' | xargs -I% echo -e "\t%" | grep imx

 

1444o6p.jpg

 

The Warp7 machine name is imx7s-warp .

 

 

Setting up the environment:

 

MACHINE=imx7s-warp source setup-environment build

 

2useno7.jpg

 

Select "Y" to accept the EULA license and complete the machine config setup.

 

9bi39u.jpg

 

Now a build directory is created under ~/warp7_yocto directory.

It contains the build system settings for warp7 machine(i.e local.conf) and yocto bitbake layers path information (i.e bblayers.conf).

 

local.conf

1z4a4vn.jpg

 

bblayers.conf

141tfeq.jpg

 

 

Customise warp7 machine config:

Now edit the kernel source in warp7 machine configuration file.

 

in ~/warp7_yocto/sources/meta-fsl-arm-extra/conf/machine/imx7s-warp.conf file, edit as below.

Replace

PREFERRED_PROVIDER_virtual/kernel ?= "linux-fslc-imx"

with

PREFERRED_PROVIDER_virtual/kernel ?= "linux-warp"

 

Now the kernel source will be pulled from the linux-warp%%  bitbake recipe.

Create a directory named "linux-warp7-4.1" and recipe named "linux-warp7_4.1.bb" in below path.

~/warp7_yocto/sources/meta-fsl-arm-extra/recipes-kernel/linux/

 

mkdir ~/warp7_yocto/sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-warp7-4.1
touch ~/warp7_yocto/sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-warp7_4.1.bb

 

 

Populating warp7 recipe:

populate the recipe "linux-warp7_4.1.bb" with below contents.

# Released under the MIT license (see COPYING.MIT for the terms)

 

include recipes-kernel/linux/linux-imx.inc

include recipes-kernel/linux/linux-dtb.inc

 

DEPENDS += "lzop-native bc-native"

 

SRCBRANCH = "4.1-1.0.x-imx"

SRCREV = "fa571312b4271e368ca99ffcdf7992247d534e55"

 

SRC_URI = "git://github.com/WaRP7/linux-fslc.git;branch=${SRCBRANCH} \

           file://defconfig"

 

COMPATIBLE_MACHINE = "(imx7s-warp)"

 

In above recipe we setup 4.1-1.0.x-imx as source branch for our kernel and file defconfig will be the default kernel config file.

Next copy the defconfig file (in attachment) into the linux-warp7-4.1 directory.

 

 

Downloading yocto packages:

If you want to build images offline, its a good idea to download the packages first.

bitbake core-image-minimal -c fetchall

 

 

Build:

bitbake core-image-minimal

 

Now build, it will take several hours to complete depending on your PC configuration.

 

While kernel build is in process you might encounter an error wrt imx7s-warp.dtb.

This will happen is there is no imx7s-warp.dts file in below directory.

~/warp7_yocto/build/tmp/work/imx7s_warp-poky-linux-gnueabi/linux-warp7/4.1-r0/git/arch/arm/boot/dts

 

below is a snapshot from the log file that captured the above  error.

90avr7.jpg

 

In that case copy the imx7s-warp.dts from the attachments to the below directory:

~/warp7_yocto/build/tmp/work/imx7s_warp-poky-linux-gnueabi/linux-warp7/4.1-r0/git/arch/arm/boot/dts

 

2s7dqv4.jpg

 

Now hit build again.

 

After build completed, the images build are found in ~/warp7_yocto/build/tmp/deploy/images/imx7s-warp

noajk7.jpg

 

 

Let us know any challenges faced during build procedure through comments.

 

Next time we will flash the generated images.

 

Happy Warping.

Attachments:
warp7_attachments.zip
  • Sign in to reply

Top Comments

  • bwelsby
    bwelsby over 9 years ago in reply to Jan Cumps +1
    Jan Cumps wrote: bitbake -fetch finished successful (14 hours on the raspberry pi to complete all 189 jobs. it used 4 job threads to allocate tasks on this board), now up to the next step: build That's…
  • bheemarao
    bheemarao over 9 years ago +1
    I tried building the same as shown steps below bheema@Bheema:~/warp7_yocto$ MACHINE=imx7s-warp source setup-environment build-warp7 then by default the kernel will fetch from "include recipes-kernel/linux…
  • Jan Cumps
    Jan Cumps over 9 years ago in reply to Jan Cumps +1
    Installing the dependencies. Once I'm at the bitbake line, I'll switch to bheemarao 's steps...
  • rushin010
    rushin010 over 9 years ago in reply to tusharp

    After that i got error like

    rushin@rushin-VirtualBox:~/warp7_yocto/build$ bitbake core-image-minimal -c fetchall

    Loading cache: 100% |##########################| ETA:  00:00:00

    Loaded 2199 entries from dependency cache.

    NOTE: Resolving any missing task queue dependencies

     

     

    Build Configuration:

    BB_VERSION        = "1.30.0"

    BUILD_SYS         = "x86_64-linux"

    NATIVELSBSTRING   = "universal"

    TARGET_SYS        = "arm-poky-linux-gnueabi"

    MACHINE           = "imx7s-warp"

    DISTRO            = "poky"

    DISTRO_VERSION    = "2.1.2"

    TUNE_FEATURES     = "arm armv7ve vfp thumb neon       callconvention-hard       cortexa7"

    TARGET_FPU        = "hard"

    meta             

    meta-poky         = "HEAD:cca8dd15c8096626052f6d8d25ff1e9a606104a3"

    meta-oe          

    meta-multimedia   = "HEAD:851a064b53dca3b14dd33eaaaca9573b1a36bf0e"

    meta-fsl-arm      = "HEAD:a85fa8bf68517ca5cd9bb00bf792f54016799bed"

    meta-fsl-arm-extra = "HEAD:e95f4ae61fdaf6452d6dfa9cb59dbdf9cdf73c99"

    meta-fsl-demos    = "HEAD:a165068f8a0d1cf29aabe4b4053f28be1c2aa492"

     

     

    NOTE: Preparing RunQueue

    NOTE: Executing RunQueue Tasks

    WARNING: linux-warp7-4.1-r0 do_fetch: Failed to fetch URL git://github.com/warp7/linux-fslc.git;branch=4.1-1.0.x-imx, attempting MIRRORS if available

    ERROR: linux-warp7-4.1-r0 do_fetch: Fetcher failure: Fetch command failed with exit code 128, output:

    fatal: The remote end hung up unexpectedly

    fatal: early EOF

    fatal: index-pack failed

     

     

    ERROR: linux-warp7-4.1-r0 do_fetch: Function failed: Fetcher failure for URL: 'git://github.com/warp7/linux-fslc.git;branch=4.1-1.0.x-imx'. Unable to fetch URL from any source.

    ERROR: Logfile of failure stored in: /home/rushin/warp7_yocto/build/tmp/work/imx7s_warp-poky-linux-gnueabi/linux-warp7/4.1-r0/temp/log.do_fetch.2551

    ERROR: Task 5 (/home/rushin/warp7_yocto/sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-warp7_4.1.bb, do_fetch) failed with exit code '1'

    WARNING: pseudo-native-1.7.5-r0 do_fetch: Failed to fetch URL http://downloads.yoctoproject.org/releases/pseudo/pseudo-1.7.5.tar.bz2, attempting MIRRORS if available

    ERROR: pseudo-native-1.7.5-r0 do_fetch: Fetcher failure: Fetch command failed with exit code 4, output:

    wget: unable to resolve host address 'downloads.yoctoproject.org'

     

     

    ERROR: pseudo-native-1.7.5-r0 do_fetch: Function failed: Fetcher failure for URL: 'http://downloads.yoctoproject.org/releases/pseudo/pseudo-1.7.5.tar.bz2'. Unable to fetch URL from any source.

    ERROR: Logfile of failure stored in: /home/rushin/warp7_yocto/build/tmp/work/x86_64-linux/pseudo-native/1.7.5-r0/temp/log.do_fetch.2685

    ERROR: Task 4 (virtual:native:/home/rushin/warp7_yocto/sources/poky/meta/recipes-devtools/pseudo/pseudo_1.7.5.bb, do_fetch) failed with exit code '1'

    NOTE: Tasks Summary: Attempted 185 tasks of which 183 didn't need to be rerun and 2 failed.

    Waiting for 0 running tasks to finish:

     

     

    Summary: 2 tasks failed:

      /home/rushin/warp7_yocto/sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-warp7_4.1.bb, do_fetch

      virtual:native:/home/rushin/warp7_yocto/sources/poky/meta/recipes-devtools/pseudo/pseudo_1.7.5.bb, do_fetch

    Summary: There were 2 WARNING messages shown.

    Summary: There were 4 ERROR messages shown, returning a non-zero exit code.

    rushin@rushin-VirtualBox:~/warp7_yocto/build$

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • rushin010
    rushin010 over 9 years ago in reply to tusharp

    hi thanks for support

    i tried that. but when i start bitbake, 189 tasks are executing and after 184 tasks ,i am not getting error but no progress in tasks. after 6-7 hours no progress in tasks. can you tell me what is problem??

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • tusharp
    tusharp over 9 years ago in reply to rushin010

    can you try this:

    1. manually download  http://downloads.yoctoproject.org/releases/pseudo/pseudo-1.7.5.tar.bz2

    2. copy that to yocto downloads directory.

    3. now create a file pseudo-1.7.5.tar.bz2.done in downloads directory.

    4. now start bitbake, it should work image.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • rushin010
    rushin010 over 9 years ago

    hello there i did steps as described above. but i am getting error like that.  i repeated steps many times. but getting same error

     

     

    rushin@rushin-VirtualBox:~/warp7/warp7_yocto/build$ bitbake core-image-minimal -c fetchall

    Parsing recipes: 100% |########################| ETA:  00:00:00

    Parsing of 1664 .bb files complete (0 cached, 1664 parsed). 2198 targets, 189 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   = "universal"

    TARGET_SYS        = "arm-poky-linux-gnueabi"

    MACHINE           = "imx7s-warp"

    DISTRO            = "poky"

    DISTRO_VERSION    = "2.1.2"

    TUNE_FEATURES     = "arm armv7ve vfp thumb neon       callconvention-hard       cortexa7"

    TARGET_FPU        = "hard"

    meta             

    meta-poky         = "HEAD:cca8dd15c8096626052f6d8d25ff1e9a606104a3"

    meta-oe          

    meta-multimedia   = "HEAD:851a064b53dca3b14dd33eaaaca9573b1a36bf0e"

    meta-fsl-arm      = "HEAD:a85fa8bf68517ca5cd9bb00bf792f54016799bed"

    meta-fsl-arm-extra = "HEAD:e95f4ae61fdaf6452d6dfa9cb59dbdf9cdf73c99"

    meta-fsl-demos    = "HEAD:a165068f8a0d1cf29aabe4b4053f28be1c2aa492"

     

     

    NOTE: Preparing RunQueue

    NOTE: Executing RunQueue Tasks

    WARNING: linux-warp7-4.1-r0 do_fetch: Failed to fetch URL git://github.com/warp7/linux-fslc.git;branch=4.1-1.0.x-imx, attempting MIRRORS if available

    ERROR: linux-warp7-4.1-r0 do_fetch: Fetcher failure: Fetch command failed with exit code 128, output:

    fatal: The remote end hung up unexpectedly

    fatal: early EOF

    fatal: index-pack failed

     

     

    ERROR: linux-warp7-4.1-r0 do_fetch: Function failed: Fetcher failure for URL: 'git://github.com/warp7/linux-fslc.git;branch=4.1-1.0.x-imx'. Unable to fetch URL from any source.

    ERROR: Logfile of failure stored in: /home/rushin/warp7/warp7_yocto/build/tmp/work/imx7s_warp-poky-linux-gnueabi/linux-warp7/4.1-r0/temp/log.do_fetch.2521

    ERROR: Task 5 (/home/rushin/warp7/warp7_yocto/sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-warp7_4.1.bb, do_fetch) failed with exit code '1'

    WARNING: pseudo-native-1.7.5-r0 do_fetch: Failed to fetch URL http://downloads.yoctoproject.org/releases/pseudo/pseudo-1.7.5.tar.bz2, attempting MIRRORS if available

    ERROR: pseudo-native-1.7.5-r0 do_fetch: Fetcher failure: Fetch command failed with exit code 4, output:

    wget: unable to resolve host address 'downloads.yoctoproject.org'

     

     

    ERROR: pseudo-native-1.7.5-r0 do_fetch: Function failed: Fetcher failure for URL: 'http://downloads.yoctoproject.org/releases/pseudo/pseudo-1.7.5.tar.bz2'. Unable to fetch URL from any source.

    ERROR: Logfile of failure stored in: /home/rushin/warp7/warp7_yocto/build/tmp/work/x86_64-linux/pseudo-native/1.7.5-r0/temp/log.do_fetch.2637

    ERROR: Task 4 (virtual:native:/home/rushin/warp7/warp7_yocto/sources/poky/meta/recipes-devtools/pseudo/pseudo_1.7.5.bb, do_fetch) failed with exit code '1'

    NOTE: Tasks Summary: Attempted 185 tasks of which 176 didn't need to be rerun and 2 failed.

    Waiting for 0 running tasks to finish:

     

     

    Summary: 2 tasks failed:

      /home/rushin/warp7/warp7_yocto/sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-warp7_4.1.bb, do_fetch

      virtual:native:/home/rushin/warp7/warp7_yocto/sources/poky/meta/recipes-devtools/pseudo/pseudo_1.7.5.bb, do_fetch

    Summary: There were 2 WARNING messages shown.

    Summary: There were 4 ERROR messages shown, returning a non-zero exit code.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
<
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube