LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 06-13-2009, 02:10 PM   #1
tonye
LQ Newbie
 
Registered: Jun 2009
Posts: 13

Rep: Reputation: 0
cant compile/install the kernel in the LiveCD i686 install


I can not install a new kernel, even if i do all the instructions in the handbook, i still come out with the same livecd kernel. i ran make && make_mod... and genkernel. it just keep booting in the livecd kernel. I cant use the minimal installer because I use a atheros card and it wont pick that up.
 
Old 06-13-2009, 09:26 PM   #2
d2_racing
Gentoo support team
 
Registered: May 2009
Location: Ste-Foy,Québec,Canada
Distribution: Gentoo
Posts: 115

Rep: Reputation: 17
Hi, you should try the latest SystemRescueCD LiveCD, it's Gentoo based and it has a pretty recent kernel.
 
Old 06-14-2009, 08:35 AM   #3
NeddySeagoon
Gentoo support team
 
Registered: May 2009
Location: 56N 3W
Distribution: Gentoo
Posts: 178

Rep: Reputation: 41
tonye,

Did you remember to mount /boot if you have a real boot partition ?

Did you update /boot/grub/grub.conf to point to the new kernel (and initrd) file(s) in /boot ?
You should copy the existing

Code:
title ...
root ....
kernel ...
initrd ...
lines to the end of grub.conf and change the title, so you know which kernel will be booted and the kernel and initrd file names to point to the new kernel.
Now you have a choice at boot time, just in case your new kernel fails to boot
 
Old 06-14-2009, 11:07 AM   #4
tonye
LQ Newbie
 
Registered: Jun 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by NeddySeagoon View Post
tonye,

Did you remember to mount /boot if you have a real boot partition ?

Did you update /boot/grub/grub.conf to point to the new kernel (and initrd) file(s) in /boot ?
You should copy the existing

Code:
title ...
root ....
kernel ...
initrd ...
lines to the end of grub.conf and change the title, so you know which kernel will be booted and the kernel and initrd file names to point to the new kernel.
Now you have a choice at boot time, just in case your new kernel fails to boot
i ran all that through chroot with a livecd. I mounted /boot even in chroot. I did "mount -o bind /dev /mnt/sda3/dev", then "chroot /mnt/sda3" then i mounted /boot. was i supposed to run all that regularly after i emerged all i needed?
 
Old 06-14-2009, 11:08 AM   #5
tonye
LQ Newbie
 
Registered: Jun 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by d2_racing View Post
Hi, you should try the latest SystemRescueCD LiveCD, it's Gentoo based and it has a pretty recent kernel.
would this install a kernel?
 
Old 06-14-2009, 11:30 PM   #6
d2_racing
Gentoo support team
 
Registered: May 2009
Location: Ste-Foy,Québec,Canada
Distribution: Gentoo
Posts: 115

Rep: Reputation: 17
It will make your wireless connection working when you will boot with this LiveCD at least.

And for you question, not it will not install a kernel.
 
Old 06-15-2009, 03:37 AM   #7
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
Just to be sure:

build the kernel

be sure the symlink points to the correct kernel-source
Code:
ls -al /usr/src/linux
cd to there
- make menuconfig
- make
- check that /boot is mounted if you put it on its own partition - like the guide suggests
- make modules_install
- make install
- check /boot/grub/menu.lst (or /boot/grub/grub.conf, which is the same) that the kernels name mentioned there is the one you just installed
Code:
ls -al /boot
will show you what you have available.
- edit it by adding the newly installed kernel

Thats it.
There is no initrd involved.
Keep the lines which boot the old and working kernel - just add the new kernel like so for instance:
Code:
title=Gentoo-2.6.29-gentoo-r5
kernel /vmlinuz root=/dev/hda3 vga=792
This method does not need or use genkernel!
If you use genkernel this is a little different - and an additional initrd is involved - so there is one more line in grub's config refering to it.
Since I don't use genkernel I can't give advise when things are seemingly nor working as they should.
My advise is: don't use it - it only makes the whole (easy) process less obvious (IMO)
 
Old 06-15-2009, 07:50 AM   #8
mkborg
LQ Newbie
 
Registered: Apr 2008
Location: Russia, Moscow
Distribution: Gentoo
Posts: 6

Rep: Reputation: 1
Cool kernel build/install

I would highly recommend the "genkernel" for the first few kernel builds/installs.

# install kernel sources:
emerge --update sys-kernel/gentoo-sources

# install "eselect" utility:
emerge --update app-admin/eselect

# install "genkernel" utility:
emerge --update sys-kernel/genkernel

# check available kernel versions (star '*' symbol denotes selected kernel):
eselect kernel list
Quote:
Available kernel symlink targets:
[1] linux-2.6.29-gentoo-r5 *
# if necessary change selected kernel:
eselect kernel set 1

# If you have separate "boot" partition then make sure it is already specified in "/etc/fstab" (genkernel uses it for automagical mounting)
grep boot /etc/fstab
Quote:
LABEL=boot /boot auto noauto,noatime 1 2
# configure, build and install kernel and initial ramdisk with modules:
genkernel --menuconfig --symlink all

# check that new kernel is in place:
ls -l /boot/
Quote:
Code:
lrwxrwxrwx 1 root root      40 2009-06-01 13:46 initramfs -> initramfs-genkernel-x86-2.6.29-gentoo-r5
-rw-r--r-- 1 root root 1435222 2009-04-28 15:54 initramfs-genkernel-x86-2.6.28-gentoo-r5
-rw-r--r-- 1 root root 1516700 2009-06-01 08:45 initramfs-genkernel-x86-2.6.29-gentoo-r5
lrwxrwxrwx 1 root root      40 2009-06-01 13:46 initramfs.old -> initramfs-genkernel-x86-2.6.28-gentoo-r5
lrwxrwxrwx 1 root root      37 2009-06-01 13:46 kernel -> kernel-genkernel-x86-2.6.29-gentoo-r5
-rw-r--r-- 1 root root 1805296 2009-04-28 15:54 kernel-genkernel-x86-2.6.28-gentoo-r5
-rw-r--r-- 1 root root 1850768 2009-06-01 08:41 kernel-genkernel-x86-2.6.29-gentoo-r5
lrwxrwxrwx 1 root root      37 2009-06-01 13:46 kernel.old -> kernel-genkernel-x86-2.6.28-gentoo-r5
# update your boot config (/boot/grub/grub.conf) to refer to new kernel (due to symlinks this is one time task):
Quote:
Code:
default 0
timeout 30

title Gentoo Linux (NEW)
  root (hd1,0)
  kernel] /boot/kernel real_root=/dev/sdb6 init=linuxrc
  initrd] /boot/initramfs

title Gentoo Linux (OLD)
  root (hd1,0)
  kernel /boot/kernel.old real_root=/dev/sdb6 init=linuxrc
  initrd /boot/initramfs.old
# old kernel (kernel.old) can help in future if new kernel doesn't want to boot
 
Old 09-15-2009, 05:30 PM   #9
tonye
LQ Newbie
 
Registered: Jun 2009
Posts: 13

Original Poster
Rep: Reputation: 0
figured all that out. found out, I dont have the time for gentoo right now, I think I will do it later. as for now, maybe Debian
 
Old 09-15-2009, 05:33 PM   #10
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Oh yeah
Debian?
Which distro?
Debian hd install
Debian-Live
GRML
Hag-Linux
Sidux
Myrinix
LOL...
 
  


Reply



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
[Compile kernel] How to compile/install the modules ? frenchn00b Linux - General 1 09-06-2009 03:18 PM
Compile i686 Kernel seelk Linux - Kernel 13 05-11-2006 03:59 PM
2.6.11-6mdk-i686-up-4GB kernel source install Grasshopper Mandriva 2 07-11-2005 02:36 PM
install package i386 on computer with kernel i686 xround Linux - Software 5 08-20-2004 06:11 AM
compile kernel for athlon, but boots as i686 ? bdp Linux - General 1 12-10-2003 04:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 03:20 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