From 957e4e1181f0e30b6d71130a4381b40c48e86c7a Mon Sep 17 00:00:00 2001 From: Stoyan Lachev Date: Wed, 29 Mar 2023 06:37:30 +0000 Subject: [PATCH 1/7] First commit --- kas/leda-tegra.yaml | 43 +++++++++++++++++++ meta-leda-tegra/conf/layer.conf | 33 ++++++++++++++ .../container-management_%.bbappend | 5 +++ .../recipes-meta-tegra/haveged_%.bbappend.tmp | 21 +++++++++ .../recipes-meta-tegra/openssh_%.bbappend | 3 ++ .../packagegroup-meta-oe_%.bbappend.tmp | 1 + .../recipes-meta-tegra/rm-haveged.bb | 4 ++ 7 files changed, 110 insertions(+) create mode 100644 kas/leda-tegra.yaml create mode 100644 meta-leda-tegra/conf/layer.conf create mode 100644 meta-leda-tegra/recipes-meta-kanto/container-management_%.bbappend create mode 100644 meta-leda-tegra/recipes-meta-tegra/haveged_%.bbappend.tmp create mode 100644 meta-leda-tegra/recipes-meta-tegra/openssh_%.bbappend create mode 100644 meta-leda-tegra/recipes-meta-tegra/packagegroup-meta-oe_%.bbappend.tmp create mode 100644 meta-leda-tegra/recipes-meta-tegra/rm-haveged.bb diff --git a/kas/leda-tegra.yaml b/kas/leda-tegra.yaml new file mode 100644 index 0000000..3654140 --- /dev/null +++ b/kas/leda-tegra.yaml @@ -0,0 +1,43 @@ +# /******************************************************************************** +# * 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 +local_conf_header: + incompatible: | + # SKIP_RECIPE[haveged] = "Incopatible license: GPL-3.0-only" + # BBMASK = "meta-tegra/external/openembedded-layer/recipes-extended/haveged" + # BBMASK = "meta-openembedded/meta-oe/recipes-extended/haveged" + DISTRO_FEATURES = "x11 opengl " + IMAGE_CLASSES += "image_types_tegra" + IMAGE_FSTYPES = "tegraflash" +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..b86f006 --- /dev/null +++ b/meta-leda-tegra/conf/layer.conf @@ -0,0 +1,33 @@ +# /******************************************************************************** +# * 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 = "21" + +LAYERDEPENDS_meta-leda-tegra = " \ + core \ + meta-kanto \ + meta-rauc-tegra \ +" +# meta-tegra +# meta-tegra-community + + +LAYERSERIES_COMPAT_meta-leda-tegra = "kirkstone" diff --git a/meta-leda-tegra/recipes-meta-kanto/container-management_%.bbappend b/meta-leda-tegra/recipes-meta-kanto/container-management_%.bbappend new file mode 100644 index 0000000..3c9d20c --- /dev/null +++ b/meta-leda-tegra/recipes-meta-kanto/container-management_%.bbappend @@ -0,0 +1,5 @@ +#RDEPENDS:${PN} += "kernel-module-dm-thin-pool kernel-module-nf-nat kernel-module-nf-conntrack-netlink kernel-module-xt-addrtype kernel-module-xt-masquerade" +#RDEPENDS:${PN} += "thin-provisioning-tools kernel-module-nf-nat kernel-module-nf-conntrack-netlink kernel-module-xt-addrtype" +#thin-provisioning-tools +RDEPENDS:${PN}:remove = "kernel-module-dm-thin-pool kernel-module-xt-masquerade" +#RDEPENDS:${PN} += "thin-provisioning-tools" \ No newline at end of file diff --git a/meta-leda-tegra/recipes-meta-tegra/haveged_%.bbappend.tmp b/meta-leda-tegra/recipes-meta-tegra/haveged_%.bbappend.tmp new file mode 100644 index 0000000..be14bae --- /dev/null +++ b/meta-leda-tegra/recipes-meta-tegra/haveged_%.bbappend.tmp @@ -0,0 +1,21 @@ +# Left empty - service haveged will be changed to rngd from rng-tools due to incopatible license GPL-3.0-only +FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:" +inherit ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} + +SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_SERVICE:${PN}:remove = "haveged.service" + +# Based on init.d/service.redhat from 1.9.14 +# https://raw.githubusercontent.com/jirka-h/haveged/v1.9.14/init.d/service.redhat +#SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'file://haveged.service', '', d)}" +SRC_URI:remove = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'file://haveged.service', '', d)}" + +do_install:append() { +# if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then +# install -d ${D}${systemd_system_unitdir} +# install -m 0644 ${WORKDIR}/haveged.service ${D}${systemd_system_unitdir}/haveged.service +# sed -i -e "s,@SBIN_DIR@,${sbindir},g" ${D}${systemd_system_unitdir}/haveged.service +# fi +} + +PACKAGE_ARCH:tegra = "${TEGRA_PKGARCH}" diff --git a/meta-leda-tegra/recipes-meta-tegra/openssh_%.bbappend b/meta-leda-tegra/recipes-meta-tegra/openssh_%.bbappend new file mode 100644 index 0000000..d7996e7 --- /dev/null +++ b/meta-leda-tegra/recipes-meta-tegra/openssh_%.bbappend @@ -0,0 +1,3 @@ +#RRECOMMENDS:${PN}-sshd:remove:tegra210 = "haveged" +#RRECOMMENDS:${PN}-sshd:append:tegra210 = " rng-tools" +#PACKAGE_ARCH:tegra210 = "${TEGRA_PKGARCH}" diff --git a/meta-leda-tegra/recipes-meta-tegra/packagegroup-meta-oe_%.bbappend.tmp b/meta-leda-tegra/recipes-meta-tegra/packagegroup-meta-oe_%.bbappend.tmp new file mode 100644 index 0000000..7c079a4 --- /dev/null +++ b/meta-leda-tegra/recipes-meta-tegra/packagegroup-meta-oe_%.bbappend.tmp @@ -0,0 +1 @@ +packagegroup-meta-oe-extended:remove = "haveged" \ No newline at end of file diff --git a/meta-leda-tegra/recipes-meta-tegra/rm-haveged.bb b/meta-leda-tegra/recipes-meta-tegra/rm-haveged.bb new file mode 100644 index 0000000..3f90b37 --- /dev/null +++ b/meta-leda-tegra/recipes-meta-tegra/rm-haveged.bb @@ -0,0 +1,4 @@ +#RDEPENDS:packagegroup-meta-oe-extended:remove = "haveged" +#packagegroup-meta-oe-extended:remove = "haveged" +LICENSE = "Apache-2.0" +#SKIP_RECIPE[haveged] = "Incopatible license GPL-3.0-only" \ No newline at end of file From a9d48728f7636ca5598b1b9a79b43692f3d1b748 Mon Sep 17 00:00:00 2001 From: Stoyan Lachev Date: Wed, 29 Mar 2023 14:20:24 +0000 Subject: [PATCH 2/7] Sdv append files --- kas/leda-tegra.yaml | 8 - meta-leda-tegra/conf/layer.conf | 6 +- .../container-management_%.bbappend | 18 ++ .../container-management_%.bbappend | 5 - .../recipes-meta-tegra/haveged_%.bbappend.tmp | 21 -- .../recipes-meta-tegra/openssh_%.bbappend | 3 - .../packagegroup-meta-oe_%.bbappend.tmp | 1 - .../recipes-meta-tegra/rm-haveged.bb | 4 - .../recipes-sdv-distro/growdisk/files/LICENSE | 277 ++++++++++++++++++ .../growdisk/files/growdisk/growdisk.service | 12 + .../growdisk/files/growdisk/growdisk.sh | 29 ++ .../growdisk/sdv-growdisk_0.1.bb | 43 +++ .../recipes-sdv-distro/sdv-image-all.bbappend | 19 ++ .../sdv-image-data.bbappend | 16 + .../sdv-image-full.bbappend | 16 + .../sdv-image-minimal.bbappend | 16 + .../sdv-image-rescue.bbappend | 16 + 17 files changed, 463 insertions(+), 47 deletions(-) create mode 100644 meta-leda-tegra/recipes-leda-kanto/container-management_%.bbappend delete mode 100644 meta-leda-tegra/recipes-meta-kanto/container-management_%.bbappend delete mode 100644 meta-leda-tegra/recipes-meta-tegra/haveged_%.bbappend.tmp delete mode 100644 meta-leda-tegra/recipes-meta-tegra/openssh_%.bbappend delete mode 100644 meta-leda-tegra/recipes-meta-tegra/packagegroup-meta-oe_%.bbappend.tmp delete mode 100644 meta-leda-tegra/recipes-meta-tegra/rm-haveged.bb create mode 100644 meta-leda-tegra/recipes-sdv-distro/growdisk/files/LICENSE create mode 100644 meta-leda-tegra/recipes-sdv-distro/growdisk/files/growdisk/growdisk.service create mode 100644 meta-leda-tegra/recipes-sdv-distro/growdisk/files/growdisk/growdisk.sh create mode 100644 meta-leda-tegra/recipes-sdv-distro/growdisk/sdv-growdisk_0.1.bb create mode 100644 meta-leda-tegra/recipes-sdv-distro/sdv-image-all.bbappend create mode 100644 meta-leda-tegra/recipes-sdv-distro/sdv-image-data.bbappend create mode 100644 meta-leda-tegra/recipes-sdv-distro/sdv-image-full.bbappend create mode 100644 meta-leda-tegra/recipes-sdv-distro/sdv-image-minimal.bbappend create mode 100644 meta-leda-tegra/recipes-sdv-distro/sdv-image-rescue.bbappend diff --git a/kas/leda-tegra.yaml b/kas/leda-tegra.yaml index 3654140..33f2a5a 100644 --- a/kas/leda-tegra.yaml +++ b/kas/leda-tegra.yaml @@ -18,14 +18,6 @@ header: includes: - kas/common-kirkstone.yaml machine: jetson-nano-2gb-devkit -local_conf_header: - incompatible: | - # SKIP_RECIPE[haveged] = "Incopatible license: GPL-3.0-only" - # BBMASK = "meta-tegra/external/openembedded-layer/recipes-extended/haveged" - # BBMASK = "meta-openembedded/meta-oe/recipes-extended/haveged" - DISTRO_FEATURES = "x11 opengl " - IMAGE_CLASSES += "image_types_tegra" - IMAGE_FSTYPES = "tegraflash" repos: meta-rauc-community: url: "https://github.com/rauc/meta-rauc-community.git" diff --git a/meta-leda-tegra/conf/layer.conf b/meta-leda-tegra/conf/layer.conf index b86f006..3d95a9e 100644 --- a/meta-leda-tegra/conf/layer.conf +++ b/meta-leda-tegra/conf/layer.conf @@ -19,15 +19,11 @@ BBFILES += "${LAYERDIR}/recipes-*/*.bb \ BBFILE_COLLECTIONS += "meta-leda-tegra" BBFILE_PATTERN_meta-leda-tegra = "^${LAYERDIR}/" -BBFILE_PRIORITY_meta-leda-tegra = "21" +BBFILE_PRIORITY_meta-leda-tegra = "6" LAYERDEPENDS_meta-leda-tegra = " \ core \ meta-kanto \ meta-rauc-tegra \ " -# meta-tegra -# meta-tegra-community - - LAYERSERIES_COMPAT_meta-leda-tegra = "kirkstone" diff --git a/meta-leda-tegra/recipes-leda-kanto/container-management_%.bbappend b/meta-leda-tegra/recipes-leda-kanto/container-management_%.bbappend new file mode 100644 index 0000000..8d22c8b --- /dev/null +++ b/meta-leda-tegra/recipes-leda-kanto/container-management_%.bbappend @@ -0,0 +1,18 @@ +# /******************************************************************************** +# * 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 +# ********************************************************************************/ + +COMPATIBLE_MACHINE = "tegra210" + +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" \ No newline at end of file diff --git a/meta-leda-tegra/recipes-meta-kanto/container-management_%.bbappend b/meta-leda-tegra/recipes-meta-kanto/container-management_%.bbappend deleted file mode 100644 index 3c9d20c..0000000 --- a/meta-leda-tegra/recipes-meta-kanto/container-management_%.bbappend +++ /dev/null @@ -1,5 +0,0 @@ -#RDEPENDS:${PN} += "kernel-module-dm-thin-pool kernel-module-nf-nat kernel-module-nf-conntrack-netlink kernel-module-xt-addrtype kernel-module-xt-masquerade" -#RDEPENDS:${PN} += "thin-provisioning-tools kernel-module-nf-nat kernel-module-nf-conntrack-netlink kernel-module-xt-addrtype" -#thin-provisioning-tools -RDEPENDS:${PN}:remove = "kernel-module-dm-thin-pool kernel-module-xt-masquerade" -#RDEPENDS:${PN} += "thin-provisioning-tools" \ No newline at end of file diff --git a/meta-leda-tegra/recipes-meta-tegra/haveged_%.bbappend.tmp b/meta-leda-tegra/recipes-meta-tegra/haveged_%.bbappend.tmp deleted file mode 100644 index be14bae..0000000 --- a/meta-leda-tegra/recipes-meta-tegra/haveged_%.bbappend.tmp +++ /dev/null @@ -1,21 +0,0 @@ -# Left empty - service haveged will be changed to rngd from rng-tools due to incopatible license GPL-3.0-only -FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:" -inherit ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} - -SYSTEMD_PACKAGES = "${PN}" -SYSTEMD_SERVICE:${PN}:remove = "haveged.service" - -# Based on init.d/service.redhat from 1.9.14 -# https://raw.githubusercontent.com/jirka-h/haveged/v1.9.14/init.d/service.redhat -#SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'file://haveged.service', '', d)}" -SRC_URI:remove = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'file://haveged.service', '', d)}" - -do_install:append() { -# if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then -# install -d ${D}${systemd_system_unitdir} -# install -m 0644 ${WORKDIR}/haveged.service ${D}${systemd_system_unitdir}/haveged.service -# sed -i -e "s,@SBIN_DIR@,${sbindir},g" ${D}${systemd_system_unitdir}/haveged.service -# fi -} - -PACKAGE_ARCH:tegra = "${TEGRA_PKGARCH}" diff --git a/meta-leda-tegra/recipes-meta-tegra/openssh_%.bbappend b/meta-leda-tegra/recipes-meta-tegra/openssh_%.bbappend deleted file mode 100644 index d7996e7..0000000 --- a/meta-leda-tegra/recipes-meta-tegra/openssh_%.bbappend +++ /dev/null @@ -1,3 +0,0 @@ -#RRECOMMENDS:${PN}-sshd:remove:tegra210 = "haveged" -#RRECOMMENDS:${PN}-sshd:append:tegra210 = " rng-tools" -#PACKAGE_ARCH:tegra210 = "${TEGRA_PKGARCH}" diff --git a/meta-leda-tegra/recipes-meta-tegra/packagegroup-meta-oe_%.bbappend.tmp b/meta-leda-tegra/recipes-meta-tegra/packagegroup-meta-oe_%.bbappend.tmp deleted file mode 100644 index 7c079a4..0000000 --- a/meta-leda-tegra/recipes-meta-tegra/packagegroup-meta-oe_%.bbappend.tmp +++ /dev/null @@ -1 +0,0 @@ -packagegroup-meta-oe-extended:remove = "haveged" \ No newline at end of file diff --git a/meta-leda-tegra/recipes-meta-tegra/rm-haveged.bb b/meta-leda-tegra/recipes-meta-tegra/rm-haveged.bb deleted file mode 100644 index 3f90b37..0000000 --- a/meta-leda-tegra/recipes-meta-tegra/rm-haveged.bb +++ /dev/null @@ -1,4 +0,0 @@ -#RDEPENDS:packagegroup-meta-oe-extended:remove = "haveged" -#packagegroup-meta-oe-extended:remove = "haveged" -LICENSE = "Apache-2.0" -#SKIP_RECIPE[haveged] = "Incopatible license GPL-3.0-only" \ No newline at end of file diff --git a/meta-leda-tegra/recipes-sdv-distro/growdisk/files/LICENSE b/meta-leda-tegra/recipes-sdv-distro/growdisk/files/LICENSE new file mode 100644 index 0000000..e23ece2 --- /dev/null +++ b/meta-leda-tegra/recipes-sdv-distro/growdisk/files/LICENSE @@ -0,0 +1,277 @@ +Eclipse Public License - v 2.0 + + THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE + PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION + OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. + +1. DEFINITIONS + +"Contribution" means: + + a) in the case of the initial Contributor, the initial content + Distributed under this Agreement, and + + b) in the case of each subsequent Contributor: + i) changes to the Program, and + ii) additions to the Program; + where such changes and/or additions to the Program originate from + and are Distributed by that particular Contributor. A Contribution + "originates" from a Contributor if it was added to the Program by + such Contributor itself or anyone acting on such Contributor's behalf. + Contributions do not include changes or additions to the Program that + are not Modified Works. + +"Contributor" means any person or entity that Distributes the Program. + +"Licensed Patents" mean patent claims licensable by a Contributor which +are necessarily infringed by the use or sale of its Contribution alone +or when combined with the Program. + +"Program" means the Contributions Distributed in accordance with this +Agreement. + +"Recipient" means anyone who receives the Program under this Agreement +or any Secondary License (as applicable), including Contributors. + +"Derivative Works" shall mean any work, whether in Source Code or other +form, that is based on (or derived from) the Program and for which the +editorial revisions, annotations, elaborations, or other modifications +represent, as a whole, an original work of authorship. + +"Modified Works" shall mean any work in Source Code or other form that +results from an addition to, deletion from, or modification of the +contents of the Program, including, for purposes of clarity any new file +in Source Code form that contains any contents of the Program. Modified +Works shall not include works that contain only declarations, +interfaces, types, classes, structures, or files of the Program solely +in each case in order to link to, bind by name, or subclass the Program +or Modified Works thereof. + +"Distribute" means the acts of a) distributing or b) making available +in any manner that enables the transfer of a copy. + +"Source Code" means the form of a Program preferred for making +modifications, including but not limited to software source code, +documentation source, and configuration files. + +"Secondary License" means either the GNU General Public License, +Version 2.0, or any later versions of that license, including any +exceptions or additional permissions as identified by the initial +Contributor. + +2. GRANT OF RIGHTS + + a) Subject to the terms of this Agreement, each Contributor hereby + grants Recipient a non-exclusive, worldwide, royalty-free copyright + license to reproduce, prepare Derivative Works of, publicly display, + publicly perform, Distribute and sublicense the Contribution of such + Contributor, if any, and such Derivative Works. + + b) Subject to the terms of this Agreement, each Contributor hereby + grants Recipient a non-exclusive, worldwide, royalty-free patent + license under Licensed Patents to make, use, sell, offer to sell, + import and otherwise transfer the Contribution of such Contributor, + if any, in Source Code or other form. This patent license shall + apply to the combination of the Contribution and the Program if, at + the time the Contribution is added by the Contributor, such addition + of the Contribution causes such combination to be covered by the + Licensed Patents. The patent license shall not apply to any other + combinations which include the Contribution. No hardware per se is + licensed hereunder. + + c) Recipient understands that although each Contributor grants the + licenses to its Contributions set forth herein, no assurances are + provided by any Contributor that the Program does not infringe the + patent or other intellectual property rights of any other entity. + Each Contributor disclaims any liability to Recipient for claims + brought by any other entity based on infringement of intellectual + property rights or otherwise. As a condition to exercising the + rights and licenses granted hereunder, each Recipient hereby + assumes sole responsibility to secure any other intellectual + property rights needed, if any. For example, if a third party + patent license is required to allow Recipient to Distribute the + Program, it is Recipient's responsibility to acquire that license + before distributing the Program. + + d) Each Contributor represents that to its knowledge it has + sufficient copyright rights in its Contribution, if any, to grant + the copyright license set forth in this Agreement. + + e) Notwithstanding the terms of any Secondary License, no + Contributor makes additional grants to any Recipient (other than + those set forth in this Agreement) as a result of such Recipient's + receipt of the Program under the terms of a Secondary License + (if permitted under the terms of Section 3). + +3. REQUIREMENTS + +3.1 If a Contributor Distributes the Program in any form, then: + + a) the Program must also be made available as Source Code, in + accordance with section 3.2, and the Contributor must accompany + the Program with a statement that the Source Code for the Program + is available under this Agreement, and informs Recipients how to + obtain it in a reasonable manner on or through a medium customarily + used for software exchange; and + + b) the Contributor may Distribute the Program under a license + different than this Agreement, provided that such license: + i) effectively disclaims on behalf of all other Contributors all + warranties and conditions, express and implied, including + warranties or conditions of title and non-infringement, and + implied warranties or conditions of merchantability and fitness + for a particular purpose; + + ii) effectively excludes on behalf of all other Contributors all + liability for damages, including direct, indirect, special, + incidental and consequential damages, such as lost profits; + + iii) does not attempt to limit or alter the recipients' rights + in the Source Code under section 3.2; and + + iv) requires any subsequent distribution of the Program by any + party to be under a license that satisfies the requirements + of this section 3. + +3.2 When the Program is Distributed as Source Code: + + a) it must be made available under this Agreement, or if the + Program (i) is combined with other material in a separate file or + files made available under a Secondary License, and (ii) the initial + Contributor attached to the Source Code the notice described in + Exhibit A of this Agreement, then the Program may be made available + under the terms of such Secondary Licenses, and + + b) a copy of this Agreement must be included with each copy of + the Program. + +3.3 Contributors may not remove or alter any copyright, patent, +trademark, attribution notices, disclaimers of warranty, or limitations +of liability ("notices") contained within the Program from any copy of +the Program which they Distribute, provided that Contributors may add +their own appropriate notices. + +4. COMMERCIAL DISTRIBUTION + +Commercial distributors of software may accept certain responsibilities +with respect to end users, business partners and the like. While this +license is intended to facilitate the commercial use of the Program, +the Contributor who includes the Program in a commercial product +offering should do so in a manner which does not create potential +liability for other Contributors. Therefore, if a Contributor includes +the Program in a commercial product offering, such Contributor +("Commercial Contributor") hereby agrees to defend and indemnify every +other Contributor ("Indemnified Contributor") against any losses, +damages and costs (collectively "Losses") arising from claims, lawsuits +and other legal actions brought by a third party against the Indemnified +Contributor to the extent caused by the acts or omissions of such +Commercial Contributor in connection with its distribution of the Program +in a commercial product offering. The obligations in this section do not +apply to any claims or Losses relating to any actual or alleged +intellectual property infringement. In order to qualify, an Indemnified +Contributor must: a) promptly notify the Commercial Contributor in +writing of such claim, and b) allow the Commercial Contributor to control, +and cooperate with the Commercial Contributor in, the defense and any +related settlement negotiations. The Indemnified Contributor may +participate in any such claim at its own expense. + +For example, a Contributor might include the Program in a commercial +product offering, Product X. That Contributor is then a Commercial +Contributor. If that Commercial Contributor then makes performance +claims, or offers warranties related to Product X, those performance +claims and warranties are such Commercial Contributor's responsibility +alone. Under this section, the Commercial Contributor would have to +defend claims against the other Contributors related to those performance +claims and warranties, and if a court requires any other Contributor to +pay any damages as a result, the Commercial Contributor must pay +those damages. + +5. NO WARRANTY + +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT +PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN "AS IS" +BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR +IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF +TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR +PURPOSE. Each Recipient is solely responsible for determining the +appropriateness of using and distributing the Program and assumes all +risks associated with its exercise of rights under this Agreement, +including but not limited to the risks and costs of program errors, +compliance with applicable laws, damage to or loss of data, programs +or equipment, and unavailability or interruption of operations. + +6. DISCLAIMER OF LIABILITY + +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT +PERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS +SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST +PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE +EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + +7. GENERAL + +If any provision of this Agreement is invalid or unenforceable under +applicable law, it shall not affect the validity or enforceability of +the remainder of the terms of this Agreement, and without further +action by the parties hereto, such provision shall be reformed to the +minimum extent necessary to make such provision valid and enforceable. + +If Recipient institutes patent litigation against any entity +(including a cross-claim or counterclaim in a lawsuit) alleging that the +Program itself (excluding combinations of the Program with other software +or hardware) infringes such Recipient's patent(s), then such Recipient's +rights granted under Section 2(b) shall terminate as of the date such +litigation is filed. + +All Recipient's rights under this Agreement shall terminate if it +fails to comply with any of the material terms or conditions of this +Agreement and does not cure such failure in a reasonable period of +time after becoming aware of such noncompliance. If all Recipient's +rights under this Agreement terminate, Recipient agrees to cease use +and distribution of the Program as soon as reasonably practicable. +However, Recipient's obligations under this Agreement and any licenses +granted by Recipient relating to the Program shall continue and survive. + +Everyone is permitted to copy and distribute copies of this Agreement, +but in order to avoid inconsistency the Agreement is copyrighted and +may only be modified in the following manner. The Agreement Steward +reserves the right to publish new versions (including revisions) of +this Agreement from time to time. No one other than the Agreement +Steward has the right to modify this Agreement. The Eclipse Foundation +is the initial Agreement Steward. The Eclipse Foundation may assign the +responsibility to serve as the Agreement Steward to a suitable separate +entity. Each new version of the Agreement will be given a distinguishing +version number. The Program (including Contributions) may always be +Distributed subject to the version of the Agreement under which it was +received. In addition, after a new version of the Agreement is published, +Contributor may elect to Distribute the Program (including its +Contributions) under the new version. + +Except as expressly stated in Sections 2(a) and 2(b) above, Recipient +receives no rights or licenses to the intellectual property of any +Contributor under this Agreement, whether expressly, by implication, +estoppel or otherwise. All rights in the Program not expressly granted +under this Agreement are reserved. Nothing in this Agreement is intended +to be enforceable by any entity that is not a Contributor or Recipient. +No third-party beneficiary rights are created under this Agreement. + +Exhibit A - Form of Secondary Licenses Notice + +"This Source Code may also be made available under the following +Secondary Licenses when the conditions for such availability set forth +in the Eclipse Public License, v. 2.0 are satisfied: {name license(s), +version(s), and exceptions or additional permissions here}." + + Simply including a copy of this Agreement, including this Exhibit A + is not sufficient to license the Source Code under Secondary Licenses. + + If it is not possible or desirable to put the notice in a particular + file, then You may include the notice in a location (such as a LICENSE + file in a relevant directory) where a recipient would be likely to + look for such a notice. + + You may add additional accurate notices of copyright ownership. \ No newline at end of file diff --git a/meta-leda-tegra/recipes-sdv-distro/growdisk/files/growdisk/growdisk.service b/meta-leda-tegra/recipes-sdv-distro/growdisk/files/growdisk/growdisk.service new file mode 100644 index 0000000..1cc9b43 --- /dev/null +++ b/meta-leda-tegra/recipes-sdv-distro/growdisk/files/growdisk/growdisk.service @@ -0,0 +1,12 @@ +[Unit] +Description=Grow SD-Card disk space +DefaultDependencies=no +Before=data.mount + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/sbin/growdisk.sh + +[Install] +WantedBy=data.mount diff --git a/meta-leda-tegra/recipes-sdv-distro/growdisk/files/growdisk/growdisk.sh b/meta-leda-tegra/recipes-sdv-distro/growdisk/files/growdisk/growdisk.sh new file mode 100644 index 0000000..a79a47a --- /dev/null +++ b/meta-leda-tegra/recipes-sdv-distro/growdisk/files/growdisk/growdisk.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# /******************************************************************************** +# * 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 Eclipse Public License 2.0 which is available at +# * http://www.eclipse.org/legal/epl-2.0 +# * +# * SPDX-License-Identifier: EPL-2.0 +# ********************************************************************************/ +# +echo "Enlarging SD Card partition" + +DEVICE=$(lsblk -l | grep part | tail -1 | awk '{print $1}' | sed 's/..$//') +# Last partition on our image is supposed to be "6" +LAST_PARTITION_NUMBER=$(lsblk -l | grep part | wc -l) +PARTITION="/dev/${DEVICE}p${LAST_PARTITION_NUMBER}" + +sgdisk /dev/$DEVICE --move-second-header + +e2fsck -f -y $PARTITION +echo ',+' | sfdisk /dev/$DEVICE -N $LAST_PARTITION_NUMBER --force +e2fsck -f -y $PARTITION +resize2fs $PARTITION +e2fsck -f -y $PARTITION +sfdisk -Vl /dev/$DEVICE diff --git a/meta-leda-tegra/recipes-sdv-distro/growdisk/sdv-growdisk_0.1.bb b/meta-leda-tegra/recipes-sdv-distro/growdisk/sdv-growdisk_0.1.bb new file mode 100644 index 0000000..ff2dcf9 --- /dev/null +++ b/meta-leda-tegra/recipes-sdv-distro/growdisk/sdv-growdisk_0.1.bb @@ -0,0 +1,43 @@ +# /******************************************************************************** +# * 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 +# ********************************************************************************/ + +SUMMARY = "Grow disk space on SD Card " +DESCRIPTION = "Script to enlarge disk partition to size of SD Card" +LICENSE = "Apache-2.0" + +inherit systemd features_check + +SRC_URI = " \ + file://LICENSE \ + file://growdisk/ \ +" + +LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=d9fc0efef5228704e7f5b37f27192723" + +NATIVE_SYSTEMD_SUPPORT = "1" +SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_SERVICE:${PN} = "growdisk.service" +SYSTEMD_AUTO_ENABLE:${PN} = "enable" + +FILES:${PN} += "${sbindir}/growdisk.sh \ + ${systemd_system_unitdir}/growdisk.service" + +REQUIRED_DISTRO_FEATURES = "systemd" + +do_install:append () { + install -d ${D}/${sbindir} + install -m 0755 ${WORKDIR}/growdisk/growdisk.sh ${D}/${sbindir} + + install -d ${D}${systemd_unitdir}/system/ + install -m 0644 ${WORKDIR}/growdisk/growdisk.service ${D}${systemd_system_unitdir} +} diff --git a/meta-leda-tegra/recipes-sdv-distro/sdv-image-all.bbappend b/meta-leda-tegra/recipes-sdv-distro/sdv-image-all.bbappend new file mode 100644 index 0000000..61ea80d --- /dev/null +++ b/meta-leda-tegra/recipes-sdv-distro/sdv-image-all.bbappend @@ -0,0 +1,19 @@ +# /******************************************************************************** +# * 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 +# ********************************************************************************/ +COMPATIBLE_MACHINE = "tegra210" +# Tegra needs a plain WIC file (not qcow2) to be flashed to SD-Card +WKS_FILE:jetson-nano-2gb-devkit ?= "jetson-sdcard.wks" +IMAGE_FSTYPES:jetson-nano-2gb-devkit = "tegraflash tar.gz wic.gz" +# Allow wics to partition this image by providing boot files +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 = "" \ No newline at end of file diff --git a/meta-leda-tegra/recipes-sdv-distro/sdv-image-data.bbappend b/meta-leda-tegra/recipes-sdv-distro/sdv-image-data.bbappend new file mode 100644 index 0000000..847ffaa --- /dev/null +++ b/meta-leda-tegra/recipes-sdv-distro/sdv-image-data.bbappend @@ -0,0 +1,16 @@ +# /******************************************************************************** +# * 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 +# ********************************************************************************/ +COMPATIBLE_MACHINE = "tegra210" +# Allow wics to partition this image by providing boot files +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 = "" \ No newline at end of file diff --git a/meta-leda-tegra/recipes-sdv-distro/sdv-image-full.bbappend b/meta-leda-tegra/recipes-sdv-distro/sdv-image-full.bbappend new file mode 100644 index 0000000..847ffaa --- /dev/null +++ b/meta-leda-tegra/recipes-sdv-distro/sdv-image-full.bbappend @@ -0,0 +1,16 @@ +# /******************************************************************************** +# * 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 +# ********************************************************************************/ +COMPATIBLE_MACHINE = "tegra210" +# Allow wics to partition this image by providing boot files +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 = "" \ No newline at end of file diff --git a/meta-leda-tegra/recipes-sdv-distro/sdv-image-minimal.bbappend b/meta-leda-tegra/recipes-sdv-distro/sdv-image-minimal.bbappend new file mode 100644 index 0000000..847ffaa --- /dev/null +++ b/meta-leda-tegra/recipes-sdv-distro/sdv-image-minimal.bbappend @@ -0,0 +1,16 @@ +# /******************************************************************************** +# * 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 +# ********************************************************************************/ +COMPATIBLE_MACHINE = "tegra210" +# Allow wics to partition this image by providing boot files +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 = "" \ No newline at end of file diff --git a/meta-leda-tegra/recipes-sdv-distro/sdv-image-rescue.bbappend b/meta-leda-tegra/recipes-sdv-distro/sdv-image-rescue.bbappend new file mode 100644 index 0000000..847ffaa --- /dev/null +++ b/meta-leda-tegra/recipes-sdv-distro/sdv-image-rescue.bbappend @@ -0,0 +1,16 @@ +# /******************************************************************************** +# * 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 +# ********************************************************************************/ +COMPATIBLE_MACHINE = "tegra210" +# Allow wics to partition this image by providing boot files +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 = "" \ No newline at end of file From 77040f5c5241ab95ce7d1b2276363eb4ee36d51a Mon Sep 17 00:00:00 2001 From: Stoyan Lachev Date: Thu, 30 Mar 2023 10:05:59 +0000 Subject: [PATCH 3/7] Jetson Nano refactoring --- .gitignore | 3 +++ meta-leda-tegra/conf/layer.conf | 4 ++-- .../container-management_%.bbappend | 2 -- .../images/sdv-image-all.bbappend | 6 ++++++ .../images/sdv-image-data.bbappend | 2 ++ .../images/sdv-image-full.bbappend | 2 ++ .../images/sdv-image-minimal.bbappend | 2 ++ .../images/sdv-image-rescue.bbappend | 2 ++ .../recipes-sdv-distro/sdv-image-all.bbappend | 19 ------------------- .../sdv-image-data.bbappend | 16 ---------------- .../sdv-image-full.bbappend | 16 ---------------- .../sdv-image-minimal.bbappend | 16 ---------------- .../sdv-image-rescue.bbappend | 16 ---------------- 13 files changed, 19 insertions(+), 87 deletions(-) rename meta-leda-tegra/recipes-leda-kanto/{ => container-management}/container-management_%.bbappend (96%) create mode 100644 meta-leda-tegra/recipes-sdv-distro/images/sdv-image-all.bbappend create mode 100644 meta-leda-tegra/recipes-sdv-distro/images/sdv-image-data.bbappend create mode 100644 meta-leda-tegra/recipes-sdv-distro/images/sdv-image-full.bbappend create mode 100644 meta-leda-tegra/recipes-sdv-distro/images/sdv-image-minimal.bbappend create mode 100644 meta-leda-tegra/recipes-sdv-distro/images/sdv-image-rescue.bbappend delete mode 100644 meta-leda-tegra/recipes-sdv-distro/sdv-image-all.bbappend delete mode 100644 meta-leda-tegra/recipes-sdv-distro/sdv-image-data.bbappend delete mode 100644 meta-leda-tegra/recipes-sdv-distro/sdv-image-full.bbappend delete mode 100644 meta-leda-tegra/recipes-sdv-distro/sdv-image-minimal.bbappend delete mode 100644 meta-leda-tegra/recipes-sdv-distro/sdv-image-rescue.bbappend 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/meta-leda-tegra/conf/layer.conf b/meta-leda-tegra/conf/layer.conf index 3d95a9e..be3f8d9 100644 --- a/meta-leda-tegra/conf/layer.conf +++ b/meta-leda-tegra/conf/layer.conf @@ -14,8 +14,8 @@ BBPATH .= ":${LAYERDIR}" # We have recipes-* directories, add to BBFILES -BBFILES += "${LAYERDIR}/recipes-*/*.bb \ - ${LAYERDIR}/recipes-*/*.bbappend" +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" BBFILE_COLLECTIONS += "meta-leda-tegra" BBFILE_PATTERN_meta-leda-tegra = "^${LAYERDIR}/" diff --git a/meta-leda-tegra/recipes-leda-kanto/container-management_%.bbappend b/meta-leda-tegra/recipes-leda-kanto/container-management/container-management_%.bbappend similarity index 96% rename from meta-leda-tegra/recipes-leda-kanto/container-management_%.bbappend rename to meta-leda-tegra/recipes-leda-kanto/container-management/container-management_%.bbappend index 8d22c8b..6f0e7ed 100644 --- a/meta-leda-tegra/recipes-leda-kanto/container-management_%.bbappend +++ b/meta-leda-tegra/recipes-leda-kanto/container-management/container-management_%.bbappend @@ -11,8 +11,6 @@ # * SPDX-License-Identifier: Apache-2.0 # ********************************************************************************/ -COMPATIBLE_MACHINE = "tegra210" - 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" \ 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..0b25fda --- /dev/null +++ b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-all.bbappend @@ -0,0 +1,6 @@ +# 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 = "" \ 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..4bf1000 --- /dev/null +++ b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-data.bbappend @@ -0,0 +1,2 @@ +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 = "" \ 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..4bf1000 --- /dev/null +++ b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-full.bbappend @@ -0,0 +1,2 @@ +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 = "" \ 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..4bf1000 --- /dev/null +++ b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-minimal.bbappend @@ -0,0 +1,2 @@ +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 = "" \ 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..19af7cd --- /dev/null +++ b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-rescue.bbappend @@ -0,0 +1,2 @@ +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 = "" \ No newline at end of file diff --git a/meta-leda-tegra/recipes-sdv-distro/sdv-image-all.bbappend b/meta-leda-tegra/recipes-sdv-distro/sdv-image-all.bbappend deleted file mode 100644 index 61ea80d..0000000 --- a/meta-leda-tegra/recipes-sdv-distro/sdv-image-all.bbappend +++ /dev/null @@ -1,19 +0,0 @@ -# /******************************************************************************** -# * 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 -# ********************************************************************************/ -COMPATIBLE_MACHINE = "tegra210" -# Tegra needs a plain WIC file (not qcow2) to be flashed to SD-Card -WKS_FILE:jetson-nano-2gb-devkit ?= "jetson-sdcard.wks" -IMAGE_FSTYPES:jetson-nano-2gb-devkit = "tegraflash tar.gz wic.gz" -# Allow wics to partition this image by providing boot files -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 = "" \ No newline at end of file diff --git a/meta-leda-tegra/recipes-sdv-distro/sdv-image-data.bbappend b/meta-leda-tegra/recipes-sdv-distro/sdv-image-data.bbappend deleted file mode 100644 index 847ffaa..0000000 --- a/meta-leda-tegra/recipes-sdv-distro/sdv-image-data.bbappend +++ /dev/null @@ -1,16 +0,0 @@ -# /******************************************************************************** -# * 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 -# ********************************************************************************/ -COMPATIBLE_MACHINE = "tegra210" -# Allow wics to partition this image by providing boot files -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 = "" \ No newline at end of file diff --git a/meta-leda-tegra/recipes-sdv-distro/sdv-image-full.bbappend b/meta-leda-tegra/recipes-sdv-distro/sdv-image-full.bbappend deleted file mode 100644 index 847ffaa..0000000 --- a/meta-leda-tegra/recipes-sdv-distro/sdv-image-full.bbappend +++ /dev/null @@ -1,16 +0,0 @@ -# /******************************************************************************** -# * 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 -# ********************************************************************************/ -COMPATIBLE_MACHINE = "tegra210" -# Allow wics to partition this image by providing boot files -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 = "" \ No newline at end of file diff --git a/meta-leda-tegra/recipes-sdv-distro/sdv-image-minimal.bbappend b/meta-leda-tegra/recipes-sdv-distro/sdv-image-minimal.bbappend deleted file mode 100644 index 847ffaa..0000000 --- a/meta-leda-tegra/recipes-sdv-distro/sdv-image-minimal.bbappend +++ /dev/null @@ -1,16 +0,0 @@ -# /******************************************************************************** -# * 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 -# ********************************************************************************/ -COMPATIBLE_MACHINE = "tegra210" -# Allow wics to partition this image by providing boot files -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 = "" \ No newline at end of file diff --git a/meta-leda-tegra/recipes-sdv-distro/sdv-image-rescue.bbappend b/meta-leda-tegra/recipes-sdv-distro/sdv-image-rescue.bbappend deleted file mode 100644 index 847ffaa..0000000 --- a/meta-leda-tegra/recipes-sdv-distro/sdv-image-rescue.bbappend +++ /dev/null @@ -1,16 +0,0 @@ -# /******************************************************************************** -# * 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 -# ********************************************************************************/ -COMPATIBLE_MACHINE = "tegra210" -# Allow wics to partition this image by providing boot files -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 = "" \ No newline at end of file From f7ccbe79f37ca451570af63f3cc03c35a5d8c442 Mon Sep 17 00:00:00 2001 From: Stoyan Lachev Date: Thu, 30 Mar 2023 10:58:21 +0000 Subject: [PATCH 4/7] Removed growdisk --- .../recipes-sdv-distro/growdisk/files/LICENSE | 277 ------------------ .../growdisk/files/growdisk/growdisk.service | 12 - .../growdisk/files/growdisk/growdisk.sh | 29 -- .../growdisk/sdv-growdisk_0.1.bb | 43 --- 4 files changed, 361 deletions(-) delete mode 100644 meta-leda-tegra/recipes-sdv-distro/growdisk/files/LICENSE delete mode 100644 meta-leda-tegra/recipes-sdv-distro/growdisk/files/growdisk/growdisk.service delete mode 100644 meta-leda-tegra/recipes-sdv-distro/growdisk/files/growdisk/growdisk.sh delete mode 100644 meta-leda-tegra/recipes-sdv-distro/growdisk/sdv-growdisk_0.1.bb diff --git a/meta-leda-tegra/recipes-sdv-distro/growdisk/files/LICENSE b/meta-leda-tegra/recipes-sdv-distro/growdisk/files/LICENSE deleted file mode 100644 index e23ece2..0000000 --- a/meta-leda-tegra/recipes-sdv-distro/growdisk/files/LICENSE +++ /dev/null @@ -1,277 +0,0 @@ -Eclipse Public License - v 2.0 - - THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE - PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION - OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. - -1. DEFINITIONS - -"Contribution" means: - - a) in the case of the initial Contributor, the initial content - Distributed under this Agreement, and - - b) in the case of each subsequent Contributor: - i) changes to the Program, and - ii) additions to the Program; - where such changes and/or additions to the Program originate from - and are Distributed by that particular Contributor. A Contribution - "originates" from a Contributor if it was added to the Program by - such Contributor itself or anyone acting on such Contributor's behalf. - Contributions do not include changes or additions to the Program that - are not Modified Works. - -"Contributor" means any person or entity that Distributes the Program. - -"Licensed Patents" mean patent claims licensable by a Contributor which -are necessarily infringed by the use or sale of its Contribution alone -or when combined with the Program. - -"Program" means the Contributions Distributed in accordance with this -Agreement. - -"Recipient" means anyone who receives the Program under this Agreement -or any Secondary License (as applicable), including Contributors. - -"Derivative Works" shall mean any work, whether in Source Code or other -form, that is based on (or derived from) the Program and for which the -editorial revisions, annotations, elaborations, or other modifications -represent, as a whole, an original work of authorship. - -"Modified Works" shall mean any work in Source Code or other form that -results from an addition to, deletion from, or modification of the -contents of the Program, including, for purposes of clarity any new file -in Source Code form that contains any contents of the Program. Modified -Works shall not include works that contain only declarations, -interfaces, types, classes, structures, or files of the Program solely -in each case in order to link to, bind by name, or subclass the Program -or Modified Works thereof. - -"Distribute" means the acts of a) distributing or b) making available -in any manner that enables the transfer of a copy. - -"Source Code" means the form of a Program preferred for making -modifications, including but not limited to software source code, -documentation source, and configuration files. - -"Secondary License" means either the GNU General Public License, -Version 2.0, or any later versions of that license, including any -exceptions or additional permissions as identified by the initial -Contributor. - -2. GRANT OF RIGHTS - - a) Subject to the terms of this Agreement, each Contributor hereby - grants Recipient a non-exclusive, worldwide, royalty-free copyright - license to reproduce, prepare Derivative Works of, publicly display, - publicly perform, Distribute and sublicense the Contribution of such - Contributor, if any, and such Derivative Works. - - b) Subject to the terms of this Agreement, each Contributor hereby - grants Recipient a non-exclusive, worldwide, royalty-free patent - license under Licensed Patents to make, use, sell, offer to sell, - import and otherwise transfer the Contribution of such Contributor, - if any, in Source Code or other form. This patent license shall - apply to the combination of the Contribution and the Program if, at - the time the Contribution is added by the Contributor, such addition - of the Contribution causes such combination to be covered by the - Licensed Patents. The patent license shall not apply to any other - combinations which include the Contribution. No hardware per se is - licensed hereunder. - - c) Recipient understands that although each Contributor grants the - licenses to its Contributions set forth herein, no assurances are - provided by any Contributor that the Program does not infringe the - patent or other intellectual property rights of any other entity. - Each Contributor disclaims any liability to Recipient for claims - brought by any other entity based on infringement of intellectual - property rights or otherwise. As a condition to exercising the - rights and licenses granted hereunder, each Recipient hereby - assumes sole responsibility to secure any other intellectual - property rights needed, if any. For example, if a third party - patent license is required to allow Recipient to Distribute the - Program, it is Recipient's responsibility to acquire that license - before distributing the Program. - - d) Each Contributor represents that to its knowledge it has - sufficient copyright rights in its Contribution, if any, to grant - the copyright license set forth in this Agreement. - - e) Notwithstanding the terms of any Secondary License, no - Contributor makes additional grants to any Recipient (other than - those set forth in this Agreement) as a result of such Recipient's - receipt of the Program under the terms of a Secondary License - (if permitted under the terms of Section 3). - -3. REQUIREMENTS - -3.1 If a Contributor Distributes the Program in any form, then: - - a) the Program must also be made available as Source Code, in - accordance with section 3.2, and the Contributor must accompany - the Program with a statement that the Source Code for the Program - is available under this Agreement, and informs Recipients how to - obtain it in a reasonable manner on or through a medium customarily - used for software exchange; and - - b) the Contributor may Distribute the Program under a license - different than this Agreement, provided that such license: - i) effectively disclaims on behalf of all other Contributors all - warranties and conditions, express and implied, including - warranties or conditions of title and non-infringement, and - implied warranties or conditions of merchantability and fitness - for a particular purpose; - - ii) effectively excludes on behalf of all other Contributors all - liability for damages, including direct, indirect, special, - incidental and consequential damages, such as lost profits; - - iii) does not attempt to limit or alter the recipients' rights - in the Source Code under section 3.2; and - - iv) requires any subsequent distribution of the Program by any - party to be under a license that satisfies the requirements - of this section 3. - -3.2 When the Program is Distributed as Source Code: - - a) it must be made available under this Agreement, or if the - Program (i) is combined with other material in a separate file or - files made available under a Secondary License, and (ii) the initial - Contributor attached to the Source Code the notice described in - Exhibit A of this Agreement, then the Program may be made available - under the terms of such Secondary Licenses, and - - b) a copy of this Agreement must be included with each copy of - the Program. - -3.3 Contributors may not remove or alter any copyright, patent, -trademark, attribution notices, disclaimers of warranty, or limitations -of liability ("notices") contained within the Program from any copy of -the Program which they Distribute, provided that Contributors may add -their own appropriate notices. - -4. COMMERCIAL DISTRIBUTION - -Commercial distributors of software may accept certain responsibilities -with respect to end users, business partners and the like. While this -license is intended to facilitate the commercial use of the Program, -the Contributor who includes the Program in a commercial product -offering should do so in a manner which does not create potential -liability for other Contributors. Therefore, if a Contributor includes -the Program in a commercial product offering, such Contributor -("Commercial Contributor") hereby agrees to defend and indemnify every -other Contributor ("Indemnified Contributor") against any losses, -damages and costs (collectively "Losses") arising from claims, lawsuits -and other legal actions brought by a third party against the Indemnified -Contributor to the extent caused by the acts or omissions of such -Commercial Contributor in connection with its distribution of the Program -in a commercial product offering. The obligations in this section do not -apply to any claims or Losses relating to any actual or alleged -intellectual property infringement. In order to qualify, an Indemnified -Contributor must: a) promptly notify the Commercial Contributor in -writing of such claim, and b) allow the Commercial Contributor to control, -and cooperate with the Commercial Contributor in, the defense and any -related settlement negotiations. The Indemnified Contributor may -participate in any such claim at its own expense. - -For example, a Contributor might include the Program in a commercial -product offering, Product X. That Contributor is then a Commercial -Contributor. If that Commercial Contributor then makes performance -claims, or offers warranties related to Product X, those performance -claims and warranties are such Commercial Contributor's responsibility -alone. Under this section, the Commercial Contributor would have to -defend claims against the other Contributors related to those performance -claims and warranties, and if a court requires any other Contributor to -pay any damages as a result, the Commercial Contributor must pay -those damages. - -5. NO WARRANTY - -EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT -PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN "AS IS" -BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR -IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF -TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR -PURPOSE. Each Recipient is solely responsible for determining the -appropriateness of using and distributing the Program and assumes all -risks associated with its exercise of rights under this Agreement, -including but not limited to the risks and costs of program errors, -compliance with applicable laws, damage to or loss of data, programs -or equipment, and unavailability or interruption of operations. - -6. DISCLAIMER OF LIABILITY - -EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT -PERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS -SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST -PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE -EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - -7. GENERAL - -If any provision of this Agreement is invalid or unenforceable under -applicable law, it shall not affect the validity or enforceability of -the remainder of the terms of this Agreement, and without further -action by the parties hereto, such provision shall be reformed to the -minimum extent necessary to make such provision valid and enforceable. - -If Recipient institutes patent litigation against any entity -(including a cross-claim or counterclaim in a lawsuit) alleging that the -Program itself (excluding combinations of the Program with other software -or hardware) infringes such Recipient's patent(s), then such Recipient's -rights granted under Section 2(b) shall terminate as of the date such -litigation is filed. - -All Recipient's rights under this Agreement shall terminate if it -fails to comply with any of the material terms or conditions of this -Agreement and does not cure such failure in a reasonable period of -time after becoming aware of such noncompliance. If all Recipient's -rights under this Agreement terminate, Recipient agrees to cease use -and distribution of the Program as soon as reasonably practicable. -However, Recipient's obligations under this Agreement and any licenses -granted by Recipient relating to the Program shall continue and survive. - -Everyone is permitted to copy and distribute copies of this Agreement, -but in order to avoid inconsistency the Agreement is copyrighted and -may only be modified in the following manner. The Agreement Steward -reserves the right to publish new versions (including revisions) of -this Agreement from time to time. No one other than the Agreement -Steward has the right to modify this Agreement. The Eclipse Foundation -is the initial Agreement Steward. The Eclipse Foundation may assign the -responsibility to serve as the Agreement Steward to a suitable separate -entity. Each new version of the Agreement will be given a distinguishing -version number. The Program (including Contributions) may always be -Distributed subject to the version of the Agreement under which it was -received. In addition, after a new version of the Agreement is published, -Contributor may elect to Distribute the Program (including its -Contributions) under the new version. - -Except as expressly stated in Sections 2(a) and 2(b) above, Recipient -receives no rights or licenses to the intellectual property of any -Contributor under this Agreement, whether expressly, by implication, -estoppel or otherwise. All rights in the Program not expressly granted -under this Agreement are reserved. Nothing in this Agreement is intended -to be enforceable by any entity that is not a Contributor or Recipient. -No third-party beneficiary rights are created under this Agreement. - -Exhibit A - Form of Secondary Licenses Notice - -"This Source Code may also be made available under the following -Secondary Licenses when the conditions for such availability set forth -in the Eclipse Public License, v. 2.0 are satisfied: {name license(s), -version(s), and exceptions or additional permissions here}." - - Simply including a copy of this Agreement, including this Exhibit A - is not sufficient to license the Source Code under Secondary Licenses. - - If it is not possible or desirable to put the notice in a particular - file, then You may include the notice in a location (such as a LICENSE - file in a relevant directory) where a recipient would be likely to - look for such a notice. - - You may add additional accurate notices of copyright ownership. \ No newline at end of file diff --git a/meta-leda-tegra/recipes-sdv-distro/growdisk/files/growdisk/growdisk.service b/meta-leda-tegra/recipes-sdv-distro/growdisk/files/growdisk/growdisk.service deleted file mode 100644 index 1cc9b43..0000000 --- a/meta-leda-tegra/recipes-sdv-distro/growdisk/files/growdisk/growdisk.service +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=Grow SD-Card disk space -DefaultDependencies=no -Before=data.mount - -[Service] -Type=oneshot -RemainAfterExit=yes -ExecStart=/usr/sbin/growdisk.sh - -[Install] -WantedBy=data.mount diff --git a/meta-leda-tegra/recipes-sdv-distro/growdisk/files/growdisk/growdisk.sh b/meta-leda-tegra/recipes-sdv-distro/growdisk/files/growdisk/growdisk.sh deleted file mode 100644 index a79a47a..0000000 --- a/meta-leda-tegra/recipes-sdv-distro/growdisk/files/growdisk/growdisk.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh -# /******************************************************************************** -# * 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 Eclipse Public License 2.0 which is available at -# * http://www.eclipse.org/legal/epl-2.0 -# * -# * SPDX-License-Identifier: EPL-2.0 -# ********************************************************************************/ -# -echo "Enlarging SD Card partition" - -DEVICE=$(lsblk -l | grep part | tail -1 | awk '{print $1}' | sed 's/..$//') -# Last partition on our image is supposed to be "6" -LAST_PARTITION_NUMBER=$(lsblk -l | grep part | wc -l) -PARTITION="/dev/${DEVICE}p${LAST_PARTITION_NUMBER}" - -sgdisk /dev/$DEVICE --move-second-header - -e2fsck -f -y $PARTITION -echo ',+' | sfdisk /dev/$DEVICE -N $LAST_PARTITION_NUMBER --force -e2fsck -f -y $PARTITION -resize2fs $PARTITION -e2fsck -f -y $PARTITION -sfdisk -Vl /dev/$DEVICE diff --git a/meta-leda-tegra/recipes-sdv-distro/growdisk/sdv-growdisk_0.1.bb b/meta-leda-tegra/recipes-sdv-distro/growdisk/sdv-growdisk_0.1.bb deleted file mode 100644 index ff2dcf9..0000000 --- a/meta-leda-tegra/recipes-sdv-distro/growdisk/sdv-growdisk_0.1.bb +++ /dev/null @@ -1,43 +0,0 @@ -# /******************************************************************************** -# * 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 -# ********************************************************************************/ - -SUMMARY = "Grow disk space on SD Card " -DESCRIPTION = "Script to enlarge disk partition to size of SD Card" -LICENSE = "Apache-2.0" - -inherit systemd features_check - -SRC_URI = " \ - file://LICENSE \ - file://growdisk/ \ -" - -LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=d9fc0efef5228704e7f5b37f27192723" - -NATIVE_SYSTEMD_SUPPORT = "1" -SYSTEMD_PACKAGES = "${PN}" -SYSTEMD_SERVICE:${PN} = "growdisk.service" -SYSTEMD_AUTO_ENABLE:${PN} = "enable" - -FILES:${PN} += "${sbindir}/growdisk.sh \ - ${systemd_system_unitdir}/growdisk.service" - -REQUIRED_DISTRO_FEATURES = "systemd" - -do_install:append () { - install -d ${D}/${sbindir} - install -m 0755 ${WORKDIR}/growdisk/growdisk.sh ${D}/${sbindir} - - install -d ${D}${systemd_unitdir}/system/ - install -m 0644 ${WORKDIR}/growdisk/growdisk.service ${D}${systemd_system_unitdir} -} From 9b17b1aad3e81f51c0e7168abd1bab7edc34bdac Mon Sep 17 00:00:00 2001 From: Stoyan Lachev Date: Thu, 30 Mar 2023 14:25:20 +0300 Subject: [PATCH 5/7] Update sdv-image-rescue.bbappend --- .../recipes-sdv-distro/images/sdv-image-rescue.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 index 19af7cd..9ecee33 100644 --- a/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-rescue.bbappend +++ b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-rescue.bbappend @@ -1,2 +1,2 @@ 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 = "" \ No newline at end of file +INCOMPATIBLE_LICENSE:jetson-nano-2gb-devkit = "" From 944eb205847e367019fb4cddcb98b3c88621569e Mon Sep 17 00:00:00 2001 From: Stoyan Lachev Date: Mon, 3 Apr 2023 09:36:25 +0000 Subject: [PATCH 6/7] Added jetson-nano support --- ....yaml => leda-jetson-nano-2gb-devkit.yaml} | 0 kas/leda-jetson-nano-devkit.yaml | 35 +++++++++++++++++++ .../container-management_%.bbappend | 6 +++- .../images/sdv-image-all.bbappend | 10 +++++- .../images/sdv-image-data.bbappend | 6 +++- .../images/sdv-image-full.bbappend | 6 +++- .../images/sdv-image-minimal.bbappend | 6 +++- .../images/sdv-image-rescue.bbappend | 4 +++ 8 files changed, 68 insertions(+), 5 deletions(-) rename kas/{leda-tegra.yaml => leda-jetson-nano-2gb-devkit.yaml} (100%) create mode 100644 kas/leda-jetson-nano-devkit.yaml diff --git a/kas/leda-tegra.yaml b/kas/leda-jetson-nano-2gb-devkit.yaml similarity index 100% rename from kas/leda-tegra.yaml rename to kas/leda-jetson-nano-2gb-devkit.yaml 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/recipes-leda-kanto/container-management/container-management_%.bbappend b/meta-leda-tegra/recipes-leda-kanto/container-management/container-management_%.bbappend index 6f0e7ed..f751a22 100644 --- a/meta-leda-tegra/recipes-leda-kanto/container-management/container-management_%.bbappend +++ b/meta-leda-tegra/recipes-leda-kanto/container-management/container-management_%.bbappend @@ -13,4 +13,8 @@ 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" \ No newline at end of file +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 index 0b25fda..ccb4639 100644 --- a/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-all.bbappend +++ b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-all.bbappend @@ -3,4 +3,12 @@ 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 = "" \ No newline at end of file +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 index 4bf1000..8abad0a 100644 --- a/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-data.bbappend +++ b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-data.bbappend @@ -1,2 +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 = "" \ No newline at end of file +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 index 4bf1000..8abad0a 100644 --- a/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-full.bbappend +++ b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-full.bbappend @@ -1,2 +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 = "" \ No newline at end of file +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 index 4bf1000..8abad0a 100644 --- a/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-minimal.bbappend +++ b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-minimal.bbappend @@ -1,2 +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 = "" \ No newline at end of file +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 index 9ecee33..8abad0a 100644 --- a/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-rescue.bbappend +++ b/meta-leda-tegra/recipes-sdv-distro/images/sdv-image-rescue.bbappend @@ -1,2 +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 From 44556ad1ba7f6c1e35e5e7a3e9c557034b847ddf Mon Sep 17 00:00:00 2001 From: Stoyan Lachev Date: Tue, 30 May 2023 13:04:46 +0000 Subject: [PATCH 7/7] Changed to meta-leda-fork:racer --- kas/common-kirkstone.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: