Hi all,
Is there any way to know the compilation options used to build the kernel ?
At least, on a x86_64, we have something like config-3.10.0-862.3.3.el7.x86_64 On raspberry, I did not find anything in /proc nor in /boot.
Regards, Stephan.
On 06/08/18 14:13, Stephan Guilloux wrote:
Hi all,
Is there any way to know the compilation options used to build the kernel ?
At least, on a x86_64, we have something like config-3.10.0-862.3.3.el7.x86_64 On raspberry, I did not find anything in /proc nor in /boot.
Regards, Stephan.
It depends if you use the "generic" kernel or the raspberrypi2 one. For that one, we just use the upstream config : https://github.com/raspberrypi/linux/blob/rpi-4.14.y/arch/arm/configs/bcm270...
We though add a patch for audit/selinux support : https://github.com/CentOS/sig-core-AltArch/blob/master/raspberrypi2/SOURCES/...
Cheers,
OK. Thx for the pointers.
Currently, I have the raspberrypi2, but the same question applies for both, I suppose. Moreover, I can observe that many CONFIG_XX are missing in this file :-)
In the past, on CentOS for x86, I used /boot/config-xxx to know, from an application/tool/script on the target, if the kernel was built to support a specific feature. At that time, I think that having (or not) the kernel .config was a matter of "packaging", in the .spec. Is it still the case ?
Do you think it could be possible to integrate that for raspberrypi2, in the next .rpm ? Would be helpful...
regards.
Le 06/08/2018 à 14:18, Fabian Arrotin a écrit :
On 06/08/18 14:13, Stephan Guilloux wrote:
Hi all,
Is there any way to know the compilation options used to build the kernel ?
At least, on a x86_64, we have something like config-3.10.0-862.3.3.el7.x86_64 On raspberry, I did not find anything in /proc nor in /boot.
Regards, Stephan.
It depends if you use the "generic" kernel or the raspberrypi2 one. For that one, we just use the upstream config : https://github.com/raspberrypi/linux/blob/rpi-4.14.y/arch/arm/configs/bcm270...
We though add a patch for audit/selinux support : https://github.com/CentOS/sig-core-AltArch/blob/master/raspberrypi2/SOURCES/...
Cheers,
Arm-dev mailing list Arm-dev@centos.org https://lists.centos.org/mailman/listinfo/arm-dev
Hey Stephen,
First, check in /proc for "config.gz".
If you don't have it, try running "modprobe config" and then check again.
You can then use the generated "config.gz" with "make oldconfig" and "make menuconfig".
Hth,
Chris
On Mon, Aug 6, 2018, 8:13 AM Stephan Guilloux stephan.guilloux@crisalid.com wrote:
Hi all,
Is there any way to know the compilation options used to build the kernel ?
At least, on a x86_64, we have something like config-3.10.0-862.3.3.el7.x86_64 On raspberry, I did not find anything in /proc nor in /boot.
Regards, Stephan.
Arm-dev mailing list Arm-dev@centos.org https://lists.centos.org/mailman/listinfo/arm-dev
OK, thx.
[root@RPI-C9A58C ~]# ll /proc/config.gz ls: cannot access /proc/config.gz: No such file or directory [root@RPI-C9A58C ~]# modprobe config modprobe: FATAL: Module config not found. [root@RPI-C9A58C ~]# modprobe configs [root@RPI-C9A58C ~]# ll /proc/config.gz -r--r--r--. 1 root root 36621 Aug 6 15:31 /proc/config.gz [root@RPI-C9A58C ~]# zcat /proc/config.gz | head # # Automatically generated file; DO NOT EDIT. # Linux/arm 4.14.52-v7.1.el7 Kernel Configuration # CONFIG_ARM=y CONFIG_ARM_HAS_SG_CHAIN=y CONFIG_MIGHT_HAVE_PCI=y CONFIG_SYS_SUPPORTS_APM_EMULATION=y CONFIG_HAVE_PROC_CPU=y CONFIG_STACKTRACE_SUPPORT=y [root@RPI-C9A58C ~]#
Was trying "modprobe config" too, but it's "modprobe configs" ... Grrr ;-)
Le 06/08/2018 à 15:01, Chris Smith a écrit :
Hey Stephen,
First, check in /proc for "config.gz".
If you don't have it, try running "modprobe config" and then check again.
You can then use the generated "config.gz" with "make oldconfig" and "make menuconfig".
Hth,
Chris
On Mon, Aug 6, 2018, 8:13 AM Stephan Guilloux <stephan.guilloux@crisalid.com mailto:stephan.guilloux@crisalid.com> wrote:
Hi all, Is there any way to know the compilation options used to build the kernel ? At least, on a x86_64, we have something like config-3.10.0-862.3.3.el7.x86_64 On raspberry, I did not find anything in /proc nor in /boot. Regards, Stephan. _______________________________________________ Arm-dev mailing list Arm-dev@centos.org <mailto:Arm-dev@centos.org> https://lists.centos.org/mailman/listinfo/arm-dev
Arm-dev mailing list Arm-dev@centos.org https://lists.centos.org/mailman/listinfo/arm-dev
Apologies! I'll amend my notes :)
Glad to see you have a solution.
Chris
On Mon, Aug 6, 2018, 9:47 AM Stephan Guilloux stephan.guilloux@crisalid.com wrote:
OK, thx.
[root@RPI-C9A58C ~]# ll /proc/config.gz ls: cannot access /proc/config.gz: No such file or directory [root@RPI-C9A58C ~]# modprobe config modprobe: FATAL: Module config not found. [root@RPI-C9A58C ~]# modprobe configs [root@RPI-C9A58C ~]# ll /proc/config.gz -r--r--r--. 1 root root 36621 Aug 6 15:31 /proc/config.gz [root@RPI-C9A58C ~]# zcat /proc/config.gz | head # # Automatically generated file; DO NOT EDIT. # Linux/arm 4.14.52-v7.1.el7 Kernel Configuration # CONFIG_ARM=y CONFIG_ARM_HAS_SG_CHAIN=y CONFIG_MIGHT_HAVE_PCI=y CONFIG_SYS_SUPPORTS_APM_EMULATION=y CONFIG_HAVE_PROC_CPU=y CONFIG_STACKTRACE_SUPPORT=y [root@RPI-C9A58C ~]#
Was trying "modprobe config" too, but it's "modprobe configs" ... Grrr ;-)
Le 06/08/2018 à 15:01, Chris Smith a écrit :
Hey Stephen,
First, check in /proc for "config.gz".
If you don't have it, try running "modprobe config" and then check again.
You can then use the generated "config.gz" with "make oldconfig" and "make menuconfig".
Hth,
Chris
On Mon, Aug 6, 2018, 8:13 AM Stephan Guilloux < stephan.guilloux@crisalid.com> wrote:
Hi all,
Is there any way to know the compilation options used to build the kernel ?
At least, on a x86_64, we have something like config-3.10.0-862.3.3.el7.x86_64 On raspberry, I did not find anything in /proc nor in /boot.
Regards, Stephan.
Arm-dev mailing list Arm-dev@centos.org https://lists.centos.org/mailman/listinfo/arm-dev
Arm-dev mailing listArm-dev@centos.orghttps://lists.centos.org/mailman/listinfo/arm-dev
Arm-dev mailing list Arm-dev@centos.org https://lists.centos.org/mailman/listinfo/arm-dev