Skip to content

Commit

Permalink
Update isar and isar-cip-core layers
Browse files Browse the repository at this point in the history
Lifts isar to the new release 0.10. Also isar-cip-core is updated
significantly from 1.2 to the latest post-1.3 revision.

These updates require to some tuning of the ti-pruss-firmware recipe to
prevent unwanted and failing strip attempts on the binaries. We also
need to rework swupdate configuration, adding SWU_HW_COMPAT support. For
that, we can reuse isar-cip-core's swupdate-config recipe, reducing own
work.

Signed-off-by: Jan Kiszka <[email protected]>
  • Loading branch information
jan-kiszka authored and BaochengSu committed May 24, 2024
1 parent 9ece8fd commit afa89f5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions kas/iot2050.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ repos:

isar:
url: https://github.com/ilbers/isar
commit: 30471bb3f787fb0aa822d15e141ecce2f3b99860
commit: 9dc362cd7115074c0f60843e687ed89db5c9339a
layers:
meta:

cip-core:
url: https://gitlab.com/cip-project/cip-core/isar-cip-core.git
commit: 04ea9de0181e72961491f28c294172178efe474a
commit: 704353612238cb2ac1c16f29db6f314b60cd83b0

local_conf_header:
standard: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ SRC_URI = " \
${@get_prueth_fw(d, 'am65x-sr2-txpru1-prueth-fw.elf', '7d1bcde936bdf9606c1810c3316439e79d6d8b6f2751919d1d654abeb1545613')} \
"

DEB_BUILD_OPTIONS = "nostrip"

do_install() {
install -v -d ${D}/lib/firmware/ti-pruss
install -v -m 644 ${WORKDIR}/am65x-*.elf ${D}/lib/firmware/ti-pruss
Expand Down
4 changes: 3 additions & 1 deletion recipes-core/images/iot2050-image-swu-example.bb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ WKS_FILE:secureboot = "iot2050-swu-secure.wks.in"
IMAGE_FSTYPES += "swu"
SWU_ROOTFS_TYPE:secureboot = "verity"

SWU_HW_COMPAT = "IOT2050"

# watchdog is managed by U-Boot - disable
WDOG_TIMEOUT = "0"

Expand All @@ -38,7 +40,7 @@ IMAGE_INSTALL:remove:secureboot = "expand-on-first-boot"
# EFI Boot Guard is used instead
IMAGE_INSTALL:remove = "u-boot-script"

IMAGE_INSTALL += "customizations-swupdate"
IMAGE_INSTALL += "swupdate-config"
IMAGE_INSTALL += "swupdate-handler-roundrobin"
IMAGE_INSTALL += "swupdate-complete-update-helper"
IMAGE_INSTALL += "${@ 'iot2050-watchdog' if d.getVar('QEMU_IMAGE') != '1' else '' }"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) Siemens AG, 2023
# Copyright (c) Siemens AG, 2023-2024
#
# Authors:
# Jan Kiszka <[email protected]>
Expand All @@ -8,15 +8,8 @@
# COPYING.MIT file in the top-level directory.
#

inherit dpkg-raw
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

DESCRIPTION = "IOT2050 swupdate image customizations"

DEBIAN_DEPENDS = "swupdate"

SRC_URI = "file://swupdate.cfg"

do_install() {
install -v -d ${D}/etc/
install -v -m 644 ${WORKDIR}/swupdate.cfg ${D}/etc/
}
MACHINE_HW_VERSION = "IOT2050"

0 comments on commit afa89f5

Please sign in to comment.