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-27-2020, 05:48 AM   #61
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,834
Blog Entries: 17

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643

Quote:
Originally Posted by jsbjsb001 View Post
Thoughts?
Yes. Add a summary section, just to relist the steps. Only concretely what you have to do.

It is a bit as I feared, it's a bit daunting, and this was something I struggled with as well, which is why I ended up with a summary of only listing the steps to do.
 
Old 12-27-2020, 07:55 AM   #62
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 tend to agree with Hazel in post #60 to be honest.

Quote:
Originally Posted by zeebra View Post
Yes. Add a summary section, just to relist the steps. Only concretely what you have to do.

It is a bit as I feared, it's a bit daunting, and this was something I struggled with as well, which is why I ended up with a summary of only listing the steps to do.
I fear doing that would just end up doing the exact opposite in all honesty. The titles of each section in the main body of the article already do that - you can just look at the table of contents at the top of the article to see a summary.

To follow on from Hazel's point in post #60; I didn't even read a book when I first started out with Linux. I just kept using it, poking around the system, trying stuff, and so on until I understood enough to at least be able to ask specific questions if I just couldn't work something out by myself. In relation to building the kernel; I tried at least 4 or 5 times before I finally got it to build. Admittedly it was due to LLVM/Clang that it failed to build for me the first 4 or 5 times, but other than a very brief guide I found online, I was pretty much on my own and had to try and figure out what the process was by myself. My point is: once I figured out the process (ie. get the required deps -> configure the build -> build the kernel -> install it, etc), it was much easier to "just be able to do it". So I really once again have to agree with Hazel's point here; it's a part of learning to have to figure it out. As rtmistler was saying earlier on, and I once again totally agree, if you're not willing to put the effort into reading the required material and putting in the effort, you're not ready to attempt such an effort in the first place. So I think the article shouldn't be attempting to "hold their hand", and I think anyone who is willing to do the required reading and willing to put in the required effort should be able to get something together through it. So I'm not sure failing the first time is such a bad thing - particularly if you keep trying until you get it together.

So I'm not in favor of a "summary" section, or adding anymore sections to the main body of the article to be perfectly honest - it's long enough already.
 
1 members found this post helpful.
Old 12-27-2020, 09:47 AM   #63
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660
Blog Entries: 19

Rep: Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482
I've done my final edits. Mostly just minor grammatical ones, but I've rewritten (and greatly compressed) your paragraph on getting root access. Anyone who does not know how to use sudo shouldn't be building a kernel at all.

As far as I'm concerned, that's it :sigh_of_relief:. Now perhaps your doppelganger could actually use our instructions to build a kernel and see if they work.
 
Old 12-27-2020, 10:31 AM   #64
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
...Now perhaps your doppelganger could actually use our instructions to build a kernel and see if they work.
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.
 
Old 12-27-2020, 03:07 PM   #65
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
I would recommend that the author(s) validate the wiki.

Not say back, "I already know how to do it, that's how/why I wrote the wiki."

Instead, start clean, follow what you've done step-by-step, and validate that the provided instruction has the intended result.

That's called testing.
 
Old 12-27-2020, 03:15 PM   #66
JSB
Member
 
Registered: Dec 2020
Posts: 102

Rep: Reputation: 22
Quote:
Originally Posted by hazel View Post
So if you want to build your own kernel, why don't you go to the wiki article that we have so kindly created for you and follow the instructions?

You can do really useful work here by testing our instructions to see if they are understandable to the naive user and if they actually result in a bootable kernel. And then report back to this thread.

Thank you so much. Where is it, I cannot see a link.

Isbjsb001 does not want to talk to me it seems. I don't know why the hostility. But maybe it will give hostility in return?
 
1 members found this post helpful.
Old 12-27-2020, 06:04 PM   #67
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Quote:
Originally Posted by jsbjsb002 View Post
I cannot see a link.
in post #10 of this thread
 
1 members found this post helpful.
Old 12-28-2020, 04:29 AM   #68
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660
Blog Entries: 19

