All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* ERROR: Kernel configuration is invalid
@ 2020-08-03 13:46 Ashish
  2020-08-04  7:03 ` Ashish
  0 siblings, 1 reply; 4+ messages in thread
From: Ashish @ 2020-08-03 13:46 UTC (permalink / raw
  To: meta-virtualization


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

Hi All ,

I am trying to build an out-of-tree hello-world module  using the XEN + RPI4 setup.

1)  Compilation of kernel-modules with this setup shows below error:
*/home/ashish/yocto-default/build-xenimage/tmp/work-shared/raspberrypi4-64/kernel-source/Makefile:609: include/config/auto.conf: No such file or directory*

*ERROR: Kernel configuration is invalid.*
*include/generated/autoconf.h or include/config/auto.conf are missing.*
*Run 'make oldconfig && make prepare' on kernel src to fix it.*

2) Please find that just to ensure if the procedure to compile an external modules is correct ,
i tried setting *MACHINE ?= "qemuarm64" ,* and reported same steps .
I was able to compile the kernel module properly & ran on qemu to confirm the module is proper.

3) Steps followed :
1) Create an basic hello-world-module.c & Makefile in any known location ( say custom layer )

2) $ bitbake -c devshell virtual/kernel
$ make M=<Location of module created in step 1 above>  modules

I was under expectation that the config file would be proper as we are able to generate xen-image-minimal.

Any pointers or suggestion will be helpful.

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

[-- Attachment #2: error-log.txt --]
[-- Type: text/plain, Size: 1331 bytes --]

[13:29:33]:~/yocto-default/build-xenimage/tmp/work-shared/raspberrypi4-64/kernel-source (rpi-5.4.y) : make M=/home/ashish/yocto-default/layer/meta-krnl/recipes-krnl/my_module/ modules
make[1]: Entering directory '/home/ashish/yocto-default/build-xenimage/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/1_5.4.51+gitAUTOINC+aafb8f095e_machine-r0/linux-raspberrypi4_64-standard-build'
/home/ashish/yocto-default/build-xenimage/tmp/work-shared/raspberrypi4-64/kernel-source/Makefile:609: include/config/auto.conf: No such file or directory

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

/home/ashish/yocto-default/build-xenimage/tmp/work-shared/raspberrypi4-64/kernel-source/Makefile:681: recipe for target 'include/config/auto.conf' failed
make[1]: *** [include/config/auto.conf] Error 1
make[1]: Leaving directory '/home/ashish/yocto-default/build-xenimage/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/1_5.4.51+gitAUTOINC+aafb8f095e_machine-r0/linux-raspberrypi4_64-standard-build'
Makefile:179: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
[13:29:43]:~/yocto-default/build-xenimage/tmp/work-shared/raspberrypi4-64/kernel-source (rpi-5.4.y) : 







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

* ERROR: Kernel configuration is invalid
@ 2020-08-04  6:59 Ashish
  0 siblings, 0 replies; 4+ messages in thread
From: Ashish @ 2020-08-04  6:59 UTC (permalink / raw
  To: poky

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

Hi All ,

I am trying to build an out-of-tree hello-world module  using the RPI4 setup & compile an hello-world kernel module

A) Steps followed :
1) Create an basic hello-world-module.c & Makefile in any known location ( say custom layer )
2) $ bitbake -c devshell virtual/kernel
$ make M=<Location of module created in step 1 above>  modules

Compilation of kernel-modules with this setup shows below error:
/home/ashish/yocto-default/build-xenimage/tmp/work-shared/raspberrypi4-64/kernel-source/Makefile:609: include/config/auto.conf: No such file or directory

ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

But , the config is preset at below location & i can do $ bitbake -c menuconfig virtual/kernel
home/ashish/yocto-default/build-xenimage/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/1_5.4.51+gitAUTOINC+aafb8f095e_machine-r0/linux-raspberrypi4_64-standard-build/.config

B) Please find that just to ensure if the procedure to compile an external modules is correct ,
i tried setting MACHINE ?= "qemuarm64" , and reported same steps .
I was able to compile the kernel module properly & ran on qemu to confirm the module is proper.

C)  I was under expectation that the config file would be proper as we are able to generate minimal image

Any pointers or suggestion as to why the i am getting this error even though the .config is preset

--
Thanks ,
Ashish .

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

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

* Re: ERROR: Kernel configuration is invalid
  2020-08-03 13:46 ERROR: Kernel configuration is invalid Ashish
@ 2020-08-04  7:03 ` Ashish
  0 siblings, 0 replies; 4+ messages in thread
From: Ashish @ 2020-08-04  7:03 UTC (permalink / raw
  To: meta-virtualization

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

Futher debugging , i can observe that .config is present  & i can execute $ bitbake -c menuconfig virtual/kernel

1) With RPI4
Observation : Error of kernel_configuration
Config file    :  Is present at
/home/ashish/yocto-default/build-xenimage/tmp/work/raspberrypi4_64-poky-linux/linux-raspberrypi/1_5.4.51+gitAUTOINC+aafb8f095e_machine-r0/linux-raspberrypi4_64-standard-build/.config

2) With Qemu
Observation: No Error for configuration
Config file    :  Is present at
/home/ashish/yocto-default/build-qemu/tmp/work/qemuarm64-poky-linux/linux-yocto/5.4.49+gitAUTOINC+30814016b3_ec485bd4af-r0/linux-qemuarm64-standard-build/.config

Any pointers as to why error even though we have an config file being present or i am missing any thing here

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

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

* Re: ERROR: Kernel configuration is invalid
  2020-08-04 21:40 [poky] " Mark Asselstine
@ 2020-08-05  8:50 ` Ashish
  0 siblings, 0 replies; 4+ messages in thread
From: Ashish @ 2020-08-05  8:50 UTC (permalink / raw
  To: poky

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

Hi Quentin / Fred / MarkA ,

Thanks for pointers  , will try them & update accordingly.
--
Thanks ,
Ashish .

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

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

end of thread, other threads:[~2020-08-05  8:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-03 13:46 ERROR: Kernel configuration is invalid Ashish
2020-08-04  7:03 ` Ashish
  -- strict thread matches above, loose matches on Subject: below --
2020-08-04  6:59 Ashish
2020-08-04 21:40 [poky] " Mark Asselstine
2020-08-05  8:50 ` Ashish

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.