Error building congatec (cgtqmx6) with yocto dora branch

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error building congatec (cgtqmx6) with yocto dora branch

Jump to solution
5,815 Views
j-g
Contributor III

Hello,

I'm sorry if there is an easy answer to this problem, but I'm just getting my feet under me in the Linux world.  I have yocto-project dora branch installed and tried to make the core-image-minimal with machine as cgtqmx6 and am running in to the problem below.  An issue with the patch  0001-Add-linux-support-for-congatec-evaluation-board-qmx6q.patch.  Is there something I'm missing or have misconfigured?

Build Configuration:
BB_VERSION        = "1.20.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-12.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "cgtqmx6"
DISTRO            = "poky"
DISTRO_VERSION    = "1.5"
TUNE_FEATURES     = "armv7a vfp neon callconvention-hard cortexa9"
TARGET_FPU        = "vfp-neon"
meta             
meta-yocto        = "(nobranch):75bed4086eb83f1d24c31392f3dd54aa5c3679b1"
meta-oe           = "(nobranch):513e7ca20ddd0a5c3b649bf292a67c3e0473d3a8"
meta-fsl-arm      = "(nobranch):5b3b6618426ad06e4fb6a3a77c4a53dfb47f0556"
meta-fsl-arm-extra = "(nobranch):11ac45d22963a3f047a85c96009c36cb6e156d0a"
meta-fsl-demos    = "(nobranch):cd6275042cdd2d87490521f6cbeb65972ed37a66"
meta-hob          = "(nobranch):75bed4086eb83f1d24c31392f3dd54aa5c3679b1"

