diff --git a/.gitignore b/.gitignore index 7327afc..f00ebe6 100644 --- a/.gitignore +++ b/.gitignore @@ -52,6 +52,9 @@ meta-leda/ meta-virtualization/ poky/ +meta-tegra/ +meta-tegra-community/ + # Remote sstate-cache on Azure Storage azure-sstate-cache/ azure-downloads-cache/ diff --git a/kas/common-kirkstone.yaml b/kas/common-kirkstone.yaml index 095c01f..7ace1c5 100644 --- a/kas/common-kirkstone.yaml +++ b/kas/common-kirkstone.yaml @@ -61,8 +61,8 @@ repos: url: https://git.yoctoproject.org/meta-spdxscanner refspec: kirkstone meta-leda: - url: "https://github.com/eclipse-leda/meta-leda" - refspec: main + url: "https://github.com/SoftwareDefinedVehicle/meta-leda-fork" + refspec: racer layers: meta-leda-bsp: meta-leda-components: diff --git a/kas/leda-jetson-nano-2gb-devkit.yaml b/kas/leda-jetson-nano-2gb-devkit.yaml new file mode 100644 index 0000000..33f2a5a --- /dev/null +++ b/kas/leda-jetson-nano-2gb-devkit.yaml @@ -0,0 +1,35 @@ +# /******************************************************************************** +# * Copyright (c) 2023 Contributors to the Eclipse Foundation +# * +# * See the NOTICE file(s) distributed with this work for additional +# * information regarding copyright ownership. +# * +# * This program and the accompanying materials are made available under the +# * terms of the Apache License 2.0 which is available at +# * https://www.apache.org/licenses/LICENSE-2.0 +# * +# * SPDX-License-Identifier: Apache-2.0 +# ********************************************************************************/ +# Every file needs to contain a header, that provides kas with information +# about the context of this file. +# The "machine:" coresponds to filenames in meta-tegra/conf/machine/include +header: + version: 12 + includes: + - kas/common-kirkstone.yaml +machine: jetson-nano-2gb-devkit +repos: + meta-rauc-community: + url: "https://github.com/rauc/meta-rauc-community.git" + refspec: kirkstone + layers: + meta-rauc-tegra: + meta-tegra-community: + url: "https://github.com/OE4T/meta-tegra-community" + refspec: kirkstone-l4t-r32.7.x + meta-tegra: + url: "https://github.com/OE4T/meta-tegra.git" + refspec: kirkstone-l4t-r32.7.x + meta-leda-tegra: + path: ./meta-leda-tegra + diff --git a/kas/leda-jetson-nano-devkit.yaml b/kas/leda-jetson-nano-devkit.yaml new file mode 100644 index 0000000..7fa5c5b --- /dev/null +++ b/kas/leda-jetson-nano-devkit.yaml @@ -0,0 +1,35 @@ +# /******************************************************************************** +# * Copyright (c) 2023 Contributors to the Eclipse Foundation +# * +# * See the NOTICE file(s) distributed with this work for additional +# * information regarding copyright ownership. +# * +# * This program and the accompanying materials are made available under the +# * terms of the Apache License 2.0 which is available at +# * https://www.apache.org/licenses/LICENSE-2.0 +# * +# * SPDX-License-Identifier: Apache-2.0 +# ********************************************************************************/ +# Every file needs to contain a header, that provides kas with information +# about the context of this file. +# The "machine:" coresponds to filenames in meta-tegra/conf/machine/include +header: + version: 12 + includes: + - kas/common-kirkstone.yaml +machine: jetson-nano-devkit +repos: + meta-rauc-community: + url: "https://github.com/rauc/meta-rauc-community.git" + refspec: kirkstone + layers: + meta-rauc-tegra: + meta-tegra-community: + url: "https://github.com/OE4T/meta-tegra-community" + refspec: kirkstone-l4t-r32.7.x + meta-tegra: + url: "https://github.com/OE4T/meta-tegra.git" + refspec: kirkstone-l4t-r32.7.x + meta-leda-tegra: + path: ./meta-leda-tegra + diff --git a/meta-leda-tegra/conf/layer.conf b/meta-leda-tegra/conf/layer.conf new file mode 100644 index 0000000..be3f8d9 --- /dev/null +++ b/meta-leda-tegra/conf/layer.conf @@ -0,0 +1,29 @@ +# /******************************************************************************** +# * Copyright (c) 2023 Contributors to the Eclipse Foundation +# * +# * See the NOTICE file(s) distributed with this work for additional +# * information regarding copyright ownership. +# * +# * This program and the accompanying materials are made available under the +# * terms of the Apache License 2.0 which is available at +# * https://www.apache.org/licenses/LICENSE-2.0 +# * +# * SPDX-License-Identifier: Apache-2.0 +# ********************************************************************************/ +# We have a conf and classes directory, add to BBPATH +BBPATH .= ":${LAYERDIR}" + +# We have recipes-* directories, add to BBFILES +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" + +BBFILE_COLLECTIONS += "meta-leda-tegra" +BBFILE_PATTERN_meta-leda-tegra = "^${LAYERDIR}/" +BBFILE_PRIORITY_meta-leda-tegra = "6" + +LAYERDEPENDS_meta-leda-tegra = " \ + core \ + meta-kanto \ + meta-rauc-tegra \ +" +LAYERSERIES_COMPAT_meta-leda-tegra = "kirkstone" diff --git a/meta-leda-tegra/recipes-leda-kanto/container-management/container-management_%.bbappend b/meta-leda-tegra/recipes-leda-kanto/container-management/container-management_%.bbappend new file mode 100644 index 0000000..f751a22 --- /dev/null +++ b/meta-leda-tegra/recipes-leda-kanto/container-management/container-management_%.bbappend @@ -0,0 +1,20 @@ +# /******************************************************************************** +# * Copyright (c) 2023 Contributors to the Eclipse Foundation +# * +# * See the NOTICE file(s) distributed with this work for additional +# * information regarding copyright ownership. +# * +# * This program and the accompanying materials are made available under the +# * terms of the Apache License 2.0 which is available at +# * https://www.apache.org/licenses/LICENSE-2.0 +# * +# * SPDX-License-Identifier: Apache-2.0 +# ********************************************************************************/ + +RDEPENDS:${PN}:jetson-nano-2gb-devkit:remove = "kernel-module-dm-thin-pool" +RDEPENDS:${PN}:jetson-nano-2gb-devkit:remove = "kernel-module-xt-masquerade" +RDEPENDS:${PN}:jetson-nano-2gb-devkit:append = " thin-provisioning-tools" + +RDEPENDS:${PN}:jetson-nano-devkit:remove = "kernel-module-dm-thin-pool" +RDEPENDS:${PN}:jetson-nano-devkit:remove = "kernel-module-xt-masquerade" +RDEPENDS:${PN}:jetson-nano-devkit:append = " thin-provisioning-tools" \ No newline at end of file diff --git a/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-all.bbappend b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-all.bbappend new file mode 100644 index 0000000..ccb4639 --- /dev/null +++ b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-all.bbappend @@ -0,0 +1,14 @@ +# Tegra needs a plain WIC file (not qcow2) to be flashed to SD-Card +WKS_FILE:jetson-nano-2gb-devkit ?= "jetson-nano-2gb-devkit.wks" +IMAGE_FSTYPES:jetson-nano-2gb-devkit = "tegraflash tar.gz wic.gz" + +IMAGE_BOOT_FILES:jetson-nano-2gb-devkit = "Image u-boot.bin tegra210-p3448-0003-p3542-0000-jetson-nano-2gb-devkit.dtb u-boot-jetson-nano-2gb-devkit.bin" +INCOMPATIBLE_LICENSE:jetson-nano-2gb-devkit = "" + +WKS_FILE:jetson-nano-devkit ?= "jetson-nano-devkit.wks" +IMAGE_FSTYPES:jetson-nano-devkit = "tegraflash tar.gz wic.gz" + +IMAGE_BOOT_FILES:jetson-nano-devkit = "Image u-boot.bin tegra210-p3448-0000-p3449-0000-a02.dtb \ + tegra210-p3448-0000-p3449-0000-b00.dtb u-boot-jetson-nano-devkit.bin" +INCOMPATIBLE_LICENSE:jetson-nano-devkit = "" +#TEGRAFLASH_SDCARD_SIZE:jetson-nano-devkit = "64G" \ No newline at end of file diff --git a/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-data.bbappend b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-data.bbappend new file mode 100644 index 0000000..8abad0a --- /dev/null +++ b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-data.bbappend @@ -0,0 +1,6 @@ +IMAGE_BOOT_FILES:jetson-nano-2gb-devkit = "Image u-boot.bin tegra210-p3448-0003-p3542-0000-jetson-nano-2gb-devkit.dtb u-boot-jetson-nano-2gb-devkit.bin" +INCOMPATIBLE_LICENSE:jetson-nano-2gb-devkit = "" + +IMAGE_BOOT_FILES:jetson-nano-devkit = "Image u-boot.bin tegra210-p3448-0000-p3449-0000-a02.dtb \ + tegra210-p3448-0000-p3449-0000-b00.dtb u-boot-jetson-nano-devkit.bin" +INCOMPATIBLE_LICENSE:jetson-nano-devkit = "" \ No newline at end of file diff --git a/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-full.bbappend b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-full.bbappend new file mode 100644 index 0000000..8abad0a --- /dev/null +++ b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-full.bbappend @@ -0,0 +1,6 @@ +IMAGE_BOOT_FILES:jetson-nano-2gb-devkit = "Image u-boot.bin tegra210-p3448-0003-p3542-0000-jetson-nano-2gb-devkit.dtb u-boot-jetson-nano-2gb-devkit.bin" +INCOMPATIBLE_LICENSE:jetson-nano-2gb-devkit = "" + +IMAGE_BOOT_FILES:jetson-nano-devkit = "Image u-boot.bin tegra210-p3448-0000-p3449-0000-a02.dtb \ + tegra210-p3448-0000-p3449-0000-b00.dtb u-boot-jetson-nano-devkit.bin" +INCOMPATIBLE_LICENSE:jetson-nano-devkit = "" \ No newline at end of file diff --git a/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-minimal.bbappend b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-minimal.bbappend new file mode 100644 index 0000000..8abad0a --- /dev/null +++ b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-minimal.bbappend @@ -0,0 +1,6 @@ +IMAGE_BOOT_FILES:jetson-nano-2gb-devkit = "Image u-boot.bin tegra210-p3448-0003-p3542-0000-jetson-nano-2gb-devkit.dtb u-boot-jetson-nano-2gb-devkit.bin" +INCOMPATIBLE_LICENSE:jetson-nano-2gb-devkit = "" + +IMAGE_BOOT_FILES:jetson-nano-devkit = "Image u-boot.bin tegra210-p3448-0000-p3449-0000-a02.dtb \ + tegra210-p3448-0000-p3449-0000-b00.dtb u-boot-jetson-nano-devkit.bin" +INCOMPATIBLE_LICENSE:jetson-nano-devkit = "" \ No newline at end of file diff --git a/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-rescue.bbappend b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-rescue.bbappend new file mode 100644 index 0000000..8abad0a --- /dev/null +++ b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-rescue.bbappend @@ -0,0 +1,6 @@ +IMAGE_BOOT_FILES:jetson-nano-2gb-devkit = "Image u-boot.bin tegra210-p3448-0003-p3542-0000-jetson-nano-2gb-devkit.dtb u-boot-jetson-nano-2gb-devkit.bin" +INCOMPATIBLE_LICENSE:jetson-nano-2gb-devkit = "" + +IMAGE_BOOT_FILES:jetson-nano-devkit = "Image u-boot.bin tegra210-p3448-0000-p3449-0000-a02.dtb \ + tegra210-p3448-0000-p3449-0000-b00.dtb u-boot-jetson-nano-devkit.bin" +INCOMPATIBLE_LICENSE:jetson-nano-devkit = "" \ No newline at end of file