Problems building Yocto for iMX28EVK

1,524 views
Skip to first unread message

Flavio Castro Alves Filho

unread,
Jul 2, 2012, 6:49:25 PM7/2/12
to meta-f...@googlegroups.com
Hello,

I'm trying to build Yocto Project (Poky) for imx28evk.

Here are the steps that I followed:

mkdir ~/yocto
cd ~/yocto
cd poky
cd ..
source poky/oe-init-build-env imx28evk-linux

Then I changed conf/bblayers to include meta-openembedded/meta-oe and meta-fsl-arm layers. And, I added the MACHINE ?= "imx28evk" instruction.

When I execute 'bitbake core-image-minimal' I have the following error:

bitbake core-image-minimal
Pseudo is not present but is required, building this first before the main build
WARNING: /home/flavio/yocto/poky/meta-openembedded/meta-oe/recipes-connectivity/networkmanager/networkmanager_0.9.2.0.bb: it is recommended to set SYSTEMD_PACKAGES as <existing-package>-systemd
WARNING: Unable to get checksum for barebox SRC_URI entry defconfig: file could not be found
WARNING: /home/flavio/yocto/poky/meta/recipes-extended/lighttpd/lighttpd_1.4.30.bb: it is recommended to set SYSTEMD_PACKAGES as <existing-package>-systemd
Parsing recipes: 100% |#########################################| ETA:  00:00:00
Parsing of 1188 .bb files complete (0 cached, 1188 parsed). 1525 targets, 53 skipped, 0 masked, 0 errors.
ERROR: No recipes available for:
  /home/flavio/yocto/poky/meta-fsl-arm/recipes-qt/qt4/qt4-x11-free_4.7.4.bbappend
  /home/flavio/yocto/poky/meta-fsl-arm/recipes-qt/qt4/qt4-embedded_4.7.4.bbappend
ERROR: Command execution failed: Exited with 1

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

When I search for the original file (qt4-embedded_4.7.4.bb), I could not find this file. I can find the file qt4-embedded_4.8.1.bb. I believe that the qt library has been updated.

I would like to ask which is the correct setup for meta-fsl-arm in order to build correctly the imx28evk project. Should I use an older version of Yocto?

Thank you in advance.

Best regards,

Flavio

Fabio Estevam

unread,
Jul 2, 2012, 8:57:53 PM7/2/12
to meta-f...@googlegroups.com
Hi Flavio,

On Mon, Jul 2, 2012 at 7:49 PM, Flavio Castro Alves Filho
<flavio...@gmail.com> wrote:
> Hello,
>
> I'm trying to build Yocto Project (Poky) for imx28evk.
>
> Here are the steps that I followed:
>
> mkdir ~/yocto
> cd ~/yocto
> git clone git://git.yoctoproject.org/poky
> cd poky
> git clone git://git.openembedded.org/meta-openembedded
> git clone git://git://github.com/Freescale/meta-fsl-arm.git
> cd ..

Here you should checkout the denzil branch.

I think this would fix your build problem.

Regards,

Fabio Estevam

Otavio Salvador

unread,
Jul 2, 2012, 9:34:53 PM7/2/12
to meta-f...@googlegroups.com
On Mon, Jul 2, 2012 at 7:49 PM, Flavio Castro Alves Filho
<flavio...@gmail.com> wrote:
...
> /home/flavio/yocto/poky/meta-fsl-arm/recipes-qt/qt4/qt4-x11-free_4.7.4.bbappend
>
> /home/flavio/yocto/poky/meta-fsl-arm/recipes-qt/qt4/qt4-embedded_4.7.4.bbappend
> ERROR: Command execution failed: Exited with 1
>
> Summary: There were 3 WARNING messages shown.
> Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
>
> When I search for the original file (qt4-embedded_4.7.4.bb), I could not
> find this file. I can find the file qt4-embedded_4.8.1.bb. I believe that
> the qt library has been updated.
>
> I would like to ask which is the correct setup for meta-fsl-arm in order to
> build correctly the imx28evk project. Should I use an older version of
> Yocto?

