[linux-yocto] update kernel in local.conf

Bruce Ashfield bruce.ashfield at windriver.com
Fri Feb 24 07:26:15 PST 2017


On 2017-02-24 10:20 AM, Ran Shalit wrote:
> On Fri, Feb 24, 2017 at 4:12 PM, Bruce Ashfield
> <bruce.ashfield at windriver.com> wrote:
>> On 2017-02-24 4:02 AM, Ran Shalit wrote:
>>>
>>> Hello,
>>>
>>> I wanted to try update to rt-kernel to I added the following in
>>> local.conf:
>>>
>>> #PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
>>> #PREFERRED_VERSION_linux-yocto ?= "4.4%"
>>> PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto-rt"
>>> PREFERRED_VERSION_linux-yocto-rt ?= "4.4%"
>>>
>>> Everything compiled well with
>>> bitbake core-image-sato-sdk
>>>
>>> I then decided to return to the regular linux by doing:
>>> PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
>>> PREFERRED_VERSION_linux-yocto ?= "4.4%"
>>> #PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto-rt"
>>> #PREFERRED_VERSION_linux-yocto-rt ?= "4.4%"
>>>
>>> But now I get errors as following:
>>>
>>> NOTE: Preparing RunQueue
>>> WARNING:
>>> /media/sde/yocto/poky/meta/recipes-sato/images/core-image-sato-sdk.bb.do_rootfs
>>> is tainted from a forced run
>>> NOTE: Executing SetScene Tasks
>>> NOTE: Executing RunQueue Tasks
>>> ERROR: core-image-sato-sdk-1.0-r0 do_rootfs: 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:license_create_manifest(d)
>>>      0003:
>>> File: '/media/sde/yocto/poky/meta/classes/license.bbclass', lineno:
>>> 48, function: license_create_manifest
>>>      0044:    pkg_dic = {}
>>>      0045:    for pkg in sorted(image_list_installed_packages(d)):
>>>      0046:        pkg_info = os.path.join(d.getVar('PKGDATA_DIR', True),
>>>      0047:                                'runtime-reverse', pkg)
>>>  *** 0048:        pkg_name = os.path.basename(os.readlink(pkg_info))
>>>      0049:
>>>      0050:        pkg_dic[pkg_name] =
>>> oe.packagedata.read_pkgdatafile(pkg_info)
>>>      0051:        if not "LICENSE" in pkg_dic[pkg_name].keys():
>>>      0052:            pkg_lic_name = "LICENSE_" + pkg_name
>>> Exception: OSError: [Errno 2] No such file or directory:
>>>
>>> '/media/sde/yocto/poky/build/tmp/sysroots/congatec-qa3-64/pkgdata/runtime-reverse/kernel-4.4.26-rt19-yocto-preempt-rt'
>>>
>>> ERROR: core-image-sato-sdk-1.0-r0 do_rootfs: Function failed:
>>> license_create_manifest
>>> ERROR: Logfile of failure stored in:
>>>
>>> /media/sde/yocto/poky/build/tmp/work/congatec_qa3_64-poky-linux/core-image-sato-sdk/1.0-r0/temp/log.do_rootfs.13106
>>> ERROR: Task 9
>>> (/media/sde/yocto/poky/meta/recipes-sato/images/core-image-sato-sdk.bb,
>>> do_rootfs) failed with exit code '1'
>>> NOTE: Tasks Summary: Attempted 7025 tasks of which 7024 didn't need to
>>> be rerun and 1 failed.
>>>
>>> Does anyone have any idea ?
>>
>>
>> I don't have any idea, but I can confirm that I have seen the same thing
>> in the past when switching kernels.
>>
>> If you switch back to the -rt provider, do a cleanall, and then go back
>> to the standard linux-yocto .. it should go away.
>>
>> Something is obviously remaining in the sysroot/manifest after the
>> switch, but figuring out what  is going on here is deeper into bitbake
>> than my expertise can handle :D
>>
>
> Thanks for the help, Bruce.
>
> When using rt linux, do you think I need to give:
> PREFERRED_VERSION_linux-yocto-rt

This is the one (PREFERRED_VERSION_linux-yocto-rt)

Bruce

> or
> PREFERRED_VERSION_linux-yocto
>
> Thanks,
> Ran
>
>> Bruce
>>
>>
>>> Ran
>>>
>>



More information about the linux-yocto mailing list