All of lore.kernel.org
 help / color / mirror / Atom feed
* Tracking changes in image
@ 2018-08-27 15:12 Bryan Fishell
  2018-08-28  3:18 ` Jon Szymaniak
  0 siblings, 1 reply; 3+ messages in thread
From: Bryan Fishell @ 2018-08-27 15:12 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 601 bytes --]

Hi,
I want to be able to track different parts of my image, accessible from
within userspace so I can programmatically (via an environment variable or
something) what version of my patches have been applied. Ultimately, I want
to be able to answer questions from the field to know 'what changed' in a
deployed image. Is there already a method to do this? For example, our
project has u-boot, a zImage and rootfs. Is there a way to tell the patched
version (from my layer) for each of those so I can connect what is in the
field to what is in my layer in version control?

Thanks in advance

[-- Attachment #2: Type: text/html, Size: 671 bytes --]

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

* Re: Tracking changes in image
  2018-08-27 15:12 Tracking changes in image Bryan Fishell
@ 2018-08-28  3:18 ` Jon Szymaniak
  2018-08-28 10:43   ` John, Maxin
  0 siblings, 1 reply; 3+ messages in thread
From: Jon Szymaniak @ 2018-08-28  3:18 UTC (permalink / raw)
  To: bryan.fishell; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1524 bytes --]

On Mon, Aug 27, 2018 at 10:13 Bryan Fishell <bryan.fishell@gmail.com> wrote:

> Hi,
> I want to be able to track different parts of my image, accessible from
> within userspace so I can programmatically (via an environment variable or
> something) what version of my patches have been applied. Ultimately, I want
> to be able to answer questions from the field to know 'what changed' in a
> deployed image. Is there already a method to do this? For example, our
> project has u-boot, a zImage and rootfs. Is there a way to tell the patched
> version (from my layer) for each of those so I can connect what is in the
> field to what is in my layer in version control?
>
> Thanks in advance
>
> --
>

Take a look at the documentation for the Build History feature. I think
that may be a good starting point for you.

https://www.yoctoproject.org/docs/2.5.1/dev-manual/dev-manual.html#maintaining-build-output-quality

Ultimately, the Build History provides you with the "what changed" in terms
of build artifacts, which you can then trace back to individual packages
and recipes.

On the other hand, version control of your own Yocto/OE layers (which has
nothing to do with build history) should capture the "why was X changed".
 Of course, this requires that your organization uses version control in a
disciplined manner for any layer metadata they maintain.

Between these two, you should be able to develop a pretty clear picture of
the "what and why" with respect to changes in an image.

[-- Attachment #2: Type: text/html, Size: 2190 bytes --]

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

* Re: Tracking changes in image
  2018-08-28  3:18 ` Jon Szymaniak
@ 2018-08-28 10:43   ` John, Maxin
  0 siblings, 0 replies; 3+ messages in thread
From: John, Maxin @ 2018-08-28 10:43 UTC (permalink / raw)
  To: Jon Szymaniak, bryan.fishell; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 2170 bytes --]

Hi Bryan,

In addition to what Jon mentioned, “os-release” package in oe-core could help in tracking the operating system identification data in deployed images.

Since you are using u-boot, a customized logic involving environment variable in u-boot and accessing it from user-space with tools like “fw_printenv” available from u-boot-fwutils should help there.

Best Regards,
Maxin

From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Jon Szymaniak
Sent: Tuesday, August 28, 2018 6:18 AM
To: bryan.fishell@gmail.com
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] Tracking changes in image

On Mon, Aug 27, 2018 at 10:13 Bryan Fishell <bryan.fishell@gmail.com<mailto:bryan.fishell@gmail.com>> wrote:
Hi,
I want to be able to track different parts of my image, accessible from within userspace so I can programmatically (via an environment variable or something) what version of my patches have been applied. Ultimately, I want to be able to answer questions from the field to know 'what changed' in a deployed image. Is there already a method to do this? For example, our project has u-boot, a zImage and rootfs. Is there a way to tell the patched version (from my layer) for each of those so I can connect what is in the field to what is in my layer in version control?

Thanks in advance

--

Take a look at the documentation for the Build History feature. I think that may be a good starting point for you.

https://www.yoctoproject.org/docs/2.5.1/dev-manual/dev-manual.html#maintaining-build-output-quality

Ultimately, the Build History provides you with the "what changed" in terms of build artifacts, which you can then trace back to individual packages and recipes.

On the other hand, version control of your own Yocto/OE layers (which has nothing to do with build history) should capture the "why was X changed".   Of course, this requires that your organization uses version control in a disciplined manner for any layer metadata they maintain.

Between these two, you should be able to develop a pretty clear picture of the "what and why" with respect to changes in an image.


[-- Attachment #2: Type: text/html, Size: 6105 bytes --]

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

end of thread, other threads:[~2018-08-28 10:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-27 15:12 Tracking changes in image Bryan Fishell
2018-08-28  3:18 ` Jon Szymaniak
2018-08-28 10:43   ` John, Maxin

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.