As Fabio told you, we do not yet support Yocto's master branch but
denzil; please checkout denzil branches for OE/Poky and meta-oe and it
will work fine.

--
Otavio Salvador O.S. Systems
E-mail: ota...@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

Flavio Castro Alves Filho

unread,
Jul 6, 2012, 2:13:26 PM7/6/12
to meta-f...@googlegroups.com
Hello.

Thank you very much.

It worked.

Best regards,

Flavio

2012/7/2 Otavio Salvador <ota...@ossystems.com.br>

--
--
OpenEmbedded/Yocto Freescale ARM BSP - meta-f...@googlegroups.com

Source code of the BSP: http://github.com/Freescale/meta-fsl-arm

To cancel your subscription in this group send an e-mail to meta-fsl-arm...@googlegroups.com
For more options go to http://groups.google.com/group/meta-fsl-arm



--
Flavio de Castro Alves Filho

flavio...@gmail.com

lei yang

unread,
Jul 14, 2012, 12:31:57 AM7/14/12
to meta-f...@googlegroups.com, ota...@ossystems.com.br
On Tue, Jul 3, 2012 at 9:34 AM, Otavio Salvador <ota...@ossystems.com.br> wrote:
> On Mon, Jul 2, 2012 at 7:49 PM, Flavio Castro Alves Filho
> <flavio...@gmail.com> wrote:
> ...
>> /home/flavio/yocto/poky/meta-fsl-arm/recipes-qt/qt4/qt4-x11-free_4.7.4.bbappend
>>
>> /home/flavio/yocto/poky/meta-fsl-arm/recipes-qt/qt4/qt4-embedded_4.7.4.bbappend
>> ERROR: Command execution failed: Exited with 1
>>
>> Summary: There were 3 WARNING messages shown.
>> Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
>>
>> When I search for the original file (qt4-embedded_4.7.4.bb), I could not
>> find this file. I can find the file qt4-embedded_4.8.1.bb. I believe that
>> the qt library has been updated.
>>
>> I would like to ask which is the correct setup for meta-fsl-arm in order to
>> build correctly the imx28evk project. Should I use an older version of
>> Yocto?
>
> As Fabio told you, we do not yet support Yocto's master branch but
> denzil; please checkout denzil branches for OE/Poky and meta-oe and it
> will work fine.
>

Aha, I see many place has a "denzil" branch, what is this branch for?
and why it call this name?
all the things related yocto need to use this branch?

Lei


> --
> Otavio Salvador O.S. Systems
> E-mail: ota...@ossystems.com.br http://www.ossystems.com.br
> Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
>

Flavio Castro Alves Filho

unread,
Jul 14, 2012, 12:51:41 PM7/14/12
to meta-f...@googlegroups.com
I believe it is the Poky's version name.

2012/7/14 lei yang <yangle...@gmail.com>

Otavio Salvador

unread,
Jul 15, 2012, 1:08:47 PM7/15/12
to lei yang, meta-f...@googlegroups.com
On Sat, Jul 14, 2012 at 1:31 AM, lei yang <yangle...@gmail.com> wrote:
> Aha, I see many place has a "denzil" branch, what is this branch for?

1.2 release of Yocto

> and why it call this name?

This is the release codename.

> all the things related yocto need to use this branch?

Yes; for a working set of branches.

cmcqueen1975

unread,
Sep 3, 2012, 2:25:51 AM9/3/12
to meta-f...@googlegroups.com
On Tuesday, July 3, 2012 11:34:53 AM UTC+10, Otavio Salvador wrote:
On Mon, Jul 2, 2012 at 7:49 PM, Flavio Castro Alves Filho
<flavio...@gmail.com> wrote:
...
> /home/flavio/yocto/poky/meta-fsl-arm/recipes-qt/qt4/qt4-x11-free_4.7.4.bbappend
>
> /home/flavio/yocto/poky/meta-fsl-arm/recipes-qt/qt4/qt4-embedded_4.7.4.bbappend
> ERROR: Command execution failed: Exited with 1
>
> Summary: There were 3 WARNING messages shown.
> Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
>
> When I search for the original file (qt4-embedded_4.7.4.bb), I could not
> find this file. I can find the file qt4-embedded_4.8.1.bb. I believe that
> the qt library has been updated.
>
> I would like to ask which is the correct setup for meta-fsl-arm in order to
> build correctly the imx28evk project. Should I use an older version of
> Yocto?

