Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why do the Handbook kernel install instructions not just...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10590
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Aug 30, 2007 7:14 pm    Post subject: Why do the Handbook kernel install instructions not just... Reply with quote

...use "make install"?

I've always wondered about that. It's simpler, the System.map-* and config-* files don't waste much space and are sometimes useful, and the symlinks are very nice. In particular, the symlinks can be used to reduce the complexity of the grub.conf on initial install. There could be a nice explanation in the Handbook contrasting the simple method (e.g., "make install" and simple grub.conf) vs. the precise control method (e.g., copying just what you need and specifying explicit filenames in grub.conf).

(I'd even be willing to rewrite the section.)

Just wondering. :)

- John
Back to top
View user's profile Send private message
der.gecko
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2007
Posts: 127
Location: de

PostPosted: Thu Aug 30, 2007 8:04 pm    Post subject: Reply with quote

true, but with the actual handbook the user (probably a newbie) should get a better understanding how his gentoo-linux works!
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10590
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Aug 30, 2007 8:12 pm    Post subject: Reply with quote

I liked the symlink handling in the manual kernel build "make install" so much that I added identical functionality to genkernel (released in genkernel-3.4.9). :D

- John
Back to top
View user's profile Send private message
Mark Clegg
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 270
Location: ZZ9 Plural Z Alpha

PostPosted: Thu Aug 30, 2007 8:12 pm    Post subject: Reply with quote

IIRC when I was using gentoo on sparc a while ago, "make install" wasn't an option on that arch.

By using the long-hand method, the install doc's remain arch-independent.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10590
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Sep 02, 2007 4:52 pm    Post subject: Reply with quote

Thought it might be something like that. However, seems a little silly. "make install" is the simplest thing that the kernel build does. Why shouldn't it work across all architectures?

- John
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Sep 02, 2007 5:08 pm    Post subject: Reply with quote

Anyway, it should be:
Code:
make clean bzImage modules modules_install

Suggesting "shortcut" commands, which don't perform a full recompilation, is why we see loads of "unknown symbol in kernel module" moans in threads.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10590
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Sep 02, 2007 5:28 pm    Post subject: Reply with quote

For brevity, I was not including the whole handbook when all I was talking about was the step that places the compiled kernel image into /boot.

It just seemed odd that the handbooks would not take advantage of the built-in automation of the manual kernel build process and that
Code:
make install
was less error prone than
Code:
cp arch/i386/boot/bzImage /boot/kernel-2.6.19-gentoo-r5
which is what is stated in the handbook, but the beginner must have read carefully enough to know to modify the kernel name based on what the version actually is. Seems like the Handbook method might be more error prone.

Similarly, it seems to me that there are less chances for error in grub.conf if the kernel name was always "vmlinuz" (at least for the inital setup of grub.conf), which is the name of the symlink that "make install" makes.

- John
Back to top
View user's profile Send private message
owner66
n00b
n00b


Joined: 21 Aug 2007
Posts: 18

PostPosted: Sun Sep 02, 2007 7:23 pm    Post subject: Reply with quote

I really do agree with where jrg is going on this. I had never done anything with Linux before, and settled on gentoo. I have sucessfully installed it from the livecd and am up and going. however, once i start looking into the hows and whys of what is really going on in the system, it seems like the handbook install overly complicates things. Or, at least, the handbook install should go into more detail about what you have really done after doing the livecd install. It is very confusing with all the cp arch/ stuff and bzImage stuff
In other words, going from the live cd install, and understanding how and why, should be covered in the "where to go from here?" section.
All I get is "If you are interested in optimizing your system for desktop use, or you want to learn how to configure your system to be a full working desktop system.."
What? why would i do that? I just installed, it's not fully working?
A tutorial on what this above statement means is needed IMHO.
ds
_________________
Clean the contacts by vigorously rubbing the electrical contacts on the printed circuit board with a pencil eraser. Tape the 16K RAM pack to the computer to prevent loss of contact due to accidental movement.
Back to top
View user's profile Send private message
neysx
Retired Dev
Retired Dev


Joined: 27 Jan 2003
Posts: 795

PostPosted: Mon Sep 03, 2007 9:16 am    Post subject: Reply with quote

Been discussed before.
There are already several bugs about this question.
Just one of them as an example: https://bugs.gentoo.org/show_bug.cgi?id=183346
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10590
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Sep 03, 2007 12:10 pm    Post subject: Reply with quote

Ah. Many thanks, Xavier. It didn't make sense that this wouldn't have been discussed before. Guess I didn't search well enough.

- John
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum