CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
You wrote: You are not copying the config to the correct location
Can you please tell what is wrong with: cp .config configs/kernel-`uname -r`.config
Again: READ THE INSTRUCTIONS AND FOLLOW THEM.
Quote:
Regarding kernel version: Should I use kernel-4.18.0-193.28.1.el8_2.src.rpm which is the newest for 8.2 ?
Again: READ THE INSTRUCTIONS AND FOLLOW THEM.
Cannot say it more plainly and simply. If you don't know what version of the kernel you have or need to use, that is yet another reason for you to hire someone to do this for you. AGAIN: you have been working on this for two years, and are clearly unable to accomplish it.
AGAIN: there is nothing else we can tell you, since you are not understanding the answers. It is pointless to continue.
Hello,
I really do not understand why bother writing very long answers that do not help. The whole point of such forums is to help מn a voluntary basis Isn't it much simpler not answering at all ?
I guess I'm not an expert as you are. I DID READ THE INSTRUCTIONS AND FOLLOWED THEM. But did not get the right result. Instead of writing insulting replies, you can specify what is wrong in my steps or not answer at all.
You did *NOT* read and follow the instructions; that is abundantly clear, since you didn't bother completing the prerequisites, got missing dependencies, etc. You used different commands, and have NOT followed the instructions.
We aren't going to type out the entire guide for you again; it's on the CentOS site. Either follow it or don't; there is nothing else we can tell you. Either you don't understand the instructions, or just plain won't follow them. There is NOTHING ELSE we can do, because if after **TWO YEARS** of trying to do this you still can't make progress, what do you think is going to be gained now?
uname -r returns the kernel version you are running. If that's different from the version you want to build, then that command is incorrect.
Yep...noted in the instructions the OP posted, along with installing the dependencies, etc. All things the OP claims to have done, but has not...if they had, they wouldn't have had missing dependencies, files without saved changes, etc.
Before the final rpmbuild, ~/rpmbuild/SOURCES/ contains a modified: kernel-4.18.0-x86_64.config
with the new kernel configuration. This was checked several times.
After the final rpmbuild (par. 5), this file is automatically changed (not by me) so it does not contain the changes I did.
Hello,
Before the final rpmbuild, ~/rpmbuild/SOURCES/ contains a modified: kernel-4.18.0-x86_64.config with the new kernel configuration. This was checked several times.
After the final rpmbuild (par. 5), this file is automatically changed (not by me) so it does not contain the changes I did.
This is what I do not understand.
...and...
Quote:
BTW : I want to build the same kernel version as installed with the ISO of 8.2: 4.18.0-193.el8 Only change the kernel configuration.
AGAIN: we understand what you want, as this is the EIGHTH TIME you've asked about it, over the span of two years.
AGAIN: restating it over and over does absolutely nothing to let anyone help you further; you are providing no new information, at all.
From post #16, you said "Regarding kernel version: Should I use kernel-4.18.0-193.28.1.el8_2.src.rpm which is the newest for 8.2 ?"....which is NOT the same one you're running, is it? Things like this are why you continue to have problems. If you want the same kernel, download the same source. Because the newest kernel was from October of last year...not the original you're running from May. Which is different.
AGAIN: you are not following the guide. That was written by CentOS, for CentOS, so there isn't much more anyone here can add to it. Since you say you're getting to step 5, I'd suggest you look carefully at step 4.
AGAIN: you were given the two parameters to enter, as well as the grub options to pass on the command line. Unless you actually follow the guide, there is no point in posting again. You *ARE NOT* following their instructions, despite your insistence that you are. This is clear because of the several things you've said and done which indicate you're not, because the results don't match what the guide says.
cd ~/rpmbuild/SPECS/
cp kernel.spec kernel.spec.distro
vi kernel.spec
Add : %define buildid .cma
right after the line:
# define buildid .local
rpmbuild -bb --target=`uname -m` kernel.spec 2> build-err.log | tee build-out.log
cd /home/zvivered/rpmbuild/RPMS/`uname -m`/
[root] dnf install kernel-*.rpm --allowerasing
But after installing the new kernel, nothing was changed in the kernel configuration.
I only got a new line in the grub and the date of the kernel (/proc/version) was changed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.