From: Sven Neumann <s.neumann@raumfeld.com>
To: buildroot@busybox.net
Subject: [Buildroot] error building kernel with initramfs
Date: Sat, 08 Oct 2011 00:49:08 +0200 [thread overview]
Message-ID: <1318027748.4647.3.camel@bender> (raw)
Hi,
if you select gzip compression for the rootfs.cpio file
(BR2_TARGET_ROOTFS_CPIO_GZIP), then the rebuild of the kernel with
initramfs is going to fail:
^[[7m>>> Generating root filesystem image rootfs.cpio^[[27m
if [ ! -e /var/lib/buildbot/build-arm-1.8/build/output/target/init ]; then /usr/bin/install -m 0755 fs/cpio/init /var/lib/buildbot/build-arm-1.8/build/output/target/init; fi
rm -f /var/lib/buildbot/build-arm-1.8/build/output/build/_fakeroot.fs
touch /var/lib/buildbot/build-arm-1.8/build/output/build/.fakeroot.00000
cat /var/lib/buildbot/build-arm-1.8/build/output/build/.fakeroot* > /var/lib/buildbot/build-arm-1.8/build/output/build/_fakeroot.fs
echo "chown -R 0:0 /var/lib/buildbot/build-arm-1.8/build/output/target" >> /var/lib/buildbot/build-arm-1.8/build/output/build/_fakeroot.fs
cat target/generic/device_table.txt > /var/lib/buildbot/build-arm-1.8/build/output/build/_device_table.txt
echo "/var/lib/buildbot/build-arm-1.8/build/output/host/usr/bin/makedevs -d /var/lib/buildbot/build-arm-1.8/build/output/build/_device_table.txt /var/lib/buildbot/build-arm-1.8/build/output/target" >> /var/lib/buildbot/build-arm-1.8/build/output/build/_fakeroot.fs
echo " cd /var/lib/buildbot/build-arm-1.8/build/output/target && find . | cpio --quiet -o -H newc > /var/lib/buildbot/build-arm-1.8/build/output/images/rootfs.cpio" >> /var/lib/buildbot/build-arm-1.8/build/output/build/_fakeroot.fs
chmod a+x /var/lib/buildbot/build-arm-1.8/build/output/build/_fakeroot.fs
/var/lib/buildbot/build-arm-1.8/build/output/host/usr/bin/fakeroot -- /var/lib/buildbot/build-arm-1.8/build/output/build/_fakeroot.fs
rootdir=/var/lib/buildbot/build-arm-1.8/build/output/target
table='/var/lib/buildbot/build-arm-1.8/build/output/build/_device_table.txt'
gzip -9 -f /var/lib/buildbot/build-arm-1.8/build/output/images/rootfs.cpio
^[[7m>>> Rebuilding kernel with initramfs^[[27m
# Build the kernel.
PATH="/var/lib/buildbot/build-arm-1.8/build/output/host/bin:/var/lib/buildbot/build-arm-1.8/build/output/host/usr/bin:/var/lib/buildbot/build-arm-1.8/build/output/host/usr/sbin/:/usr/local/bin:/usr/bin:/bin:/usr/games" PERLLIB="/var/lib/buildbot/build-arm-1.8/build/output/host/usr/lib/perl" /usr/bin/make -j4 HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" ARCH=arm INSTALL_MOD_PATH=/var/lib/buildbot/build-arm-1.8/build/output/target CROSS_COMPILE=" /var/lib/buildbot/build-arm-1.8/build/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-" LZMA="/var/lib/buildbot/build-arm-1.8/build/output/host/usr/bin/lzma" -C /var/lib/buildbot/build-arm-1.8/build/output/build/linux-3.0.4 uImage
make[1]: Entering directory `/var/lib/buildbot/build-arm-1.8/build/output/build/linux-3.0.4'
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[2]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
/var/lib/buildbot/build-arm-1.8/build/output/build/linux-3.0.4/scripts/gen_initramfs_list.sh: Cannot open '/var/lib/buildbot/build-arm-1.8/build/output/images/rootfs.cpio'
make[2]: *** [usr/initramfs_data.cpio.gz] Error 1
CHK include/generated/compile.h
make[1]: *** [usr] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** wait: No child processes. Stop.
make: *** [/var/lib/buildbot/build-arm-1.8/build/output/build/linux-3.0.4/.stamp_initramfs_rebuilt] Error 2
I guess the fix for this is to change fs/initramfs/Config.in to select
BR2_TARGET_ROOTFS_CPIO_NONE, right ?
Sven
next reply other threads:[~2011-10-07 22:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-07 22:49 Sven Neumann [this message]
2011-10-08 8:31 ` [Buildroot] error building kernel with initramfs Thomas Petazzoni
2011-10-08 21:55 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1318027748.4647.3.camel@bender \
--to=s.neumann@raumfeld.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.