Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100583 - genkernel-3.3 fails to copy the generated initramfs image to the kernel tree
Summary: genkernel-3.3 fails to copy the generated initramfs image to the kernel tree
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-28 05:43 UTC by Florian Zwoch
Modified: 2005-07-29 14:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Zwoch 2005-07-28 05:43:01 UTC
i hope this is not related to faulty userspace interaction (read: myself).

# genkernel --kernel-config=/usr/share/genkernel/ppc/G4 --genzimage all
[..]
* Merging
    initramfs-base-layout.cpio.gz
    initramfs-aux.cpio.gz
    initramfs-busybox-1.00-rt-mdstart.plasmaroo.cpio.gz
    initramfs-insmod-0.9.15-pre4.cpio.gz
    initramfs-udev-054.cpio.gz
    initramfs-modules-2.6.12-gentoo-r6.cpio.gz
cp: cannot stat `/var/tmp/genkernel/9317.12726.11168.27183/initramfs-2.6.12-gent
oo-r6': No such file or directory
*         >> Compiling 2.6.12-gentoo-r6 vmlinux...
*         >> Starting supplimental compile of 2.6.12-gentoo-r6: zImage.initrd...
* ERROR: Failed to compile the "zImage.initrd" target...

* -- Grepping log... --

make[1]: `arch/ppc/kernel/asm-offsets.s' is up to date.
  CHK     include/linux/compile.h
  CHK     usr/initramfs_list
  MISSING arch/ppc/boot/images/ramdisk.image.gz
          RAM disk image must be provided separately
make[2]: *** [arch/ppc/boot/images/ramdisk.image.gz] Error 1
make[1]: *** [openfirmware] Error 2
make: *** [zImage.initrd] Error 2
* Gentoo Linux Genkernel; Version 3.3
* Running with options: --kernel-config=/usr/share/genkernel/ppc/G4 --genzimage all

* ERROR: Failed to compile the "zImage.initrd" target...

* -- End log... --

here is a problem:
/var/tmp/genkernel/9317.12726.11168.27183/initramfs-2.6.12-gentoo-r6
it seems that the actualy created image is located at:
/var/tmp/genkernel/initramfs-2.6.12-gentoo-r6

the cp failes and therefore the kernel compilation dies because of the missing
image - i guess(?).

i could successfully compile with genkernel when i replaced line 498 in
gen_initramfs.sh with the following line:
cp ${TEMP}/../initramfs-${KV}
${KERNEL_DIR}/arch/${ARCH}/boot/images/ramdisk.image.gz
this is probably a ridiculous fixing approach..

here is a similar "file not found" problem. i dont know if this is critical though..

* initramfs: >> Initializing...
*         >> Creating base_layout cpio archive...
*         >> Creating auxilary cpio archive...
*         >> Creating busybox cpio archive...
*         >> Creating udev cpio archive...
*         >> Creating insmod cpio archive...
*         >> Creating modules cpio archive...
cat: /var/tmp/genkernel/9317.12726.11168.27183/moddeps: No such file or directory

Reproducible: Always
Steps to Reproduce:
1.genkernel --kernel-config=/usr/share/genkernel/ppc/G4 --genzimage all
2.
3.

Actual Results:  
initramfs image compilation fails.

Expected Results:  
successfull compilation of kernel and initramfs images.

Portage 2.0.51.22-r2 (default-linux/ppc/2005.0, gcc-3.4.4,
glibc-2.3.4.20041102-r1, 2.6.12 ppc)
=================================================================
System uname: 2.6.12 ppc 7447A, altivec supported
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.90.0.3-r5
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X alsa altivec apache2 berkdb bitmap-fonts cdr crypt cups curl directfb
emboss flac fortran gd gdbm gif gpm gtk gtk2 ipv6 java jpeg libwww mad motif mp3
mpeg mysql ncurses nls nptl ogg oggvorbis opengl pam pdflib perl png python
readline samba sdl spell sqlite ssl tcpd tiff truetype truetype-fonts
type1-fonts unicode vorbis xml2 xmms xprint xv zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2005-07-29 14:00:51 UTC
Fixed in 3.3.2; thanks!