Discussion:
[yocto] How to update YP kernel image (run-time)
Raymond Yeung
2018-10-30 02:23:44 UTC
Permalink
Let's say I've a working run-time system running 2016 April release (Krogoth) Poky image. I've it installed previously from a USB thumb drive onto a much bigger SSD with all partitions setup. I don't need to change the partition from here onward.

Is there an easy way to replace it with, say 2017 Oct release (Rocko) Poky image (and vice versa)? E.g. by replacing just one file (e.g. bzImage)? Or is there a script that would take care of it? What happens to all the existing directories, e.g. /etc, /bin etc.?

I've been trying to adapt init_install.sh under poky/meta/recipes-core/initrdScripts/files, but it seems to assume I've a separate device (like USB drive).

Thanks,
Raymond
Kosta Zertsekel
2018-10-30 19:35:21 UTC
Permalink
On Tuesday, 30 October 2018 4:23 Raymond Yeung wrote:
> Let's say I've a working run-time system running 2016 April release (Krogoth) Poky image.
> I've it installed previously from a USB thumb drive onto a much bigger SSD with all partitions setup.
> I don't need to change the partition from here onward.
> Is there an easy way to replace it with, say 2017 Oct release (Rocko) Poky image (and vice versa)?
> E.g. by replacing just one file (e.g. bzImage)?
> Or is there a script that would take care of it?
> What happens to all the existing directories, e.g. /etc, /bin etc.?

The question has no connection to a specific Yocto release at all.
If I rephrase the question it becomes "How do I upgrade my Linux system at all?".
Take a look at ResinOS partition scheme here:
https://www.balena.io/docs/reference/OS/overview/2.x/#image-partition-layout
May be it can shed a bit of a light.

--- Kosta Z.
--
Stefano Babic
2018-10-30 20:00:37 UTC
Permalink
On 30/10/18 03:23, Raymond Yeung wrote:
> Let's say I've a working run-time system running 2016 April release
> (Krogoth) Poky image.  I've it installed previously from a USB thumb
> drive onto a much bigger SSD with all partitions setup.  I don't need to
> change the partition from here onward.
>
> Is there an easy way to replace it with, say 2017 Oct release (Rocko)
> Poky image (and vice versa)?  E.g. by replacing just one file (e.g.
> bzImage)?  Or is there a script that would take care of it?  What
> happens to all the existing directories, e.g. /etc, /bin etc.?

You get an overview about Yocto's updater at:

https://wiki.yoctoproject.org/wiki/System_Update

Best regards,
Stefano Babic


--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: ***@denx.de
=====================================================================
--
Loading...