Wind River Support Network

HomeDefectsLIN6-11273
Fixed

LIN6-11273 : CLONE - "Creating Alternate Kernels from kernel.org Source" procedure fails with error on do_kernel_metadata

Created: May 18, 2016    Updated: Dec 3, 2018
Resolved Date: May 18, 2016
Previous ID: LIN7-6219
Found In Version: 6.0.0.29
Fix Version: 6.0.0.30
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Kernel

Description

The procedure is described in the WRL7 User's guide:
https://knowledge.windriver.com/en-us/000_Products/000/010/000/030/000_Wind_River_Linux_Kernel_Command_Line_Tutorials%2C_7.0/030/000/000

Following the exact procedure from from the manual, the build of the customer kernel fails at do_kernel_metadata

My project configuration line:
wrlinux-7/wrlinux/configure --enable-board=ti-am335x --enable-build=production --enable-kernel=standard --enable-rootfs=glibc_std --with-template=feature/custom-kernel --with-layer=wr-kernel/kernel-dev --enable-reconfig --enable-internet-download=yes --enable-buildhist=yes --enable-unsupported-toolchain=openembedded-core 

(I have used a config line as soon as similar as possible to the customer's)

As fas as I can tell, the build systems expects the kernel to have metadata (meta branch) mandatory. When it doesn't find it, the project crashes.

I have performed the same test with 2 different kernel versions: 4.5 (latest, stable) and 3.4 (and different BSPs, ti-am335s and qemux86-64) and I have obtained fairly similar results, indicating the same issue. Here are the errors reported:

Kernel 4.5 (SRCREV = "b562e44f507e863c6792946e4e1b1449fbbac85d") (tested with the config line I have provided)

ERROR: Function failed: do_kernel_metadata (log file is located at /media/WD_ext/workspace_linux/ti-am335x-std-custom-kernel-wrl7/bitbake_build/tmp/work/ti_am335x-wrs-linux-gnueabi/linux-windriver-custom/4.5+gitAUTOINC+b562e44f50-r1/temp/do_kernel_metadata/log.do_kernel_metadata.30608)
ERROR: Logfile of failure stored in: /media/WD_ext/workspace_linux/ti-am335x-std-custom-kernel-wrl7/bitbake_build/tmp/work/ti_am335x-wrs-linux-gnueabi/linux-windriver-custom/4.5+gitAUTOINC+b562e44f50-r1/temp/do_kernel_metadata/log.do_kernel_metadata.30608
Log data follows:
| DEBUG: Executing shell function do_kernel_metadata
| WARNING: no meta data branch found ...
| ls: cannot access .meta*: No such file or directory
| Already on 'master'
| warning: refname 'b562e44f507e863c6792946e4e1b1449fbbac85d' is ambiguous.
| Git normally never creates a ref that ends with 40 hex characters
| because it will be ignored when you just specify 40-hex. These refs
| may be created by mistake. For example,
| 
|   git checkout -b $br $(git rev-parse ...)
| 
| where "$br" is somehow empty and a 40-hex ref is created. Please
| examine these refs and maybe delete them. Turn this message off by
| running "git config advice.objectNameWarning false"
| Your branch is behind 'origin/master' by 11118 commits, and can be fast-forwarded.
|   (use "git pull" to update your local branch)
| WARNING: addon feature "cfg/systemd" was not found
| ERROR: required features were not found. aborting
| ERROR: Could not update master
| WARNING: /media/WD_ext/workspace_linux/ti-am335x-std-custom-kernel-wrl7/bitbake_build/tmp/work/ti_am335x-wrs-linux-gnueabi/linux-windriver-custom/4.5+gitAUTOINC+b562e44f50-r1/temp/do_kernel_metadata/run.do_kernel_metadata.30608:1 exit 1 from
|   exit 1
| ERROR: Function failed: do_kernel_metadata (log file is located at /media/WD_ext/workspace_linux/ti-am335x-std-custom-kernel-wrl7/bitbake_build/tmp/work/ti_am335x-wrs-linux-gnueabi/linux-windriver-custom/4.5+gitAUTOINC+b562e44f50-r1/temp/do_kernel_metadata/log.do_kernel_metadata.30608)

Kernel 3.4 (SRCREV = "a0d271cbfed1dd50278c6b06bead3d00ba0a88f9") tested on qemux86-64 BSP

ERROR: Function failed: do_kernel_metadata (log file is located at /media/WD_ext/workspace_linux/x86-64-custom-kernel-wrl7/bitbake_build/tmp/work/qemux86_64-wrs-linux/linux-windriver-custom/3.4+gitAUTOINC+a0d271cbfe-r1/temp/do_kernel_metadata/log.do_kernel_metadata.9403)
ERROR: Logfile of failure stored in: /media/WD_ext/workspace_linux/x86-64-custom-kernel-wrl7/bitbake_build/tmp/work/qemux86_64-wrs-linux/linux-windriver-custom/3.4+gitAUTOINC+a0d271cbfe-r1/temp/do_kernel_metadata/log.do_kernel_metadata.9403
Log data follows:
| DEBUG: Executing shell function do_kernel_metadata
| WARNING: no meta data branch found ...
| ls: cannot access .meta*: No such file or directory
| Already on 'master'
| Your branch is up-to-date with 'origin/master'.
| WARNING: addon feature "cfg/systemd" was not found
| WARNING: addon feature "features/edac/edac" was not found
| WARNING: addon feature "features/kexec/kexec-enable" was not found
| WARNING: addon feature "features/ipmi/ipmi" was not found
| WARNING: addon feature "cfg/net/ipv6" was not found
| WARNING: addon feature "features/selinux/selinux" was not found
| WARNING: addon feature "features/selinux/selinux-dev" was not found
| WARNING: addon feature "features/aoe/aoe" was not found
| WARNING: addon feature "features/quota/quota" was not found
| WARNING: addon feature "features/mip6/mip6" was not found
| ERROR: required features were not found. aborting
| ERROR: Could not update master
| WARNING: /media/WD_ext/workspace_linux/x86-64-custom-kernel-wrl7/bitbake_build/tmp/work/qemux86_64-wrs-linux/linux-windriver-custom/3.4+gitAUTOINC+a0d271cbfe-r1/temp/do_kernel_metadata/run.do_kernel_metadata.9403:1 exit 1 from
|   exit 1
| ERROR: Function failed: do_kernel_metadata (log file is located at /media/WD_ext/workspace_linux/x86-64-custom-kernel-wrl7/bitbake_build/tmp/work/qemux86_64-wrs-linux/linux-windriver-custom/3.4+gitAUTOINC+a0d271cbfe-r1/temp/do_kernel_metadata/log.do_kernel_metadata.9403)

Steps to Reproduce

1. Configure project with similar config line
wrlinux-7/wrlinux/configure --enable-board=ti-am335x --enable-build=production --enable-kernel=standard --enable-rootfs=glibc_std --with-template=feature/custom-kernel --with-layer=wr-kernel/kernel-dev --enable-reconfig --enable-internet-download=yes --enable-buildhist=yes --enable-unsupported-toolchain=openembedded-core
2. Follow step bu step the procedure from the user's guide 
https://knowledge.windriver.com/en-us/000_Products/000/010/000/030/000_Wind_River_Linux_Kernel_Command_Line_Tutorials%2C_7.0/030/000/000

3. Observe result from building the kernel

Other Downloads


Live chat
Online