Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel questions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
F-0_ICE
l33t
l33t


Joined: 06 Dec 2004
Posts: 679

PostPosted: Wed May 11, 2005 5:25 pm    Post subject: kernel questions Reply with quote

Just a simple question here. can somone tell me what i have to do before re-compiling the kernel :?:
_________________
~AMD64
AMD: Athlon64 X2 3800+
2G PC3200
ATI: RADEON HD 4350
Linksys: WMP54G

True Knowledge is Best Acquired Through Experience.


Last edited by F-0_ICE on Sat Jun 18, 2005 5:16 pm; edited 3 times in total
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Wed May 11, 2005 5:33 pm    Post subject: Reply with quote

You have to configure it.

Just follow the steps from the handbook, they're identical to when you first installed it.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
F-0_ICE
l33t
l33t


Joined: 06 Dec 2004
Posts: 679

PostPosted: Wed May 11, 2005 5:46 pm    Post subject: Reply with quote

do i have to re-emerge my kernel sources?
_________________
~AMD64
AMD: Athlon64 X2 3800+
2G PC3200
ATI: RADEON HD 4350
Linksys: WMP54G

True Knowledge is Best Acquired Through Experience.
Back to top
View user's profile Send private message
F-0_ICE
l33t
l33t


Joined: 06 Dec 2004
Posts: 679

PostPosted: Sat Jun 18, 2005 12:54 pm    Post subject: Reply with quote

found out the hard way. apparently i do have to re-emerge sources not a big deal really but more of a hassle.
_________________
~AMD64
AMD: Athlon64 X2 3800+
2G PC3200
ATI: RADEON HD 4350
Linksys: WMP54G

True Knowledge is Best Acquired Through Experience.
Back to top
View user's profile Send private message
Raistlin
l33t
l33t


Joined: 17 May 2004
Posts: 691
Location: Boston, MA

PostPosted: Sat Jun 18, 2005 1:37 pm    Post subject: Reply with quote

F-0_ICE wrote:
do i have to re-emerge my kernel sources?

Hi

I don't know what you mean by re-emerge the kernel sources? Also your initial question about re-compiling seems unclear...

if you simply want to change some configs for the kernel, you dont have to re-emerge it. only do a
Code:
make menuconfig
in the kernel dir and enable/disable the desired options.
If you want to use another kernel version, you have to download it - i.e. emerge it.
Then you might copy the original config file to the new directory. Note: it's called
Code:
.config
, therefore you won't see it by simply doing a
Code:
ls /usr/src/linux

Also, you shld adapt the symlink linux in the /usr/src directory to point to the new sources.
Then, in the new source dir. do a
Code:
make oldconfig
, followed by a
Code:
make menuconfig
and so on.

cheers, r.
_________________
Zwei Was Eins Initially

"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
Back to top
View user's profile Send private message
F-0_ICE
l33t
l33t


Joined: 06 Dec 2004
Posts: 679

PostPosted: Sat Jun 18, 2005 1:46 pm    Post subject: Reply with quote

apparently not solved... what i mean is do i have to emerge unmerge gentoo-sources and then emerge gentoo-sources?
cuz if i just simply recompile a kernel nothing seems to change or is that just me? if i do the above mentioned any changes i make take effect.
_________________
~AMD64
AMD: Athlon64 X2 3800+
2G PC3200
ATI: RADEON HD 4350
Linksys: WMP54G

True Knowledge is Best Acquired Through Experience.
Back to top
View user's profile Send private message
Raistlin
l33t
l33t


Joined: 17 May 2004
Posts: 691
Location: Boston, MA

PostPosted: Sat Jun 18, 2005 2:06 pm    Post subject: Reply with quote

ah :)

you can have several kernel versions installed in parallel. Here is a ls of mine:
Code:
$>ls -lha /usr/src/
lrwxrwxrwx   1 root     root    22 May 17 14:45 linux -> linux-2.6.11-gentoo-r8
drwxr-xr-x  19 root     root  4.0K Apr 21 19:40 linux-2.6.10-gentoo-r6
drwxr-xr-x  19 root     root  4.0K Jun  5 17:18 linux-2.6.11-gentoo-r8
drwxr-xr-x  18 root     root  4.0K May 28 13:03 linux-2.6.11-gentoo-r9
drwxr-xr-x  19 root     root  4.0K Mar  5 18:13 linux-2.6.9-gentoo-r13


