<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Bruce,</p>
<p>Yes I'm still having problems with this. I've attached both my bblayers and local configuration files. Thanks for your help.</p>
<p>Regards,</p>
<p>Greg</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Bruce Ashfield <bruce.ashfield@windriver.com><br>
<b>Sent:</b> Wednesday, January 3, 2018 6:30:52 PM<br>
<b>To:</b> Greg Wilson-Lindberg; yocto@yoctoproject.org<br>
<b>Subject:</b> Re: [yocto] Kernel configuration problem/confusion</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">On 2017-12-27 12:11 PM, Greg Wilson-Lindberg wrote:<br>
> Hi Bruce,<br>
> <br>
> First, the kernel is 4.4.50, the recipe is linux-raspberrypi_4.4.bb in <br>
> meta-raspberrypi. My image recipe is based on one from Qt, but it is <br>
> using the kernel recipe in meta-raspberry.<br>
> <br>
> <br>
> I changed my .bbappend to:<br>
> <br>
> # Scribe additions to kernel configuration<br>
> <br>
> # Enable MAX9768<br>
> #CONFIG_SOC_ALL_CODECS=m<br>
> #CONFIG_COMPILE_TEST=y<br>
> #CONFIG_SND_SOC_MAX9768=m<br>
> <br>
> # Enable MAX11606<br>
> IIO=y<br>
> CONFIG_MAX1363=m<br>
> <br>
> and I get:<br>
> <br>
> WARNING: linux-raspberrypi-1_4.4.50+gitAUTOINC+04c8e47067-r0 <br>
> do_kernel_configcheck: [kernel config]: specified values did not make it <br>
> into the kernel's final configuration:<br>
> <br>
> ---------- CONFIG_MAX1363 -----------------<br>
> Config: CONFIG_MAX1363<br>
> From: <br>
> /home/gwilson/Qt-5.9/Yocto-build-RPi3/build-raspberrypi3/tmp/work-shared/raspberrypi3/kernel-source/.kernel-meta/configs/Scribe.cfg<br>
> Requested value:  CONFIG_MAX1363=m<br>
> Actual value:     # CONFIG_MAX1363 is not set<br>
> <br>
> Config 'MAX1363' has the following conditionals:<br>
>    I2C (value: "y")<br>
> Dependency values are:<br>
>    I2C [y]<br>
> <br>
> It's acting like there is some hidden dependency that it is not telling <br>
> us about. I tried running menuconfig and that allows me so set it <br>
> without any problems.<br>
<br>
Sorry for the slow reply. I've been out of the office (and will be<br>
until the 8th).<br>
<br>
Are you still looking into this ? Rather than me make mistakes in<br>
the exact configuration, can you send me (offlist, or here, doesn't<br>
really matter) your bblayers to make sure I'm building exactly the<br>
same thing ?<br>
<br>
Bruce<br>
<br>
> <br>
> Regards,<br>
> Greg<br>
> <br>
> <br>
> ------------------------------------------------------------------------<br>
> *From:* Bruce Ashfield <bruce.ashfield@windriver.com><br>
> *Sent:* Saturday, December 23, 2017 7:29 PM<br>
> *To:* Greg Wilson-Lindberg; yocto@yoctoproject.org<br>
> *Subject:* Re: [yocto] Kernel configuration problem/confusion<br>
> <br>
> <br>
> On 12/22/2017 6:17 PM, Greg Wilson-Lindberg wrote:<br>
>> Hi Bruce,<br>
>> First, thanks for the unbelievably quick response.<br>
>> <br>
>> I searched the Yocto sources and didn't find anything that was trying to <br>
>> manipulate either of the variables except my .cfg.<br>
>> <br>
>> The memuconfig search for MAX9768 results in:<br>
>> Symbol: SND_SOC_MAX9768 [=n]<br>
>>      Type  : tristate<br>
>>        Defined at sound/soc/codecs/Kconfig:917<br>
>>        Depends on: SOUND [=y] && !M68K && !UML && SND [=m] && SND_SOC [=m]<br>
>>        Selected by: SND_SOC_ALL_CODECS [=n] && SOUND [=y] && !M68K && <br>
>> !UML && SND [=m] && SND_SOC [=m] && COMPILE_TEST [=n] && I2C [=y]<br>
>> To my (untrained) eye it seems that I need SND_SOC_ALL_CODECS <br>
>> & COMPILE_TEST. I tried setting them but I get a similar error <br>
>> for COMPILE_TEST. A search for it yields:<br>
>>   Symbol: COMPILE_TEST [=n]<br>
>>      Type  : boolean<br>
>>      Prompt: Compile also drivers which will not load<br>
>>        Location:<br>
>>      (1) -> General setup<br>
>>        Defined at init/Kconfig:56<br>
>> Which doesn't seem to suggest that there should be any problems setting it.<br>
> <br>
> <br>
> True, but since SND_SOC_MAX9768 doesn't have any help text (aka<br>
> a prompt in Kconfig speak) then it isn't something that you can<br>
> actually reach by menuconfig and by extension .. it must be selected<br>
> by other code. So you are on the right track. Either those symbols<br>
> are also missing dependencies, or MAX9768 itself is missing a<br>
> dependency.<br>
> <br>
>> <br>
>> The search for MAX1363 yields:<br>
>>   Symbol: MAX1363 [=n]<br>
>>      Type  : tristate<br>
>>       Prompt: Maxim max1363 ADC driver<br>
>>        Location:<br>
>>          -> Device Drivers<br>
>>            -> Industrial I/O support (IIO [=m])<br>
>>      (1)     -> Analog to digital converters<br>
>>        Defined at drivers/iio/adc/Kconfig:218<br>
>>        Depends on: IIO [=m] && I2C [=y]<br>
>>        Selects: IIO_BUFFER [=y] && IIO_TRIGGERED_BUFFER [=n]<br>
>> Which doesn't seem to mereveal any reason that I shouldn't be able to <br>
>> set it.<br>
> <br>
> At a glance, I'm also not seeing the reason. Did you try forcing<br>
> IIO=y and seeing if there's a difference ? =m should satisfy that<br>
> Kconfig dependency, but it is worth checking.<br>
> <br>
> Is this a mainline kernel ? or something else that I could build ?<br>
> Maybe with a quick test here, it would be more obvious.<br>
> <br>
> Bruce<br>
> <br>
>> <br>
>> Regards,<br>
>> Greg<br>
>> ------------------------------------------------------------------------<br>
>> *From:* Bruce Ashfield <bruce.ashfield@windriver.com><br>
>> *Sent:* Friday, December 22, 2017 12:27:22 PM<br>
>> *To:* Greg Wilson-Lindberg; yocto@yoctoproject.org<br>
>> *Subject:* Re: [yocto] Kernel configuration problem/confusion<br>
>> <br>
>> <br>
>> On 12/22/2017 3:51 PM, Greg Wilson-Lindberg wrote:<br>
>>> I'm trying to add some kernel configuration to a Raspberry pi3 yocto <br>
>>> build.  I've got the .cfg fragment being read in, but I'm getting <br>
>>> warnings that indicate that they are not making the desired changes.<br>
>>> <br>
>>> <br>
>>> The first one is CONFIG_SND_SOC_MAX9768. This is a sound codec and the <br>
>>> Kconfig file has it in a long list of select's. the one for the MAX9768 is:<br>
>>> <br>
>>>      select CONFIG_SND_SOC_MAX9768 if I2C<br>
>>> <br>
>>> I2C is set, but CONFIG_SND_SOC_MAX9768 ends up undefined. the warning <br>
>>> I'm getting is:<br>
>>> <br>
>>> ---------- CONFIG_SND_SOC_MAX9768 -----------------<br>
>>> Config: CONFIG_SND_SOC_MAX9768<br>
>>> From: <br>
>>> /home/gwilson/Qt-5.9/Yocto-build-RPi3/build-raspberrypi3/tmp/work-shared/raspberrypi3/kernel-source/.kernel-meta/configs/Scribe.cfg<br>
>>> Requested value:  CONFIG_SND_SOC_MAX9768=y<br>
>>> Actual value:<br>
>>> <br>
>>> Config 'SND_SOC_MAX9768' has the following conditionals:<br>
>>> Dependency values are:<br>
>>> <br>
>>> SND_SOC_MAX9768 ends up not being selected even though I try to set it <br>
>>> ti 'y'<br>
>>> <br>
>>> <br>
>>> The second one is CONFIG_MAX1363, this is an ADC that I'm trying to set, <br>
>>> the warning is:<br>
>>> <br>
>>> ---------- CONFIG_MAX1363 -----------------<br>
>>> Config: CONFIG_MAX1363<br>
>>> From: <br>
>>> /home/gwilson/Qt-5.9/Yocto-build-RPi3/build-raspberrypi3/tmp/work-shared/raspberrypi3/kernel-source/.kernel-meta/configs/Scribe.cfg<br>
>>> Requested value:  CONFIG_MAX1363=y<br>
>>> Actual value:     # CONFIG_MAX1363 is not set<br>
>>> <br>
>>> Config 'MAX1363' has the following conditionals:<br>
>>>    I2C (value: "y")<br>
>>> Dependency values are:<br>
>>>    I2C [y]<br>
>>> <br>
>>> It ends up being not set. In both cases the value that I'm trying to set <br>
>>> is ignored. Any insight would be greatly appreciated.<br>
>> <br>
>> The python library that tries to detangle the Kconfig dependencies<br>
>> isn't perfect (but I do have an update for it pending), so you might<br>
>> not be getting the entire story in that information dumb.<br>
>> <br>
>> Two things to check:<br>
>> <br>
>>    - there are no other fragments that are disabling the same option<br>
>>    - use menuconfig in the kernel to search the option and see what it<br>
>>      reports for the dependencies.<br>
>> <br>
>> There's some constraint or overriding command that is not allowing the<br>
>> option into the final config, we just need to track it down.<br>
>> <br>
>> Bruce<br>
>> <br>
>>> <br>
>>> <br>
>>> Regards,<br>
>>> <br>
>>> Greg<br>
>>> <br>
>>> <br>
>>> <br>
<br>
</div>
</span></font>
</body>
</html>