Rep: Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482
Quote:
Originally Posted by rtmistler View Post
I would recommend that the author(s) validate the wiki.
start clean, follow what you've done step-by-step, and validate that the provided instruction has the intended result. That's called testing.
Good idea. I'm at a bit of a loose end at the moment, so I could do a build on my LFS system and try using "make install" to install it as suggested by jsb. But I can't test out the GRUB part because I don't use GRUB. For me, making something bootable means adding it to elilo.conf.

Already found one thing! xconfig only works if you have the Qt libraries installed (KDE desktop). For gtk-based desktops, you need gconfig.

Last edited by hazel; 12-28-2020 at 05:28 AM.
 
Old 12-28-2020, 05:48 AM   #69
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,834
Blog Entries: 17

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Quote:
Originally Posted by hazel View Post
Good idea. I'm at a bit of a loose end at the moment, so I could do a build on my LFS system and try using "make install" to install it as suggested by jsb. But I can't test out the GRUB part because I don't use GRUB. For me, making something bootable means adding it to elilo.conf.

Already found one thing! xconfig only works if you have the Qt libraries installed (KDE desktop). For gtk-based desktops, you need gconfig.
Well, I think perhaps the bootloader section should say "update your bootloader to boot with your new Kernel" and not be specific to Grub only. And perhaps mention bootloaders in general, before continuing into that Grub section which is there. It's fine to have a Grub section, because so many use Grub. But it seems ONLY grub is mentioned here, like no other bootloaders exist.

After doing the Kernel goto Grub.. Perhaps it should be, after doing the Kernel goto bootloader.
 
Old 12-28-2020, 05:50 AM   #70
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,375

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
The tutorial looks good, the biggest issue will be getting the .config correct, which I think is a trial and error process. If one is trying to reduce the size of the kernel as much as possible. ie "I don't need x driver" but later on find out "maybe I should have included x driver for y reason". I think this will always be a problem for the first time one attempts to pare down a kernel. I don't know how you would address this issue. You may have and I just missed it.

I see one conflict in your tutorial:
Quote:
want to avoid having to use an initrd image for booting
Under the grub section under tips and tricks
Quote:
root=UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
the use of uuids on the linux line will require an initrd/initramfs, whereas root=/dev/xxxx or root=partuuid=xxxx on gpt disk, does not, and needs be stated.

Last edited by colorpurple21859; 12-28-2020 at 06:02 AM.
 
1 members found this post helpful.
Old 12-28-2020, 07:06 AM   #71
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 rtmistler View Post
I would recommend that the author(s) validate the wiki.
...
Don't mean to be a smartass or anything, but that's pretty much what I did when thinking about what sections to include - for the same reason you are talking about.

In any case, an extension of your suggestion would be; pretending you've never built a kernel yourself, and with only our article to go by; would you yourself get a bootable/working kernel if you done the steps the article says? As I'd think that would be really helpful if you could tell us if the article would be helpful to you in that situation.

Quote:
Originally Posted by zeebra View Post
Well, I think perhaps the bootloader section should say "update your bootloader to boot with your new Kernel" and not be specific to Grub only. And perhaps mention bootloaders in general, before continuing into that Grub section which is there. It's fine to have a Grub section, because so many use Grub. But it seems ONLY grub is mentioned here, like no other bootloaders exist.

After doing the Kernel goto Grub.. Perhaps it should be, after doing the Kernel goto bootloader.
The problem for me is that; like Hazel doesn't know GRUB; I don't know LILO nor ELILO... I've only ever used GRUB as far as I can remember. So I wouldn't be able to write about adding an entry to LILO's boot menu. To be clear: I know LILO and ELILO are bootloaders like GRUB is a bootloader (although from what I'm lead to believe, LILO is simpler than GRUB2). But in any case, it would be nice to have something in Tips and tricks about adding an entry to LILO's boot menu. But I'm not in favor of changing what Hazel already wrote for the "Making your new kernel bootable" section in the main body of the article though - any further tips should be put into the Tips and tricks section as extra sub-sections of, not in the main body of the article.