NOTE: Preparing runqueue
NOTE: Marking Active Tasks
NOTE: Pruned 4360 inactive tasks, 1528 left
NOTE: Assign Weightings
NOTE: Compute totals (have 1 endpoint(s))
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Command Error: exit status: 1  Output:
Applying patch 0001-Add-linux-support-for-congatec-evaluation-board-qmx6q.patch
patching file arch/arm/configs/qmx6_defconfig
patching file arch/arm/configs/qmx6_updater_defconfig
patching file arch/arm/mach-mx6/Kconfig
patching file arch/arm/mach-mx6/Makefile
patching file arch/arm/mach-mx6/board-mx6dl_qmx6.h
patching file arch/arm/mach-mx6/board-mx6q_qmx6.c
patching file arch/arm/mach-mx6/board-mx6q_qmx6.h
patching file arch/arm/mach-mx6/mx6q_qmx6_pmic_pfuze100.c
patching file arch/arm/plat-mxc/include/mach/esdhc.h
patching file arch/arm/tools/mach-types
patching file drivers/mmc/host/sdhci-esdhc-imx.c
patching file drivers/net/fec.c
Hunk #3 succeeded at 200 (offset 1 line).
Hunk #4 succeeded at 250 (offset 1 line).
Hunk #5 succeeded at 518 (offset 1 line).
Hunk #6 succeeded at 768 (offset 1 line).
Hunk #7 succeeded at 927 (offset 1 line).
Hunk #8 succeeded at 1112 (offset 1 line).
Hunk #9 FAILED at 1140.
Hunk #10 succeeded at 1930 (offset 6 lines).
1 out of 10 hunks FAILED -- rejects in file drivers/net/fec.c
patching file drivers/net/phy/micrel.c
patching file include/linux/micrel_phy.h
patching file sound/soc/imx/Kconfig
patching file sound/soc/imx/imx-sgtl5000.c
Patch 0001-Add-linux-support-for-congatec-evaluation-board-qmx6q.patch does not apply (enforce with -f)
ERROR: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/elemec/dora-fsl-community-bsp/conga-qmx6/tmp/work/cgtqmx6-poky-linux-gnueabi/linux-imx/3.0.35-r37.14/temp/log.do_patch.2400
ERROR: Task 239 (/home/elemec/dora-fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx_3.0.35.bb, do_patch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1502 tasks of which 1499 didn't need to be rerun and 1 failed.
No currently running tasks (1502 of 1528)

Summary: 1 task failed:
  /home/elemec/dora-fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx_3.0.35.bb, do_patch
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

Labels (2)
1 Solution
2,652 Views
OtavioSalvador
Senior Contributor II

I sent the patch to the mailing list; you can fetch it there or from:

http://patchwork.openembedded.org/patch/62247/

View solution in original post

0 Kudos
26 Replies
2,193 Views
glory_man
Contributor I

I have the same problem as Pavel earlier described:

.....poky-linux-gnueabi/imx-test/1_3.10.9-1.0.0-r0/imx-test-3.10.9-1.0.0/module_test/epdc_test_driver.c:39:30: fatal error: linux/mxcfb_epdc.h: No such file or directory

|  #include <linux/mxcfb_epdc.h>

|                               ^

| compilation terminated.

0 Kudos
2,193 Views
OtavioSalvador
Senior Contributor II

The Congatec board is orphan in the FSL Community BSP so it is not often tested and well maintained. Please talk to Congatec and ask them to look at it.

0 Kudos
2,193 Views
glory_man
Contributor I

In fact, I tried to build for Mars Board. I added CORE_IAMGE_EXTRA_REMOVE += "imx-test" in local.conf but this packet whatever compiled. I've found meta-fsl-demos/recipes-fsl/packagegroup/packagegroup-fsl.bb where

  RDEPENDS_${PN}-tools-testapps ="\ .... imx-test ...."  is.

Is it posible exclude this package from build?

0 Kudos
2,193 Views
OtavioSalvador
Senior Contributor II

I suggest you to use a self-made image which includes exactly what you need.

Be aware Mars is also not supported so be prepared to handle with unexpected failures.    

0 Kudos
2,193 Views
pavelkopylov
Contributor III

Hello,

Have found another bug.

The "CONFIG_DEVTMPFS" parameter was not set in kernel config, HALTing the system after starting udev.

CONFIG_DEVTMPFS=y

CONFIG_DEVTMPFS_MOUNT=y


- Pavel

0 Kudos
2,193 Views
OtavioSalvador
Senior Contributor II

Hi Pavel,

Can you prepare a patch and send it to meta-freescale mailing list?

0 Kudos
2,193 Views
pavelkopylov
Contributor III

Hello,

I have sent the email containing the patch to the:

meta-freescale@yoctoproject.org

Is that correct address?

0 Kudos
2,193 Views
pavelkopylov
Contributor III

Another bug:

bitbake imx-test is failed to compile:

| /home/LIJ2014/fsl-community-bsp/build/tmp/work/cgtqmx6-poky-linux-gnueabi/imx-test/1_3.10.9-1.0.0-r0/imx-test-3.10.9-1.0.0/module_test/epdc_test_driver.c:39:30: fatal error: linux/mxcfb_epdc.h: No such file or directory
|  #include <linux/mxcfb_epdc.h>
|                              ^
| compilation terminated.
| make[4]: *** [/home/LIJ2014/fsl-community-bsp/build/tmp/work/cgtqmx6-poky-linux-gnueabi/imx-test/1_3.10.9-1.0.0-r0/imx-test-3.10.9-1.0.0/module_test/epdc_test_driver.o] Error 1
0 Kudos
2,193 Views
glory_man
Contributor I

I have the same problem as Pavel described:

.....poky-linux-gnueabi/imx-test/1_3.10.9-1.0.0-r0/imx-test-3.10.9-1.0.0/module_test/epdc_test_driver.c:39:30: fatal error: linux/mxcfb_epdc.h: No such file or directory

|  #include <linux/mxcfb_epdc.h>

|                               ^

| compilation terminated.

0 Kudos
2,193 Views
OtavioSalvador
Senior Contributor II

Hello Pavel,

Please try:

$: git cherry-pick 88dbf62f3c72160b2b9bf6872a7b9e4f47a47f40

in source/meta-fsl-arm-extra. If you can confirm the board works fine using this, I can backport it to Dora.

0 Kudos
2,193 Views
pavelkopylov
Contributor III

Nope, didn't help.

Pastebin to the errorlog file.

http://pastebin.com/88qNbACG

0 Kudos
2,193 Views
OtavioSalvador
Senior Contributor II

I don't think you applied it.

The commit you must see in 'git log' is:

commit c099f7944bc18e3fd556cc88175a9ca4433fbf6e

Author: Otavio Salvador <otavio@ossystems.com.br>

Date:   Sun Jan 26 21:05:30 2014 -0200

    linux-imx (3.0.35): Update Congatec cgtqmx6 to 3.0.35-4.1.0

   

    This reduces a lot the number of patches we need to apply and easy

    upgrade to the Vivante 4.6.9p13 GPU that comes with the

    3.10.17-1.0.0-beta BSP.

   

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>

0 Kudos
2,193 Views
pavelkopylov
Contributor III

Huh.

What I try:

~/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm-extra$  git cherry-pick 88dbf62f3c72160b2b9bf6872a7b9e4f47a47f40

[detached HEAD 09e1209] linux-imx (3.0.35): Update Congatec cgtqmx6 to 3.0.35-4.1.0

Author: Otavio Salvador <otavio@ossystems.com.br>

9 files changed, 30 insertions(+), 3350 deletions(-)

delete mode 100644 recipes-kernel/linux/linux-imx-3.0.35/0001-ENGR00255688-4.6.9p11.1-gpu-GPU-Kernel-driver-integr.patch

delete mode 100644 recipes-kernel/linux/linux-imx-3.0.35/0002-ENGR00265465-gpu-Add-global-value-for-minimum-3D-clo.patch

delete mode 100644 recipes-kernel/linux/linux-imx-3.0.35/0003-ENGR00261814-4-gpu-use-new-PU-power-on-off-interface.patch

delete mode 100644 recipes-kernel/linux/linux-imx-3.0.35/0004-ENGR00264288-1-GPU-Integrate-4.6.9p12-release-kernel.patch

delete mode 100644 recipes-kernel/linux/linux-imx-3.0.35/0005-ENGR00264275-GPU-Correct-suspend-resume-calling-afte.patch

delete mode 100644 recipes-kernel/linux/linux-imx-3.0.35/0006-ENGR00265130-gpu-Correct-section-mismatch-in-gpu-ker.patch

delete mode 100644 recipes-kernel/linux/linux-imx-3.0.35/drm-vivante-Add-00-sufix-in-returned-bus-Id.patch

rewrite recipes-kernel/linux/linux-imx_3.0.35.bbappend (91%)

~/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm-extra$

Then in "git log" this commit is not shown:

~/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm-extra$  git cherry-pick 88dbf62f3c72160b2b9bf6872a7b9e4f47a47f40

~/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm-extra$ git log

commit 09e1209dfecca0e4bab2882fe4ff2cc981bb127e

Author: Otavio Salvador <otavio@ossystems.com.br>

Date:   Sun Jan 26 21:05:30 2014 -0200

    linux-imx (3.0.35): Update Congatec cgtqmx6 to 3.0.35-4.1.0

 

    This reduces a lot the number of patches we need to apply and easy

    upgrade to the Vivante 4.6.9p13 GPU that comes with the

    3.10.17-1.0.0-beta BSP.

 

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>

commit 78a8f30e8693599e6a5a0e90acbae10766e58c7c

Author: Otavio Salvador <otavio@ossystems.com.br>

Date:   Mon Jan 27 10:36:38 2014 -0200

    cgtqmx6: Set u-boot-imx version to 2009.08

 

    The u-boot-imx version were not fixed so it was using the 2013.04

    version which the patch does not apply; ensure we keep using the

    2009.08 version.

 

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>

commit 07ad83db0fb67c5023bd627a61efb7f474c52622

Author: Otavio Salvador <otavio@ossystems.com.br>

Date:   Fri Nov 22 15:44:23 2013 -0200

    linux-imx (3.0.35): Fix Congatec board build to use 3.0.35-4.0.0

 

    The Congatec qmx6 is based on 3.0.35-4.0.0 BSP and has not been ported

    to the 3.0.35-4.1.0 yet; we workaround it fixing the revision and

    applying the need patches on top of the kernel for it to work with the

    3.10.9-1.0.0 GPU.

 

    Change-Id: Ifa5baa4dd26edd5e68c9f3e2d5dec2b078e05a23

    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>

commit eee93121d056cbb880d92b8f339d28f75f4a9070

Author: Mario Domenech Goulart <mario@ossystems.com.br>

:

[3]+  Stopped                 git log

~/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm-extra$

0 Kudos
2,193 Views
OtavioSalvador
Senior Contributor II

Hello Pavel,

Oh right, I see.

Please do:

$: bitbake imx-test linux-imx -c cleansstate

and try building the image again.

0 Kudos
2,193 Views
pavelkopylov
Contributor III

Hello Ottavio,

No luck yet with compilation yet:

After

     $: bitbake imx-test linux-imx -c cleansstate

I receive error on do_fetch phase of the kernel recipe:

$ bitbake fsl-image-test

Build Configuration:

BB_VERSION        = "1.20.0"

BUILD_SYS         = "x86_64-linux"

NATIVELSBSTRING   = "Ubuntu-12.04"

TARGET_SYS        = "arm-poky-linux-gnueabi"

MACHINE           = "cgtqmx6"

DISTRO            = "poky"

DISTRO_VERSION    = "1.5.1"

TUNE_FEATURES     = "armv7a vfp neon callconvention-hard cortexa9"

TARGET_FPU        = "vfp-neon"

meta             

meta-yocto        = "(nobranch):c3cccbea7abd4af3d603b2be42b0c7291ff21946"

meta-oe           = "(nobranch):40e0f371f3eb1628655c484feac0cebf810737b4"

meta-fsl-arm      = "(nobranch):af392c22bf6b563525ede4a81b6755ff1dd2c1c6"

meta-fsl-arm-extra = "(nobranch):09e1209dfecca0e4bab2882fe4ff2cc981bb127e"

meta-fsl-demos    = "(nobranch):5a12677ad000a926d23c444266722a778ea228a7"

NOTE: Preparing runqueue

NOTE: Executing SetScene Tasks

NOTE: Executing RunQueue Tasks

WARNING: Failed to fetch URL file://0007-ARM-mach-mx6-board-mx6q_sabresd-Register-SDHC3-first.patchfile://cgtqmx6/0001-Add-linux-support-for-congatec-evaluation-board-qmx6q.patch, attempting MIRRORS if available

ERROR: Fetcher failure: Unable to find file file://0007-ARM-mach-mx6-board-mx6q_sabresd-Register-SDHC3-first.patchfile://cgtqmx6/0001-Add-linux-support-for-congatec-evaluation-board-qmx6q.patch anywhere. The paths that were searched were:

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/arm

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/armv7a

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/mx6

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/mx6q

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/cgtqmx6

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/poky

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-imx-3.0.35/

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/arm

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/armv7a

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/mx6

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/mx6q

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/cgtqmx6

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/poky

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx-3.0.35/

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/arm

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/armv7a

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/mx6

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/mx6q

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/cgtqmx6

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/poky

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx/

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/files/arm

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/files/armv7a

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/files/mx6

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/files/mx6q

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/files/cgtqmx6

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/files/poky

    /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/files/

    /home/pavel/LIJ2014/fsl-community-bsp/downloads/

ERROR: Function failed: Fetcher failure for URL: 'file://0007-ARM-mach-mx6-board-mx6q_sabresd-Register-SDHC3-first.patchfile://cgtqmx6/0001-Add-linux-support-for-congatec-evaluation-board-qmx6q.patch'. Unable to fetch URL from any source.

ERROR: Logfile of failure stored in: /home/pavel/LIJ2014/fsl-community-bsp/build/tmp/work/cgtqmx6-poky-linux-gnueabi/linux-imx/3.0.35-r37.14/temp/log.do_fetch.19845

ERROR: Task 294 (/home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx_3.0.35.bb, do_fetch) failed with exit code '1'

NOTE: Tasks Summary: Attempted 2354 tasks of which 2353 didn't need to be rerun and 1 failed.

No currently running tasks (945 of 4987)

Summary: 1 task failed:

  /home/pavel/LIJ2014/fsl-community-bsp/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx_3.0.35.bb, do_fetch

Summary: There was 1 WARNING message shown.

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

0 Kudos
2,193 Views
OtavioSalvador
Senior Contributor II

Ahhh, this one is easy.

Edit the recipes-kernel/linux/linux-imx_3.0.35.bbappend (inside meta-fsl-arm-extra) and add an 'space' as:

SRC_URI_append_cgtqmx6 = " file:...

The linux-imx file has been changed in master so this works fine there but fails for you. Please confirm if it works.

0 Kudos
2,193 Views
pavelkopylov
Contributor III

Hello  Ottavio,

The kernel and kernelmodules were compiled.

Edit:

     The fsl-image-test recipe was compiled.

0 Kudos
2,193 Views
pavelkopylov
Contributor III

Hello, I have another problem like this one:

the Freescale Community BSP 1.5.1 is failed to build the u-boot

Build Configuration:

BB_VERSION        = "1.20.0"

BUILD_SYS         = "x86_64-linux"

NATIVELSBSTRING   = "Ubuntu-12.04"

TARGET_SYS        = "arm-poky-linux-gnueabi"

MACHINE           = "cgtqmx6"

DISTRO            = "poky"

DISTRO_VERSION    = "1.5.1"

TUNE_FEATURES     = "armv7a vfp neon callconvention-hard cortexa9"

TARGET_FPU        = "vfp-neon"

DEBUG: Executing shell function do_compile

NOTE: make -j 2 CROSS_COMPILE=arm-poky-linux-gnueabi- CC=arm-poky-linux-gnueabi-gcc  --sysroot=/home/LIJ2014/fsl-community-bsp/build/tmp/sysroots/cgtqmx6 cgtqmx6_config

make: *** No rule to make target `cgtqmx6_config'.  Stop.

make: *** [cgtqmx6_config] Error 1

ERROR: oe_runmake failed

WARNING: /home/fsl-community-bsp/build/tmp/work/cgtqmx6-poky-linux-gnueabi/u-boot-imx/2013.04-r0/temp/run.do_compile.28639:1 exit 1 from

  exit 1

ERROR: Function failed: do_compile (log file is located at /home/fsl-community-bsp/build/tmp/work/cgtqmx6-poky-linux-gnueabi/u-boot-imx/2013.04-r0/temp/log.do_compile.28639)

0 Kudos
2,193 Views
OtavioSalvador
Senior Contributor II

I am awaiting our autobuilder to finish building Dora to confirm if this fixes the issue there but I think the:

https://github.com/Freescale/meta-fsl-arm-extra/commit/3239f237a88f9cf1d531a5f113706a2a60442e2a

is what you are after.

Please confirm it fixes the build for you..

0 Kudos
2,193 Views
OtavioSalvador
Senior Contributor II

Just to let you know that I've been able to reproduce the issue and I cherry-picked the fix.

Please do a 'repo sync' and try again.