8.2: Modify kernel configuration
by zvivered from LinuxQuestions.org on (#5M1PM)
Hello,
I followed the steps in:
https://wiki.centos.org/HowTos/Custom_Kernel
The goal is to add CMA to the kernel and then install it.
I'm quite sure I followed all steps including the ones listed in chapter 2:
cd ~/rpmbuild/BUILD/kernel-*/linux-*/
cp /boot/config-`uname -r` .config
make oldconfig
make menuconfig
add: # x86_64
cp .config configs/kernel-3.10.0-`uname -m`.config
cp configs/* ~/rpmbuild/SOURCES/
Build new kernel:
rpmbuild -bb --target=`uname -m` kernel.spec 2> build-err.log | tee build-out.log
During the build, the modified .config was automatically changed back to its original version.
The 3rd line is now:
# Linux/x86_64 4.18.0-193.el8.cma.x86_64 Kernel Configuration
cma is the buildid in my kernel.spec. but other changes I did in .config were gone.
I ran the procedure few times to make sure I'm not missing a step.
Each time I did it after installin centos 8.2 from scratch.
In all trials, CMA was not added to the kernel.
I checked it in /proc/meminfo
Have anyone tried to install a custom centos 8.x kernel ?
After booting the new kernel, I checked kernel-4.18.0-3.10.0-x86_64.config located in ~/rpmbuild/SOURCES
It is the modified .config (CONFIG_CMA=y, CONFIG_DMA_CMA=y)
Thank you,
Zvika
I followed the steps in:
https://wiki.centos.org/HowTos/Custom_Kernel
The goal is to add CMA to the kernel and then install it.
I'm quite sure I followed all steps including the ones listed in chapter 2:
cd ~/rpmbuild/BUILD/kernel-*/linux-*/
cp /boot/config-`uname -r` .config
make oldconfig
make menuconfig
add: # x86_64
cp .config configs/kernel-3.10.0-`uname -m`.config
cp configs/* ~/rpmbuild/SOURCES/
Build new kernel:
rpmbuild -bb --target=`uname -m` kernel.spec 2> build-err.log | tee build-out.log
During the build, the modified .config was automatically changed back to its original version.
The 3rd line is now:
# Linux/x86_64 4.18.0-193.el8.cma.x86_64 Kernel Configuration
cma is the buildid in my kernel.spec. but other changes I did in .config were gone.
I ran the procedure few times to make sure I'm not missing a step.
Each time I did it after installin centos 8.2 from scratch.
In all trials, CMA was not added to the kernel.
I checked it in /proc/meminfo
Have anyone tried to install a custom centos 8.x kernel ?
After booting the new kernel, I checked kernel-4.18.0-3.10.0-x86_64.config located in ~/rpmbuild/SOURCES
It is the modified .config (CONFIG_CMA=y, CONFIG_DMA_CMA=y)
Thank you,
Zvika