All of lore.kernel.org
 help / color / mirror / Atom feed
* Kernel configuration problems
@ 2018-07-27 22:20 Greg Wilson-Lindberg
  2018-07-29  4:53 ` Bruce Ashfield
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Wilson-Lindberg @ 2018-07-27 22:20 UTC (permalink / raw)
  To: yocto


[-- Attachment #1.1: Type: text/plain, Size: 2871 bytes --]

I'm trying to add a couple of drivers to the kernel in a Raspberry pi3 build.



I've got the passing of the config options working, but I'm getting warnings from the kernel build that the options are not being applied:





WARNING: linux-raspberrypi-1_4.4.50+gitAUTOINC+04c8e47067-r0 do_kernel_configcheck: [kernel config]: specified values did not make it into the kernel's final configuration:

---------- CONFIG_SND_SOC_MAX9768 -----------------
Config: CONFIG_SND_SOC_MAX9768
From: /home/gwilson/Qt/Qt-5.9.6/Yocto-build-RPi3/build-raspberrypi3/tmp/work-shared/raspberrypi3/kernel-source/.kernel-meta/configs/Scribe.cfg
Requested value:  CONFIG_SND_SOC_MAX9768=y
Actual value:

Config 'SND_SOC_MAX9768' has the following conditionals:

Dependency values are:


---------- CONFIG_MAX1363 -----------------
Config: CONFIG_MAX1363
From: /home/gwilson/Qt/Qt-5.9.6/Yocto-build-RPi3/build-raspberrypi3/tmp/work-shared/raspberrypi3/kernel-source/.kernel-meta/configs/Scribe.cfg
Requested value:  CONFIG_MAX1363=m
Actual value:     # CONFIG_MAX1363 is not set

Config 'MAX1363' has the following conditionals:
  I2C (value: "y")
Dependency values are:
  I2C [y]


My problem is that I don't understand why the options are not being applied.

For the MAX_9768, it depends on I2C=y which is true. I've run the linux kernel menu config and when I get to the Sound SOC support none of the drivers that require I2C support (i.e. 'select SND_SOC_MAX9768 if I2C') are displayed. I don't see anything else that would disable them, the other drivers in the SOC Kconfig that don't depend on I2C or that depend on SPI_MASTER are displayed.

The MAX1363 can be set in the menuconfig to 'm', but still won't set from the scc, cfg files.



Any insight into what's going on here would be greatly appreciated.

Regards,




Greg Wilson-Lindberg


Principal Firmware Engineer | Sakura Finetek USA, Inc.





1750 W 214th Street | Torrance, CA 90501 | U.S.A.


T: +1 310 783 5075


F: +1 310 618 6902 | E: gwilson@sakuraus.com<mailto:gwilson@sakuraus.com>


www.sakuraus.com<http://www.sakuraus.com>





[cid:image002.png@01D35D7D.179A7510]


[cid:image003.png@01D35D7D.179A7510]



________________________________


Confidentiality Notice: This e-mail transmission may contain confidential or legally privileged information that is intended only for the individual or entity named in the e-mail address. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or reliance upon the contents of this e-mail is strictly prohibited. If you have received this e-mail transmission in error, please reply to the sender, so that Sakura Finetek USA, Inc. can arrange for proper delivery, and then please delete the message from your inbox. Thank you.






[-- Attachment #1.2: Type: text/html, Size: 12039 bytes --]

[-- Attachment #2: image001.png --]
[-- Type: image/png, Size: 949 bytes --]

[-- Attachment #3: image002.png --]
[-- Type: image/png, Size: 1916 bytes --]

[-- Attachment #4: image003.png --]
[-- Type: image/png, Size: 3012 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Kernel configuration problems
  2018-07-27 22:20 Kernel configuration problems Greg Wilson-Lindberg
@ 2018-07-29  4:53 ` Bruce Ashfield
  2018-07-30 16:21   ` Greg Wilson-Lindberg
  0 siblings, 1 reply; 4+ messages in thread
From: Bruce Ashfield @ 2018-07-29  4:53 UTC (permalink / raw)
  To: Greg Wilson-Lindberg, yocto

On 7/27/2018 6:20 PM, Greg Wilson-Lindberg wrote:
> I'm trying to add a couple of drivers to the kernel in a Raspberry pi3 
> build.
> 
> I've got the passing of the config options working, but I'm getting 
> warnings from the kernel build that the options are not being applied:
> 
> WARNING: linux-raspberrypi-1_4.4.50+gitAUTOINC+04c8e47067-r0 
> do_kernel_configcheck: [kernel config]: specified values did not make it 
> into the kernel's final configuration:
> 
> ---------- CONFIG_SND_SOC_MAX9768 -----------------
> Config: CONFIG_SND_SOC_MAX9768
> From: 
> /home/gwilson/Qt/Qt-5.9.6/Yocto-build-RPi3/build-raspberrypi3/tmp/work-shared/raspberrypi3/kernel-source/.kernel-meta/configs/Scribe.cfg
> Requested value:  CONFIG_SND_SOC_MAX9768=y
> Actual value:
> 
> Config 'SND_SOC_MAX9768' has the following conditionals:
> Dependency values are:
> 
> ---------- CONFIG_MAX1363 -----------------
> Config: CONFIG_MAX1363
> From: 
> /home/gwilson/Qt/Qt-5.9.6/Yocto-build-RPi3/build-raspberrypi3/tmp/work-shared/raspberrypi3/kernel-source/.kernel-meta/configs/Scribe.cfg
> Requested value:  CONFIG_MAX1363=m
> Actual value:     # CONFIG_MAX1363 is not set
> 
> Config 'MAX1363' has the following conditionals:
>    I2C (value: "y")
> Dependency values are:
>    I2C [y]
> 
> 
> My problem is that I don't understand why the options are not being applied.
> 
> For the MAX_9768, it depends on I2C=y which is true. I've run the linux 
> kernel menu config and when I get to the Sound SOC support none of the 
> drivers that require I2C support (i.e. 'select SND_SOC_MAX9768 if I2C') 
> are displayed. I don't see anything else that would disable them, the 
> other drivers in the SOC Kconfig that don't depend on I2C or that depend 
> on SPI_MASTER are displayed.
> 
> The MAX1363 can be set in the menuconfig to 'm', but still won't set 
> from the scc, cfg files.
> 
> Any insight into what's going on here would be greatly appreciated.

I can help with this ... but first, is this a configuration that I can
build myself ? i.e. what branch, what layers and what extra configs
would I need ?

Bruce

> 
> Regards,
> 
> cid:image001.png@01D35D7D.179A7510
> 
> *Greg Wilson-Lindberg *
> 
> *Principal Firmware Engineer | Sakura Finetek USA, Inc. *
> 
> **
> 
> 1750 W 214^th Street | Torrance, CA 90501 | U.S.A.
> 
> T: +1 310 783 5075
> 
> F: +1 310 618 6902 | E: gwilson@sakuraus.com<mailto:gwilson@sakuraus.com>
> 
> www.sakuraus.com<http://www.sakuraus.com>
> 
> cid:image002.png@01D35D7D.179A7510
> 
> 	
> 
> cid:image003.png@01D35D7D.179A7510
> 
> ------------------------------------------------------------------------
> 
> Confidentiality Notice: This e-mail transmission may contain 
> confidential or legally privileged information that is intended only for 
> the individual or entity named in the e-mail address. If you are not the 
> intended recipient, you are hereby notified that any disclosure, 
> copying, distribution, or reliance upon the contents of this e-mail is 
> strictly prohibited. If you have received this e-mail transmission in 
> error, please reply to the sender, so that Sakura Finetek USA, Inc. can 
> arrange for proper delivery, and then please delete the message from 
> your inbox. Thank you.
> 
> 
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Kernel configuration problems
  2018-07-29  4:53 ` Bruce Ashfield
