Skip to contentSkip to conversation

arm: Introduce 4.19 Android Common Kernel

PATCH RESEND Superseded Teo Couprie Diaz 1 participant 2 messages Jun 29, 2020

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/2 arm: Introduce 4.19 Android Common Kernel

This recipe targets machines based on arm64.

Change-Id I9f9556c3ce3636a31fb3a6faf38494335be6b997
---
 .../recipes-kernel/linux/linux-arm64-ack_4.19.bb   | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 meta-arm/recipes-kernel/linux/linux-arm64-ack_4.19.bb
meta-arm/recipes-kernel/linux/linux-arm64-ack_4.19.bb new file +29 -0
new file mode 100644
index 0000000..99db960
@@ -0,0 +1,29 @@
+# SPDX-License-Identifier: Apache-2.0
+#
+# Copyright (c) 2020 Arm Limited
+#
+
+
+DESCRIPTION = "Linux Android Common Kernel"
+SECTION = "kernel"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
+
+require recipes-kernel/linux/linux-yocto.inc
+
+COMPATIBLE_MACHINE ?= "invalid"
+
+ARCH = "arm64"
+
+SRC_URI = " \
+    git://android.googlesource.com/kernel/common.git;protocol=https;branch=android-4.19-q-release \
+    "
+
+# ASB-2020-06-05_4.19-q-release tag commit
+SRCREV = "ebd43352dd92e56f14a4985a3c99de767fc8f9cf"
+
+S = "${WORKDIR}/git"
+
+LINUX_VERSION ?= "${PV}"
+KERNEL_VERSION_SANITY_SKIP = "1"
+KBRANCH = ""

--
2.7.4

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

#1 lore raw

PATCH RESEND 2/2 arm-bsp : Introduce TC0 platform and BSP

This patch introduces the Total Compute platform.
It adds support for the TC0 platform to the Android Common Kernel and allows building all binaries needed to run Android on TC0. It adds patches specific to TC0 for TF-A, SCP and U-Boot.

Change-Id Ia83b79571c7381967c7449db031e3177b1990546
---
 meta-arm-bsp/conf/machine/tc0.conf                 |  27 +
 .../recipes-bsp/scp-firmware/scp-firmware-tc0.inc  |  13 +
 .../scp-firmware/scp-firmware_git.bbappend         |   1 +
 .../trusted-firmware-a/trusted-firmware-a-tc0.inc  |  23 +
 .../trusted-firmware-a_2.3.bbappend                |   6 +
 .../files/tc0/tc0-config-and-android-boot.patch    | 160 ++++
 meta-arm-bsp/recipes-bsp/u-boot/u-boot-tc0.inc     |   6 +
 meta-arm-bsp/recipes-bsp/u-boot/u-boot_%.bbappend  |   4 +
 .../recipes-kernel/linux/files/tc0/defconfig       | 906 +++++++++++++++++++++
 ...01-drm-Add-component-aware-simple-encoder.patch | 368 +++++++++
 ...-swap-red-and-blue-colors-in-HDLCD-driver.patch |  43 +
 .../recipes-kernel/linux/linux-arm64-ack-tc0.inc   |  15 +
 .../linux/linux-arm64-ack_4.19.bbappend            |   6 +
 13 files changed, 1578 insertions(+)
 create mode 100644 meta-arm-bsp/conf/machine/tc0.conf
 create mode 100644 meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-tc0.inc
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-tc0.inc
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_2.3.bbappend
 create mode 100644 meta-arm-bsp/recipes-bsp/u-boot/files/tc0/tc0-config-and-android-boot.patch
 create mode 100644 meta-arm-bsp/recipes-bsp/u-boot/u-boot-tc0.inc
 create mode 100644 meta-arm-bsp/recipes-kernel/linux/files/tc0/defconfig
 create mode 100644 meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-4.19/tc0/0001-drm-Add-component-aware-simple-encoder.patch
 create mode 100644 meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-4.19/tc0/0002-swap-red-and-blue-colors-in-HDLCD-driver.patch
 create mode 100644 meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-tc0.inc
 create mode 100644 meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack_4.19.bbappend
meta-arm-bsp/conf/machine/tc0.conf new file +27 -0
new file mode 100644
index 0000000..9b4f1ae
@@ -0,0 +1,27 @@
+# Configuration for TC0
+
+#@TYPE: Machine
+#@NAME: TC0
+#@DESCRIPTION: Machine configuration for TC0
+
+TUNE_FEATURES = "aarch64"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+# Das U-boot
+UBOOT_MACHINE ?= "total_compute_defconfig"
+
+# Trusted firmware A v2.3
+PREFERRED_PROVIDER_virtual/trusted-firmware-a ?= "trusted-firmware-a"
+PREFERRED_VERSION_trusted-firmware-a ?= "2.3%"
+
+EXTRA_IMAGEDEPENDS += "virtual/trusted-firmware-a"
+
+PREFERRED_PROVIDER_virtual/kernel ?= "linux-arm64-ack"
+
+# Cannot use the default zImage on arm64
+KERNEL_IMAGETYPE = "Image"
+KERNEL_BOOTCMD = "booti"
+IMAGE_FSTYPES += "cpio.gz.u-boot"
+
+SERIAL_CONSOLES = "115200;ttyAMA0"
meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware-tc0.inc new file +13 -0
new file mode 100644
index 0000000..5b29305
@@ -0,0 +1,13 @@
+# TC0 specicif SCP configuration
+
+# Intermediate SHA with 2.6 baseline version
+SRCREV_scp    = "ba1db5fb0ee4a520836722f7a694177d461ab716"
+# 5.2.0 tag commit
+SRCREV_cmsis  = "80cc44bba16cb4c8f495b7aa9709d41ac50e9529"
+
+COMPATIBLE_MACHINE = "tc0"
+
+SCP_PLATFORM = "tc0"
+FW_TARGETS = "scp"
+
+PV = "2.6+git${SRCPV}"
meta-arm-bsp/recipes-bsp/scp-firmware/scp-firmware_git.bbappend +1 -0
index 53bd022..33ae7fe 100644
@@ -3,5 +3,6 @@
 MACHINE_SCP_REQUIRE ?= ""
 
 MACHINE_SCP_REQUIRE_n1sdp = "scp-firmware-n1sdp.inc"
+MACHINE_SCP_REQUIRE_tc0 = "scp-firmware-tc0.inc"
 
 require ${MACHINE_SCP_REQUIRE}
meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-tc0.inc new file +23 -0
new file mode 100644
index 0000000..555fb1d
@@ -0,0 +1,23 @@
+# TCO specific TFA configuration
+
+# Intermediate SHA with 2.3 baseline version
+SRCREV_tfa = "2fe7d18b0d99fdf4c4dbf84863bb2036dfebc537"
+# mbedtls-2.16.4 tag commit
+SRCREV_mbedtls = "39e2c0eeb6501980764793e8d54c49c0a42bde48"
+
+SRC_URI_append = " ${SRC_URI_MBEDTLS}"
+
+DEPENDS += "scp-firmware"
+
+COMPATIBLE_MACHINE = "tc0"
+
+TFA_PLATFORM = "tc0"
+TFA_BUILD_TARGET = "all fip"
+TFA_UBOOT = "1"
+TFA_INSTALL_TARGET = "bl1 fip"
+TFA_MBEDTLS = "1"
+TFA_DEBUG = "1"
+
+EXTRA_OEMAKE += "SCP_BL2=${RECIPE_SYSROOT}/firmware/scp_ramfw.bin"
+EXTRA_OEMAKE += "MBEDTLS_DIR=mbedtls TRUSTED_BOARD_BOOT=1 GENERATE_COT=1 ARM_ROTPK_LOCATION=devel_rsa \
+                     ROT_KEY=plat/arm/board/common/rotpk/arm_rotprivk_rsa.pem"
meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_2.3.bbappend new file +6 -0
new file mode 100644
index 0000000..b642708
@@ -0,0 +1,6 @@
+# Machine specific TFAs
+
+MACHINE_TFA_REQUIRE ?= ""
+MACHINE_TFA_REQUIRE_tc0 = "trusted-firmware-a-tc0.inc"
+
+require ${MACHINE_TFA_REQUIRE}
meta-arm-bsp/recipes-bsp/u-boot/files/tc0/tc0-config-and-android-boot.patch new file +160 -0

160 lines not on this page · raw message

meta-arm-bsp/recipes-bsp/u-boot/u-boot-tc0.inc new file +6 -0
new file mode 100644
index 0000000..6c2ed5f
@@ -0,0 +1,6 @@
+# TC0 specific Das U-Boot configuration and patch
+
+SRC_URI_append = ' file://tc0-config-and-android-boot.patch'
+
+# v2020.07-rc3 tag commit
+SRCREV = "8c48bb21bd6a1778d1f299de30ff62c07929702b"
meta-arm-bsp/recipes-bsp/u-boot/u-boot_%.bbappend +4 -0
index 20133a4..0df13a4 100644
@@ -5,4 +5,8 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/files/${MACHINE}:"
 SRC_URI_append_a5ds = " file://0001-armv7-add-mmio-timer.patch \
                     file://0002-board-arm-add-designstart-cortex-a5-board.patch"
 
+MACHINE_UBOOT_REQUIRE ?= ""
 
+MACHINE_UBOOT_REQUIRE_tc0 = "u-boot-tc0.inc"
+
+require ${MACHINE_UBOOT_REQUIRE}
meta-arm-bsp/recipes-kernel/linux/files/tc0/defconfig new file +906 -0

906 lines not on this page · raw message

meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-4.19/tc0/0001-drm-Add-component-aware-simple-encoder.patch new file +368 -0

368 lines not on this page · raw message

meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-4.19/tc0/0002-swap-red-and-blue-colors-in-HDLCD-driver.patch new file +43 -0

43 lines not on this page · raw message

meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-tc0.inc new file +15 -0
new file mode 100644
index 0000000..a8fe6ff
@@ -0,0 +1,15 @@
+#
+# TC0 MACHINE specific configurations
+#
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/linux-arm64-ack-4.19:${THISDIR}/files:"
+
+SRC_URI_append = " \
+    file://defconfig \
+    file://0001-drm-Add-component-aware-simple-encoder.patch \
+    file://0002-swap-red-and-blue-colors-in-HDLCD-driver.patch \
+    "
+
+KCONFIG_MODE = "--alldefconfig"
+
+COMPATIBLE_MACHINE = "tc0"
meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack_4.19.bbappend new file +6 -0
new file mode 100644
index 0000000..4df4831
@@ -0,0 +1,6 @@
+# Machine specific configurations
+
+MACHINE_ACK_REQUIRE ?= ""
+MACHINE_ACK_REQUIRE_tc0 = "linux-arm64-ack-tc0.inc"
+
+require ${MACHINE_ACK_REQUIRE}

--
2.7.4

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.