<div dir="ltr">Thanks for taking a look at this Robert! <div>Below is the ls output: fsck output and bb are attached.</div><div><br></div><div>I should note that if I manually copy the bz2 output of bitbake to an sdcard, like:</div>
<div>sudo tar xjvf tmp/deploy/images/wandboard-dual/todd-new-wandboard-dual.tar.bz2 -C /media/rootfs</div><div>the image boots fine and contains all the packages I expect. <br><div><br></div><div><div>todd@ubuntu:~/proj/wandboard/fsl-community-bsp/build$ ls -stlh tmp/deploy/images/wandboard-dual/*.ext3</div>
<div>572M -rw-r--r-- 1 todd todd 572M Nov 27 17:05 tmp/deploy/images/wandboard-dual/todd-new-wandboard-dual-20131128005017.rootfs.ext3</div><div> 0 lrwxrwxrwx 1 todd todd 50 Nov 27 17:05 tmp/deploy/images/wandboard-dual/todd-new-wandboard-dual.ext3 -> todd-new-wandboard-dual-20131128005017.rootfs.ext3</div>
<div>435M -rw-r--r-- 1 todd todd 436M Nov 26 16:17 tmp/deploy/images/wandboard-dual/todd-new-wandboard-dual-20131127001137.rootfs.ext3</div><div>435M -rw-r--r-- 1 todd todd 436M Nov 26 15:55 tmp/deploy/images/wandboard-dual/todd-new-wandboard-dual-20131126234958.rootfs.ext3</div>
<div>435M -rw-r--r-- 1 todd todd 436M Nov 26 15:36 tmp/deploy/images/wandboard-dual/todd-new-wandboard-dual-20131126232014.rootfs.ext3</div><div>435M -rw-r--r-- 1 todd todd 436M Nov 26 14:03 tmp/deploy/images/wandboard-dual/todd-new-wandboard-dual-20131126161048.rootfs.ext3</div>
</div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 28, 2013 at 4:48 AM, Robert Yang <span dir="ltr"><<a href="mailto:liezhi.yang@windriver.com" target="_blank">liezhi.yang@windriver.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi Todd,<br>
<br>
I can't reproduce the problem, the rpm has more space than ipk is because<br>
of the IMAGE_ROOTFS_EXTRA_SPACE, which is 50M * 1.3 by default.<br>
<br>
Would you please try the following commands:<br>
<br>
1) $ ls -stlh tmp/deploy/images/wandboard-<u></u>dual/core-image-minimal-dev-<u></u>wandboard-dual-*.ext3<br>
<br>
2) $ fsck.ext4 -fn /path/to/image.ext3<br>
<br>
And can you show the bb file if possible ?<br>
<br>
// Robert<div class="im"><br>
<br>
On 11/27/2013 09:27 AM, Todd Stellanova wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Tried creating a fresh build folder and giving the vm more ram but the<br>
results are basically the same:<br>
<br>
Allocated inode: 15264<br>
copy_file: Could not allocate block in ext2 filesystem<br>
debugfs: sif "libgio-2.0.so.0.3800.1" mode 0x81ed<br>
<br>
It appears that using package_rpm successfully allocates something like<br>
15968 inodes. When calculating the ROOTFS_SIZE it looks like package_rpm<br>
and package_ipk are using very different values:<br>
<br>
package_rpm:<br>
<br>
++ du -ks<br>
/fsl-community-bsp/build/tmp/<u></u>work/wandboard_dual-poky-<u></u>linux-gnueabi/todd-new/1.0-r0/<u></u>rootfs<br>
++ awk '{base_size = $1 * 1.3; base_size = ((base_size > 8192 ? base_size :<br></div>
8192) + 0 + *51200*); if (base_size != int(base_size)) base_size =<div class="im"><br>
int(base_size + 1); base_size = base_size + 4096 - 1; base_size -=<br>
base_size % 4096; print base_size }'<br>
<br></div>
+ ROOTFS_SIZE=*458752*<div class="im"><br>
<br>
package_ipk:<br>
<br>
++ du -ks<br>
/fsl-community-bsp/build/tmp/<u></u>work/wandboard_dual-poky-<u></u>linux-gnueabi/todd-new/1.0-r0/<u></u>rootfs<br>
++ awk '{base_size = $1 * 1.3; base_size = ((base_size > 8192 ? base_size :<br>
8192) + 0); if (base_size != int(base_size)) base_size = int(base_size +<br>
1); base_size = base_size + 4096 - 1; base_size -= base_size % 4096; print<br>
base_size }'<br>
<br></div>
+ ROOTFS_SIZE=*376832*<div><div class="h5"><br>
<br>
I'm just guessing here, but it seems like package_ipk is underestimating<br>
ROOTFS_SIZE and subsequently populate-extfs.sh fails trying to add files to<br>
the ext fs. Any ideas what might cause this?<br>
<br>
Thanks for any help!<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Mon, Nov 25, 2013 at 7:03 AM, Todd Stellanova <<a href="mailto:tstellanova@gmail.com" target="_blank">tstellanova@gmail.com</a>>wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for the ideas. I'll try creating a new build folder. If that still<br>
shows the problem, I'm thinking this has something to do with the fact that<br>
I'm running the build inside a vm (inside an Ubuntu vm running on a Mac).<br>
It looks like the build is using debugfs...maybe it's running out of ram at<br>
some point and not obtaining more in the vm properly?<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Nov 25, 2013, at 5:21 AM, Paul Eggleton <<br>
</blockquote>
<a href="mailto:paul.eggleton@linux.intel.com" target="_blank">paul.eggleton@linux.intel.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi Nicolas / Todd,<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Monday 25 November 2013 11:31:42 Nicolas Dechesne wrote:<br>
On Sun, Nov 24, 2013 at 3:51 AM, Todd Stellanova<br>
<<a href="mailto:tstellanova@gmail.com" target="_blank">tstellanova@gmail.com</a>>wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It appears that copying the files to the ext3 / sdcard image is<br>
</blockquote></blockquote></blockquote>
failing in<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
*populate-extfs.sh*<br>
I see a series of these errors:<br>
<br>
*copy_file: Could not allocate block in ext2 filesystem*<br>
<br>
Any idea what might cause this? I've verified that the initial .tar<br>
archive and the bz2 contain the right files.<br>
</blockquote>
<br>
can you try to create a new <build> folder (do not remove the current<br>
</blockquote></blockquote>
one<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
for now) and reuse the downloads and sstate folder? i am wondering if<br>
</blockquote></blockquote>
there<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
is a bug when trying to change PACKAGE_CLASSES in an existing <build><br>
folder.<br>
</blockquote>
<br>
I do this not infrequently and never hit a problem like this, so I doubt<br>
</blockquote>
this<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
is the case.<br>
<br>
Either there is a problem in how the filesystem is being set up (block<br>
</blockquote>
sizes,<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
etc.) or there is some kind of corruption occurring.<br>
<br>
Cheers,<br>
Paul<br>
<br>
--<br>
<br>
Paul Eggleton<br>
Intel Open Source Technology Centre<br>
</blockquote>
<br>
</blockquote>
<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
yocto mailing list<br>
<a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a><br>
<a href="https://lists.yoctoproject.org/listinfo/yocto" target="_blank">https://lists.yoctoproject.<u></u>org/listinfo/yocto</a><br>
<br>
</blockquote>
</blockquote></div><br></div>