But if you emerge a newer version, the link will not be adapted. You have to do it manually:
Code:
$>cd /usr/src/
unlink linux
ln -s linux-KERNEL_VERSION linux
.
Replace KERNEL_VERSION with the apropriate numbers/names (see my example).
Then do the steps I explained in the posting before.
As soon as the newe kernel is compiled, you have to do a
Code:
make modules_install

and of course, you need to copy the kernel to your /boot/ directory and introduce it to your boot loader (grub, I assume).

Just ask, if you get stuck in some stage, but I would recommend you to first read the kernel howto. It might prevent you from doing any harm ;)

Cheers, and good luck!
R.
_________________
Zwei Was Eins Initially

"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
Back to top
View user's profile Send private message
F-0_ICE
l33t
l33t


Joined: 06 Dec 2004
Posts: 679

PostPosted: Sat Jun 18, 2005 3:30 pm    Post subject: Reply with quote

interesting... never knew you could have more than one kernel on gentoo. but doesn't that take up alot of space?
regardless of that though thanks for the info.
_________________
~AMD64
AMD: Athlon64 X2 3800+
2G PC3200
ATI: RADEON HD 4350
Linksys: WMP54G

True Knowledge is Best Acquired Through Experience.
Back to top
View user's profile Send private message
F-0_ICE
l33t
l33t


Joined: 06 Dec 2004
Posts: 679

PostPosted: Sat Jun 18, 2005 5:18 pm    Post subject: Reply with quote

heres a new one. is it possible to dowload updated kernel sources without waiting for a new gentoo release?
_________________
~AMD64
AMD: Athlon64 X2 3800+
2G PC3200
ATI: RADEON HD 4350
Linksys: WMP54G

True Knowledge is Best Acquired Through Experience.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Sat Jun 18, 2005 11:15 pm    Post subject: Reply with quote

The kernel version has nothing to do with the Gentoo release.
In fact, the Gentoo release doesn't have much to do with anything - since there really aren't any.
According to the FAQ, the Gentoo release is only indicative of the LiveCDs, and only relevant in relation to the LiveCDs.

Did you read the Gentoo Kernel Guide ?

I suggest you do so.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
F-0_ICE
l33t
l33t


Joined: 06 Dec 2004
Posts: 679

PostPosted: Sun Jun 19, 2005 12:25 am    Post subject: Reply with quote

thanks! the kernel guide was very useful. but it did leave room for one more question: if i start a new install how would i get the latest kernel when i get to the kernel step of the installation?
_________________
~AMD64
AMD: Athlon64 X2 3800+
2G PC3200
ATI: RADEON HD 4350
Linksys: WMP54G

True Knowledge is Best Acquired Through Experience.
Back to top
View user's profile Send private message
Raistlin
l33t
l33t


Joined: 17 May 2004
Posts: 691
Location: Boston, MA

PostPosted: Sun Jun 19, 2005 6:31 am    Post subject: Reply with quote

by doing a
Code:
$>emerge gentoo-sources
you'll get the latest (stable) kernel (see : LINK).
Of course you can download either with
Code:
ACCEPT_KEYWORDS="~x86"
(only if you have a x86 architecture!!!)via portage, or manually from kernel.org the most recent kernel.

Cheers, R.
_________________
Zwei Was Eins Initially

"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
Back to top
View user's profile Send private message
syg00
l33t
l33t


Joined: 23 Aug 2004
Posts: 907
Location: Brisbane, AUS

PostPosted: Sun Jun 19, 2005 6:41 am    Post subject: Reply with quote

I can understand where these questions come from.
Until you emerge the sources once, emerge sync doesn't find the sources. After that you're on auto-pilot ... 8)

Worrying about "releases" and "latest version" are moot once you get a handle on emerge sync.
Back to top
View user's profile Send private message
ferrarif5
Apprentice
Apprentice


Joined: 06 Sep 2003
Posts: 211
Location: Manchester, UK

PostPosted: Sun Jun 19, 2005 8:08 am    Post subject: packages.keywords Reply with quote

<snip>
Raistlin wrote:

Of course you can download either with
Code:
ACCEPT_KEYWORDS="~x86"
(only if you have a x86 architecture!!!)via portage, or manually from kernel.org the most recent kernel.

Cheers, R.


If you want to latest 'unstable' kernel from portage, it's safer to do this:
Code:
echo sys-kernel/gentoo-sources -* ~x86 >> /etc/portage/package.keywords


That way you can have the unstable kernel put keep the rest of your system on a stable platform.

**P.S Be aware that the latest unstable kernel needs newer versions of packages that are not marked stable yet like udev-058
_________________
Asus P6X58D-E Mobo
Intel Core i7 920
18GB Corsair DDR3
User:335876 | Screenshot


Last edited by ferrarif5 on Tue Jun 21, 2005 5:14 am; edited 1 time in total
Back to top
View user's profile Send private message
F-0_ICE
l33t
l33t


Joined: 06 Dec 2004
Posts: 679

PostPosted: Sun Jun 19, 2005 3:56 pm    Post subject: Reply with quote

so Raistlin, by using >emerge gentoo-sources it would download lets say kernel-2.6.11-gentoo-r11 instead of emerging the r3 version form the cd?
_________________
~AMD64
AMD: Athlon64 X2 3800+
2G PC3200
ATI: RADEON HD 4350
Linksys: WMP54G

True Knowledge is Best Acquired Through Experience.
Back to top
View user's profile Send private message
Raistlin
l33t
l33t


Joined: 17 May 2004
Posts: 691
Location: Boston, MA

PostPosted: Sun Jun 19, 2005 5:55 pm    Post subject: Reply with quote

You downloaded or copied a portage snapshot to your filesystem. There, portage stores information about the status of the different packages, i.e. what's the latest (stable) version and so on. So if you first do a
Code:
emerge sync
and right afterwards a
Code:
emerge gentoo-sources
, you'll get the latest stable kernel, unless you used ACCEPT_KEYWORDS or the method that ferrarif5 proposed. Note, that my version only downloads once the unstable sources, while ferrarif5's version would cause portage to download the unstable versions in all the future emerge attempts. You would have to delete the line
Code:
sys-kernel/gentoo-sources -* ~x86
out of
Code:
/etc/portage/package.keywords
in order to disable this behaviour. (Just a tiny note: its /etc/portage/package.keywords and not /etc/portage/packages.keywords )

cheers, r.
_________________
Zwei Was Eins Initially

"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
Back to top
View user's profile Send private message
ferrarif5
Apprentice
Apprentice


Joined: 06 Sep 2003
Posts: 211
Location: Manchester, UK

PostPosted: Tue Jun 21, 2005 5:18 am    Post subject: package.keywords Reply with quote

Whoops, am always sticking an s on the end of package if am not in terminal to use tab haha..

Anyways you can always set a fixed version in package.keywords then if you don't want future unstable version merging:
Code:
echo =sys-kernel/gentoo-sources-2.6.11-r11 ~x86 >> /etc/portage/package.keywords


That will make sure you will only get that version of the kernel and no other unstable kernel package.
_________________
Asus P6X58D-E Mobo
Intel Core i7 920
18GB Corsair DDR3
User:335876 | Screenshot
Back to top
View user's profile Send private message
F-0_ICE
l33t
l33t


Joined: 06 Dec 2004
Posts: 679

PostPosted: Fri Jun 24, 2005 8:33 pm    Post subject: Reply with quote

:idea: can i download load the sources for 2.6.11-gentoo-r11 burn them to a cd and emerge them at the appropriate step in the installation :?:
_________________
~AMD64
AMD: Athlon64 X2 3800+
2G PC3200
ATI: RADEON HD 4350
Linksys: WMP54G

True Knowledge is Best Acquired Through Experience.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Sat Jun 25, 2005 12:24 am    Post subject: Reply with quote

Anything you dump in /usr/portage/distfiles will be picked up when emerging.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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