Doing Yoctoproject development on the i.MX53 Quick Start Board

Starting with:

https://community.freescale.com/docs/DOC-1616#jive_content_id_Using_Yocto_and_iMX_Boards_

https://plus.google.com/+TrevorWoerner/posts/Aie1TxjhMT2

Doing this on my Ubuntu 14.04 (64-bit LTS):

sudo apt-get install gawk wget git-core diffstat unzip texinfo build-essential chrpath libsdl1.2-dev xterm curl

Next is to get the latest yocto source code:

$ git clone git://git.yoctoproject.org/poky.git  yocto_latest
$ cd yocto_latest
$ git clone git://github.com/Freescale/meta-fsl-arm
$ git clone git://git.openembedded.org/meta-openembedded meta-oe
$ git checkout -b dizzy origin/dizzy
$ source oe-init-build-env

This additional layer also needs to be added to your bblayers.conf file:
BBLAYERS ?= ” \

/path/to/yocto_latest/meta \
/path/to/yocto_latest/meta-yocto \
/path/to/yocto_latest/meta-oe/meta-oe \
/path/to/yocto_latest/meta-fsl-arm \

$ Edit conf/local.conf user config file and set imx53 Quick start board machine and enable parallel build features:

MACHINE ?= “imx53qsb”

BB_NUMBER_THREADS = “4”

PARALLEL_MAKE = “-j 4”

$ bitbake core-image-minimal$ cd tmp/deploy/images:

/sdc8/yocto_latest/build/tmp/deploy/images>tree
.
└── imx53qsb
├── core-image-minimal-imx53qsb-20150216155950.rootfs.ext3
├── core-image-minimal-imx53qsb-20150216155950.rootfs.manifest
├── core-image-minimal-imx53qsb-20150216155950.rootfs.sdcard
├── core-image-minimal-imx53qsb-20150216155950.rootfs.tar.bz2
├── core-image-minimal-imx53qsb.ext3 -> core-image-minimal-imx53qsb-20150216155950.rootfs.ext3
├── core-image-minimal-imx53qsb.manifest -> core-image-minimal-imx53qsb-20150216155950.rootfs.manifest
├── core-image-minimal-imx53qsb.sdcard -> core-image-minimal-imx53qsb-20150216155950.rootfs.sdcard
├── core-image-minimal-imx53qsb.tar.bz2 -> core-image-minimal-imx53qsb-20150216155950.rootfs.tar.bz2
├── modules–2.6.35.3-r45-imx53qsb-20150216155950.tgz
├── modules-imx53qsb.tgz -> modules–2.6.35.3-r45-imx53qsb-20150216155950.tgz
├── README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
├── u-boot.imx -> u-boot-imx53qsb-v2015.01+gitAUTOINC+4dab988b9c-r0.imx
├── u-boot-imx53qsb.imx -> u-boot-imx53qsb-v2015.01+gitAUTOINC+4dab988b9c-r0.imx
├── u-boot-imx53qsb-v2015.01+gitAUTOINC+4dab988b9c-r0.imx
├── zImage -> zImage–2.6.35.3-r45-imx53qsb-20150216155950.bin
├── zImage–2.6.35.3-r45-imx53qsb-20150216155950.bin
└── zImage-imx53qsb.bin -> zImage–2.6.35.3-r45-imx53qsb-20150216155950.bin

$ sudo dd if=./core-image-minimal-imx53qsb.sdcard of=<partition of sdcard> bs=1M

where <partition of sdcard> is usually /dev/mmcblk0

Next is to get the latest yocto source code:

$ git clone git://git.yoctoproject.org/poky.git  yocto_latest

Now booting up the sdcard inside i.MX53QSB:

U-Boot 2015.01+fslc+g4dab988 (Feb 17 2015 – 01:03:23)

Board: MX53 LOCO
I2C:   ready
DRAM:  1 GiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
*** Warning – bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   FEC
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
reading boot.scr
** Unable to read file boot.scr **
reading zImage
3110704 bytes read in 234 ms (12.7 MiB/s)
Booting from mmc …
reading imx53-qsb.dtb
** Unable to read file imx53-qsb.dtb **
Kernel image @ 0x72000000 [ 0x000000 – 0x2f7730 ]

