[OE-core] wic debug suggestions

Maciej Borzecki maciej.borzecki at open-rnd.pl
Wed Oct 22 08:16:57 UTC 2014


On Wednesday 22 of October 2014 09:03:03 Maciej Borzecki wrote:
> On Monday 20 of October 2014 13:45:37 Philip Balister wrote:
> > I'm trying to make an sd card using the sdimage-bootpart.wks file. I've
> > made an image and dd'ed it to a card. The card has a good vfat
> > partition, but the ext4 partition won't mount. Looks like bad
> > superblock. I can format the partition manually, so partitions seem OK
> > and card works.
> > 
> > Does anyone have any suggestions for debugging this?
> 
> In default wks, the vfat partition is /boot, ext4 is /. If I understood you
> correctly / fails to mount, is that right?
> 
> I've rebuilt an image with poky rev
> 8ac8eca2e3bd8c78e2b31ea974930ed0243258a3. Loading via loopback and mounting
> partition 2 (/ in this case) works fine.

Verified with current master 924da20c6f2f183fa7e930e4c3c6b14c090acbe5, works 
fine. The image works both as loopback and in BeagleBone Black.

> 
> Can you post the output this command?
>   wic create -D -e core-image-minimal sdimage-bootpart
> 
> Ext4 image is built by image.bbclass (Tom, please correct me if I'm wrong on
> this). It should be possible to do the loopback/mount thing with the image
> file as well. Can you check if you can mount it this way?
Disregard this statement as it is incorrect. I forgot that wic builds all 
images separately from bitbake. The temp ext4 appears only if you have run wic 
at this location: /var/tmp/wic/build/rootfs_root.ext4. Try to mount that.

Also try running tune2fs -l /var/tmp/wic/build/rootfs_root.ext4 to see if that 
produces any reasonable output.

-- 

Maciej Borzęcki 
Senior Software Engineer Open-RnD Sp. z o.o. 
www.open-rnd.pl, Facebook, Twitter 
mobile: +48 telefon, fax: +48 42 657 9079 

Niniejsza wiadomość wraz z załącznikami może zawierać chronione prawem lub 
poufne informacje i została wysłana wyłącznie do wiadomości i użytku osób, do 
których została zaadresowana. Jeśli wiadomość została otrzymana przypadkowo 
zabrania się jej kopiowania lub rozsyłania do osób trzecich. W takim przypadku 
uprasza się o natychmiastowe zniszczenie wiadomości oraz poinformowanie 
nadawcy o zaistniałej sytuacji za pomocą wiadomości zwrotnej. Dziękujemy. 

This message, including any attachments hereto, may contain privileged or 
confidential information and is sent solely for the attention and use of the 
intended addressee(s). If you are not an intended addressee, you may neither 
use this message nor copy or deliver it to anyone. In such case, you should 
immediately destroy this message and kindly notify the sender by reply email. 
Thank you. 



More information about the Openembedded-core mailing list