kernel upgrade using portage problem [Solved]

Anything that pertains to Portage

Moderator: Moderators

kernel upgrade using portage problem [Solved]

Postby tman7510 » Sat May 30, 2009 16:45

Ok so I've followed the guide to upgrade my kernel on the SL wiki and everything seems to work fine. I am able to succesfully compile the 2.6.29-r1 kernel. I didnt run the second genkernel part because it seems pointless to compile my kernel twice so I check my grub.conf and reboot. But know it hangs with 2 animals in the top corner with this error below it.
[0.000999] ram_console: buffer (null), invalid size 0, data size -12.

So i decided to run the genkernel part like the wiki instructs even though that was already run with the initial emergeing of the kernel and that fails to compile the bz image. I know I can use entropy but then I cant install things from portage because it wont have the kernel source. Any idea as to what I've done wrong?
tman7510
Simple Hen
 
Posts: 92
Joined: Sun Mar 16, 2008 5:51

Re: kernel upgrade using portage problem

Postby Fitzcarraldo » Sat May 30, 2009 19:01

tman7510 wrote:Any idea as to what I've done wrong?

Not follow the Wiki article?

Try:
Code: Select all
# emerge -C linux-sabayon
# emerge genkernel

then follow the Wiki article.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7985
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: kernel upgrade using portage problem

Postby WarraWarra » Sat May 30, 2009 20:20

Have you made sure your /etc/mtab and /etc/fstab reflects your actual disk drive layout / partitions so that the kernel can know what is where and build a proper system.map ?
Code: Select all
# grep -v rootfs /proc/mounts > /etc/mtab


I have had success with
Code: Select all
equo install linux-sabayon
and this does all for me so on next reboot all is there and it boots fine.

Here is the alternative way + fill in the gaps with correct info when doing this using the gentoo.org handbook way.

For other kernels like git-sources:
Code: Select all
emerge git-sources genkernel gentoolkit squashfs-tools grub eselect -p

once you have the correct names and all looks good fire away + has all the needed to do this correctly.

Make sure you have the correct kernel listed that you want to use otherwise you waist 30 mins building it.
Code: Select all
eselect kernel list
eselect kernel set 5


Next do genkernel the kernel.
Code: Select all
genkernel all


Your choice to menu config or similar.

The kernel config is usually stored in /proc/config.gz or can use one saved from the internet or genkernel all has one sometimes in the genkernel folders , will have to check on this one but should default to and .config or config in /usr/src or /usr/src/linux folder.

Check the genkernel options in gentoo.org x86 all in one page handbook if not sure about something.
Code: Select all
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#book_part1_chap7

Code: Select all
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#genkernel

Code: Select all
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#grub

Code: Select all
grep -v rootfs /proc/mounts > /etc/mtab


Then
Code: Select all
ls /boot
to see if the new ones is there and then edit grub to show the correct labels / numbering.

Don't forget to modules-update or update-modules as well to get the modules jiggy with it and to rebuild your whole system and world with the new kernel or this is how the correct way it should be done.
WarraWarra
Sagely Hen
 
Posts: 1989
Joined: Wed Jan 03, 2007 21:01
Location: 31.324270, -113.585511

Re: kernel upgrade using portage problem

Postby tman7510 » Sun May 31, 2009 6:18

here is the error I'm geting after following the wiki to the T and run:
genkernel --kernel-config=/usr/src/config --menuconfig --bootloader=grub --splash=sabayon --disklabel --lvm all

