LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-28-2020, 09:24 AM   #76
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063

Quote:
Originally Posted by hazel View Post
OK, done.
Looks good Hazel. I added a line in the "Making your kernel bootable section" about there being further info about configuring bootloaders in Tips and tricks too.

Quote:
PS: Make install doesn't work for me. I get the following weird error:
Code:
sudo make install
sh ./arch/x86/boot/install.sh 5.10.3 arch/x86/boot/bzImage \
        System.map "/boot"
Fatal: open /boot/vmlinuz-generic-4.4.14: No such file or directory
arch/x86/boot/Makefile:160: recipe for target 'install' failed
make[1]: *** [install] Error 1
arch/x86/Makefile:275: recipe for target 'install' failed
make: *** [install] Error 2
Of course /boot/vmlinuz-generic-4.4.14 doesn't exist! It's a very old kernel version that I haven't used since God knows when. But why the install script was looking for it, I have no idea.
Strange, I didn't have the problem with building kernel 5.10.1

Maybe you need to do a "make clean" or similar, and try again?
 
Old 12-28-2020, 09:26 AM   #77
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by colorpurple21859 View Post
The need of an initrd has nothing to do with grub, grub understands uuids, otherwise the search function seen in grub menus using uuids wouldn't work. The kernel needs the initrd to understand the root=uuid=xxx option. when root=UUID=xxx is passed to the kernel to find the root filesystem.
Thanks colorpurple21859, I didn't know that either. Thanks for clarifying that for us.

How would you say we clarify that point in the article?
 
Old 12-28-2020, 09:43 AM   #78
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
I believe that for most changing it to root=/dev/xxxx instead of root=uuid=xxxxx would work, therefore skipping the need for an initrd. Otherwise a line something like this:
"to use the root=uuid=xxxxx kernel option instead of root=/dev/xxxx an initrd/initramfs is neededed"
 
1 members found this post helpful.
Old 12-28-2020, 09:58 AM   #79
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
I added a line in the "Manually adding your new kernel to your GRUB boot menu" sub-section saying you need an initrd if you plan on using "root=UUID=" in the kernel parameters for the GRUB config. Thanks again colorpurple21859.
 
Old 12-28-2020, 10:21 AM   #80
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,613
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
Also see my changes.
 
Old 12-28-2020, 10:24 AM   #81
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Yeah, I already did, after I already added the line. Although, probably not a big deal anyways...
 
Old 12-29-2020, 06:11 AM   #82
JSB
Member
 
Registered: Dec 2020
Posts: 102

Rep: Reputation: 22
Quote:
Originally Posted by jsbjsb001 View Post
I wish I could give them the benefit of doubt, but it's very difficult. So I very much doubt they were even serious in begin with - why Jeremy hasn't deleted their account yet is beyond me... it really is.
Please stop trying only to hurt me and say lies about me. You can not delete my account because you are not Admin or Mod.
 
1 members found this post helpful.
Old 12-29-2020, 06:13 AM   #83
JSB
Member
 
Registered: Dec 2020
Posts: 102

Rep: Reputation: 22
Quote:
Originally Posted by rtmistler View Post
Thanks you very much, it is nice that some people really like to help others so I can be better at Linux, and not only abuse. I will now try!
 
1 members found this post helpful.
Old 12-29-2020, 06:21 AM   #84
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,613
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
To get back to the point: I tried a second time with a fresh untar and the same .config and I still could not get make install to work. It probably has something to do with the way Slackware sets up the links in its boot directory.

So I am going to simply copy the image over as I usually do (and the wiki does include instructions for doing that so I will not be cheating). Then I will follow my own instructions for copying it to the ESP and editing elilo.conf, and check that it is bootable.
 
Old 12-29-2020, 06:42 AM   #85
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by hazel View Post
...So I am going to simply copy the image over as I usually do (and the wiki does include instructions for doing that so I will not be cheating). ...
Well we have got two different ways to install the kernel itself in the article, so even if someone has issues with make install, they can still do it the manual way that you do it anyway, if worst comes to worst. So I don't think it's a big deal personally.

I don't know about Slackware since I've never tried building anything on it before; but out of morbid curiosity I tried make install for the build of kernel 5.10.1 I done the other week, and it worked with no problems;

Code:
[root@jamespc linux-5.10.1]# make install
sh ./arch/x86/boot/install.sh 5.10.1 arch/x86/boot/bzImage \
        System.map "/boot"
Cannot find LILO.
So as you can see, no problems, and I checked, and the kernel is there. So I suspect it may well be some sort of Slackware issue.
Do you get the same error on other distros?
 
Old 12-29-2020, 06:46 AM   #86
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,613
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
Quote:
Originally Posted by jsbjsb001 View Post
Do you get the same error on other distros?
No idea. I only have Slackware and LFS now. And AntiX on the laptop. I wouldn't want to build a kernel on that. It would take forever!
 
Old 12-29-2020, 06:49 AM   #87
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
If it was kernel 5.10.3 that you tried to install after building it, I might download it myself and see if I can recreate the error. Was it kernel 5.10.3 ?
 
Old 12-29-2020, 06:51 AM   #88
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,613
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
Quote:
Originally Posted by jsbjsb001 View Post
If it was kernel 5.10.3 that you tried to install after building it, I might download it myself and see if I can recreate the error. Was it kernel 5.10.3 ?
Yes, it was.
 
Old 12-29-2020, 06:58 AM   #89
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
I just downloaded it, so I'll let ya know later on if make install works for me or not. I suspect it probably will, since I can't see why they would make any real changes to it from previous kernel versions.
 
Old 12-29-2020, 07:13 AM   #90
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,613
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
I'm sure it's something on my system. That kernel version number sounds like something I might have had as part of the original install. But I certainly don't have it now, so I wonder where the scripts got it from. The arch/boot/Makefile simply calls the install script (the install.sh mentioned in the message) which copies the kernel image, config file and system map to /boot, naming the kernel vmlinuz, and then tries to update LILO. Any existing files are renamed to .old. Nothing about looking for specific old kernels and breaking when they aren't found. It's a complete mystery to me.

PS: Just checked in /var/log/packages. 4.4.14 turns out to have been my installation kernel. I never properly removed it, just deleted the files by hand. I've uninstalled it now and I'll see if that makes any difference.

PSS: Nope, it still fails with the same message. Oh well, never mind. I've copied it by hand now and added it to elilo.conf. We'll see if it boots.

Last edited by hazel; 12-29-2020 at 10:37 AM. Reason: Added postscript
 
  


Reply

Tags
development, kernel, lq wiki



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Web Served 7: Wiki wiki wiki! LXer Syndicated Linux News 0 02-19-2013 09:10 PM
Tip: for answers, "wiki, wiki!" sundialsvcs Linux - Newbie 1 01-18-2006 02:40 PM
Wiki: Show Printable Version / printer friendly version / wiki page setup Emmanuel_uk LQ Suggestions & Feedback 1 10-24-2005 08:09 AM
tutorial on wiki wiki web alix123 Programming 1 04-02-2005 02:08 PM
wiki: supposed to use the same wiki namespace? liquigel LQ Suggestions & Feedback 1 03-07-2004 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration