SCM-i.MX 6Dual/6Quad Linux Patch not able to bitbake

cancel
Showing results for 
Search instead for 
Did you mean: 

SCM-i.MX 6Dual/6Quad Linux Patch not able to bitbake

Jump to solution
1,593 Views
zafriry
Contributor I

Hi,

I am trying unsuccessfully to bitbake a build for SCM-i.MX6Dual/6Quad (QWKS-SCMIMX6DQ).

I have been following document # SCMIMX6DQLRNUG Rev. 0, 02/2016. See attached tar file

Per the document, in the build machine the following commands have been given:

$ mkdir fsl-arm-yocto-bsp

$ cd fsl-arm-yocto-bsp

$ cp <path to scm package>/meta-fsl-scm.tar.gz .

$ repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.14.52-1.1.0_ga

$ repo sync

$ tar zxvf meta-fsl-scm.tar.gz -C sources/

$ DISTRO=fsl-imx-fb MACHINE=imx6dqscm-1gb-qwks source BUILD_DIR=build fsl-setup-release.sh

I have tried both

$ bitbake fsl-image-qt5

and

$ bitbake core-image-base

This is the error that I get:

NOTE: Preparing RunQueue

NOTE: Executing SetScene Tasks

NOTE: Executing RunQueue Tasks

ERROR: Command Error: exit status: 1  Output:

Applying patch 0007-MLK-11888-1-arm-imx6-common-fix-ddr_type-identificat.patch

patching file arch/arm/mach-imx/common.h

Hunk #1 FAILED at 181.

1 out of 1 hunk FAILED -- rejects in file arch/arm/mach-imx/common.h

Patch 0007-MLK-11888-1-arm-imx6-common-fix-ddr_type-identificat.patch can be reverse-applied

ERROR: Function failed: patch_do_patch

ERROR: Logfile of failure stored in: /home/grimlock/SnipeBlock3/build/tmp/work/imx6dqscm_1gb_qwks-poky-linux-gnueabi/linux-imx/3.14.52-r0/temp/log.do_patch.32251

ERROR: Task 70 (/home/grimlock/SnipeBlock3/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_3.14.52.bb, do_patch) failed with exit code '1'

Any thoughts what could cause this?

Thanks,

Zeph

Original attachment has been moved to https://community.nxp.com/docs/DOC-337109 

Labels (3)
Tags (1)
0 Kudos
1 Solution
407 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

To fix this please try the attached file.

Just replace it  on <yocto_installation>sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/ directory

cp –v linux-imx-3.14.52.bbappend <yocto_installation>sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/

This is the main change:

python do_patch_prepend() {

    import subprocess

subprocess.call("echo Reseting to rel_imx_3.14.52_1.1.0_ga", shell=True)

subprocess.call("git -C ${S} checkout rel_imx_3.14.52_1.1.0_ga", shell=True)

}

Best Regards,

Alejandro

View solution in original post

0 Kudos
3 Replies
407 Views
b36401
NXP TechSupport
NXP TechSupport

Hello Zeph,

Please let us know if Alejandro's fix helped.

Have a great day,

Victor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
407 Views
zafriry
Contributor I

Work!. Thanks.

0 Kudos
408 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

To fix this please try the attached file.

Just replace it  on <yocto_installation>sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/ directory

cp –v linux-imx-3.14.52.bbappend <yocto_installation>sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/

This is the main change:

python do_patch_prepend() {

    import subprocess

subprocess.call("echo Reseting to rel_imx_3.14.52_1.1.0_ga", shell=True)

subprocess.call("git -C ${S} checkout rel_imx_3.14.52_1.1.0_ga", shell=True)

}

Best Regards,

Alejandro

View solution in original post

0 Kudos