arm: Introduce 4.19 Android Common Kernel
PATCH RESEND 1/2 arm: Introduce 4.19 Android Common Kernel
This recipe targets machines based on arm64.
--- .../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
@@ -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.
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.
--- 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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.