fs/aufs/vfsub.c:357: error: implicit declaration of function ‘vfs_splice_to’
fs/aufs/vfsub.c: In function ‘do_vfsub_splice_from’:
fs/aufs/vfsub.c:373: error: implicit declaration of function ‘vfs_splice_from’
make[2]: *** [fs/aufs/vfsub.o] Error 1
make[1]: *** [fs/aufs] Error 2
make: *** [fs] Error 2
make: *** Waiting for unfinished jobs....
CC crypto/des_generic.o
CC crypto/aes_generic.o
CC crypto/arc4.o
CC crypto/crc32c.o
CC crypto/lzf.o
CC crypto/rng.o
CC crypto/krng.o
CC crypto/xor.o
CC crypto/async_tx/async_tx.o
CC crypto/async_tx/async_memcpy.o
CC crypto/async_tx/async_xor.o
LD crypto/crypto.o
LD crypto/crypto_algapi.o
LD crypto/async_tx/built-in.o
LD crypto/built-in.o
* Gentoo Linux Genkernel; Version 3.4.10.904^[[0m
* Running with options: --kernel-config=/usr/src/config --menuconfig --bootloader=grub --splash=sabayon --disklabel all

* ERROR: Failed to compile the "bzImage" target...
* -- Grepping log... --
* -- End log... --
This info was pulled from my genkernel log.
tman7510
Simple Hen
 
Posts: 92
Joined: Sun Mar 16, 2008 5:51

Re: kernel upgrade using portage problem

Postby WarraWarra » Sun May 31, 2009 21:46

genkernel --kernel-config=/usr/src/config --menuconfig --bootloader=grub --splash=sabayon --disklabel --lvm all


Okay you can skip most of that as it is default in genkernel all / SL kernel config.
ie: lvm is default , same with grub splash = available and will be used or edit grub.conf and add the splash screen location and file, disklabel is default as well so you do not need to add them.

If I am not mistaken /proc/config.gz gets copied and used and this is either the same or very similar to the actual SL kernel config. If not sure use the " zcat /proc/config.gz > /usr/share/genkernel/x86/kernel-config-2.6 "
or
zcat /proc/config.gz > /usr/src/linux/.config
same results.

Code: Select all
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#book_part1_chap7

Code: Select all
7d

Code Listing 4.2: Copying over the Installation CD kernel config

Splash should be in /boot/grub/splash.xpm
Can even put a picture of a naked women in there just rename it " naked.jpg becomes splash.xpm" google for gentoo and splash screen or gentoo splash boot.

Only thing you need to do is
Code: Select all
genkernel --menuconfig all

genkernel --help

Code: Select all
http://www.gentoo.org/doc/en/genkernel.xml


Aufs error = you would need to have it installed and configured in your system then it gets used and can not build if not installed or something along this lines.

The failure could be because of this aufs.
Best what I found was to cd /usr/src/linux
then
make menuconfig
Once this is done just genkernel all = no errors unless kernel config has issues with options / missing items. Too many / some options options confused genkernel .

This is just my thoughts on this might want to read up some more on some options just to be sure and keep the commands simple for genkernel.
WarraWarra
Sagely Hen
 
Posts: 1989
Joined: Wed Jan 03, 2007 21:01
Location: 31.324270, -113.585511

Re: kernel upgrade using portage problem

Postby tman7510 » Sun May 31, 2009 22:10

Here is the entire log. I have no problems with using equo to install the kernel but like I said then I am unable to compile certain items using portage because there is no kernel source.

* ERROR: Failed to compile the "bzImage" target...

* -- Grepping log... --

SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -o arch/x86/Kconfig
.config:812:warning: symbol value 'm' invalid for IP_DCCP_CCID3
.config:815:warning: symbol value 'm' invalid for IP_DCCP_TFRC_LIB
--
4. OLPC (PCI_GOOLPC)
> 5. Any (PCI_GOANY)
choice[1-5?]: 5
PCI Express support (PCIEPORTBUS) [Y/n/?] y
PCI Express Hotplug driver (HOTPLUG_PCI_PCIE) [M/n/?] m
Root Port Advanced Error Reporting support (PCIEAER) [Y/n/?] y
--
Compile in debug mode (AIC94XX_DEBUG) [N/y/?] n
Adaptec I2O RAID support (SCSI_DPT_I2O) [Y/n/m/?] y
AdvanSys SCSI support (SCSI_ADVANSYS) [Y/n/m/?] y
Always IN2000 SCSI support (SCSI_IN2000) [Y/n/m/?] y
ARECA (ARC11xx/12xx/13xx/16xx) SATA/SAS RAID Host Adapter (SCSI_ARCMSR) [Y/n/m/?] y
Enable PCI Error Recovery Capability in Areca Driver(ARCMSR) (SCSI_ARCMSR_AER) [N/y/?] n
--
LED Support (NEW_LEDS) [Y/?] y
LED Class Support (LEDS_CLASS) [M/y/?] m
*
* LED drivers
*
LED Support for Soekris net48xx series Error LED (LEDS_NET48XX) [M/n/?] m
--
LED Trigger support (LEDS_TRIGGERS) [Y/?] y
LED Timer Trigger (LEDS_TRIGGER_TIMER) [M/n/y/?] m
LED Heartbeat Trigger (LEDS_TRIGGER_HEARTBEAT) [M/n/y/?] m
LED backlight Trigger (LEDS_TRIGGER_BACKLIGHT) [N/m/y/?] (NEW) LED Default ON Trigger (LEDS_TRIGGER_DEFAULT_ON) [M/n/y/?] m
*
* EDAC - error detection and reporting (EXPERIMENTAL)
*
EDAC - error detection and reporting (EXPERIMENTAL) (EDAC) [Y/n/?] y
*
* Reporting subsystems
*
Debugging (EDAC_DEBUG) [N/y/?] n
Main Memory EDAC (Error Detection And Correction) reporting (EDAC_MM_EDAC) [Y/n/m/?] y
--
OCFS2 POSIX Access Control Lists (OCFS2_FS_POSIX_ACL) [N/y/?] (NEW) Btrfs filesystem (EXPERIMENTAL) Unstable disk format (BTRFS_FS) [N/m/y/?] (NEW) Dnotify support (DNOTIFY) [Y/n/?] y
Inotify file change notification support (INOTIFY) [Y/n/?] y
Inotify support for userspace (INOTIFY_USER) [Y/n/?] y
Quota support (QUOTA) [Y/?] y
Report quota messages through netlink interface (QUOTA_NETLINK_INTERFACE) [N/y/?] n
Print quota warnings to console (OBSOLETE) (PRINT_QUOTA_WARNING) [Y/n/?] y
--
LD fs/adfs/built-in.o
LD fs/affs/built-in.o
LD fs/afs/built-in.o
CC fs/aufs/module.o
CC security/inode.o
fs/aufs/module.c:251:2: warning: #warning CONFIG_AUFS_COMPAT will be removed in the near future.
--
CC crypto/api.o
CC fs/aufs/wkq.o
CC crypto/cipher.o
CC fs/aufs/vfsub.o
fs/aufs/vfsub.c: In function ‘do_vfsub_splice_to’:
fs/aufs/vfsub.c:357: error: implicit declaration of function ‘vfs_splice_to’
fs/aufs/vfsub.c: In function ‘do_vfsub_splice_from’:
fs/aufs/vfsub.c:373: error: implicit declaration of function ‘vfs_splice_from’
make[2]: *** [fs/aufs/vfsub.o] Error 1
make[1]: *** [fs/aufs] Error 2
make: *** [fs] Error 2
--
LD crypto/built-in.o
* Please use --lvm, as --lvm2 is deprecated.
* Gentoo Linux Genkernel; Version 3.4.10.904
* Running with options: --kernel-config=/usr/src/config --menuconfig --bootloader=grub --splash=sabayon --disklabel --lvm2 all

* ERROR: Failed to compile the "bzImage" target...

* -- End log... --
tman7510
Simple Hen
 
Posts: 92
Joined: Sun Mar 16, 2008 5:51

Re: kernel upgrade using portage problem

Postby Fitzcarraldo » Sun May 31, 2009 23:42

You can install kernel sources using equo too. E.g.:

Code: Select all
# equo install linux-sabayon-2.6.29#2.6.29-sabayon


Regarding using genkernel, if you're installing a new kernel, rather than reinstalling the same kernel version and perhaps tweaking it,forget using zcat and see the note at the bottom of the Wiki article. For example, as explained in the Wiki article, when I installed the x86_64 edition 2.6.29-sabayon kernel I entered:

Code: Select all
# genkernel /usr/local/portage/layman/sabayon/sys-kernel/linux-sabayon/files/linux-sabayon-2.6.29-amd64.config --menuconfig --bootloader=grub --splash=sabayon all


Have a look in the directory /usr/local/portage/layman/sabayon/sys-kernel/linux-sabayon/files/ and you'll find the config file that is downloaded from the repo.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7985
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: kernel upgrade using portage problem

Postby tman7510 » Mon Jun 01, 2009 4:59

Ok guys I finally got it to compile using genkernel all . I copied the downloaded config and it compiled with zero errors. It doesnt boot because it tells me my LVM is an invalid rootfs. I looked in my grub.conf and had to modify the entry made by entropy and the 2.6.29 kernel to the 2.6.29-r1 but it doesnt work even though my grub entry is the same and working for the 2.6.27 kernel. Is it supposed to make a grub entry or is that only done when upgrading using entropy. Do you think this is a grub error? I looked in my /boot dir and its all there. I didn"t specify lvm in genkernel because it is default right?

the actual error is

block device /dev/VolGroup00/LogVol00 is invalid device right before this it failes to initialize lvm :cry:

I'm so close...
tman7510
Simple Hen
 
Posts: 92
Joined: Sun Mar 16, 2008 5:51

Re: kernel upgrade using portage problem

Postby Fitzcarraldo » Mon Jun 01, 2009 10:48

If you installed using LVM then you need to include --lvm in the genkernel command, as stated in the Wiki article.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7985
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: kernel upgrade using portage problem[SOLVED!!]

Postby tman7510 » Wed Jun 03, 2009 5:48

Thanks you guys for all your help :D you guys at Sabayon rock. Now my next task is to deal with my python update. Wish me luck I'm hoping I dont break my system.

:mrgreen:
tman7510
Simple Hen
 
Posts: 92
Joined: Sun Mar 16, 2008 5:51

Next

Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 1 guest