As Fabio told you, we do not yet support Yocto's master branch but
denzil; please checkout denzil branches for OE/Poky and meta-oe and it
will work fine.

I was previously trying to build with OpenEmbedded-Core for imx28evk, but without success. Now I try Yocto. I did the following:

mkdir -p ~/oe-core/freescale-arm
cd       ~/oe-core/freescale-arm
git clone git://git.yoctoproject.org/poky -b denzil
git clone git://git.openembedded.org/meta-openembedded -b denzil
git clone git://git://github.com/Freescale/meta-fsl-arm.git -b denzil
cd poky

Then I edit in conf/bblayers.conf:

BBLAYERS ?= " \
  /home/craigm/oe-core/freescale-arm/poky/meta \
  /home/craigm/oe-core/freescale-arm/poky/meta-yocto \
  /home/craigm/oe-core/freescale-arm/meta-openembedded/meta-oe \
  /home/craigm/oe-core/freescale-arm/meta-fsl-arm \
  "

Then I edit conf/local.conf:

...
BB_NUMBER_THREADS = "4"
...
PARALLEL_MAKE = "-j 4"
...
MACHINE ?= "imx28evk"
...
DL_DIR ?= "/home/craigm/oe-downloads"

I set DL_DIR as shown, because I didn't want to re-download everything again, but rather reuse the downloads from my previous OpenEmbedded-Core attempts. I moved the download directory from one of my previous OpenEmbedded-Core attempts to /home/craigm/oe-downloads.

Then set up for a build:

source oe-init-build-env

Then build:

bitbake core-image-minimal

Build succeeded. Then write to 4 GB SD card (~30 mins):

sudo dd if=tmp/deploy/images/core-image-minimal-imx28evk.sdcard of=/dev/sdc

Then boot in the board with the SD card in SD slot 0. But it doesn't work. It gets as far as "Uncompressing Linux... done, booting the kernel", but no further. Am I missing something?

Fabio Estevam

unread,
Sep 3, 2012, 8:37:11 AM9/3/12
to meta-f...@googlegroups.com
On 9/3/12, cmcqueen1975 <google...@craig.mcqueen.id.au> wrote:

> Then boot in the board with the SD card in SD slot 0. But it doesn't work.
> It gets as far as "Uncompressing Linux... done, booting the kernel", but no
>
> further. Am I missing something?

Go to the U-boot prompt, and check the "console" variable. It should
be console=ttyAMA0, instead of ttyAM0.

Regards,

Fabio Estevam

cmcqueen1975

unread,
Sep 3, 2012, 8:06:28 PM9/3/12
to meta-f...@googlegroups.com

Thanks for the tip. I had checked that, and saw there was:

console=${console_mainline}
console_fsl=ttyAM0
console_mainline=ttyAMA0

 So that looked fine to me. But, I decided to try changing it anyway:

setenv console ttyAMA0
saveenv

Then booted again, and this time it got further through the boot process (though not all the way to a login prompt). So the line console=${console_mainline} isn't being evaluated as I'd expect.

If I understand correctly, that initial U-Boot configuration is what is written to the SD card from the Yocto + meta-fsl-arm build process. Is that right, or is it coming from somewhere else?

Otavio Salvador

unread,
Sep 5, 2012, 8:27:11 AM9/5/12
to meta-f...@googlegroups.com
Yes; this is the initial ...

I will check what is broken on this as it ought to work out of box.

Flavio Castro Alves Filho

unread,
Nov 2, 2012, 10:50:08 PM11/2/12
to meta-f...@googlegroups.com
Hello,