Starting kernel …

Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.35.3-maintain+gb3912bb (tthtlc@mamapapa) (gcc version 4.9.1 (5
CPU: ARMv7 Processor [412fc085] revision 5 (ARMv7), cr=10c53c7d
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Freescale MX53 LOCO Board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 250880
Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p2 rw rootwait
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 480MB 512MB = 992MB total
Memory: 998016k/998016k available, 17792k reserved, 0K highmem
Virtual kernel memory layout:
vector  : 0xffff0000 – 0xffff1000   (   4 kB)
fixmap  : 0xfff00000 – 0xfffe0000   ( 896 kB)
DMA     : 0xf8e00000 – 0xffe00

References:

http://www.yoctoproject.org/docs/current/yocto-project-qs/yocto-project-qs.html.

http://www.imxdev.org/wiki/index.php?title=Yoctoproject

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX53QSB (a little bit out of date)

https://community.freescale.com/docs/DOC-1616

https://community.freescale.com/community/imx?title=Yoctoproject

https://aalonso.wordpress.com/2012/09/14/yoctoproject-meta-fsl-arm-and-imx53-quick-start-board/

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX53_SW&parentCode=IMX53QSB&fpsp=1

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX53QSB

http://www.adeneo-embedded.com/Products/Board-Support-Packages/Freescale-i.MX53-QSB

Advertisements

2 responses to this post.

  1. Hi- After issuing bitbake core-image-minimal from the build directory, Iam getting the following errors. Can you please let me know what this mean ?

    ERROR: Traceback (most recent call last):
    File “/work/rc/yocto_latest/bitbake/lib/bb/cookerdata.py”, line 174, in wrapped
    return func(fn, *args)
    File “/work/rc/yocto_latest/bitbake/lib/bb/cookerdata.py”, line 184, in parse_config_file
    return bb.parse.handle(fn, data, include)
    File “/work/rc/yocto_latest/bitbake/lib/bb/parse/__init__.py”, line 107, in handle
    return h[‘handle’](fn, data, include)
    File “/work/rc/yocto_latest/bitbake/lib/bb/parse/parse_py/ConfHandler.py”, line 147, in handle
    feeder(lineno, s, abs_fn, statements)
    File “/work/rc/yocto_latest/bitbake/lib/bb/parse/parse_py/ConfHandler.py”, line 184, in feeder
    raise ParseError(“unparsed line: ‘%s'” % s, fn, lineno);
    ParseError: ParseError at /work/rc/yocto_latest/build/conf/bblayers.conf:14: unparsed line: ‘BBLAYERS ?= ” /work/rc/yocto_latest/meta /work/rc/yocto_latest/meta-yocto /work/rc/yocto_latest/meta-yocto-bsp /work/rc/yocto_latest/meta-oe/meta-oe /work/rc/yocto_latest/meta-fsl-arm ‘

    ERROR: Unable to parse /work/rc/yocto_latest/build/conf/bblayers.conf: ParseError at /work/rc/yocto_latest/build/conf/bblayers.conf:14: unparsed line: ‘BBLAYERS ?= ” /work/rc/yocto_latest/meta /work/rc/yocto_latest/meta-yocto /work/rc/yocto_latest/meta-yocto-bsp /work/rc/yocto_latest/meta-oe/meta-oe /work/rc/yocto_latest/meta-fsl-arm ‘

    Reply

    • seemed like you line inside bblayers.conf is synthetically incorrect:

      ‘BBLAYERS ?= ” /work/rc/yocto_latest/meta /work/rc/yocto_latest/meta-yocto /work/rc/yocto_latest/meta-yocto-bsp /work/rc/yocto_latest/meta-oe/meta-oe /work/rc/yocto_latest/meta-fsl-arm ‘

      Is it just spaces between the directories listing? I thought it should be spaces + newline?

      Reply

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: