recipes-ti: Add recipe and patches for jailhouse support for am62xx
PATCH v4 1/1 recipes-ti: Add recipe and patches for jailhouse support for am62xx
Add and enable Jailhouse support for TI's k3-am625-sk similarly to how other TI platforms were added and enabled in the past by adding platform-specific configuration variables for the root cell DTB overlay, and the Linux demo inmate DTB, configuration, and Kernel command line settings.
Migrate the jailhouse recipe to kirkstone from dunfell.
Switch to latest upstream source tree for jailhouse. The TI Jailhouse repo has gone stale and now upstream is really the happening place where new development happens including for new devices such as AM62x. Hence go ahead and switch to using the upstream repo.
Update the platform-specific config files to such that the root cell DTB overlay gets included in the file system images.
Enable additional console on ttyS3 (usually mapped to main_uart1) and ttyS2 for the Linux demo inmate to use.
Add patches for the Jailhouse source tree for am62xx.
--- meta-ti-bsp/conf/machine/include/am62xx.inc | 3 + ...k3-am625-sk-Add-crypto-memory-region.patch | 53 +++++ ...001-configs-k3-use-intx-for-bar_mask.patch | 73 ++++++ ...-am625-sk-Switch-inmate-boot-console.patch | 63 ++++++ ...64-k3-am625-sk-Add-VTM-memory-region.patch | 54 +++++ ...4-k3-am625-sk-Add-GPMC-memory-region.patch | 52 +++++ .../recipes-ti/jailhouse/jailhouse-arch.inc | 22 ++ .../recipes-ti/jailhouse/jailhouse_git.bb | 209 ++++++++++++++++++ 8 files changed, 529 insertions(+) create mode 100644 meta-ti-extras/recipes-ti/jailhouse/files/0001-configs-arm64-k3-am625-sk-Add-crypto-memory-region.patch create mode 100644 meta-ti-extras/recipes-ti/jailhouse/files/0001-configs-k3-use-intx-for-bar_mask.patch create mode 100644 meta-ti-extras/recipes-ti/jailhouse/files/0002-configs-arm64-k3-am625-sk-Switch-inmate-boot-console.patch create mode 100644 meta-ti-extras/recipes-ti/jailhouse/files/0003-configs-arm64-k3-am625-sk-Add-VTM-memory-region.patch create mode 100644 meta-ti-extras/recipes-ti/jailhouse/files/0004-configs-arm64-k3-am625-sk-Add-GPMC-memory-region.patch create mode 100644 meta-ti-extras/recipes-ti/jailhouse/jailhouse-arch.inc create mode 100644 meta-ti-extras/recipes-ti/jailhouse/jailhouse_git.bb
meta-ti-bsp/conf/machine/include/am62xx.inc +3 -0
@@ -23,3 +23,6 @@ TFA_BOARD = "lite" TFA_K3_SYSTEM_SUSPEND = "1" OPTEEMACHINE = "k3-am62x" + +# Normally AM62 boards use ttyS2, but our Jailhouse inmate may use ttyS3, so try both +SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS3"
meta-ti-extras/recipes-ti/jailhouse/files/0001-configs-arm64-k3-am625-sk-Add-crypto-memory-region.patch new file +52 -0
52 lines not on this page · raw message
meta-ti-extras/recipes-ti/jailhouse/files/0001-configs-k3-use-intx-for-bar_mask.patch new file +72 -0
72 lines not on this page · raw message
meta-ti-extras/recipes-ti/jailhouse/files/0002-configs-arm64-k3-am625-sk-Switch-inmate-boot-console.patch new file +62 -0
62 lines not on this page · raw message
meta-ti-extras/recipes-ti/jailhouse/files/0003-configs-arm64-k3-am625-sk-Add-VTM-memory-region.patch new file +53 -0
53 lines not on this page · raw message
meta-ti-extras/recipes-ti/jailhouse/files/0004-configs-arm64-k3-am625-sk-Add-GPMC-memory-region.patch new file +51 -0
51 lines not on this page · raw message
meta-ti-extras/recipes-ti/jailhouse/jailhouse-arch.inc new file +22 -0
@@ -0,0 +1,22 @@ +# Set jailhouse architecture JH_ARCH variable +# +# return value must match one of architectures supported by jailhouse +# +valid_jh_archs = "x86 arm" + +def map_jh_arch(a, d): + import re + + valid_jh_archs = d.getVar('valid_jh_archs', True).split() + + if re.match('(i.86|athlon|x86.64)$', a): return 'x86' + elif re.match('armeb$', a): return 'arm' + elif re.match('aarch64$', a): return 'arm64' + elif re.match('aarch64_be$', a): return 'arm64' + elif a in valid_jh_archs: return a + else: + bb.error("cannot map '%s' to a jailhouse supported architecture" % a) + +export JH_ARCH = "${@map_jh_arch(d.getVar('TARGET_ARCH', True), d)}" + +COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux"
meta-ti-extras/recipes-ti/jailhouse/jailhouse_git.bb new file +209 -0
209 lines not on this page · raw message
Signature · 1 line
2.17.1