@ 2018-07-30 16:21   ` Greg Wilson-Lindberg
  2018-07-30 16:25     ` Greg Wilson-Lindberg
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Wilson-Lindberg @ 2018-07-30 16:21 UTC (permalink / raw)
  To: Bruce Ashfield, yocto


[-- Attachment #1.1: Type: text/plain, Size: 5054 bytes --]

Hi Bruce,

The full build is a Qt Boot2Qt build, so it includes some Qt stuff that isn't part of Yocto, but the kernel is just the linux-raspberrypi kernel. The one kernel that I'm getting in the build is 4.4.


Here is the reported build configuration:


Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "raspberrypi3"
DISTRO            = "b2qt"
DISTRO_VERSION    = "2.2.4"
TUNE_FEATURES     = "arm armv7ve vfp thumb neon vfpv4 callconvention-hard cortexa7"
TARGET_FPU        = "hard"
SDKMACHINE        = "x86_64"
meta
meta-poky         = "HEAD:df76669bdd70aa0d903c4211dde731221c7e756d"
meta-raspberrypi  = "HEAD:2a192261a914892019f4f428d7462bb3c585ebac"
meta-oe
meta-python
meta-networking
meta-initramfs
meta-multimedia   = "HEAD:b40116cf457b88a2db14b86fda9627fb34d56ae6"
meta-boot2qt
meta-raspberrypi-extras = "<unknown>:<unknown>"
meta-mingw        = "HEAD:1c2e155111dce94423cc227ea69f7f50f316c78e"
meta-qt5          = "HEAD:49e9d9a73b5c6e3d6eab88dc0005305e85b1a62d"
meta-sakura       = "<unknown>:<unknown>"

I've attached both my .bbappend and my .scc & .cfg files. The .bbappend also references a patch for another driver, but that is working correctly.


Just to be complete the path to the .bbappend & files directory is:


Qt-5.9.6

     Yocto-mirror                                                     # Yocto build mirror

     Yocto-build-RPi3

________________________________
From: Bruce Ashfield <bruce.ashfield@windriver.com>
Sent: Saturday, July 28, 2018 9:53:03 PM
To: Greg Wilson-Lindberg; yocto@yoctoproject.org
Subject: Re: [yocto] Kernel configuration problems

On 7/27/2018 6:20 PM, Greg Wilson-Lindberg wrote:
> I'm trying to add a couple of drivers to the kernel in a Raspberry pi3
> build.
>
> I've got the passing of the config options working, but I'm getting
> warnings from the kernel build that the options are not being applied:
>
> WARNING: linux-raspberrypi-1_4.4.50+gitAUTOINC+04c8e47067-r0
> do_kernel_configcheck: [kernel config]: specified values did not make it
> into the kernel's final configuration:
>
> ---------- CONFIG_SND_SOC_MAX9768 -----------------
> Config: CONFIG_SND_SOC_MAX9768
> From:
> /home/gwilson/Qt/Qt-5.9.6/Yocto-build-RPi3/build-raspberrypi3/tmp/work-shared/raspberrypi3/kernel-source/.kernel-meta/configs/Scribe.cfg
> Requested value:  CONFIG_SND_SOC_MAX9768=y
> Actual value:
>
> Config 'SND_SOC_MAX9768' has the following conditionals:
> Dependency values are:
>
> ---------- CONFIG_MAX1363 -----------------
> Config: CONFIG_MAX1363
> From:
> /home/gwilson/Qt/Qt-5.9.6/Yocto-build-RPi3/build-raspberrypi3/tmp/work-shared/raspberrypi3/kernel-source/.kernel-meta/configs/Scribe.cfg
> Requested value:  CONFIG_MAX1363=m
> Actual value:     # CONFIG_MAX1363 is not set
>
> Config 'MAX1363' has the following conditionals:
>    I2C (value: "y")
> Dependency values are:
>    I2C [y]
>
>
> My problem is that I don't understand why the options are not being applied.
>
> For the MAX_9768, it depends on I2C=y which is true. I've run the linux
> kernel menu config and when I get to the Sound SOC support none of the
> drivers that require I2C support (i.e. 'select SND_SOC_MAX9768 if I2C')
> are displayed. I don't see anything else that would disable them, the
> other drivers in the SOC Kconfig that don't depend on I2C or that depend
> on SPI_MASTER are displayed.
>
> The MAX1363 can be set in the menuconfig to 'm', but still won't set
> from the scc, cfg files.
>
> Any insight into what's going on here would be greatly appreciated.

I can help with this ... but first, is this a configuration that I can
build myself ? i.e. what branch, what layers and what extra configs
would I need ?

Bruce

>
> Regards,
>
> cid:image001.png@01D35D7D.179A7510
>
> *Greg Wilson-Lindberg *
>
> *Principal Firmware Engineer | Sakura Finetek USA, Inc. *
>
> **
>
> 1750 W 214^th Street | Torrance, CA 90501 | U.S.A.
>
> T: +1 310 783 5075
>
> F: +1 310 618 6902 | E: gwilson@sakuraus.com<mailto:gwilson@sakuraus.com>
>
> www.sakuraus.com<http://www.sakuraus.com>
>
> cid:image002.png@01D35D7D.179A7510
>
>
>
> cid:image003.png@01D35D7D.179A7510
>
> ------------------------------------------------------------------------
>
> Confidentiality Notice: This e-mail transmission may contain
> confidential or legally privileged information that is intended only for
> the individual or entity named in the e-mail address. If you are not the
> intended recipient, you are hereby notified that any disclosure,
> copying, distribution, or reliance upon the contents of this e-mail is
> strictly prohibited. If you have received this e-mail transmission in
> error, please reply to the sender, so that Sakura Finetek USA, Inc. can
> arrange for proper delivery, and then please delete the message from
> your inbox. Thank you.
>
>
>

[-- Attachment #1.2: Type: text/html, Size: 8067 bytes --]

[-- Attachment #2: linux-raspberrypi_4.4.bbappend --]
[-- Type: application/octet-stream, Size: 217 bytes --]

# Scribe additions to Kernel configuration

FILESEXTRAPATHS_prepend := "${FILE_DIRNAME}/files:"
FILESEXTRAPATHS_prepend := "${FILE_DIRNAME}/${PN}:"

SRC_URI += "file://Scribe.scc"
SRC_URI += "file://mcp251x.c.patch"


[-- Attachment #3: Scribe.cfg --]
[-- Type: application/octet-stream, Size: 177 bytes --]

# Scribe additions to kernel configuration

# Enable MAX9768
#CONFIG_SOC_ALL_CODECS=m
#CONFIG_COMPILE_TEST=y
CONFIG_SND_SOC_MAX9768=y

# Enable MAX11606
#IIO=y
CONFIG_MAX1363=m

[-- Attachment #4: Scribe.scc --]
[-- Type: application/octet-stream, Size: 70 bytes --]

# Scribe additions to kernel configuration
kconf hardware Scribe.cfg


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Kernel configuration problems
  2018-07-30 16:21   ` Greg Wilson-Lindberg
@ 2018-07-30 16:25     ` Greg Wilson-Lindberg
  0 siblings, 0 replies; 4+ messages in thread
From: Greg Wilson-Lindberg @ 2018-07-30 16:25 UTC (permalink / raw)
  To: Bruce Ashfield, yocto

[-- Attachment #1: Type: text/plain, Size: 6196 bytes --]

Hi Bruce,

My Mail system sent my reply before I got done with the dir tree. Here is the completed tree:


Qt-5.9.6
     Yocto-mirror                                                     # Yocto build mirror
     Yocto-build-RPi3                                              # Yocto build root
                build-raspberrypi                                   # build directory
                sources                                                 # yocto sources
                       meta-sakura                                   # our recipes
                               recipes-kernel                        # directory for kernel changes
                                       linux                               # directory that contains .bbappend
                                              files                         # directory that contains .cfg & .scc files

Hope this all helps.

Thanks,
Greg


________________________________
From: Greg Wilson-Lindberg
Sent: Monday, July 30, 2018 9:21:03 AM
To: Bruce Ashfield; yocto@yoctoproject.org
Subject: Re: [yocto] Kernel configuration problems


Hi Bruce,

The full build is a Qt Boot2Qt build, so it includes some Qt stuff that isn't part of Yocto, but the kernel is just the linux-raspberrypi kernel. The one kernel that I'm getting in the build is 4.4.


Here is the reported build configuration:


Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "raspberrypi3"
DISTRO            = "b2qt"
DISTRO_VERSION    = "2.2.4"
TUNE_FEATURES     = "arm armv7ve vfp thumb neon vfpv4 callconvention-hard cortexa7"
TARGET_FPU        = "hard"
SDKMACHINE        = "x86_64"
meta
meta-poky         = "HEAD:df76669bdd70aa0d903c4211dde731221c7e756d"
meta-raspberrypi  = "HEAD:2a192261a914892019f4f428d7462bb3c585ebac"
meta-oe
meta-python
meta-networking
meta-initramfs
meta-multimedia   = "HEAD:b40116cf457b88a2db14b86fda9627fb34d56ae6"
meta-boot2qt
meta-raspberrypi-extras = "<unknown>:<unknown>"
meta-mingw        = "HEAD:1c2e155111dce94423cc227ea69f7f50f316c78e"
meta-qt5          = "HEAD:49e9d9a73b5c6e3d6eab88dc0005305e85b1a62d"
meta-sakura       = "<unknown>:<unknown>"

I've attached both my .bbappend and my .scc & .cfg files. The .bbappend also references a patch for another driver, but that is working correctly.


Just to be complete the path to the .bbappend & files directory is:


Qt-5.9.6

     Yocto-mirror                                                     # Yocto build mirror

     Yocto-build-RPi3

________________________________
From: Bruce Ashfield <bruce.ashfield@windriver.com>
Sent: Saturday, July 28, 2018 9:53:03 PM
To: Greg Wilson-Lindberg; yocto@yoctoproject.org
Subject: Re: [yocto] Kernel configuration problems

On 7/27/2018 6:20 PM, Greg Wilson-Lindberg wrote:
> I'm trying to add a couple of drivers to the kernel in a Raspberry pi3
> build.
>
> I've got the passing of the config options working, but I'm getting
> warnings from the kernel build that the options are not being applied:
>
> WARNING: linux-raspberrypi-1_4.4.50+gitAUTOINC+04c8e47067-r0
> do_kernel_configcheck: [kernel config]: specified values did not make it
> into the kernel's final configuration:
>
> ---------- CONFIG_SND_SOC_MAX9768 -----------------
> Config: CONFIG_SND_SOC_MAX9768
> From:
> /home/gwilson/Qt/Qt-5.9.6/Yocto-build-RPi3/build-raspberrypi3/tmp/work-shared/raspberrypi3/kernel-source/.kernel-meta/configs/Scribe.cfg
> Requested value:  CONFIG_SND_SOC_MAX9768=y
> Actual value:
>
> Config 'SND_SOC_MAX9768' has the following conditionals:
> Dependency values are:
>
> ---------- CONFIG_MAX1363 -----------------
> Config: CONFIG_MAX1363
> From:
> /home/gwilson/Qt/Qt-5.9.6/Yocto-build-RPi3/build-raspberrypi3/tmp/work-shared/raspberrypi3/kernel-source/.kernel-meta/configs/Scribe.cfg
> Requested value:  CONFIG_MAX1363=m
> Actual value:     # CONFIG_MAX1363 is not set
>
> Config 'MAX1363' has the following conditionals:
>    I2C (value: "y")
> Dependency values are:
>    I2C [y]
>
>
> My problem is that I don't understand why the options are not being applied.
>
> For the MAX_9768, it depends on I2C=y which is true. I've run the linux
> kernel menu config and when I get to the Sound SOC support none of the
> drivers that require I2C support (i.e. 'select SND_SOC_MAX9768 if I2C')
> are displayed. I don't see anything else that would disable them, the
> other drivers in the SOC Kconfig that don't depend on I2C or that depend
> on SPI_MASTER are displayed.
>
> The MAX1363 can be set in the menuconfig to 'm', but still won't set
> from the scc, cfg files.
>
> Any insight into what's going on here would be greatly appreciated.

I can help with this ... but first, is this a configuration that I can
build myself ? i.e. what branch, what layers and what extra configs
would I need ?

Bruce

>
> Regards,
>
> cid:image001.png@01D35D7D.179A7510
>
> *Greg Wilson-Lindberg *
>
> *Principal Firmware Engineer | Sakura Finetek USA, Inc. *
>
> **
>
> 1750 W 214^th Street | Torrance, CA 90501 | U.S.A.
>
> T: +1 310 783 5075
>
> F: +1 310 618 6902 | E: gwilson@sakuraus.com<mailto:gwilson@sakuraus.com>
>
> www.sakuraus.com<http://www.sakuraus.com>
>
> cid:image002.png@01D35D7D.179A7510
>
>
>
> cid:image003.png@01D35D7D.179A7510
>
> ------------------------------------------------------------------------
>
> Confidentiality Notice: This e-mail transmission may contain
> confidential or legally privileged information that is intended only for
> the individual or entity named in the e-mail address. If you are not the
> intended recipient, you are hereby notified that any disclosure,
> copying, distribution, or reliance upon the contents of this e-mail is
> strictly prohibited. If you have received this e-mail transmission in
> error, please reply to the sender, so that Sakura Finetek USA, Inc. can
> arrange for proper delivery, and then please delete the message from
> your inbox. Thank you.
>
>
>

[-- Attachment #2: Type: text/html, Size: 12713 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-07-30 16:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-27 22:20 Kernel configuration problems Greg Wilson-Lindberg
2018-07-29  4:53 ` Bruce Ashfield
2018-07-30 16:21   ` Greg Wilson-Lindberg
2018-07-30 16:25     ` Greg Wilson-Lindberg

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.