From: Babarovic Ivica <ivica.babarovic@asist.si>
To: buildroot@busybox.net
Subject: [Buildroot] Tar problems
Date: Tue, 04 Sep 2007 15:24:37 +0200 [thread overview]
Message-ID: <46DD5C95.3060907@asist.si> (raw)
Since this is my first post to this list I'd like to say hello first and
express my appreciation
for this wonderful tool.
This is the problem I'm getting while building my target.
I specifically uncheck the tar option for compressing rootfs. It seems
though build process
ignores this.
Last lines:
-------------------------------------------------------------------
...
# Use fakeroot to pretend all target binaries are owned by root
rm -f
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
touch
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/.fakeroot.00000
cat
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/.fakeroot*
>
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
echo "chown -R 0:0
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root"
>>
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
# Use fakeroot to pretend to create all needed device nodes
echo
"/home/ivo/src/mpc5200_binar/build-tools/buildroot/build_powerpc/staging_dir/bin/makedevs
-d target/generic/device_table.txt
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root"
\
>>
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
# Use fakeroot so genext2fs believes the previous fakery
GENEXT2_REALSIZE=`LC_ALL=C du -s -c -k
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root
| grep total | sed -e "s/total//"`; \
GENEXT2_ADDTOROOTSIZE=`if [ $GENEXT2_REALSIZE -ge 20000 ]; then
echo 16384; else echo 2400; fi`; \
GENEXT2_SIZE=`expr $GENEXT2_REALSIZE + $GENEXT2_ADDTOROOTSIZE`; \
GENEXT2_ADDTOINODESIZE=`find
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root
| wc -l`; \
GENEXT2_INODES=`expr $GENEXT2_ADDTOINODESIZE + 400`; \
set -x; \
echo
"/home/ivo/src/mpc5200_binar/build-tools/buildroot/build_powerpc/genext2fs-1.4/genext2fs
-b $GENEXT2_SIZE " \
"-N $GENEXT2_INODES -d
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root
" \
" -U -m 0
/home/ivo/src/mpc5200_binar/build-tools/buildroot/binaries/uclibc/rootfs.powerpc.ext2"
>>
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
+ echo
'/home/ivo/src/mpc5200_binar/build-tools/buildroot/build_powerpc/genext2fs-1.4/genext2fs
-b 5576 ' '-N 728 -d
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root
' ' -U -m 0
/home/ivo/src/mpc5200_binar/build-tools/buildroot/binaries/uclibc/rootfs.powerpc.ext2'
chmod a+x
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
/home/ivo/src/mpc5200_binar/build-tools/buildroot/build_powerpc/staging_dir/usr/bin/fakeroot
--
/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/_fakeroot.rootfs.powerpc.ext2
chown: changing ownership of
`/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root/dev/log':
No such file or directory
chown: changing ownership of
`/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root/etc/mtab':
No such file or directory
chown: changing ownership of
`/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root/etc/resolv.conf':
No such file or directory
rootdir=/home/ivo/src/mpc5200_binar/build-tools/buildroot/project_build_powerpc/uclibc/root
table='target/generic/device_table.txt'
-rw-r--r-- 1 ivo users 5709824 Sep 4 14:49
/home/ivo/src/mpc5200_binar/build-tools/buildroot/binaries/uclibc/rootfs.powerpc.ext2
tar: /home/ivo/src/mpc5200_binar/build-tools/buildroot/dl/: Cannot read:
Is a directory
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Error exit delayed from previous errors
basename: missing operand
Try `basename --help' for more information.
gzip -d -c /home/ivo/src/mpc5200_binar/build-tools/buildroot/dl/ | tar
-C
/home/ivo/src/mpc5200_binar/build-tools/buildroot/toolchain_build_powerpc
-xf -
gzip: /home/ivo/src/mpc5200_binar/build-tools/buildroot/dl/ is a
directory -- ignored
mv
/home/ivo/src/mpc5200_binar/build-tools/buildroot/toolchain_build_powerpc/
/home/ivo/src/mpc5200_binar/build-tools/buildroot/toolchain_build_powerpc/mtd_orig
mv: cannot move
`/home/ivo/src/mpc5200_binar/build-tools/buildroot/toolchain_build_powerpc/'
to a subdirectory of itself,
`/home/ivo/src/mpc5200_binar/build-tools/buildroot/toolchain_build_powerpc/mtd_orig'
make: ***
[/home/ivo/src/mpc5200_binar/build-tools/buildroot/toolchain_build_powerpc/mtd_orig/.unpacked]
Error 1
Best regards,
Ivo
next reply other threads:[~2007-09-04 13:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-04 13:24 Babarovic Ivica [this message]
2007-09-04 20:56 ` [Buildroot] Tar problems Bernhard Fischer
2007-09-04 21:08 ` Ulf Samuelsson
[not found] ` <46DDD286.80505@asist.si>
[not found] ` <20070904221636.GA11697@aon.at>
2007-09-04 22:41 ` Babarovic Ivica
-- strict thread matches above, loose matches on Subject: below --
2007-09-04 22:00 Babarovic Ivica
2007-09-04 22:05 Babarovic Ivica
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=46DD5C95.3060907@asist.si \
--to=ivica.babarovic@asist.si \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox