From: "Eystein Måløy Stenberg" <eystein@mender.io>
To: Khem Raj <raj.khem@gmail.com>
Cc: yocto@yoctoproject.org
Subject: Re: Run-time discovery of machine for image compatibility check
Date: Tue, 10 Nov 2015 18:28:47 -0800 [thread overview]
Message-ID: <5642A7DF.6000604@mender.io> (raw)
In-Reply-To: <3CF90DC1-AE76-4429-A645-72BF8D4DDA21@gmail.com>
Thanks to everyone on the input on this issue. I eventually solved it by
using an image feature called "buildinfo".
In case someone come across a similar need in the future I've created
these two blog post to advertise buildinfo it a bit more and show how to
use it:
* https://www.mender.io/blog/build-info-yocto-1
* https://www.mender.io/blog/build-info-yocto-2
On 30/09/15 17:45, Khem Raj wrote:
>
>> On Sep 30, 2015, at 2:31 PM, Eystein Måløy Stenberg <eystein@mender.io> wrote:
>>
>> Hi,
>>
>> Before starting a bitbake build, we input the MACHINE variable in
>> local.conf (e.g. MACHINE ?= beaglebone).
>>
>> Is there a way to detect this variable at run-time? I.e. if I have built
>> the image, written it to a device, and I'm now logged in to it.
>
> There is no standard bill of materials that you will find on images. Everyone produces it
> per own needs. The reason is that we do not have a one OTA mechanism recommended or preferred
> in OpenEmbedded or maintained by yocto project. May be this could be a thing to consider come future
> right now, there were other big fish to fry around workflow. OTA firmware upgrade, could be big thing for next release
> or there after.
>
> I don’t have a better answer for you at the moment. You have to work with device firmware manufacturer
> and see if they have put some image info into the image in some form.
>
>>
>> The reason I want this is that I'm working on a project to deploy image
>> updates (remotely), and I only want to write the image if the device is
>> compatible with the image file. So I need to know both the
>> hardware/board type and what the image target is (assuming this is the
>> MACHINE variable alone). Then I will only write the image if they are
>> the same.
>>
>> Also, do you think using the MACHINE variable is the right approach for
>> this problem? Maybe someone has had a similar problem?
>>
>> I'm new to Yocto, sorry if I'm asking something obvious (but I could not
>> find an answer in the docs).
>>
>> Thanks!
>>
>> --
>>
>> Eystein
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>
--
Eystein
next prev parent reply other threads:[~2015-11-11 2:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-30 21:31 Run-time discovery of machine for image compatibility check Eystein Måløy Stenberg
2015-09-30 23:42 ` Daniel.
2015-10-01 0:45 ` Khem Raj
2015-11-11 2:28 ` Eystein Måløy Stenberg [this message]
2015-11-11 16:50 ` Smith, Virgil
2015-11-14 2:12 ` Eystein Måløy Stenberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5642A7DF.6000604@mender.io \
--to=eystein@mender.io \
--cc=raj.khem@gmail.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.