All of lore.kernel.org
 help / color / mirror / Atom feed
* wic debug suggestions
@ 2014-10-20 17:45 Philip Balister
  2014-10-21 15:09 ` Tom Zanussi
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Philip Balister @ 2014-10-20 17:45 UTC (permalink / raw)
  To: openembedded-core

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?

Philip


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: wic debug suggestions
  2014-10-20 17:45 wic debug suggestions Philip Balister
@ 2014-10-21 15:09 ` Tom Zanussi
  2014-10-21 17:19 ` Tom Zanussi
  2014-10-22  7:03 ` Maciej Borzecki
  2 siblings, 0 replies; 9+ messages in thread
From: Tom Zanussi @ 2014-10-21 15:09 UTC (permalink / raw)
  To: Philip Balister; +Cc: openembedded-core

On Mon, 2014-10-20 at 13:45 -0400, 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?
> 

If you think there's a problem in the way wic is creating the
partitions, I'd suggest using the wic --debug option, which will show
you all the details of the underlying commands used to create the
partitions.

If that doesn't show anything obvious, please create a bug report and be
sure to include myself and Maciej, who added the new sdimage-bootpart
functionality you're having trouble with, in case it turns out not to be
some more generic problem in the tool.

Thanks,

Tom

> Philip




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: wic debug suggestions
  2014-10-20 17:45 wic debug suggestions Philip Balister
  2014-10-21 15:09 ` Tom Zanussi
@ 2014-10-21 17:19 ` Tom Zanussi
  2014-10-22  7:03 ` Maciej Borzecki
  2 siblings, 0 replies; 9+ messages in thread
From: Tom Zanussi @ 2014-10-21 17:19 UTC (permalink / raw)
  To: Philip Balister; +Cc: openembedded-core

On Mon, 2014-10-20 at 13:45 -0400, 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?
> 

Hi Philip,

If you think there's a problem in the way wic is creating the
partitions, I'd suggest using the wic --debug option, which will show
you all the details of the underlying commands used to create the
partitions.

If that doesn't show anything obvious, please create a bug report and be
sure to include myself and Maciej, who added the new sdimage-bootpart
functionality you're having trouble with, in case it turns out not to be
some more generic problem in the tool.

Thanks,

Tom

> Philip




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: wic debug suggestions
  2014-10-20 17:45 wic debug suggestions Philip Balister
  2014-10-21 15:09 ` Tom Zanussi
  2014-10-21 17:19 ` Tom Zanussi
@ 2014-10-22  7:03 ` Maciej Borzecki
  2014-10-22  8:16   ` Maciej Borzecki
  2014-10-22 12:40   ` Tom Zanussi
  2 siblings, 2 replies; 9+ messages in thread
From: Maciej Borzecki @ 2014-10-22  7:03 UTC (permalink / raw)
  To: Philip Balister; +Cc: openembedded-core

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.

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?

-- 

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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: wic debug suggestions
  2014-10-22  7:03 ` Maciej Borzecki
@ 2014-10-22  8:16   ` Maciej Borzecki
  2014-10-22 12:40   ` Tom Zanussi
  1 sibling, 0 replies; 9+ messages in thread
From: Maciej Borzecki @ 2014-10-22  8:16 UTC (permalink / raw)
  To: Philip Balister; +Cc: openembedded-core

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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: wic debug suggestions
  2014-10-22  7:03 ` Maciej Borzecki
  2014-10-22  8:16   ` Maciej Borzecki
@ 2014-10-22 12:40   ` Tom Zanussi
  2014-10-22 12:48     ` Maciej Borzecki
  1 sibling, 1 reply; 9+ messages in thread
From: Tom Zanussi @ 2014-10-22 12:40 UTC (permalink / raw)
  To: Maciej Borzecki; +Cc: openembedded-core

On Wed, 2014-10-22 at 09:03 +0200, 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.
> 
> Can you post the output this command?
>   wic create -D -e core-image-minimal sdimage-bootpart
> 

It seems the problem is in handling a large file system.  A new bug has
been opened for this:

Bug 6863 - Wic fails to create a working image for a large file system
 
https://bugzilla.yoctoproject.org/show_bug.cgi?id=6863

Tom 


> 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?
> 




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: wic debug suggestions
  2014-10-22 12:40   ` Tom Zanussi
