L4.9.11_1.0.0:Issue in Building Linux kernel using bitbake

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

L4.9.11_1.0.0:Issue in Building Linux kernel using bitbake

1,473 Views
srishan
Contributor III

Dear I.MX community

I am facing the below issue while building the kernel alone using the following bitbake commands

$ bitbake -c cleansstate linux-imx

$ bitbake <your_image>       or         $ bitbake linux-imx

Could you please help me in resolving the below issue as early as possible

te-test@tetest-ThinkCentre-M72e:~/fsl-release-bsp/build-x11$ bitbake -c cleansstate linux-imx
Loading cache: 100% |###########################################################################################################| Time: 0:00:00
Loaded 3049 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "imx6ull14x14evk"
DISTRO            = "fsl-imx-x11"
DISTRO_VERSION    = "4.9.11-1.0.0"
TUNE_FEATURES     = "arm armv7ve vfp thumb neon       callconvention-hard       cortexa7"
TARGET_FPU        = "hard"
meta              
meta-poky         = "HEAD:78890ea22750804e3e9113e76f7ca3d7234c8342"
meta-oe           
meta-multimedia   = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-freescale    = "HEAD:a398b50b7fc084a9e68cc3000c218d5028522a25"
meta-freescale-3rdparty = "HEAD:68314612e236cab1da82d72a0da62635a3523f84"
meta-freescale-distro = "HEAD:cd5c7a2539f40004f74126e9fdf08254fd9a6390"
meta-bsp          
meta-sdk          = "HEAD:daba3340ecd8b358e0c6c415baeee0fcae95c525"
meta-browser      = "HEAD:10f6e3778d823ee1be106c126216c6f941088fbf"
meta-gnome        
meta-networking   
meta-python       
meta-filesystems  = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-qt5          = "HEAD:ff073f04109900fc07bf81e2f1df63c626caf342"

Initialising tasks: 100% |######################################################################################################| Time: 0:00:00
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn't need to be rerun and all succeeded.
te-test@tetest-ThinkCentre-M72e:~/fsl-release-bsp/build-x11$ bitbake linux-imx
Loading cache: 100% |###########################################################################################################| Time: 0:00:00
Loaded 3049 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "imx6ull14x14evk"
DISTRO            = "fsl-imx-x11"
DISTRO_VERSION    = "4.9.11-1.0.0"
TUNE_FEATURES     = "arm armv7ve vfp thumb neon       callconvention-hard       cortexa7"
TARGET_FPU        = "hard"
meta              
meta-poky         = "HEAD:78890ea22750804e3e9113e76f7ca3d7234c8342"
meta-oe           
meta-multimedia   = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-freescale    = "HEAD:a398b50b7fc084a9e68cc3000c218d5028522a25"
meta-freescale-3rdparty = "HEAD:68314612e236cab1da82d72a0da62635a3523f84"
meta-freescale-distro = "HEAD:cd5c7a2539f40004f74126e9fdf08254fd9a6390"
meta-bsp          
meta-sdk          = "HEAD:daba3340ecd8b358e0c6c415baeee0fcae95c525"
meta-browser      = "HEAD:10f6e3778d823ee1be106c126216c6f941088fbf"
meta-gnome        
meta-networking   
meta-python       
meta-filesystems  = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-qt5          = "HEAD:ff073f04109900fc07bf81e2f1df63c626caf342"

Initialising tasks: 100% |######################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: linux-imx-4.9.11-r0 do_deploy: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:sstate_task_postfunc(d)
     0003:
File: '/home/te-test/fsl-release-bsp/sources/poky/meta/classes/sstate.bbclass', lineno: 672, function: sstate_task_postfunc
     0668:
     0669:python sstate_task_postfunc () {
     0670:    shared_state = sstate_state_fromvars(d)
     0671:
 *** 0672:    sstate_install(shared_state, d)
     0673:    for intercept in shared_state['interceptfuncs']:
     0674:        bb.build.exec_func(intercept, d, (d.getVar("WORKDIR", True),))
     0675:    omask = os.umask(0o002)
     0676:    if omask != 0o002:
File: '/home/te-test/fsl-release-bsp/sources/poky/meta/classes/sstate.bbclass', lineno: 276, function: sstate_install
     0272:
     0273:    # Run the actual file install
     0274:    for state in ss['dirs']:
     0275:        if os.path.exists(state[1]):
 *** 0276:            oe.path.copyhardlinktree(state[1], state[2])
     0277:
     0278:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS', True) or '').split():
     0279:        # All hooks should run in the SSTATE_INSTDIR
     0280:        bb.build.exec_func(postinst, d, (sstateinst,))
File: '/home/te-test/fsl-release-bsp/sources/poky/meta/lib/oe/path.py', lineno: 81, function: copyhardlinktree
     0077:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
     0078:        # Need to copy directories only with tar first since cp will error if two
     0079:        # writers try and create a directory at the same time
     0080:        cmd = "cd %s; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xf - -C %s" % (src, src, dst)
 *** 0081:        subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
     0082:        source = ''
     0083:        if os.path.isdir(src):
     0084:            import glob
     0085:            if len(glob.glob('%s/.??*' % src)) > 0:
File: '/usr/lib/python3.4/subprocess.py', lineno: 616, function: check_output
     0612:            process.wait()
     0613:            raise
     0614:        retcode = process.poll()
     0615:        if retcode:
 *** 0616:            raise CalledProcessError(retcode, process.args, output=output)
     0617:    return output
     0618:
     0619:
     0620:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command 'cd /home/te-test/fsl-release-bsp/build-x11/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/linux-imx/4.9.11-r0/deploy-linux-imx; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C /home/te-test/fsl-release-bsp/build-x11/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/linux-imx/4.9.11-r0/deploy-linux-imx -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xf - -C /home/te-test/fsl-release-bsp/build-x11/tmp/deploy/images/imx6ull14x14evk' returned non-zero exit status 2

Subprocess output:
tar: .: Cannot utime: Operation not permitted
tar: .: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: Exiting with failure status due to previous errors

ERROR: linux-imx-4.9.11-r0 do_deploy: Function failed: sstate_task_postfunc
ERROR: Logfile of failure stored in: /home/te-test/fsl-release-bsp/build-x11/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/linux-imx/4.9.11-r0/temp/log.do_deploy.19810
ERROR: Task (/home/te-test/fsl-release-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.9.11.bb:do_deploy) failed with exit code '1'
NOTE: Tasks Summary: Attempted 438 tasks of which 420 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/te-test/fsl-release-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.9.11.bb:do_deploy
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
te-test@tetest-ThinkCentre-M72e:~/fsl-release-bsp/build-x11$

Kindly do the needful as early as possible

Many Thanks in advance

Labels (3)
0 Kudos
3 Replies

1,001 Views
srishan
Contributor III

Even with u-boot

te-test@tetest-ThinkCentre-M72e:~/fsl-release-bsp/build-x11$ bitbake -c cleansstate u-boot-imx
Loading cache: 100% |###########################################################################################################| Time: 0:00:00
Loaded 3049 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "imx6ull14x14evk"
DISTRO            = "fsl-imx-x11"
DISTRO_VERSION    = "4.9.11-1.0.0"
TUNE_FEATURES     = "arm armv7ve vfp thumb neon       callconvention-hard       cortexa7"
TARGET_FPU        = "hard"
meta              
meta-poky         = "HEAD:78890ea22750804e3e9113e76f7ca3d7234c8342"
meta-oe           
meta-multimedia   = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-freescale    = "HEAD:a398b50b7fc084a9e68cc3000c218d5028522a25"
meta-freescale-3rdparty = "HEAD:68314612e236cab1da82d72a0da62635a3523f84"
meta-freescale-distro = "HEAD:cd5c7a2539f40004f74126e9fdf08254fd9a6390"
meta-bsp          
meta-sdk          = "HEAD:daba3340ecd8b358e0c6c415baeee0fcae95c525"
meta-browser      = "HEAD:10f6e3778d823ee1be106c126216c6f941088fbf"
meta-gnome        
meta-networking   
meta-python       
meta-filesystems  = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-qt5          = "HEAD:ff073f04109900fc07bf81e2f1df63c626caf342"

Initialising tasks: 100% |######################################################################################################| Time: 0:00:00
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn't need to be rerun and all succeeded.
te-test@tetest-ThinkCentre-M72e:~/fsl-release-bsp/build-x11$
te-test@tetest-ThinkCentre-M72e:~/fsl-release-bsp/build-x11$
te-test@tetest-ThinkCentre-M72e:~/fsl-release-bsp/build-x11$ bitbake u-boot-imx
Loading cache: 100% |###########################################################################################################| Time: 0:00:00
Loaded 3049 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "imx6ull14x14evk"
DISTRO            = "fsl-imx-x11"
DISTRO_VERSION    = "4.9.11-1.0.0"
TUNE_FEATURES     = "arm armv7ve vfp thumb neon       callconvention-hard       cortexa7"
TARGET_FPU        = "hard"
meta              
meta-poky         = "HEAD:78890ea22750804e3e9113e76f7ca3d7234c8342"
meta-oe           
meta-multimedia   = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-freescale    = "HEAD:a398b50b7fc084a9e68cc3000c218d5028522a25"
meta-freescale-3rdparty = "HEAD:68314612e236cab1da82d72a0da62635a3523f84"
meta-freescale-distro = "HEAD:cd5c7a2539f40004f74126e9fdf08254fd9a6390"
meta-bsp          
meta-sdk          = "HEAD:daba3340ecd8b358e0c6c415baeee0fcae95c525"
meta-browser      = "HEAD:10f6e3778d823ee1be106c126216c6f941088fbf"
meta-gnome        
meta-networking   
meta-python       
meta-filesystems  = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-qt5          = "HEAD:ff073f04109900fc07bf81e2f1df63c626caf342"

Initialising tasks: 100% |######################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: u-boot-imx-2017.03-r0 do_deploy: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:sstate_task_postfunc(d)
     0003:
File: '/home/te-test/fsl-release-bsp/sources/poky/meta/classes/sstate.bbclass', lineno: 672, function: sstate_task_postfunc
     0668:
     0669:python sstate_task_postfunc () {
     0670:    shared_state = sstate_state_fromvars(d)
     0671:
 *** 0672:    sstate_install(shared_state, d)
     0673:    for intercept in shared_state['interceptfuncs']:
     0674:        bb.build.exec_func(intercept, d, (d.getVar("WORKDIR", True),))
     0675:    omask = os.umask(0o002)
     0676:    if omask != 0o002:
File: '/home/te-test/fsl-release-bsp/sources/poky/meta/classes/sstate.bbclass', lineno: 276, function: sstate_install
     0272:
     0273:    # Run the actual file install
     0274:    for state in ss['dirs']:
     0275:        if os.path.exists(state[1]):
 *** 0276:            oe.path.copyhardlinktree(state[1], state[2])
     0277:
     0278:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS', True) or '').split():
     0279:        # All hooks should run in the SSTATE_INSTDIR
     0280:        bb.build.exec_func(postinst, d, (sstateinst,))
File: '/home/te-test/fsl-release-bsp/sources/poky/meta/lib/oe/path.py', lineno: 81, function: copyhardlinktree
     0077:    if (os.stat(src).st_dev ==  os.stat(dst).st_dev):
     0078:        # Need to copy directories only with tar first since cp will error if two
     0079:        # writers try and create a directory at the same time
     0080:        cmd = "cd %s; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xf - -C %s" % (src, src, dst)
 *** 0081:        subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
     0082:        source = ''
     0083:        if os.path.isdir(src):
     0084:            import glob
     0085:            if len(glob.glob('%s/.??*' % src)) > 0:
File: '/usr/lib/python3.4/subprocess.py', lineno: 620, function: check_output
     0616:            process.wait()
     0617:            raise
     0618:        retcode = process.poll()
     0619:        if retcode:
 *** 0620:            raise CalledProcessError(retcode, process.args, output=output)
     0621:    return output
     0622:
     0623:
     0624:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command 'cd /home/te-test/fsl-release-bsp/build-x11/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/deploy-u-boot-imx; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C /home/te-test/fsl-release-bsp/build-x11/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/deploy-u-boot-imx -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xf - -C /home/te-test/fsl-release-bsp/build-x11/tmp/deploy/images/imx6ull14x14evk' returned non-zero exit status 2

Subprocess output:
tar: .: Cannot utime: Operation not permitted
tar: .: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: Exiting with failure status due to previous errors

ERROR: u-boot-imx-2017.03-r0 do_deploy: Function failed: sstate_task_postfunc
ERROR: Logfile of failure stored in: /home/te-test/fsl-release-bsp/build-x11/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/temp/log.do_deploy.28316
ERROR: Task (/home/te-test/fsl-release-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/u-boot/u-boot-imx_2017.03.bb:do_deploy) failed with exit code '1'
NOTE: Tasks Summary: Attempted 402 tasks of which 394 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/te-test/fsl-release-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/u-boot/u-boot-imx_2017.03.bb:do_deploy
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
te-test@tetest-ThinkCentre-M72e:~/fsl-release-bsp/build-x11$

0 Kudos

1,001 Views
srishan
Contributor III

Dear I.MX Community

Could anyone please respond to my above queries, 

I have established the yocto build setup using the below commands

DISTRO=fsl-imx-x11 MACHINE=imx6ull14x14evk source fsl-setup-release.sh -b build-x11
bitbake fsl-image-validation-imx

I am modifying U-boot and kernel and dts sources and I am trying to run the below commands

bitbake -c cleansstate linux-imx

bitbake linux-imx

bitbake -c cleansstate u-boot-imx

bitbake u-boot-imx

And I am facing the above issues, could you please do the needful in resolving the above issues, as am stuck today with whole day

Kindly do the needful as early as possible

Eagerly am awaiting for your replies

Many Many Thanks in advance

0 Kudos

1,001 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Sri Shan,

If I’m understanding correctly you mentioned some changes were made to the kernel or device tree, if that’s the case, would it be possible to first make sure that the recipes work as they come on the BSP? That would help us see if the problem is indeed part of the BSP or Host Setup or if it comes from a later change.

Depending on the changes made to the sources it could be possible that they may be causing trouble if these are not addressed on the recipe as well.

Regards,

0 Kudos