Code: Select all
emerge --sync && emerge gentoo-sources
Code: Select all
ln -sf /usr/src/linux/linux-2.6.16-gentoo-version /usr/src/linux
Code: Select all
cp /usr/src/linux-2.6.12-gentoo-r10/.config /usr/src/linux && cd /usr/src/linux && make menuconfig
Code: Select all
make && make modules_install
Code: Select all
cp /usr/src/linux/arch/yourarch/boot/bzImage /boot/kernel-2.6.16-gentoo-version
Code: Select all
emerge -C gentoo-sources-2.6.12-r10
Code: Select all
localhost ~ # ln -sf /usr/src/linux/linux-2.6.16-gentoo-version /usr/src/linux
localhost ~ # cp /usr/src/linux-2.6.12-gentoo-r10/.config /usr/src/linux && cd /usr/src/linux && make menuconfig
cp: `/usr/src/linux-2.6.12-gentoo-r10/.config' and `/usr/src/linux/.config' are the same file
localhost ~ # make && make modules_install
make: *** No targets specified and no makefile found. Stop.
Code: Select all
ln -sf /usr/src/linux-2.6.16-gentoo-version /usr/src/linux Code: Select all
ln -sf /usr/src/linux/linux-2.6.16-gentoo-version /usr/src/linux mikegpitt wrote:I think the problem is with your symlink. It should readnotCode: Select all
ln -sf /usr/src/linux-2.6.16-gentoo-version /usr/src/linux(note the extra /linux in the version you posted)Code: Select all
ln -sf /usr/src/linux/linux-2.6.16-gentoo-version /usr/src/linux
Code: Select all
localhost ~ # ln -sf /usr/src/linux-2.6.16-gentoo-version /usr/src/linux
localhost ~ # cp /usr/src/linux-2.6.12-gentoo-r10/.config /usr/src/linux && cd /usr/src/linux && make menuconfig
cp: `/usr/src/linux-2.6.12-gentoo-r10/.config' and `/usr/src/linux/.config' are the same file
localhost ~ # make && make modules_install
make: *** No targets specified and no makefile found. Stop.

look here : ls /usr/src/, and find the version of your kernel version = r*, where the star is a number. After that, replace version inside your line by this number : ln -sfn /usr/src/linux-2.6.16-gentoo-r* /usr/src/linux,Maheriano wrote:Code: Select all
localhost ~ # ln -sf /usr/src/linux-2.6.16-gentoo-version /usr/src/linux localhost ~ # cp /usr/src/linux-2.6.12-gentoo-r10/.config /usr/src/linux && cd /usr/src/linux && make menuconfig cp: `/usr/src/linux-2.6.12-gentoo-r10/.config' and `/usr/src/linux/.config' are the same file localhost ~ # make && make modules_install make: *** No targets specified and no makefile found. Stop.
and for reusing your old config do this :
Code Listing 10.1: Reusing your old config
# cd /usr/src/linux-2.6.16-gentoo-r3
# cp ../linux-2.6.12-gentoo-r10/.config .
# make oldconfig
You didn't follow the official guide but followed incorrect steps posted to this thread. Always use an official guide if it is available! The problems:Maheriano wrote:What happened?
sorry that is my fault, version of course implicates the version you're using.ln -sf /usr/src/linux/linux-2.6.16-gentoo-version /usr/src/linux
I guess that means -f replaces the old symlink?! I never use -n though..-f, --force remove existing destination files
-n, --no-dereference treat destination that is a symlink to a
directory as if it were a normal file
Code: Select all
localhost linux # cd /usr/src/linux/arch
localhost arch # ls
alpha cris i386 m68k parisc s390 sparc v850
arm frv ia64 m68knommu ppc sh sparc64 x86_64
arm26 h8300 m32r mips ppc64 sh64 um

Code: Select all
kernel /kernel-genkernel-x86-2.6.16-gentoo-r3 acpi=off root=/dev/ram0 init-/lin$
initrd /initramfs-genkernel-x86-2.6.16-gentoo-r3
Code: Select all
kernel (hdx,x)/kernel-genkernel-x86-2.6.16-gentoo-r3
Code: Select all
kernel /boot/kernel-genkernel-x86-2.6.16-gentoo-r3

