Kernel configuration is invalid
Hi there, I want tu use my Raspberry Pi 4 as a timeserver. I have a USB Clock from Meinberg and want to compile mbgtools-lx-4.2.8. While compiling with make: Calling kernel build system to make “modules” 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. make[2]: *** [Makefile:720: include/config/auto.conf] Fehler 1 make[1]: *** [/root/mbgtools-lx-4.2.8/mbgclock/…/Makefile:804: modules] Fehler 2 make: *** [Makefile:336: mbgclock] Fehler 2 [root@raspi4 mbgtools-lx-4.2.8]# How to solve this error? [root@raspi4 mbgtools-lx-4.2.8]# rpm -qa | grep kernel | sort kernel-headers-4.18.0-348.7.1.el8_5.aarch64 kernel-tools-4.18.0-348.7.1.el8_5.aarch64 kernel-tools-libs-4.18.0-348.7.1.el8_5.aarch64 raspberrypi2-kernel4-5.10.78-v8.1.el8.aarch64 raspberrypi2-kernel4-devel-5.10.78-v8.1.el8.aarch64 [root@raspi4 mbgtools-lx-4.2.8]# cat /etc/almalinux-release AlmaLinux release 8.5 (Arctic Sphynx) [root@raspi4 mbgtools-lx-4.2.8]# Thanks Andreas
Hi Andreas,
ELRepo has 'kmod-mbgclock' built for x86_64:
https://elrepo.org/linux/elrepo/el8/SRPMS/kmod-mbgclock-4.2.10-5.el8_5.elrep...
I wonder if you can just build the aarch64 version by modifying the spec
file. Maybe worth trying. You'd be building a kmod package that is
supposedly kABI-tracking.
The README file says:
Linux kernels 2.6.x, 3.x, 4.x and 5.x up to at least 5.6
- on standard PCs (i386 architecture)
- on Intel/AMD 64 Bit systems (x86_64 architecture)
- on SPARC64 architecture
- partially on IA64 (Itanium) architecture
- partially on ARM architecture
I don't know how "partial" it is on ARM.
Akemi
On Thu, Dec 23, 2021 at 9:52 AM Andreas Reschke
Hi there, I want tu use my Raspberry Pi 4 as a timeserver. I have a USB Clock from Meinberg and want to compile mbgtools-lx-4.2.8. While compiling with make: Calling kernel build system to make “modules”
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.
make[2]: *** [Makefile:720: include/config/auto.conf] Fehler 1 make[1]: *** [/root/mbgtools-lx-4.2.8/mbgclock/…/Makefile:804: modules] Fehler 2 make: *** [Makefile:336: mbgclock] Fehler 2 [root@raspi4 mbgtools-lx-4.2.8]#
How to solve this error? [root@raspi4 mbgtools-lx-4.2.8]# rpm -qa | grep kernel | sort kernel-headers-4.18.0-348.7.1.el8_5.aarch64 kernel-tools-4.18.0-348.7.1.el8_5.aarch64 kernel-tools-libs-4.18.0-348.7.1.el8_5.aarch64 raspberrypi2-kernel4-5.10.78-v8.1.el8.aarch64 raspberrypi2-kernel4-devel-5.10.78-v8.1.el8.aarch64 [root@raspi4 mbgtools-lx-4.2.8]# cat /etc/almalinux-release AlmaLinux release 8.5 (Arctic Sphynx) [root@raspi4 mbgtools-lx-4.2.8]#
Thanks Andreas _______________________________________________ AlmaLinux Users mailing list -- users@lists.almalinux.org To unsubscribe send an email to users-leave@lists.almalinux.org
Hello Akemi thanks for the tip, but it didn't work: [root@raspi4 ~]# rpmbuild --rebuild kmod-mbgclock-4.2.10-5.el8_5.elrepo.src.rpm Installing kmod-mbgclock-4.2.10-5.el8_5.elrepo.src.rpm warning: kmod-mbgclock-4.2.10-5.el8_5.elrepo.src.rpm: Header V4 DSA/SHA1 Signature, key ID baadae52: NOKEY warning: user akemi does not exist - using root warning: group build does not exist - using root warning: user akemi does not exist - using root warning: group build does not exist - using root warning: user akemi does not exist - using root warning: group build does not exist - using root error: Architecture is not included: aarch64 [root@raspi4 ~]# Am 23.12.21 um 19:46 schrieb Akemi Yagi:
Hi Andreas,
ELRepo has 'kmod-mbgclock' built for x86_64:
https://elrepo.org/linux/elrepo/el8/SRPMS/kmod-mbgclock-4.2.10-5.el8_5.elrep... https://elrepo.org/linux/elrepo/el8/SRPMS/kmod-mbgclock-4.2.10-5.el8_5.elrep...
I wonder if you can just build the aarch64 version by modifying the spec file. Maybe worth trying. You'd be building a kmod package that is supposedly kABI-tracking.
The README file says:
Linux kernels 2.6.x, 3.x, 4.x and 5.x up to at least 5.6 - on standard PCs (i386 architecture) - on Intel/AMD 64 Bit systems (x86_64 architecture) - on SPARC64 architecture - partially on IA64 (Itanium) architecture - partially on ARM architecture
I don't know how "partial" it is on ARM.
Akemi
On Thu, Dec 23, 2021 at 9:52 AM Andreas Reschke
mailto:andreas@rirasoft.de> wrote: Hi there, I want tu use my Raspberry Pi 4 as a timeserver. I have a USB Clock from Meinberg and want to compile mbgtools-lx-4.2.8. While compiling with make: Calling kernel build system to make “modules”
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.
make[2]: *** [Makefile:720: include/config/auto.conf] Fehler 1 make[1]: *** [/root/mbgtools-lx-4.2.8/mbgclock/…/Makefile:804: modules] Fehler 2 make: *** [Makefile:336: mbgclock] Fehler 2 [root@raspi4 mbgtools-lx-4.2.8]#
How to solve this error? [root@raspi4 mbgtools-lx-4.2.8]# rpm -qa | grep kernel | sort kernel-headers-4.18.0-348.7.1.el8_5.aarch64 kernel-tools-4.18.0-348.7.1.el8_5.aarch64 kernel-tools-libs-4.18.0-348.7.1.el8_5.aarch64 raspberrypi2-kernel4-5.10.78-v8.1.el8.aarch64 raspberrypi2-kernel4-devel-5.10.78-v8.1.el8.aarch64 [root@raspi4 mbgtools-lx-4.2.8]# cat /etc/almalinux-release AlmaLinux release 8.5 (Arctic Sphynx) [root@raspi4 mbgtools-lx-4.2.8]#
Thanks Andreas _______________________________________________ AlmaLinux Users mailing list -- users@lists.almalinux.org mailto:users@lists.almalinux.org To unsubscribe send an email to users-leave@lists.almalinux.org mailto:users-leave@lists.almalinux.org
Mit freundlichen Grüßen Andreas Reschke Dr. Bierologis causa
Hi there, I want tu use my Raspberry Pi 4 as a timeserver. I have a USB Clock from Meinberg and want to compile mbgtools-lx-4.2.8. While compiling with make: Calling kernel build system to make “modules”
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
I'd attempt to install the `kernel-devel` package and trying to compile it again. It also looks like the latest version (4.2.12) may rectify this as per their website which references this error on newer kernels: https://kb.meinbergglobal.com/kb/driver_software/driver_software_for_linux/l... I'd suggest snagging the latest version of the driver & install the aforementioned `kernel-devel` package and I believe it should compile cleanly. -- Cody Robertson Chief Technical Officer, Hawk Host Inc. cody@hawkhost.com
Am 23.12.21 um 22:36 schrieb Cody Robertson:
Hi there, I want tu use my Raspberry Pi 4 as a timeserver. I have a USB Clock from Meinberg and want to compile mbgtools-lx-4.2.8. While compiling with make: Calling kernel build system to make “modules”
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
I'd attempt to install the `kernel-devel` package and trying to compile it again.
It also looks like the latest version (4.2.12) may rectify this as per their website which references this error on newer kernels: https://kb.meinbergglobal.com/kb/driver_software/driver_software_for_linux/l...
I'd suggest snagging the latest version of the driver & install the aforementioned `kernel-devel` package and I believe it should compile cleanly.
Hello Cody, thanks for the info about newer driver software. Even with the latest version mbgtools-lx-4.2.18.tar.gz I always get the same error. raspberrypi2-kernel4-devel-5.10.78-v8.1.el8.aarch64 is installed. I got it work: just reinstall raspberrypi2-kernel4-devel-5.10.78-v8.1.el8.aarch64, then make, make install without make clean. Now I can switch from my old timeserver based on CentOS 7 (32bit) to update AlmaLinux on Raspberry PI 4 Mit freundlichen Grüßen Andreas Reschke Dr. Bierologis causa
participants (3)
-
Akemi Yagi
-
Andreas Reschke
-
Cody Robertson