Need help with kernel update [Solved]

Anything that pertains to Portage

Moderator: Moderators

Need help with kernel update [Solved]

Postby jmak » Sun Nov 25, 2007 23:03

Hello,

I am updating the kernel for 3.4 mini. So far I have downloaded the linux-2.6.23-r1 kernel. I am following closely the instructions on the kernel update wiki.
So far I've complated the following commands:

# emerge --sync
# layman -s sabayon
# emerge genkernel sabayon-sources
# eselect kernel list #note which you want to install. it has a number like this next to it [x] more than likely, x = 2 [2]
# eselect kernel set x #this will set your linux symlink
# zcat /proc/config.gz > /usr/src/config

But I dont know how to proceed from here. Could anyone advise me what to do next?
Thanks a lot,
jmak
jmak
Simple Hen
 
Posts: 77
Joined: Sun Jun 10, 2007 14:31

Re: Need help with kernel update

Postby DontPanic » Mon Nov 26, 2007 2:08

Your doing pretty good so far. Just keep following the instructions.

Your next step should probably be (as listed in the instructions):
Code: Select all
genkernel --kernel-config=/usr/src/config --menuconfig --bootloader=grub --splash=sabayon all
Gigabyte GA-P35-DS3L - Intel(R) Core(TM)2 Duo CPU [email protected] 2.66GHz
nVidia GeForce 7600 GS
2 GB RAM
DontPanic
Old Dear Hen
 
Posts: 742
Joined: Mon Jul 09, 2007 20:29
Location: Mobile, AL, USA

Re: Need help with kernel update

Postby jmak » Mon Nov 26, 2007 3:56

I issued that command and I got the following, it doesn't seem that finishes the pocess, it just hangs.
The output. What should I do now?

localhost ~ # genkernel --kernel-config=/usr/src/config --menuconfig --bootloader=grub --splash=sabayon all
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected

/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 46: ${LOGFILE}: ambiguous redirect
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_compile.sh: line 217: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 151: ${LOGFILE}: ambiguous redirect
/usr/share/genkernel/gen_compile.sh: line 226: ${LOGFILE}: ambiguous redirect
/usr/share/genkernel/gen_funcs.sh: line 46: ${LOGFILE}: ambiguous redirect
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected

/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
jmak
Simple Hen
 
Posts: 77
Joined: Sun Jun 10, 2007 14:31

Re: Need help with kernel update

Postby DontPanic » Mon Nov 26, 2007 4:43

Let me ask a couple of questions. Sorry if some of them are really basic, but it would be good to eliminate the easy ones, and then move on.

Are you running this command as the root user?

Have you started the world update of your 3.4 mini installation, and if so, about how far along are you?

Since installing, have you updated python or genkernel yet?
Gigabyte GA-P35-DS3L - Intel(R) Core(TM)2 Duo CPU [email protected] 2.66GHz
nVidia GeForce 7600 GS
2 GB RAM
DontPanic
Old Dear Hen
 
Posts: 742
Joined: Mon Jul 09, 2007 20:29
Location: Mobile, AL, USA

Re: Need help with kernel update

Postby wolfden » Mon Nov 26, 2007 4:47

better find out if he used lvm or not and if he actually did the eselect commands since he didn't paste the results of that
wolfden
Sharecropper
 
Posts: 9051
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: Need help with kernel update

Postby jmak » Mon Nov 26, 2007 5:22

Yes, I run the command as root.

World update: I haven't done anything like that, just downloaded the kernel and as I said, and completed the commands listed in my first post.

python or genkernel? Nothing like that. How can I figure what python and genkernel should I update? Nothing like that was mentioned in the kernel update wiki.
jmak
Simple Hen
 
Posts: 77
Joined: Sun Jun 10, 2007 14:31

Re: Need help with kernel update

Postby DontPanic » Mon Nov 26, 2007 6:11

As Wolfden said, do you know if you installed Sabayon with lvm?

Also, type the following commands, and show the results back here:
Code: Select all
eselect kernel list
ls -Fla /usr/src/
equery list genkernel
find /etc -iname '._cfg????_*'


That last command is to see if you have any old genkernel config files that need reconciling. Something seems foobar with your genkernel, and I'm wondering if you updated genkernel, but left the old config file from a previous version.
Gigabyte GA-P35-DS3L - Intel(R) Core(TM)2 Duo CPU [email protected] 2.66GHz
nVidia GeForce 7600 GS
2 GB RAM
DontPanic
Old Dear Hen
 
Posts: 742
Joined: Mon Jul 09, 2007 20:29
Location: Mobile, AL, USA

Re: Need help with kernel update

Postby jmak » Mon Nov 26, 2007 6:34

The output.

localhost ~ # eselect kernel list
Available kernel symlink targets:
[1] linux-2.6.22-sabayon
[2] linux-2.6.23-sabayon-r1 *

localhost ~ # ls -Fla /usr/src/
total 160
drwxr-xr-x 4 root root 4096 2007-11-25 16:37 ./
drwxr-xr-x 17 root root 4096 2007-09-27 11:37 ../
-rw-r--r-- 1 root root 74346 2007-11-25 16:37 config
-rw-r--r-- 1 root root 59555 2006-01-03 22:33 .config
-rw-r--r-- 1 root root 0 2005-11-15 18:26 .keep
lrwxrwxrwx 1 root root 23 2007-11-25 16:37 linux -> linux-2.6.23-sabayon-r1/
drwxr-xr-x 20 root root 4096 2007-09-28 22:29 linux-2.6.22-sabayon/
drwxr-xr-x 19 root root 4096 2007-11-25 16:29 linux-2.6.23-sabayon-r1/

localhost ~ # equery list genkernel
[ Searching for package 'genkernel' in all categories among: ]
* installed packages
[I--] [ ~] sys-kernel/genkernel-3.4.9_pre9-r1 (0)

localhost ~ # find /etc -iname '._cfg????_*'
/etc/logrotate.d/._cfg0001_elog-save-summary
/etc/logrotate.d/._cfg0000_elog-save-summary
/etc/modules.d/._cfg0000_nvidia
/etc/._cfg0000_dispatch-conf.conf
/etc/._cfg0001_genkernel.conf
/etc/._cfg0000_etc-update.conf
/etc/._cfg0000_genkernel.conf
/etc/bash/._cfg0000_bashrc
jmak
Simple Hen
 
Posts: 77
Joined: Sun Jun 10, 2007 14:31

Re: Need help with kernel update

Postby DontPanic » Mon Nov 26, 2007 6:55

I think a good place to start would be to clean up the config files in your /etc directory. When you emerge-ed genkernel, you brought in a newer version, but I see that you have un-reconciled genkernel (as well as a few others) config files out there. There's a good chance the old config file is confusing the new version of genkernel. It may not be the problem, but I think you need to eliminate the possibility.

Wolfden has written some background on your config files. You can find it here. This link should provide you the information you need to move ahead with reconciling your config file updates.

Config Files - An Introduction
Gigabyte GA-P35-DS3L - Intel(R) Core(TM)2 Duo CPU [email protected] 2.66GHz
nVidia GeForce 7600 GS
2 GB RAM
DontPanic
Old Dear Hen
 
Posts: 742
Joined: Mon Jul 09, 2007 20:29
Location: Mobile, AL, USA

Re: Need help with kernel update

Postby jmak » Mon Nov 26, 2007 22:03

Hi DontPanic

Thanks for the tips. I am almost there. Indeed the problem was the configuration files, as soon as I cleaned them up the kernel started compiling. After that everything was a smooth sailing. Now, I am running the new kernel, however one problem remaines, the nvidia driver. I had to change back to nv to be able to boot up and now I am trying to reemerge the propriatory driver again, but I get the following error.
Any idea how to proceed?
thanks,
jmak

localhost ~ # emerge nvidia-drivers
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-1.0.9639-r90 to /
* NVIDIA-Linux-x86-1.0-9639-pkg0.run MD5 ;-) ... [ ok ]
* NVIDIA-Linux-x86-1.0-9639-pkg0.run RMD160 ;-) ... [ ok ]
* NVIDIA-Linux-x86-1.0-9639-pkg0.run SHA1 ;-) ... [ ok ]
* NVIDIA-Linux-x86-1.0-9639-pkg0.run SHA256 ;-) ... [ ok ]
* NVIDIA-Linux-x86-1.0-9639-pkg0.run size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking NVIDIA-Linux-x86-1.0-9639-pkg0.run ;-) ... [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/2.6.23-sabayon-r1/build
* Found sources for kernel version:
* 2.6.23-sabayon-r1
* Checking for MTRR support ... [ ok ]
>>> Unpacking source...
Creating directory NVIDIA-Linux-x86-1.0-9639-pkg0
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 1.0-9639..............................................................................................................................
* Applying NVIDIA_glx-defines.patch ... [ ok ]
* Applying NVIDIA_glx-glheader.patch ... [ ok ]
* Converting Makefile.kbuild to use M= instead of SUBDIRS= ... [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9639-r90/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv ...
* Preparing nvidia module

NVIDIA: calling KBUILD...
make CC=i586-pc-linux-gnu-gcc KBUILD_OUTPUT=/lib/modules/2.6.23-sabayon-r1/build KBUILD_VERBOSE=1 -C /usr/src/linux M=/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9639-r90/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv modules
make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9639-r90/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c:110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9639-r90/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c: In function ‘nvos_create_alloc’:
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9639-r90/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c:332: error: ‘nv_pte_t_cache’ undeclared (first use in this function)
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9639-r90/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c:332: error: (Each undeclared identifier is reported only once
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9639-r90/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c:332: error: for each function it appears in.)
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9639-r90/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c: In function ‘nvos_free_alloc’:
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9639-r90/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c:364: error: ‘nv_pte_t_cache’ undeclared (first use in this function)
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9639-r90/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c: In function ‘nvidia_init_module’:
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9639-r90/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c:1292: error: ‘nv_pte_t_cache’ undeclared (first use in this function)
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9639-r90/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c:1292: error: too many arguments to function ‘kmem_cache_create’
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9639-r90/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c:1426: error: void value not ignored as it ought to be
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9639-r90/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c: In function ‘nvidia_exit_module’:
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9639-r90/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c:1453: error: void value not ignored as it ought to be
/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9639-r90/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.c:1557: error: ‘nv_pte_t_cache’ undeclared (first use in this function)
make[4]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9639-r90/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv/nv.o] Error 1
make[3]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9639-r90/work/NVIDIA-Linux-x86-1.0-9639-pkg0/usr/src/nv] Error 2
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
*
* ERROR: x11-drivers/nvidia-drivers-1.0.9639-r90 failed.
* Call stack:
* ebuild.sh, line 1695: Called dyn_compile
* ebuild.sh, line 1033: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* nvidia-drivers-1.0.9639-r90.ebuild, line 181: Called linux-mod_src_compile
* linux-mod.eclass, line 518: Called die
* The specific snippet of code:
* emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \
* ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \
* || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}."
* The die message:
* Unable to make IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.23-sabayon-r1/build clean module.
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9639-r90/temp/build.log'.
*

* Messages for package x11-drivers/nvidia-drivers-1.0.9639-r90:

*
* ERROR: x11-drivers/nvidia-drivers-1.0.9639-r90 failed.
* Call stack:
* ebuild.sh, line 1695: Called dyn_compile
* ebuild.sh, line 1033: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* nvidia-drivers-1.0.9639-r90.ebuild, line 181: Called linux-mod_src_compile
* linux-mod.eclass, line 518: Called die
* The specific snippet of code:
* emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \
* ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \
* || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}."
* The die message:
* Unable to make IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.23-sabayon-r1/build clean module.
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9639-r90/temp/build.log'.
*
jmak
Simple Hen
 
Posts: 77
Joined: Sun Jun 10, 2007 14:31

Next

Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 1 guest