From f35e5da2db59f32224f82b4c1efd5eebd818f40a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Dalleau?= <frederic.dalleau@collabora.com> Date: Wed, 13 Feb 2019 11:29:42 +0000 Subject: [PATCH] Add an empty u-boot environment to mx6qsabrelite images MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Apertis update manager needs a valid u-boot environment to handle the rollback. Do it an image generation so that every image distributed already have a valid env. Signed-off-by: Frédéric Dalleau <frederic.dalleau@collabora.com> --- apertis-image-mx6qsabrelite.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apertis-image-mx6qsabrelite.yaml b/apertis-image-mx6qsabrelite.yaml index b6b64c83..08bb4ca1 100644 --- a/apertis-image-mx6qsabrelite.yaml +++ b/apertis-image-mx6qsabrelite.yaml @@ -100,6 +100,17 @@ actions: source: /usr/lib/u-boot/mx6qsabrelite/u-boot.imx offset: {{ sector 2 }} + - action: run + description: Create defaut environment for u-boot + chroot: false + command: echo "bootcount=0" > ${ARTIFACTDIR}/u-boot-env.txt ; mkenvimage -s 0x2000 -o ${ARTIFACTDIR}/u-boot.env ${ARTIFACTDIR}/u-boot-env.txt + + - action: raw + description: Install U-Boot environment + origin: filesystem + source: ${ARTIFACTDIR}/u-boot.env + offset: 0xC0000 + - action: run description: "Save installed package status" chroot: false -- GitLab