@ 2014-10-22 12:48     ` Maciej Borzecki
  2014-10-22 13:26       ` Tom Zanussi
  2014-10-22 13:26       ` Philip Balister
  0 siblings, 2 replies; 9+ messages in thread
From: Maciej Borzecki @ 2014-10-22 12:48 UTC (permalink / raw)
  To: Tom Zanussi; +Cc: openembedded-core

On Wednesday 22 of October 2014 07:40:37 Tom Zanussi wrote:
> On Wed, 2014-10-22 at 09:03 +0200, 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.
> > 
> > Can you post the output this command?
> > 
> >   wic create -D -e core-image-minimal sdimage-bootpart
> 
> It seems the problem is in handling a large file system.  A new bug has
> been opened for this:
> 
> Bug 6863 - Wic fails to create a working image for a large file system
> 
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=6863
Do you need help?


-- 

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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: wic debug suggestions
  2014-10-22 12:48     ` Maciej Borzecki
@ 2014-10-22 13:26       ` Tom Zanussi
  2014-10-22 13:26       ` Philip Balister
  1 sibling, 0 replies; 9+ messages in thread
From: Tom Zanussi @ 2014-10-22 13:26 UTC (permalink / raw)
  To: Maciej Borzecki; +Cc: openembedded-core

On Wed, 2014-10-22 at 14:48 +0200, Maciej Borzecki wrote:
> On Wednesday 22 of October 2014 07:40:37 Tom Zanussi wrote:
> > On Wed, 2014-10-22 at 09:03 +0200, 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.
> > > 
> > > Can you post the output this command?
> > > 
> > >   wic create -D -e core-image-minimal sdimage-bootpart
> > 
> > It seems the problem is in handling a large file system.  A new bug has
> > been opened for this:
> > 
> > Bug 6863 - Wic fails to create a working image for a large file system
> > 
> > https://bugzilla.yoctoproject.org/show_bug.cgi?id=6863
> Do you need help?
> 
> 

No, it doesn't look like it's sdimage-bootpart-specific at this point,
thanks.

Tom  




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: wic debug suggestions
  2014-10-22 12:48     ` Maciej Borzecki
  2014-10-22 13:26       ` Tom Zanussi
@ 2014-10-22 13:26       ` Philip Balister
  1 sibling, 0 replies; 9+ messages in thread
From: Philip Balister @ 2014-10-22 13:26 UTC (permalink / raw)
  To: Maciej Borzecki, Tom Zanussi; +Cc: openembedded-core

On 10/22/2014 08:48 AM, Maciej Borzecki wrote:
> On Wednesday 22 of October 2014 07:40:37 Tom Zanussi wrote:
>> On Wed, 2014-10-22 at 09:03 +0200, 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.
>>>
>>> Can you post the output this command?
>>>
>>>   wic create -D -e core-image-minimal sdimage-bootpart
>>
>> It seems the problem is in handling a large file system.  A new bug has
>> been opened for this:
>>
>> Bug 6863 - Wic fails to create a working image for a large file system
>>
>> https://bugzilla.yoctoproject.org/show_bug.cgi?id=6863
> Do you need help?

I'd be glad to try any suggestions.

Philip


> 
> 




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-10-22 13:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-20 17:45 wic debug suggestions Philip Balister
2014-10-21 15:09 ` Tom Zanussi
2014-10-21 17:19 ` Tom Zanussi
2014-10-22  7:03 ` Maciej Borzecki
2014-10-22  8:16   ` Maciej Borzecki
2014-10-22 12:40   ` Tom Zanussi
2014-10-22 12:48     ` Maciej Borzecki
2014-10-22 13:26       ` Tom Zanussi
2014-10-22 13:26       ` Philip Balister

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.