Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] cannot run genkernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Wed Jan 23, 2013 1:06 pm    Post subject: [Solved] cannot run genkernel Reply with quote

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 ?


Last edited by augustin2 on Thu Jan 24, 2013 6:07 am; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Jan 23, 2013 2:31 pm    Post subject: Reply with quote

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
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Wed Jan 23, 2013 3:12 pm    Post subject: Reply with quote

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 #
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Jan 23, 2013 3:17 pm    Post subject: Reply with quote

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
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Wed Jan 23, 2013 3:27 pm    Post subject: Reply with quote

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 #
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Wed Jan 23, 2013 3:30 pm    Post subject: Reply with quote

I will try to update my files
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Thu Jan 24, 2013 6:06 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
bensimons
n00b
n00b


Joined: 20 Feb 2014
Posts: 13

PostPosted: Tue Jan 12, 2016 3:38 am    Post subject: Reply with quote

It might be that /etc/genkernel.conf was out of date. This could happen if you hadn't updated in a while.

Code:
#  genkernel all
* Gentoo Linux Genkernel; Version 3.4.52.3
* Running with options: 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.2.tar.bz2. Please refetch.

I just found the same message about busybox (see above). It was fixed by running "etc-update". This updated /etc/genkernel.conf with new additions. Then genkernel ran fine.
Code:
 # etc-update
Scanning Configuration files...
The following is the list of files which need updating, each
configuration file is followed by a list of possible replacement files.
1) /etc/genkernel.conf (1)
Please select a file to edit by entering the corresponding number.
              (don't use -3, -5, -7 or -9 if you're unsure what to do)
              (-1 to exit) (-3 to auto merge all files)
                           (-5 to auto-merge AND not use 'mv -i')
                           (-7 to discard all updates)
                           (-9 to discard all updates AND not use 'rm -i'):

(do the edits to update the conf file. i have etc-updates set to use vimdiff.)
then with the new genkernel.conf the genkernel works fine
Code:
/usr/src/linux #  genkernel all
* Gentoo Linux Genkernel; Version 3.4.52.3
* Running with options: 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 ..

* Linux Kernel 4.1.12-gentoo for x86_64...
* .. with config file /usr/share/genkernel/arch/x86_64/generated-config
* kernel: --mrproper is disabled; not running 'make mrproper'.
*         >> Running oldconfig...
* kernel: >> Cleaning...
*         >> Compiling 4.1.12-gentoo bzImage...
*         >> Not installing firmware as it's included in the kernel already (CONFIG_FIRMWARE_IN_KERNEL=y)...
*         >> Compiling 4.1.12-gentoo modules...

*         >> Generating module dependency data...
* Copying config for successful build to /etc/kernels/kernel-config-x86_64-4.1.12-gentoo
* busybox: >> Removing stale cache...
* busybox: >> Applying patches...
*           - 1.18.1-openvt.diff
*           - busybox-1.20.1-mdstart.patch
*           - busybox-1.20.2-bunzip2.patch
*           - busybox-1.20.2-glibc-sys-resource.patch
*           - busybox-1.20.2-modprobe.patch
*           - busybox-1.7.4-signal-hack.patch
* busybox: >> Configuring...
* busybox: >> Compiling...
* busybox: >> Copying to cache...
* initramfs: >> Initializing...
*         >> Appending base_layout cpio data...
*         >> Appending auxilary cpio data...
*         >> Copying keymaps
*         >> Appending busybox cpio data...
*         >> Appending modules cpio data...
*         >> Appending blkid cpio data...
*         >> Appending modprobed cpio data...
*         >> Appending linker cpio data...
*         >> Finalizing cpio...
*         >> Compressing cpio data (.xz)...
*
* Kernel compiled successfully!
*
* Required Kernel Parameters:
*     root=/dev/$ROOT
*
*     Where $ROOT is the device node for your root partition as the
*     one specified in /etc/fstab
*
* If you require Genkernel's hardware detection features; you MUST
* tell your bootloader to use the provided INITRAMFS file.

* WARNING... WARNING... WARNING...
* Additional kernel cmdline arguments that *may* be required to boot properly...
* With support for several ext* filesystems available, it may be needed to
* add "rootfstype=ext3" or "rootfstype=ext4" to the list of boot parameters.

* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
*
* Make sure you have the latest ~arch genkernel before reporting bugs.
/usr/src/linux #   
Back to top
View user's profile Send private message
bensimons
n00b
n00b


Joined: 20 Feb 2014
Posts: 13

PostPosted: Thu Jan 14, 2016 6:03 am    Post subject: Reply with quote

Interesting.. Just ran into this again. This time the suggestion above did not work. Also, a re-emerge of genkernel did not work. What worked was to remove it & reinstall it, and then etc-update.
Code:
 # emerge -C genkernel
 # emerge genkernel
 # etc-update

This time "etc-update" showed the following 2 lines missing from /etc/genkernel.conf
Code:
# wrap initramfs using mkimage for u-boot bootloader
# WRAP_INITRD=no

Hmmm. the addition is only 2 comments? Still, removing genkernel and emerging it again worked.
Back to top
View user's profile Send private message
freedomeagle1967
n00b
n00b


Joined: 26 Aug 2007
Posts: 52
Location: Minnesota

PostPosted: Mon Feb 15, 2016 1:12 am    Post subject: Reply with quote

Quote:
Author Message
bensimons
Code:
 # emerge -C genkernel
 # emerge genkernel
 # etc-update


This worked for me. :roll: there must have been a change in the genkernel.conf file. Pretty drastic way to update a config file.:roll:
_________________
Scott
Peace
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum