From 4e336a8360fa071248167253684a8d1bfac94fde Mon Sep 17 00:00:00 2001 From: Cliff Brake Date: Mon, 22 Jan 2024 21:31:24 -0500 Subject: [PATCH 1/4] add toradex layers --- .gitmodules | 6 ++++++ sources/meta-toradex-bsp-common | 1 + sources/meta-toradex-ti | 1 + 3 files changed, 8 insertions(+) create mode 160000 sources/meta-toradex-bsp-common create mode 160000 sources/meta-toradex-ti diff --git a/.gitmodules b/.gitmodules index 67d58ffc9..b47c08341 100644 --- a/.gitmodules +++ b/.gitmodules @@ -66,3 +66,9 @@ path = sources/meta-tegra url = https://github.com/YoeDistro/meta-tegra branch = master +[submodule "sources/meta-toradex-bsp-common"] + path = sources/meta-toradex-bsp-common + url = https://git.toradex.com/meta-toradex-bsp-common.git +[submodule "sources/meta-toradex-ti"] + path = sources/meta-toradex-ti + url = https://git.toradex.com/meta-toradex-ti.git diff --git a/sources/meta-toradex-bsp-common b/sources/meta-toradex-bsp-common new file mode 160000 index 000000000..5c19725fc --- /dev/null +++ b/sources/meta-toradex-bsp-common @@ -0,0 +1 @@ +Subproject commit 5c19725fcd25e5f3a4c0f680ad055446969504a5 diff --git a/sources/meta-toradex-ti b/sources/meta-toradex-ti new file mode 160000 index 000000000..4a790c636 --- /dev/null +++ b/sources/meta-toradex-ti @@ -0,0 +1 @@ +Subproject commit 4a790c6365dc1b6bad18423e2b5865b9544985a6 From 59d3b8110b3c20c9fc797eab1f24fe545a3fac48 Mon Sep 17 00:00:00 2001 From: Cliff Brake Date: Mon, 22 Jan 2024 21:31:37 -0500 Subject: [PATCH 2/4] start of verdin-am62 conf --- conf/projects/toradex-verdin-am62/config.conf | 41 +++++++++++++++++++ conf/projects/toradex-verdin-am62/layers.conf | 30 ++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 conf/projects/toradex-verdin-am62/config.conf create mode 100644 conf/projects/toradex-verdin-am62/layers.conf diff --git a/conf/projects/toradex-verdin-am62/config.conf b/conf/projects/toradex-verdin-am62/config.conf new file mode 100644 index 000000000..3eb7ab87b --- /dev/null +++ b/conf/projects/toradex-verdin-am62/config.conf @@ -0,0 +1,41 @@ +MACHINE = "verdin-am62" +DISTRO = "yoe" +# "yoe---" +YOE_PROFILE = "yoe-glibc-systemd-wayland" + +# Yoe Updater Supported Machines ( RPI, beaglebone, C4, SAMA5D27 for now ) +INITRAMFS_IMAGE_BUNDLE = "1" +# Use yoe-initramfs-image for initramfs +INITRAMFS_IMAGE = "yoe-initramfs-image" +# Use kernel+initramfs image to boot +IMAGE_BOOT_FILES:remove = "${KERNEL_IMAGETYPE}" +IMAGE_BOOT_FILES:append = " ${KERNEL_IMAGETYPE}-initramfs-${MACHINE}.bin;${KERNEL_IMAGETYPE}" +# Use default Device Tree ( LVDS ) + +# Needed for Running bitbake -ctestimage +TEST_TARGET_IP = "10.0.0.36" +TEST_SERVER_IP = "10.0.0.13" +TEST_TARGET = "simpleremote" + +IMG_VERSION = "0.0.1" +##################################################################### +# add project specific configuration below this line +##################################################################### +#require conf/distro/include/lto.inc +#DISTRO_FEATURES:append = " lto" + +# Setting a user/password in system +#INHERIT += "extrausers" +#EXTRA_USERS_PARAMS += "\ +# useradd admin; \ +# usermod -p '$(openssl passwd -6 myrootpassword)' admin; \ +# usermod -a -G adm admin; \ +# usermod -a -G video admin; \ +# usermod -a -G audio admin; \ +# usermod -a -G systemd-journal admin; \ +#" +#EXTRA_IMAGE_FEATURES:remove = "debug-tweaks" + +# For running oe-selftest uncomment below lines +#USER_CLASSES:remove = "buildhistory" +#PRSERV_HOST = "" diff --git a/conf/projects/toradex-verdin-am62/layers.conf b/conf/projects/toradex-verdin-am62/layers.conf new file mode 100644 index 000000000..00e5abd97 --- /dev/null +++ b/conf/projects/toradex-verdin-am62/layers.conf @@ -0,0 +1,30 @@ +BBPATH = "${TOPDIR}" +BBFILES ?= "" + +BBLAYERS = "\ + ${TOPDIR}/sources/meta-yoe \ + \ + ${TOPDIR}/sources/meta-toradex-bsp-common \ + ${TOPDIR}/sources/meta-toradex-ti \ + ${TOPDIR}/sources/meta-ti/meta-ti-bsp \ + ${TOPDIR}/sources/meta-ti/meta-ti-extras \ + ${TOPDIR}/sources/meta-arm/meta-arm \ + ${TOPDIR}/sources/meta-arm/meta-arm-toolchain \ + \ + ${TOPDIR}/sources/meta-clang \ + ${TOPDIR}/sources/meta-elm-binary \ + ${TOPDIR}/sources/meta-qt6 \ + \ + ${TOPDIR}/sources/meta-openembedded/meta-filesystems \ + ${TOPDIR}/sources/meta-openembedded/meta-gnome \ + ${TOPDIR}/sources/meta-openembedded/meta-initramfs \ + ${TOPDIR}/sources/meta-openembedded/meta-multimedia \ + ${TOPDIR}/sources/meta-openembedded/meta-networking \ + ${TOPDIR}/sources/meta-openembedded/meta-oe \ + ${TOPDIR}/sources/meta-openembedded/meta-perl \ + ${TOPDIR}/sources/meta-openembedded/meta-python \ + ${TOPDIR}/sources/meta-openembedded/meta-webserver \ + ${TOPDIR}/sources/meta-openembedded/meta-xfce \ + \ + ${TOPDIR}/sources/poky/meta \ +" From 316469214cba9fbae26b65a398fe635d5771fdde Mon Sep 17 00:00:00 2001 From: Cliff Brake Date: Tue, 23 Jan 2024 10:12:56 -0500 Subject: [PATCH 3/4] remove initramfs stuff for now --- conf/projects/toradex-verdin-am62/config.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/projects/toradex-verdin-am62/config.conf b/conf/projects/toradex-verdin-am62/config.conf index 3eb7ab87b..81f2327b2 100644 --- a/conf/projects/toradex-verdin-am62/config.conf +++ b/conf/projects/toradex-verdin-am62/config.conf @@ -4,12 +4,12 @@ DISTRO = "yoe" YOE_PROFILE = "yoe-glibc-systemd-wayland" # Yoe Updater Supported Machines ( RPI, beaglebone, C4, SAMA5D27 for now ) -INITRAMFS_IMAGE_BUNDLE = "1" +#INITRAMFS_IMAGE_BUNDLE = "1" # Use yoe-initramfs-image for initramfs -INITRAMFS_IMAGE = "yoe-initramfs-image" +#INITRAMFS_IMAGE = "yoe-initramfs-image" # Use kernel+initramfs image to boot -IMAGE_BOOT_FILES:remove = "${KERNEL_IMAGETYPE}" -IMAGE_BOOT_FILES:append = " ${KERNEL_IMAGETYPE}-initramfs-${MACHINE}.bin;${KERNEL_IMAGETYPE}" +#IMAGE_BOOT_FILES:remove = "${KERNEL_IMAGETYPE}" +#IMAGE_BOOT_FILES:append = " ${KERNEL_IMAGETYPE}-initramfs-${MACHINE}.bin;${KERNEL_IMAGETYPE}" # Use default Device Tree ( LVDS ) # Needed for Running bitbake -ctestimage From 72b0715fdc57454656b7fb12412b54b5cfce949a Mon Sep 17 00:00:00 2001 From: Cliff Brake Date: Tue, 23 Jan 2024 10:19:47 -0500 Subject: [PATCH 4/4] use gcc for trusted firmware --- conf/projects/toradex-verdin-am62/config.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/projects/toradex-verdin-am62/config.conf b/conf/projects/toradex-verdin-am62/config.conf index 81f2327b2..a681d5dd6 100644 --- a/conf/projects/toradex-verdin-am62/config.conf +++ b/conf/projects/toradex-verdin-am62/config.conf @@ -12,6 +12,8 @@ YOE_PROFILE = "yoe-glibc-systemd-wayland" #IMAGE_BOOT_FILES:append = " ${KERNEL_IMAGETYPE}-initramfs-${MACHINE}.bin;${KERNEL_IMAGETYPE}" # Use default Device Tree ( LVDS ) +TOOLCHAIN:pn-trusted-firmware-a = "gcc" + # Needed for Running bitbake -ctestimage TEST_TARGET_IP = "10.0.0.36" TEST_SERVER_IP = "10.0.0.13"