2012/9/3 cmcqueen1975 <google...@craig.mcqueen.id.au>
I'm not a git expert, but I perform a different approach here:

cd poky
git checkout -b local/origin/denzil remotes/origin/denzil
cd ..
git clone git://git.openembedded.org/meta-openembedded
cd meta-openembedded
git checkout -b local/origin/denzil remotes/origin/denzil
cd ..
cd meta-fsl-arm
git checkout -b local/origin/denzil remotes/origin/denzil
cd ..

And continue your procedure. At least for me it is working very well ... and I could deploy correctly the image from sdcard.

 
Then I edit in conf/bblayers.conf:

BBLAYERS ?= " \
  /home/craigm/oe-core/freescale-arm/poky/meta \
  /home/craigm/oe-core/freescale-arm/poky/meta-yocto \
  /home/craigm/oe-core/freescale-arm/meta-openembedded/meta-oe \
  /home/craigm/oe-core/freescale-arm/meta-fsl-arm \
  "

Then I edit conf/local.conf:

...
BB_NUMBER_THREADS = "4"
...
PARALLEL_MAKE = "-j 4"
...
MACHINE ?= "imx28evk"
...
DL_DIR ?= "/home/craigm/oe-downloads"

I set DL_DIR as shown, because I didn't want to re-download everything again, but rather reuse the downloads from my previous OpenEmbedded-Core attempts. I moved the download directory from one of my previous OpenEmbedded-Core attempts to /home/craigm/oe-downloads.

Then set up for a build:

source oe-init-build-env

Then build:

bitbake core-image-minimal

Build succeeded. Then write to 4 GB SD card (~30 mins):

sudo dd if=tmp/deploy/images/core-image-minimal-imx28evk.sdcard of=/dev/sdc

Then boot in the board with the SD card in SD slot 0. But it doesn't work. It gets as far as "Uncompressing Linux... done, booting the kernel", but no further. Am I missing something?

--
--
OpenEmbedded/Yocto Freescale ARM BSP - meta-f...@googlegroups.com
 
Source code of the BSP: http://github.com/Freescale/meta-fsl-arm
 
To cancel your subscription in this group send an e-mail to meta-fsl-arm...@googlegroups.com
For more options go to http://groups.google.com/group/meta-fsl-arm

Otavio Salvador

unread,
Nov 2, 2012, 11:19:09 PM11/2/12
to meta-f...@googlegroups.com


On Sat, Nov 3, 2012 at 12:50 AM, Flavio Castro Alves Filho <flavio...@gmail.com> wrote:
Hello,

2012/9/3 cmcqueen1975 <google...@craig.mcqueen.id.au>
I was previously trying to build with OpenEmbedded-Core for imx28evk, but without success. Now I try Yocto. I did the following:

mkdir -p ~/oe-core/freescale-arm
cd       ~/oe-core/freescale-arm
git clone git://git.yoctoproject.org/poky -b denzil
git clone git://git.openembedded.org/meta-openembedded -b denzil
git clone git://git://github.com/Freescale/meta-fsl-arm.git -b denzil
cd poky


I'm not a git expert, but I perform a different approach here:

cd poky
git checkout -b local/origin/denzil remotes/origin/denzil
cd ..
git clone git://git.openembedded.org/meta-openembedded
cd meta-openembedded
git checkout -b local/origin/denzil remotes/origin/denzil
cd ..
cd meta-fsl-arm
git checkout -b local/origin/denzil remotes/origin/denzil
cd ..

And continue your procedure. At least for me it is working very well ... and I could deploy correctly the image from sdcard.

Well both are correct.

When you specify the -b <branch> in clone, instead of doing the checkout of master it default to checkout the branch you requested so it reduces the number of steps you have to do for setup your tree. By default, except if using a shallow clone (--depth argument) or --single-branch argument, you will have whole history of all branches anyway.

For initial use I think our fsl-community-bsp makes life easier but it is a personal choice.

Reply all
Reply to author
Forward
0 new messages