* [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
* Re: [wic] Creating sdimage-bootpart
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
0 siblings, 2 replies; 5+ messages in thread
From: Ed Bartosh @ 2016-03-02 6:47 UTC (permalink / raw)
To: Rudolf J Streif; +Cc: yocto
Hi Rudolf,
Interesting. I thought that this commit shoud fix the issue:
http://cgit.openembedded.org/openembedded-core/commit/?id=264c03e854f77c3b62acb710384f66716ccbf469
Which branch do you use?
On Tue, Mar 01, 2016 at 08:42:02AM -0800, Rudolf J Streif wrote:
> 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
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
--
--
Regards,
Ed
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [wic] Creating sdimage-bootpart
2016-03-02 6:47 ` Ed Bartosh
@ 2016-03-02 19:27 ` Rudolf J Streif
2016-03-02 20:29 ` Maciej Borzecki
1 sibling, 0 replies; 5+ messages in thread
From: Rudolf J Streif @ 2016-03-02 19:27 UTC (permalink / raw)
To: ed.bartosh; +Cc: yocto
Hi Ed,
>
> Interesting. I thought that this commit shoud fix the issue:
> http://cgit.openembedded.org/openembedded-core/commit/?id=264c03e854f77c3b62acb710384f66716ccbf469
Thanks. I was not aware of that patch.
>
> Which branch do you use?
>
Jethro. Master seems to be broken right now. It does not compile gdb-7.10.1 (at least not for ARM), which is what I need.
:rjs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [wic] Creating sdimage-bootpart
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
1 sibling, 1 reply; 5+ messages in thread
From: Maciej Borzecki @ 2016-03-02 20:29 UTC (permalink / raw)
To: Rudolf J Streif, ed.bartosh; +Cc: yocto
> Dnia 2 marzec 2016 o 07:47 Ed Bartosh <ed.bartosh@linux.intel.com> napisał(a):
>
>
> Hi Rudolf,
>
> Interesting. I thought that this commit shoud fix the issue:
> http://cgit.openembedded.org/openembedded-core/commit/?id=264c03e854f77c3b62acb710384f66716ccbf469
>
> Which branch do you use?
>
Ed, would it make sense to backport this commit to jethro?
--
Maciej Borzęcki
Senior Software Engineer at Open-RnD Sp. z o.o.
www.open-rnd.pl
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [wic] Creating sdimage-bootpart
2016-03-02 20:29 ` Maciej Borzecki
@ 2016-03-03 6:41 ` Ed Bartosh
0 siblings, 0 replies; 5+ messages in thread
From: Ed Bartosh @ 2016-03-03 6:41 UTC (permalink / raw)
To: Maciej Borzecki; +Cc: yocto, Rudolf J Streif
On Wed, Mar 02, 2016 at 09:29:16PM +0100, Maciej Borzecki wrote:
>
> > Dnia 2 marzec 2016 o 07:47 Ed Bartosh <ed.bartosh@linux.intel.com> napisał(a):
> >
> >
> > Hi Rudolf,
> >
> > Interesting. I thought that this commit shoud fix the issue:
> > http://cgit.openembedded.org/openembedded-core/commit/?id=264c03e854f77c3b62acb710384f66716ccbf469
> >
> > Which branch do you use?
> >
> Ed, would it make sense to backport this commit to jethro?
I don't think if makes sense for 2 reasons:
- this issue is rare and there is a work around it
- backporting it is not easy as it relates to wks parser, which has been
rewritten from scratch after jethro.
--
Regards,
Ed
^ 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.