[yocto] [rauc] create a rescue image
jairo at futurasmus-knxlab.es
Tue Mar 26 01:05:47 PDT 2019
The idea is that when an update is going to be done, the system will
restart in the rescue partition so that it updates the main partition
and when it is updated it will restart the main partition again.
I think the problem (among others) was having it because I was not
applying any patch to the device-tree. It's a somewhat complicated
issue, anyway, thank you very much for the help, I think it's a good
clue to keep going.
El lun, 25-03-2019 a las 17:21 +0100, Patrick Boettcher escribió:
> On Mon, 25 Mar 2019 16:01:37 +0100
> jairo <jairo at futurasmus-knxlab.es> wrote:
> > Hi all,
> > I want to make a system with a rescue partition.
> > What is the minimum to make a rescue image? Or how can it be done?
> > I use a board with a imx6 micro from phytec, and in the meta-yogurt
> > layer there is a recipe called phytec-initramfs-image.bb that
> > creates
> > an image or partition with cpio.gz format of 11MB containing
> > rootfs,
> > can it be used That image as a rescue? If so, how do you copy a
> > cpio
> > partition in an UBI MTD system?
> To create an initramfs rescue image (assuming that's what you would
> want to do?) You need to tell yocto that there is a initramfs to be
> To your local.conf you can add
> # for initramfs-usage
> INITRAMFS_IMAGE = "rescue-image-initramfs"
> INITRAMFS_IMAGE_BUNDLE = "1"
> and you'll to craete a corresponding .bb-file. There are example over
> the internet if you search for it. I needed the following packages:
> PACKAGE_INSTALL = "packagegroup-core-boot \
> ppp \
> bash \
> sshd \
> rauc \
> mtd-utils \
> This gave me a initramfs of 25-30 MB and barebox wasnot able to
> jump to the kernel so I had to patch.
> After that you just need to add a partition for the initramfs and its
> device-tree-blob (dtb) to the UBIFS and flash it and boot it.
> You should, if you haven't already, come up with a complete strategy
> how to do your updates and upgrades using RAUC or another update-
> best regards,
More information about the yocto