<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>On Thu, Jan 10, 2013 at 10:11 AM, Robert P. J. Day <<a href="mailto:rpjday@crashcourse.ca">rpjday@crashcourse.ca</a>> wrote:<br>
>> > ===== start =====<br>>> > ... big snip ...<br>>> > | /etc/fstab entries need to be created with the user flag for the<br>>> > loop devices like:<br>>> > | /dev/loop2<br>>> > /home/rpjday/oe/builds/ti/bone/tmp-eglibc/work/beaglebone-oe-linux-gnueabi/core-image-minimal/1.0-r0/tmp-mnt-boot<br>
>> > vfat user 0 0<br><br>> i'm going to be testing all of the above again shortly from scratch<br>> to make sure it wasn't something silly i did. but if someone wants to<br>> see if they can reproduce it, all i did was a standard configure using<br>
> meta-ti layer for a beaglebone and i built a core-image-minimal.<br><br><br>I followed the same procedure and met the same end.<br><br>I was able to get the build to complete without error (NOTE: i don't own this<br>
device, so i can't be sure it all worked, but the build completed) with the<br>help of the following:<br><br></div>1) <span class=""></span><span class=""></span>edit /etc/fstab<br><br></div>The build is telling you to update your /etc/fstab (which you have to do as<br>
root, and which is very *this*-build-specific. In your case it wants you to<br>add the following line:<br><br> /dev/loop2 /home/rpjday/oe/builds/ti/bone/tmp-eglibc/work/beaglebone-oe-linux-gnueabi/core-image-minimal/1.0-r0/tmp-mnt-boot vfat user 0 0<br>
<br></div>2) path fixup<br><br></div>I'm building using openSuSE 12.2 so all the various hard-coded paths in the<br>script are wrong. Instead of "/sbin/fsdisk" mine is found at "/usr/sbin/fsdisk".<br>
I had to go through the entire script and perform that fixup for all such paths.<br><br></div>3) genext2fs code hack<br><br></div>Within 5 yards of finish line the 'genext2fs' step fails with the following error msg:<br>
<br> genext2fs: set_file_size: ftruncate: Invalid argument<br><br></div>I googled and googled and couldn't find an answer. I found other people with the<br>same problem, but others only said "works for me". In the end I actually went<br>
</div>into the code of genext2fs and commented out the body of the "set_file_size()"<br></div>function! I then replaced the one being called by the script with my new one and<br></div>the build could then complete without error.<br>
<br></div>4) use the "root"<br><br></div>As I mentioned before, this script's use of losetup definitely requires root<br>permissions on my system. At first I made losetup "+s". Then sfdisk needed<br>
more permissions, then dd, then... In the end I just simply ran bitbake as root.<br>Of course, by default, bitbake complains and won't run as root, so I had to<br></div>"touch conf/sanity.conf" to force it.<br>
<br></div>After all these hacks (and maybe more?) I was able to get the build to complete without<br>error. Whether or not the results are useful I'm not sure. In the end I ended up with the<br>following artifact:<br>
<br></div> tmp/deploy/images/core-image-minimal-beagleboard-20130110215340-2013.01.10.img.gz<br></div>