| View previous topic :: View next topic |
| Author |
Message |
augustin2 Tux's lil' helper

Joined: 16 Mar 2012 Posts: 94 Location: France
|
Posted: Wed Jan 23, 2013 1:06 pm Post subject: [Solved] cannot run genkernel |
|
|
Hi,
I recently added a bluetooth dongle to my system. I want to configure the kernel to support bluetooth. My genkernel.conf contains, among others, the lines that follow :
| Quote: | # Run 'make oldconfig' before compiling this kernel?
OLDCONFIG="yes"
# Run 'make menuconfig' before compiling this kernel?
MENUCONFIG="yes"
# Run 'make clean' before compilation?
# If set to NO, implies MRPROPER WILL NOT be run
# Also, if clean is NO, it won't copy over any configuration
# file, it will use what's there.
CLEAN="no"
# Run 'make mrproper' before configuration/compilation?
MRPROPER="no"
# Override the arch detection?
#ARCH_OVERRIDE="x86"
# Mount BOOTDIR automatically if it isn't mounted?
MOUNTBOOT="yes"
# Make symlinks in BOOTDIR automatically?
SYMLINK="yes"
# Save the new configuration in /etc/kernels upon
# successfull compilation
SAVE_CONFIG="yes" |
Prior to run genkernel I copied the previous config like this :
| Code: | | cp /etc/kernels/gentoo-x86_64-3.5.7 /usr/src/linux/.config |
then I run
| Code: | | genkernel --menuconfig all |
I get this :
| Quote: | jaaf-PC kernels # genkernel --menuconfig all
* Gentoo Linux Genkernel; Version 3.4.45
* Running with options: --menuconfig all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..
* ERROR: Kernel Makefile (/usr/src/linux/Makefile) missing. Maybe re-install the kernel sources.
* -- Grepping log... --
* Running with options: --menuconfig all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..
* ERROR: Kernel Makefile (/usr/src/linux/Makefile) missing. Maybe re-install the kernel sources.
* -- End log... --
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*
jaaf-PC kernels # |
The /var/log/genkernel.log file adds nothing else.
As suggestel I installed new gentoo-sources
| Code: | | emerge gentoo-sources |
Which was linux-3.6.11-gentoo instead of linux-3-5-7
thus with eselect I changed the symlink to point on these new sources
Then rerunning genkernel gave :
| Quote: | jaaf-PC src # genkernel --menuconfig all
* Gentoo Linux Genkernel; Version 3.4.45
* Running with options: --menuconfig all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..
Could not find source tarball /var/cache/genkernel/src/busybox-1.20.1.tar.bz2. Please refetch.
jaaf-PC src # |
What on earth is this busybox tarball ?
What should I do ? _________________ If you happen to meet a poor and hungry man, giving him a fish is a good and necessary action but teaching him how to fish is a far better one. Please keep this in mind when helping me.
Last edited by augustin2 on Thu Jan 24, 2013 6:07 am; edited 1 time in total |
|
| Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 6443 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Jan 23, 2013 2:31 pm Post subject: |
|
|
The source tarball is the source code for busybox which is by default included in the initramfs. Genkernel keeps its own copy separate from /usr/portage/distfiles. The fact that it's not there a minor piece of corruption as the file should be put there by the emerge of genkernel. (The error message could be better, too.) Just run | Code: | | emerge --oneshot genkernel | and that should re-fetch the file. No idea how it got deleted, though.
- John _________________ This space intentionally left blank. |
|
| Back to top |
|
 |
augustin2 Tux's lil' helper

