From: Bruce Ashfield <bruce.ashfield@windriver.com>
To: <yocto@yoctoproject.org>
Subject: Re: Problem with BSP supporting different machines
Date: Thu, 9 Aug 2012 15:10:36 -0400 [thread overview]
Message-ID: <50240B2C.1060801@windriver.com> (raw)
In-Reply-To: <5023F236.6030503@windriver.com>
On 12-08-09 01:24 PM, Bruce Ashfield wrote:
> On 12-08-09 12:32 PM, Markus Hubig wrote:
>> On Thu, Aug 09, 2012 at 10:48:30AM -0400, Bruce Ashfield wrote:
>>> On Thu, Aug 9, 2012 at 10:46 AM, Markus Hubig<mhubig@imko.de> wrote:
>>
>> <snip>
>>
>>>> Comparing the output of "bitbake -e linux-yocto" for both MACHINE
>>>> settings
>>>> I notice that for stamp9g20 KMACHINE is "stamp9g20" but for
>>>> portuxg20 it's
>>>> "common-pc", which results in these "updateme" command:
>>>>
>>>> | updateme --branch standard/default/arm-versatile-926ejs
>>>> -DKDESC=common-pc:standard
>>>> | --feature features/netfilter --feature features/taskstats arm
>>>> common-pc
>>>> | poky/meta-stamp9g20/recipes-kernel/linux/files/hardware.cfg
>>>> | poky/meta-stamp9g20/recipes-kernel/linux/files/non-hardware.cfg
>>>> |
>>>> poky/meta-stamp9g20/recipes-kernel/linux/files/portuxg20/portuxg20.cfg
>>>> |
>>>> poky/meta-stamp9g20/recipes-kernel/linux/files/portuxg20/portuxg20-preempt-rt.scc
>>>>
>>>> |
>>>> poky/meta-stamp9g20/recipes-kernel/linux/files/portuxg20/portuxg20.scc
>>>> |
>>>> poky/meta-stamp9g20/recipes-kernel/linux/files/portuxg20/portuxg20-standard.scc
>>>>
>>>>
>>>> Which again (I think ...) leads to a kernel compile error ...
>>>>
>>>> Unfortunately I was not able to find out why the KMACHINE variable
>>>> is not setup
>>>> correctly with my BSP for PortuxG20 ...
>>
>> Damn! Found the problem, just a typo :-)
>>
>> | -KMACHINE_portux9g20 = "portuxg20"
>> | +KMACHINE_portuxg20 = "portuxg20"
>>
>>> Is this the same BSP producing the kconf check warnings on denzil ? I
>>> ran tests this morning and denzil itself is clean, so there's definitely
>>> something wrong in the layer.
>>
>> Yes it's the same BSP and the kconf_check warnings are persistent!
>>
>> | WARNING: Can't find any BSP hardware or required configuration
>> fragments.
>> | WARNING: Looked at
>> | linux/meta/cfg/standard/default/arm-versatile-926ejs/hdw_frags.txt
>> | and
>> | linux/meta/cfg/standard/default/arm-versatile-926ejs/required_frags.txt
>> | in directory:
>> | linux/meta/cfg/standard/default/arm-versatile-926ejs
>>
>> As I mentiond before the files kconf_check should (IMHO) have a look
>> at are in:
>>
>> | linux/meta/cfg/standard/default/portuxg20
>>
>> If I ran the kconf_check manually I get an output, but not a very
>> promissing one :(
>>
>> | This BSP sets 4 invalid/obsolete kernel options.
>> | These config options are not offered anywhere within this kernel.
>> | The full list can be found in your workspace at:
>> | linux/meta/cfg/standard/default/portuxg20/invalid.cfg
>> |
>> | This BSP sets 10 kernel options that are possibly non-hardware related.
>> | The full list can be found in your workspace at:
>> | linux/meta/cfg/standard/default/portuxg20/specified_non_hdw.cfg
>> |
>> | WARNING: There were 17 hardware options requested that do not
>> | have a corresponding value present in the final ".config" file.
>> | This probably means you aren't getting the config you wanted.
>> | The full list can be found in your workspace at:
>> | linux/meta/cfg/standard/default/portuxg20/mismatch.cfg
>> |
>> | Waiting a second to make sure you get a chance to see this...
>> | ** NOTE: There were 0 required options requested that do not
That's not all that bad for a first cut, that last "0" report is
also fine, since nothing uses the "required" tag in denzil.
>> | have a corresponding value present in the final ".config" file.
>> | This is a violation of the policy defined by the higher level config
>> | The full list can be found in your workspace at:
>> | linux/meta/cfg/standard/default/portuxg20/missing_required.cfg
>>
>> So I'm not shure if my BSP is creating the kernel I wanna have ...
>>
>>> If this is the same BSP, I can have a look and see about solving the
>>> two problems at once.
>>
>> This would be very nice! I really stuck here ... The BSP can be found at:
>>
>> https://bitbucket.org/imko/meta-stamp9g20 (branch denzil)
>
> I have a clone and started a build. When I have some results .. I'll
> send more email.
Aha. yes, I knew this looked familiar. It's a fall out from the old
branch based triggers for the tools. Your BSP is configuring properly,
the report just isn't all that useful.
It is (largely) fixed by this commit to the kern tools:
http://git.yoctoproject.org/cgit/cgit.cgi/yocto-kernel-tools/commit/?id=4b5dd4d5b541ff98110e8b58f6d33923893e0950
Porting this to denzil .. may be possible, and I can give it a try,
but I can't drag back all of the kern-tools enhancements, and many
of the changes depend on associated changes in other scripts.
If you were to use a completely new branch (versus the re-use), the
warning would also go a way (versus my current suggestion of
ignoring it).
Was this BSP generating using the tooling, or by hand ?
Cheers,
Bruce
>
> Cheers,
>
> Bruce
>
>>
>> Cheers, Markus
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
next prev parent reply other threads:[~2012-08-09 19:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-09 14:46 Problem with BSP supporting different machines Markus Hubig
2012-08-09 14:48 ` Bruce Ashfield
2012-08-09 16:32 ` Markus Hubig
2012-08-09 17:24 ` Bruce Ashfield
2012-08-09 19:10 ` Bruce Ashfield [this message]
2012-08-10 15:01 ` Markus Hubig
2012-08-10 16:50 ` Bruce Ashfield
2012-08-10 18:20 ` Markus Hubig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50240B2C.1060801@windriver.com \
--to=bruce.ashfield@windriver.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.