All of lore.kernel.org
 help / color / mirror / Atom feed
* [wic] Creating sdimage-bootpart
@ 2016-03-01 16:42 Rudolf J Streif
  2016-03-02  6:47 ` Ed Bartosh
  0 siblings, 1 reply; 5+ messages in thread
From: Rudolf J Streif @ 2016-03-01 16:42 UTC (permalink / raw)
  To: yocto

I tried creating an image with wic using sdimage-bootpart which produces this 
error message:

---------
wic create sdimage-bootpart -e core-image-base -D
Checking basic build environment...
Done.

Creating image(s)...

<removed for clarity>
  File 
"/run/media/rstreif/YoctoDevelop/yocto/poky/scripts/lib/wic/imager/direct.py", 
line 67, in __init__
    self.ptable_format = self.ks.bootloader.ptable
AttributeError: 'NoneType' object has no attribute 'ptable'
---------


The reason for this message is that sdimage-bootpart.wks does not have a 
bootloader entry and consequently self.ks.bootloader = None.

As a workaround you can of course simply adding a bootloader entry to the wks 
even if it's not needed/used when creating an image for Beaglebone etc.

The question is what the correct behavior should be:

1. bootloader entry in wks is mandatory, then the wks parser should flag it as 
an error if it's not present.

2. bootloader entry in wks is optional, then the DirectImageCreator class 
should be able to handle that correctly.


I think the latter should be the correct behavior. However, the 
DirectImageCreator class has some troublesome reliance on that entry, in 
particular that the source plugin for the overall image creation seems to be, 
for convenience reasons supposedly, associated with it.

Cheers,
Rudi


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

end of thread, other threads:[~2016-03-03  8:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-01 16:42 [wic] Creating sdimage-bootpart Rudolf J Streif
2016-03-02  6:47 ` Ed Bartosh
2016-03-02 19:27   ` Rudolf J Streif
2016-03-02 20:29   ` Maciej Borzecki
2016-03-03  6:41     ` Ed Bartosh

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.