Joined: 16 Mar 2012 Posts: 94 Location: France
|
Posted: Wed Jan 23, 2013 3:12 pm Post subject: |
|
|
Thank a lot John.
I did as you told me but with no success.
Here are the results of my commands :
| Quote: | jaaf-PC jaaf # emerge --oneshot genkernel
* IMPORTANT: 7 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-kernel/genkernel-3.4.45
* genkernel-3.4.45.tar.bz2 SHA256 SHA512 WHIRLPOOL size ... [ ok ]
* dmraid-1.0.0.rc16-3.tar.bz2 SHA256 SHA512 WHIRLPOOL size ... [ ok ]
* mdadm-3.1.5.tar.bz2 SHA256 SHA512 WHIRLPOOL size ... [ ok ]
* LVM2.2.02.88.tgz SHA256 SHA512 WHIRLPOOL size ... [ ok ]
* busybox-1.20.2.tar.bz2 SHA256 SHA512 WHIRLPOOL size ... [ ok ]
* open-iscsi-2.0-872.tar.gz SHA256 SHA512 WHIRLPOOL size ... [ ok ]
* fuse-2.8.6.tar.gz SHA256 SHA512 WHIRLPOOL size ... [ ok ]
* unionfs-fuse-0.24.tar.bz2 SHA256 SHA512 WHIRLPOOL size ... [ ok ]
* gnupg-1.4.11.tar.bz2 SHA256 SHA512 WHIRLPOOL size ... [ ok ]
>>> Unpacking source...
>>> Unpacking genkernel-3.4.45.tar.bz2 to /var/tmp/portage/sys-kernel/genkernel-3.4.45/work
>>> Source unpacked in /var/tmp/portage/sys-kernel/genkernel-3.4.45/work
>>> Preparing source in /var/tmp/portage/sys-kernel/genkernel-3.4.45/work/genkernel-3.4.45 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-kernel/genkernel-3.4.45/work/genkernel-3.4.45 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-kernel/genkernel-3.4.45/work/genkernel-3.4.45 ...
>>> Source compiled.
>>> Test phase [not enabled]: sys-kernel/genkernel-3.4.45
>>> Install genkernel-3.4.45 into /var/tmp/portage/sys-kernel/genkernel-3.4.45/image/ category sys-kernel
* Copying files to /var/cache/genkernel/src...
>>> Completed installing genkernel-3.4.45 into /var/tmp/portage/sys-kernel/genkernel-3.4.45/image/
ecompressdir: bzip2 -9 /usr/share/man
>>> Installing (1 of 1) sys-kernel/genkernel-3.4.45
* Documentation is available in the genkernel manual page
* as well as the following URL:
* http://www.gentoo.org/doc/en/genkernel.xml
* This package is known to not work with reiser4. If you are running
* reiser4 and have a problem, do not file a bug. We know it does not
* work and we don't plan on fixing it since reiser4 is the one that is
* broken in this regard. Try using a sane filesystem like ext3 or
* even reiser3.
* The LUKS support has changed from versions prior to 3.4.4. Now,
* you use crypt_root=/dev/blah instead of real_root=luks:/dev/blah.
* Local use flag 'crypt' has been renamed to 'cryptsetup' (bug #414523).
* Please set flag 'cryptsetup' for this very package if you would like
* to have genkernel create an initramfs with LUKS support.
* Sorry for the inconvenience.
* Messages for package sys-kernel/genkernel-3.4.45:
* Copying files to /var/cache/genkernel/src...
* Documentation is available in the genkernel manual page
* as well as the following URL:
* http://www.gentoo.org/doc/en/genkernel.xml
* This package is known to not work with reiser4. If you are running
* reiser4 and have a problem, do not file a bug. We know it does not
* work and we don't plan on fixing it since reiser4 is the one that is
* broken in this regard. Try using a sane filesystem like ext3 or
* even reiser3.
* The LUKS support has changed from versions prior to 3.4.4. Now,
* you use crypt_root=/dev/blah instead of real_root=luks:/dev/blah.
* Local use flag 'crypt' has been renamed to 'cryptsetup' (bug #414523).
* Please set flag 'cryptsetup' for this very package if you would like
* to have genkernel create an initramfs with LUKS support.
* Sorry for the inconvenience.
>>> Auto-cleaning packages...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
* IMPORTANT: 5 config files in '/etc' need updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.
* IMPORTANT: 7 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
|
then new attempt :
| Quote: |
jaaf-PC jaaf # genkernel --menuconfig all
* Gentoo Linux Genkernel; Version 3.4.45
* Running with options: --menuconfig all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..
Could not find source tarball /var/cache/genkernel/src/busybox-1.20.1.tar.bz2. Please refetch.
jaaf-PC jaaf # |
_________________ If you happen to meet a poor and hungry man, giving him a fish is a good and necessary action but teaching him how to fish is a far better one. Please keep this in mind when helping me. |
|
| Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 6443 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Jan 23, 2013 3:17 pm Post subject: |
|
|
Very strange. I deleted the file from my system & reproduced the error message you had. I then re-emerged genkernel and the error went away. Could you post the output of | Code: | | ls -l /var/cache/genkernel/src | please?
Edit: Wait. You've got unupdated config files to deal with. Please do that with your tool of choice (etc-update, dispatch-conf) and then try your genkernel command again. Ignoring config file updates is a bad idea.
- John _________________ This space intentionally left blank. |
|
| Back to top |
|
 |
augustin2 Tux's lil' helper

Joined: 16 Mar 2012 Posts: 94 Location: France
|
Posted: Wed Jan 23, 2013 3:27 pm Post subject: |
|
|
Here you are
| Quote: | jaaf-PC jaaf # ls -l /var/cache/genkernel/src
total 8396
-rw-r--r-- 1 root root 1029151 23 janv. 16:05 LVM2.2.02.88.tgz
-rw-r--r-- 1 root root 2186738 23 janv. 16:05 busybox-1.20.2.tar.bz2
-rw-r--r-- 1 root root 232743 23 janv. 16:05 dmraid-1.0.0.rc16-3.tar.bz2
-rw-r--r-- 1 root root 505334 23 janv. 16:05 fuse-2.8.6.tar.gz
-rw-r--r-- 1 root root 3407075 23 janv. 16:05 gnupg-1.4.11.tar.bz2
-rw-r--r-- 1 root root 292709 23 janv. 16:05 mdadm-3.1.5.tar.bz2
-rw-r--r-- 1 root root 900081 23 janv. 16:05 open-iscsi-2.0-872.tar.gz
-rw-r--r-- 1 root root 30381 23 janv. 16:05 unionfs-fuse-0.24.tar.bz2
jaaf-PC jaaf # |
_________________ If you happen to meet a poor and hungry man, giving him a fish is a good and necessary action but teaching him how to fish is a far better one. Please keep this in mind when helping me. |
|
| Back to top |
|
 |
augustin2 Tux's lil' helper

Joined: 16 Mar 2012 Posts: 94 Location: France
|
Posted: Wed Jan 23, 2013 3:30 pm Post subject: |
|
|
I will try to update my files _________________ If you happen to meet a poor and hungry man, giving him a fish is a good and necessary action but teaching him how to fish is a far better one. Please keep this in mind when helping me. |
|
| Back to top |
|
 |
augustin2 Tux's lil' helper

Joined: 16 Mar 2012 Posts: 94 Location: France
|
Posted: Thu Jan 24, 2013 6:06 am Post subject: |
|
|
I could manage to run genkernel.
The fact that my config files were not up to date was the source of the problem. Specialy genkernel.conf that pointed on the wrong version of the busybox tarball and more over that did'nt any longer update the kernel and initramfs symlinks in /boot.
Thank you for your help. _________________ If you happen to meet a poor and hungry man, giving him a fish is a good and necessary action but teaching him how to fish is a far better one. Please keep this in mind when helping me. |
|
| Back to top |
|
 |
|