Quote:
Originally Posted by colorpurple21859 View Post
The tutorial looks good, the biggest issue will be getting the .config correct, which I think is a trial and error process. If one is trying to reduce the size of the kernel as much as possible. ie "I don't need x driver" but later on find out "maybe I should have included x driver for y reason". I think this will always be a problem for the first time one attempts to pare down a kernel. I don't know how you would address this issue. You may have and I just missed it.
While I get what you're saying about the kernel config can be trial and error, not sure what you mean by "the x driver"?

Quote:
I see one conflict in your tutorial:

Under the grub section under tips and tricksthe use of uuids on the linux line will require an initrd/initramfs, whereas root=/dev/xxxx or root=partuuid=xxxx on gpt disk, does not, and needs be stated.
I never knew that myself. Why do you need an initrd if you use a UUID in GRUB's config?

Last edited by jsbjsb001; 12-28-2020 at 07:08 AM. Reason: grammar
 
Old 12-28-2020, 07:37 AM   #72
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660
Blog Entries: 19

Rep: Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482
Quote:
Originally Posted by jsbjsb001 View Post
But in any case, it would be nice to have something in Tips and tricks about adding an entry to LILO's boot menu. But I'm not in favor of changing what Hazel already wrote for the "Making your new kernel bootable" section in the main body of the article though - any further tips should be put into the Tips and tricks section as extra sub-sections of, not in the main body of the article.
I could do that, But I'm chary of making the damn thing even longer than it is.
Quote:
While I get what you're saying about the kernel config can be trial and error, not sure what you mean by "the x driver"?
He just means an unspecified driver. It's "X" as in "unknown", not as in "Xorg".
Quote:
I never knew that myself. Why do you need an initrd if you use a UUID in GRUB's config?
I'm not sure you do actually. GRUB has built-in drivers for filesystems like ext4 and you tell it via the cfg file which driver to load before reading the rest of that menu stanza, so it should be able to read the UUID out of the superblock, shouldn't it?

Last edited by hazel; 12-28-2020 at 07:41 AM.
 
1 members found this post helpful.
Old 12-28-2020, 08:30 AM   #73
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
I could do that, But I'm chary of making the damn thing even longer than it is.
It'll probably be ok as a sub-section (or in the existing section about adding an entry to the boot menu in Tips and tricks - although that section would need to be renamed as zeebra suggests in that case) in Tips and tricks. But I agree that there is a enough in the main body of the article, so I'm not in favor of making that any longer (or "simplifying" anything else in it for that matter).

Quote:
He just means an unspecified driver. It's "X" as in "unknown", not as in "Xorg".
Yeah, that's what I thought they meant, "x" as in "Xorg". So it seems I misunderstood that bit.

Quote:
I'm not sure you do actually. GRUB has built-in drivers for filesystems like ext4 and you tell it via the cfg file which driver to load before reading the rest of that menu stanza, so it should be able to read the UUID out of the superblock, shouldn't it?
I was thinking much the same thing myself.

Last edited by jsbjsb001; 12-28-2020 at 08:34 AM. Reason: clarity
 
Old 12-28-2020, 08:51 AM   #74
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,660
Blog Entries: 19

Rep: Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482Reputation: 4482
Quote:
Originally Posted by jsbjsb001 View Post
It'll probably be ok as a sub-section (or in the existing section about adding an entry to the boot menu in Tips and tricks - although that section would need to be renamed as zeebra suggests in that case) in Tips and tricks. But I agree that there is a enough in the main body of the article, so I'm not in favor of making that any longer (or "simplifying" anything else in it for that matter).
OK, done.

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.

Last edited by hazel; 12-28-2020 at 09:17 AM. Reason: Added postscript
 
Old 12-28-2020, 09:20 AM   #75
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,375

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
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. If I'm not mistaken would need an initrd with lilo if the root=UUID=xxx was added to the append line of the lilo.conf

I meant x as in unspecified driver, not xorg. I understand not wanting to make the wiki any longer then what it already is, just a thought as I was reading through it.

Last edited by colorpurple21859; 12-28-2020 at 09:27 AM.
 
2 members found this post helpful.
  


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 12:21 AM.

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