No, not unless you're really hot for a multicore Atlhon64.Maheriano wrote:Something I should change?cartpullerjack wrote:For the purposes of the linux kernel, you're running an i386.
Technically, though, you have an i686 processor.
Code: Select all
dan@localhost /boot $ ls
System.map-genkernel-x86-2.6.12-gentoo-r10
boot
grub
initramfs-genkernel-x86-2.6.12-gentoo-r10
kernel
kernel-2.6.16-gentoo-r3
kernel-genkernel-x86-2.6.12-gentoo-r10
linux-2.6.12-gentoo-r10
lost+found
Code: Select all
kernel /boot/kernel-2.6.16-gentoo-r3 acpi=off root=/dev/ram0 init$
initrd /boot/initramfs-genkernel-x86-2.6.12-gentoo-r10

"make menuconfig" has (or had?) a funny feature that searches an old config from /boot. If it is named properly it uses that old config but doesn't mention it to the user. It also doesn't go through new options like "make oldconfig". This should be kept in mind. Or better: don't have /boot mounted while building new kernels._loki_ wrote:yes it's better unless you don not have a separat partition for /boot
Code: Select all
default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.12-r10
root (hd0,0)
kernel /boot/kernel-2.6.16-gentoo-r3 acpi=off root=/dev/ram0 init-/linuxrc ramdisk=8192 real_root=/dev/hda3 udev
initrd /boot/initramfs-genkernel-x86-2.6.12-gentoo-r10
Code: Select all
emerge ivmanCode: Select all
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found sources for kernel version:
* 2.6.12-gentoo-r10
!!! ERROR: sys-apps/hal-0.5.5.1-r3 failed.
!!! Function pkg_setup, Line 50, Exitcode 1
!!! You need a 2.6.13 or newer kernel to run this package
!!! If you need support, post the topmost build error, NOT this status message.
I have to ask a few questions to verify a few things:Maheriano wrote:I updated my kernel, changed my /boot/grub/grub.conf...
Ya I used Genkernel to do it originally and yesterday I updated it manually using the steps in the second post with the make menuconfig and stuff. Not correct?Paapaa wrote:
I have to ask a few questions to verify a few things:
1. Did you use Genkernel or did you update your kernel manually ("make menuconfig, "make" etc.)? It looks like you used Genkernel when you installed Gentoo the first time and now you used the manual way.
I don't know what I have enabled in my kernel, it doesn't make a lot of sense to me. But it's working perfect now except for the fact it's not updating. And I never typed make oldconfig at all.Paapaa wrote: 2. If you did it manually, are you sure you have all the correct options/modules enabled in the kernel? Did you type "make oldconfig" at any point?
So I have to rewrite my grub.conf I guess?Paapaa wrote: 3. If you did it manually, you shouln't use Genkernel options for grub.conf, but rather those for manually compiled kernel. See these links for more:
Genkernel guide
Configuring the Bootloader
uh ohPaapaa wrote: 4. If you'd rather do this automated way with Genkernel, you should start over.
Yes, but only if you are sure all the needed device drivers and other options are correct - you have to go through each device you have. If you are 100% sure, then you can go on and alter grub.conf as stated in the "Configuring the Bootloader" link I gave. See the code listing 3 for an example. And never ever destroy your previous kernel and the grub.conf entry which works! You must always have a working kernel which you can start no matter what errors you make with a newer kernel.Maheriano wrote: Ya I used Genkernel to do it originally and yesterday I updated it manually using the steps in the second post with the make menuconfig and stuff. Not correct?
did you update the /usr/src/linux symbolic link to point at 2.6.16?Maheriano wrote:and rebooted. Now when I try toI still get the errorCode: Select all
emerge ivmanWhy is it doing that?Code: Select all
* Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.12-gentoo-r10 !!! ERROR: sys-apps/hal-0.5.5.1-r3 failed. !!! Function pkg_setup, Line 50, Exitcode 1 !!! You need a 2.6.13 or newer kernel to run this package !!! If you need support, post the topmost build error, NOT this status message.