From b07b90b7887444e8448d7cbf6385e6fd7a11a8be Mon Sep 17 00:00:00 2001
From: Robert Nelson <robertcnelson@gmail.com>
Date: Tue, 25 Jul 2023 18:24:46 -0500
Subject: [PATCH] bb-u-boot-beagleplay-mainline (2023.07.20230725.1)

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
---
 .../debian/beagleplay-emmc-to-microsd         |  8 +++
 .../debian/beagleplay-emmc-to-microsd-w-swap  |  9 +++
 .../debian/beagleplay-microsd-to-emmc         |  9 +++
 .../debian/beagleplay-microsd-to-emmc-w-swap  | 10 ++++
 .../suite/bookworm/debian/changelog           |  6 ++
 .../suite/bookworm/debian/compat              |  1 +
 .../suite/bookworm/debian/control             | 30 ++++++++++
 .../bookworm/debian/emmc-extlinux-w-swap.conf |  6 ++
 .../suite/bookworm/debian/emmc-extlinux.conf  |  6 ++
 .../suite/bookworm/debian/install             | 18 ++++++
 .../suite/bookworm/debian/install-emmc.sh     | 25 ++++++++
 .../suite/bookworm/debian/install-microsd.sh  | 18 ++++++
 .../suite/bookworm/debian/install.sh          | 14 +++++
 .../debian/microsd-extlinux-w-swap.conf       |  6 ++
 .../bookworm/debian/microsd-extlinux.conf     |  6 ++
 .../suite/bookworm/debian/rules               | 57 +++++++++++++++++++
 .../suite/bullseye/debian/changelog           |  4 +-
 .../jammy/debian/beagleplay-emmc-to-microsd   |  8 +++
 .../debian/beagleplay-emmc-to-microsd-w-swap  |  9 +++
 .../jammy/debian/beagleplay-microsd-to-emmc   |  9 +++
 .../debian/beagleplay-microsd-to-emmc-w-swap  | 10 ++++
 .../suite/jammy/debian/changelog              |  6 ++
 .../suite/jammy/debian/compat                 |  1 +
 .../suite/jammy/debian/control                | 30 ++++++++++
 .../jammy/debian/emmc-extlinux-w-swap.conf    |  6 ++
 .../suite/jammy/debian/emmc-extlinux.conf     |  6 ++
 .../suite/jammy/debian/install                | 18 ++++++
 .../suite/jammy/debian/install-emmc.sh        | 25 ++++++++
 .../suite/jammy/debian/install-microsd.sh     | 18 ++++++
 .../suite/jammy/debian/install.sh             | 14 +++++
 .../jammy/debian/microsd-extlinux-w-swap.conf |  6 ++
 .../suite/jammy/debian/microsd-extlinux.conf  |  6 ++
 .../suite/jammy/debian/rules                  | 57 +++++++++++++++++++
 .../trixie/debian/beagleplay-emmc-to-microsd  |  8 +++
 .../debian/beagleplay-emmc-to-microsd-w-swap  |  9 +++
 .../trixie/debian/beagleplay-microsd-to-emmc  |  9 +++
 .../debian/beagleplay-microsd-to-emmc-w-swap  | 10 ++++
 .../suite/trixie/debian/changelog             |  6 ++
 .../suite/trixie/debian/compat                |  1 +
 .../suite/trixie/debian/control               | 30 ++++++++++
 .../trixie/debian/emmc-extlinux-w-swap.conf   |  6 ++
 .../suite/trixie/debian/emmc-extlinux.conf    |  6 ++
 .../suite/trixie/debian/install               | 18 ++++++
 .../suite/trixie/debian/install-emmc.sh       | 25 ++++++++
 .../suite/trixie/debian/install-microsd.sh    | 18 ++++++
 .../suite/trixie/debian/install.sh            | 14 +++++
 .../debian/microsd-extlinux-w-swap.conf       |  6 ++
 .../suite/trixie/debian/microsd-extlinux.conf |  6 ++
 .../suite/trixie/debian/rules                 | 57 +++++++++++++++++++
 bb-u-boot-beagleplay-mainline/version.sh      |  5 +-
 50 files changed, 693 insertions(+), 3 deletions(-)
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/bookworm/debian/beagleplay-emmc-to-microsd
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/bookworm/debian/beagleplay-emmc-to-microsd-w-swap
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/bookworm/debian/beagleplay-microsd-to-emmc
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/bookworm/debian/beagleplay-microsd-to-emmc-w-swap
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/bookworm/debian/changelog
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/bookworm/debian/compat
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/bookworm/debian/control
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/bookworm/debian/emmc-extlinux-w-swap.conf
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/bookworm/debian/emmc-extlinux.conf
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/bookworm/debian/install
 create mode 100755 bb-u-boot-beagleplay-mainline/suite/bookworm/debian/install-emmc.sh
 create mode 100755 bb-u-boot-beagleplay-mainline/suite/bookworm/debian/install-microsd.sh
 create mode 100755 bb-u-boot-beagleplay-mainline/suite/bookworm/debian/install.sh
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/bookworm/debian/microsd-extlinux-w-swap.conf
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/bookworm/debian/microsd-extlinux.conf
 create mode 100755 bb-u-boot-beagleplay-mainline/suite/bookworm/debian/rules
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/jammy/debian/beagleplay-emmc-to-microsd
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/jammy/debian/beagleplay-emmc-to-microsd-w-swap
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/jammy/debian/beagleplay-microsd-to-emmc
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/jammy/debian/beagleplay-microsd-to-emmc-w-swap
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/jammy/debian/changelog
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/jammy/debian/compat
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/jammy/debian/control
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/jammy/debian/emmc-extlinux-w-swap.conf
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/jammy/debian/emmc-extlinux.conf
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/jammy/debian/install
 create mode 100755 bb-u-boot-beagleplay-mainline/suite/jammy/debian/install-emmc.sh
 create mode 100755 bb-u-boot-beagleplay-mainline/suite/jammy/debian/install-microsd.sh
 create mode 100755 bb-u-boot-beagleplay-mainline/suite/jammy/debian/install.sh
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/jammy/debian/microsd-extlinux-w-swap.conf
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/jammy/debian/microsd-extlinux.conf
 create mode 100755 bb-u-boot-beagleplay-mainline/suite/jammy/debian/rules
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/trixie/debian/beagleplay-emmc-to-microsd
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/trixie/debian/beagleplay-emmc-to-microsd-w-swap
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/trixie/debian/beagleplay-microsd-to-emmc
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/trixie/debian/beagleplay-microsd-to-emmc-w-swap
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/trixie/debian/changelog
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/trixie/debian/compat
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/trixie/debian/control
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/trixie/debian/emmc-extlinux-w-swap.conf
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/trixie/debian/emmc-extlinux.conf
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/trixie/debian/install
 create mode 100755 bb-u-boot-beagleplay-mainline/suite/trixie/debian/install-emmc.sh
 create mode 100755 bb-u-boot-beagleplay-mainline/suite/trixie/debian/install-microsd.sh
 create mode 100755 bb-u-boot-beagleplay-mainline/suite/trixie/debian/install.sh
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/trixie/debian/microsd-extlinux-w-swap.conf
 create mode 100644 bb-u-boot-beagleplay-mainline/suite/trixie/debian/microsd-extlinux.conf
 create mode 100755 bb-u-boot-beagleplay-mainline/suite/trixie/debian/rules

diff --git a/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/beagleplay-emmc-to-microsd b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/beagleplay-emmc-to-microsd
new file mode 100644
index 000000000..97ee3967c
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/beagleplay-emmc-to-microsd
@@ -0,0 +1,8 @@
+source=/dev/mmcblk0
+destination=/dev/mmcblk1
+rfs_partition=dual
+rfs_boot_startmb=1
+rfs_boot_size_mb=128
+flash_back=/opt/u-boot/bb-u-boot-beagleplay-mainline/beagleplay-microsd-to-emmc
+extlinux=/opt/u-boot/bb-u-boot-beagleplay-mainline/microsd-extlinux.conf
+flash_cc1352p=enable
diff --git a/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/beagleplay-emmc-to-microsd-w-swap b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/beagleplay-emmc-to-microsd-w-swap
new file mode 100644
index 000000000..46955b2f7
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/beagleplay-emmc-to-microsd-w-swap
@@ -0,0 +1,9 @@
+source=/dev/mmcblk0
+destination=/dev/mmcblk1
+rfs_partition=dual
+rfs_boot_startmb=1
+rfs_boot_size_mb=128
+rfs_swap_size_mb=2048
+flash_back=/opt/u-boot/bb-u-boot-beagleplay-mainline/beagleplay-microsd-to-emmc-w-swap
+extlinux=/opt/u-boot/bb-u-boot-beagleplay-mainline/microsd-extlinux-w-swap.conf
+flash_cc1352p=enable
diff --git a/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/beagleplay-microsd-to-emmc b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/beagleplay-microsd-to-emmc
new file mode 100644
index 000000000..8c782fac3
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/beagleplay-microsd-to-emmc
@@ -0,0 +1,9 @@
+source=/dev/mmcblk1
+destination=/dev/mmcblk0
+rfs_partition=dual
+rfs_boot_startmb=1
+rfs_boot_size_mb=128
+bootloader=/opt/u-boot/bb-u-boot-beagleplay-mainline/install-emmc.sh
+flash_back=/opt/u-boot/bb-u-boot-beagleplay-mainline/beagleplay-emmc-to-microsd
+extlinux=/opt/u-boot/bb-u-boot-beagleplay-mainline/emmc-extlinux.conf
+flash_cc1352p=enable
diff --git a/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/beagleplay-microsd-to-emmc-w-swap b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/beagleplay-microsd-to-emmc-w-swap
new file mode 100644
index 000000000..d3d90ae77
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/beagleplay-microsd-to-emmc-w-swap
@@ -0,0 +1,10 @@
+source=/dev/mmcblk1
+destination=/dev/mmcblk0
+rfs_partition=dual
+rfs_boot_startmb=1
+rfs_boot_size_mb=128
+rfs_swap_size_mb=2048
+bootloader=/opt/u-boot/bb-u-boot-beagleplay-mainline/install-emmc.sh
+flash_back=/opt/u-boot/bb-u-boot-beagleplay-mainline/beagleplay-emmc-to-microsd-w-swap
+extlinux=/opt/u-boot/bb-u-boot-beagleplay-mainline/emmc-extlinux-w-swap.conf
+flash_cc1352p=enable
diff --git a/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/changelog b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/changelog
new file mode 100644
index 000000000..2cf0dec83
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/changelog
@@ -0,0 +1,6 @@
+bb-u-boot-beagleplay-mainline (2023.07.20230725.1-0~bookworm+20230725) bookworm; urgency=low
+
+  * Rebuild for repos.rcn-ee.com
+
+ -- Robert Nelson <robertcnelson@gmail.com>  Tue, 25 Jul 2023 18:24:37 -0500
+
diff --git a/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/compat b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/compat
new file mode 100644
index 000000000..ec635144f
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/control b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/control
new file mode 100644
index 000000000..dc21decf6
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/control
@@ -0,0 +1,30 @@
+Source: bb-u-boot-beagleplay-mainline
+Section: misc
+Priority: extra
+Maintainer: Robert Nelson <robertcnelson@gmail.com>
+Build-Depends:
+ debhelper (>= 9)
+ , bc,
+ , bison
+ , ca-certificates
+ , device-tree-compiler
+ , flex
+ , gcc-arm-linux-gnueabihf
+ , git
+ , libssl-dev
+ , python3-cryptography
+ , python3-jsonschema
+ , python3-pycryptodome
+ , python3-pyelftools
+ , rsync
+ , u-boot-tools
+Standards-Version: 4.5.1
+
+Package: bb-u-boot-beagleplay-mainline
+Architecture: arm64
+Depends:
+ ${shlibs:Depends}
+ , ${misc:Depends}
+ , mmc-utils
+Description: bb-u-boot-beagleplay-mainline
+ bb-u-boot-beagleplay-mainline
diff --git a/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/emmc-extlinux-w-swap.conf b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/emmc-extlinux-w-swap.conf
new file mode 100644
index 000000000..5f148324a
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/emmc-extlinux-w-swap.conf
@@ -0,0 +1,6 @@
+label Linux eMMC with swap
+    kernel /Image
+    append root=/dev/mmcblk0p3 ro rootfstype=ext4 resume=/dev/mmcblk0p2 rootwait net.ifnames=0 quiet
+    fdtdir /
+    #fdtoverlays /overlays/<file>.dtbo
+    initrd /initrd.img
diff --git a/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/emmc-extlinux.conf b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/emmc-extlinux.conf
new file mode 100644
index 000000000..79659c73b
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/emmc-extlinux.conf
@@ -0,0 +1,6 @@
+label Linux eMMC
+    kernel /Image
+    append root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait net.ifnames=0 quiet
+    fdtdir /
+    #fdtoverlays /overlays/<file>.dtbo
+    initrd /initrd.img
diff --git a/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/install b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/install
new file mode 100644
index 000000000..870cfa003
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/install
@@ -0,0 +1,18 @@
+debian/install.sh /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/install-microsd.sh /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/install-emmc.sh /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/microsd-extlinux.conf /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/emmc-extlinux.conf /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/microsd-extlinux-w-swap.conf /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/emmc-extlinux-w-swap.conf /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/beagleplay-emmc-to-microsd /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/beagleplay-microsd-to-emmc /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/beagleplay-emmc-to-microsd-w-swap /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/beagleplay-microsd-to-emmc-w-swap /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/ti-linux-firmware/ti-sysfw/ti-fs-firmware-am62x-gp.bin /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/ti-linux-firmware/ti-sysfw/ti-fs-stub-firmware-am62x-gp.bin /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/arm-trusted-firmware/build/k3/lite/release/bl31.bin /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/optee/core/tee-pager_v2.bin /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/pkg/tiboot3.bin /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/pkg/tispl.bin /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/pkg/u-boot.img /opt/u-boot/bb-u-boot-beagleplay-mainline
diff --git a/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/install-emmc.sh b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/install-emmc.sh
new file mode 100755
index 000000000..e9b9f30a9
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/install-emmc.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+if ! id | grep -q root; then
+	echo "must be run as root"
+	exit
+fi
+
+wdir="/opt/u-boot/bb-u-boot-beagleplay-mainline"
+
+if [ -b /dev/mmcblk0 ] ; then
+	#mmc extcsd read /dev/mmcblk0
+	mmc bootpart enable 1 2 /dev/mmcblk0
+	mmc bootbus set single_backward x1 x8 /dev/mmcblk0
+	mmc hwreset enable /dev/mmcblk0
+
+	echo "Clearing eMMC boot0"
+
+	echo '0' >> /sys/class/block/mmcblk0boot0/force_ro
+
+	echo "dd if=/dev/zero of=/dev/mmcblk0boot0 count=32 bs=128k"
+	dd if=/dev/zero of=/dev/mmcblk0boot0 count=32 bs=128k
+
+	echo "dd if=${wdir}/tiboot3.bin of=/dev/mmcblk0boot0 bs=128k"
+	dd if=${wdir}/tiboot3.bin of=/dev/mmcblk0boot0 bs=128k
+fi
diff --git a/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/install-microsd.sh b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/install-microsd.sh
new file mode 100755
index 000000000..641b45063
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/install-microsd.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+if ! id | grep -q root; then
+	echo "must be run as root"
+	exit
+fi
+
+wdir="/opt/u-boot/bb-u-boot-beagleplay-mainline"
+
+if [ -d /boot/firmware/ ] ; then
+	cp -v ${wdir}/tiboot3.bin /boot/firmware/
+	cp -v ${wdir}/tispl.bin /boot/firmware/
+	cp -v ${wdir}/u-boot.img /boot/firmware/
+	if [ ! -d /boot/firmware/ti-sysfw/ ] ; then
+		mkdir -p /boot/firmware/ti-sysfw/
+	fi
+	cp -v ${wdir}/ti-fs-stub-firmware-am62x-gp-signed.bin /boot/firmware/ti-sysfw/
+fi
diff --git a/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/install.sh b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/install.sh
new file mode 100755
index 000000000..487432332
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/install.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+if ! id | grep -q root; then
+	echo "must be run as root"
+	exit
+fi
+
+wdir="/opt/u-boot/bb-u-boot-beagleplay-mainline"
+
+if [ -d /boot/firmware/ ] ; then
+	cp -v ${wdir}/tiboot3.bin /boot/firmware/
+	cp -v ${wdir}/tispl.bin /boot/firmware/
+	cp -v ${wdir}/u-boot.img /boot/firmware/
+fi
diff --git a/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/microsd-extlinux-w-swap.conf b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/microsd-extlinux-w-swap.conf
new file mode 100644
index 000000000..a6cb257f8
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/microsd-extlinux-w-swap.conf
@@ -0,0 +1,6 @@
+label Linux microSD with swap
+    kernel /Image
+    append root=/dev/mmcblk1p3 ro rootfstype=ext4 resume=/dev/mmcblk1p2 rootwait net.ifnames=0 quiet
+    fdtdir /
+    #fdtoverlays /overlays/<file>.dtbo
+    initrd /initrd.img
diff --git a/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/microsd-extlinux.conf b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/microsd-extlinux.conf
new file mode 100644
index 000000000..1e4e30811
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/microsd-extlinux.conf
@@ -0,0 +1,6 @@
+label Linux microSD
+    kernel /Image
+    append root=/dev/mmcblk1p2 ro rootfstype=ext4 rootwait net.ifnames=0 quiet
+    fdtdir /
+    #fdtoverlays /overlays/<file>.dtbo
+    initrd /initrd.img
diff --git a/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/rules b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/rules
new file mode 100755
index 000000000..4adcd2266
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/bookworm/debian/rules
@@ -0,0 +1,57 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+TARGETDIR=bb-u-boot-beagleplay-mainline
+#/opt/u-boot/$(TARGETDIR)/
+
+#ti-linux-firmware
+#HEAD: https://git.ti.com/gitweb?p=processor-firmware/ti-linux-firmware.git;a=summary
+#Mirror: https://github.com/beagleboard/ti-linux-firmware
+TILF_TAG=09.00.00.007
+TILF_REPO="https://github.com/beagleboard/ti-linux-firmware.git"
+
+#arm-trusted-firmware
+#HEAD: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/
+#2.9+
+ATF_TAG=master
+ATF_REPO="https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git"
+
+#optee_os
+#HEAD: https://github.com/OP-TEE/optee_os
+#3.22.0+
+TEE_TAG=master
+TEE_REPO="https://github.com/OP-TEE/optee_os"
+
+#U-Boot
+UB_CONFIG=am62x_evm
+UB_BRANCH=BeaglePlay-V1-mainline-rfc
+UB_REPO="https://git.beagleboard.org/beagleboard/u-boot.git"
+
+override_dh_strip:
+	# Just disable for now...
+
+override_dh_auto_configure:
+	mkdir -p ./tmp/pkg/
+	mkdir -p /opt/u-boot/$(TARGETDIR)/ti-linux-firmware/
+	mkdir -p ./tmp/ti-linux-firmware/ ; git clone -b $(TILF_TAG) $(TILF_REPO) --depth=5 ./tmp/ti-linux-firmware/ ; rsync -a ./tmp/ti-linux-firmware/* /opt/u-boot/$(TARGETDIR)/ti-linux-firmware/ --delete
+	mkdir -p ./tmp/arm-trusted-firmware/ ; git clone -b $(ATF_TAG) $(ATF_REPO) --depth=5 ./tmp/arm-trusted-firmware/
+	make -C ./tmp/arm-trusted-firmware/ -j4 CROSS_COMPILE=aarch64-linux-gnu- CFLAGS= LDFLAGS= ARCH=aarch64 PLAT=k3 TARGET_BOARD=lite K3_PM_SYSTEM_SUSPEND=1 SPD=opteed all
+	cp -v ./tmp/arm-trusted-firmware/build/k3/lite/release/bl31.bin /opt/u-boot/$(TARGETDIR)/
+	mkdir -p ./tmp/optee_os/ ; git clone -b $(TEE_TAG) $(TEE_REPO) --depth=5 ./tmp/optee_os/
+	make -C ./tmp/optee_os/ -j4 O=../optee CROSS_COMPILE=arm-linux-gnueabihf- CROSS_COMPILE64=aarch64-linux-gnu- CFLAGS= LDFLAGS= PLATFORM=k3-am62x CFG_WITH_SOFTWARE_PRNG=y CFG_ARM64_core=y all
+	cp -v ./tmp/optee/core/tee-pager_v2.bin /opt/u-boot/$(TARGETDIR)/
+	mkdir -p ./tmp/u-boot/ ; git clone -b $(UB_BRANCH) $(UB_REPO) --depth=5 ./tmp/u-boot/
+	make -C ./tmp/u-boot -j1 O=../r5 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- $(UB_CONFIG)_r5_defconfig
+	make -C ./tmp/u-boot -j5 O=../r5 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- BINMAN_INDIRS=/opt/u-boot/$(TARGETDIR)/ti-linux-firmware/
+	cp -v ./tmp/r5/tiboot3-am62x-gp-evm.bin ./tmp/pkg/tiboot3.bin
+	make -C ./tmp/u-boot -j1 O=../a53 ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- $(UB_CONFIG)_a53_defconfig
+	make -C ./tmp/u-boot -j5 O=../a53 ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- BL31=/opt/u-boot/$(TARGETDIR)/bl31.bin TEE=/opt/u-boot/$(TARGETDIR)/tee-pager_v2.bin BINMAN_INDIRS=/opt/u-boot/$(TARGETDIR)/ti-linux-firmware/
+	cp -v ./tmp/a53/tispl.bin_unsigned ./tmp/pkg/tispl.bin
+	cp -v ./tmp/a53/u-boot.img_unsigned ./tmp/pkg/u-boot.img
+
+%:
+	dh $@
+
diff --git a/bb-u-boot-beagleplay-mainline/suite/bullseye/debian/changelog b/bb-u-boot-beagleplay-mainline/suite/bullseye/debian/changelog
index 635ea1525..98eed9812 100644
--- a/bb-u-boot-beagleplay-mainline/suite/bullseye/debian/changelog
+++ b/bb-u-boot-beagleplay-mainline/suite/bullseye/debian/changelog
@@ -1,6 +1,6 @@
-bb-u-boot-beagleplay-mainline (2023.07.20230725.0-0~bullseye+20230725) bullseye; urgency=low
+bb-u-boot-beagleplay-mainline (2023.07.20230725.1-0~bullseye+20230725) bullseye; urgency=low
 
   * Rebuild for repos.rcn-ee.com
 
- -- Robert Nelson <robertcnelson@gmail.com>  Tue, 25 Jul 2023 15:48:37 -0500
+ -- Robert Nelson <robertcnelson@gmail.com>  Tue, 25 Jul 2023 18:24:37 -0500
 
diff --git a/bb-u-boot-beagleplay-mainline/suite/jammy/debian/beagleplay-emmc-to-microsd b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/beagleplay-emmc-to-microsd
new file mode 100644
index 000000000..97ee3967c
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/beagleplay-emmc-to-microsd
@@ -0,0 +1,8 @@
+source=/dev/mmcblk0
+destination=/dev/mmcblk1
+rfs_partition=dual
+rfs_boot_startmb=1
+rfs_boot_size_mb=128
+flash_back=/opt/u-boot/bb-u-boot-beagleplay-mainline/beagleplay-microsd-to-emmc
+extlinux=/opt/u-boot/bb-u-boot-beagleplay-mainline/microsd-extlinux.conf
+flash_cc1352p=enable
diff --git a/bb-u-boot-beagleplay-mainline/suite/jammy/debian/beagleplay-emmc-to-microsd-w-swap b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/beagleplay-emmc-to-microsd-w-swap
new file mode 100644
index 000000000..46955b2f7
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/beagleplay-emmc-to-microsd-w-swap
@@ -0,0 +1,9 @@
+source=/dev/mmcblk0
+destination=/dev/mmcblk1
+rfs_partition=dual
+rfs_boot_startmb=1
+rfs_boot_size_mb=128
+rfs_swap_size_mb=2048
+flash_back=/opt/u-boot/bb-u-boot-beagleplay-mainline/beagleplay-microsd-to-emmc-w-swap
+extlinux=/opt/u-boot/bb-u-boot-beagleplay-mainline/microsd-extlinux-w-swap.conf
+flash_cc1352p=enable
diff --git a/bb-u-boot-beagleplay-mainline/suite/jammy/debian/beagleplay-microsd-to-emmc b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/beagleplay-microsd-to-emmc
new file mode 100644
index 000000000..8c782fac3
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/beagleplay-microsd-to-emmc
@@ -0,0 +1,9 @@
+source=/dev/mmcblk1
+destination=/dev/mmcblk0
+rfs_partition=dual
+rfs_boot_startmb=1
+rfs_boot_size_mb=128
+bootloader=/opt/u-boot/bb-u-boot-beagleplay-mainline/install-emmc.sh
+flash_back=/opt/u-boot/bb-u-boot-beagleplay-mainline/beagleplay-emmc-to-microsd
+extlinux=/opt/u-boot/bb-u-boot-beagleplay-mainline/emmc-extlinux.conf
+flash_cc1352p=enable
diff --git a/bb-u-boot-beagleplay-mainline/suite/jammy/debian/beagleplay-microsd-to-emmc-w-swap b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/beagleplay-microsd-to-emmc-w-swap
new file mode 100644
index 000000000..d3d90ae77
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/beagleplay-microsd-to-emmc-w-swap
@@ -0,0 +1,10 @@
+source=/dev/mmcblk1
+destination=/dev/mmcblk0
+rfs_partition=dual
+rfs_boot_startmb=1
+rfs_boot_size_mb=128
+rfs_swap_size_mb=2048
+bootloader=/opt/u-boot/bb-u-boot-beagleplay-mainline/install-emmc.sh
+flash_back=/opt/u-boot/bb-u-boot-beagleplay-mainline/beagleplay-emmc-to-microsd-w-swap
+extlinux=/opt/u-boot/bb-u-boot-beagleplay-mainline/emmc-extlinux-w-swap.conf
+flash_cc1352p=enable
diff --git a/bb-u-boot-beagleplay-mainline/suite/jammy/debian/changelog b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/changelog
new file mode 100644
index 000000000..cd0ad0871
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/changelog
@@ -0,0 +1,6 @@
+bb-u-boot-beagleplay-mainline (2023.07.20230725.1-0~jammy+20230725) jammy; urgency=low
+
+  * Rebuild for repos.rcn-ee.com
+
+ -- Robert Nelson <robertcnelson@gmail.com>  Tue, 25 Jul 2023 18:24:37 -0500
+
diff --git a/bb-u-boot-beagleplay-mainline/suite/jammy/debian/compat b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/compat
new file mode 100644
index 000000000..ec635144f
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/bb-u-boot-beagleplay-mainline/suite/jammy/debian/control b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/control
new file mode 100644
index 000000000..dc21decf6
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/control
@@ -0,0 +1,30 @@
+Source: bb-u-boot-beagleplay-mainline
+Section: misc
+Priority: extra
+Maintainer: Robert Nelson <robertcnelson@gmail.com>
+Build-Depends:
+ debhelper (>= 9)
+ , bc,
+ , bison
+ , ca-certificates
+ , device-tree-compiler
+ , flex
+ , gcc-arm-linux-gnueabihf
+ , git
+ , libssl-dev
+ , python3-cryptography
+ , python3-jsonschema
+ , python3-pycryptodome
+ , python3-pyelftools
+ , rsync
+ , u-boot-tools
+Standards-Version: 4.5.1
+
+Package: bb-u-boot-beagleplay-mainline
+Architecture: arm64
+Depends:
+ ${shlibs:Depends}
+ , ${misc:Depends}
+ , mmc-utils
+Description: bb-u-boot-beagleplay-mainline
+ bb-u-boot-beagleplay-mainline
diff --git a/bb-u-boot-beagleplay-mainline/suite/jammy/debian/emmc-extlinux-w-swap.conf b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/emmc-extlinux-w-swap.conf
new file mode 100644
index 000000000..5f148324a
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/emmc-extlinux-w-swap.conf
@@ -0,0 +1,6 @@
+label Linux eMMC with swap
+    kernel /Image
+    append root=/dev/mmcblk0p3 ro rootfstype=ext4 resume=/dev/mmcblk0p2 rootwait net.ifnames=0 quiet
+    fdtdir /
+    #fdtoverlays /overlays/<file>.dtbo
+    initrd /initrd.img
diff --git a/bb-u-boot-beagleplay-mainline/suite/jammy/debian/emmc-extlinux.conf b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/emmc-extlinux.conf
new file mode 100644
index 000000000..79659c73b
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/emmc-extlinux.conf
@@ -0,0 +1,6 @@
+label Linux eMMC
+    kernel /Image
+    append root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait net.ifnames=0 quiet
+    fdtdir /
+    #fdtoverlays /overlays/<file>.dtbo
+    initrd /initrd.img
diff --git a/bb-u-boot-beagleplay-mainline/suite/jammy/debian/install b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/install
new file mode 100644
index 000000000..870cfa003
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/install
@@ -0,0 +1,18 @@
+debian/install.sh /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/install-microsd.sh /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/install-emmc.sh /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/microsd-extlinux.conf /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/emmc-extlinux.conf /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/microsd-extlinux-w-swap.conf /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/emmc-extlinux-w-swap.conf /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/beagleplay-emmc-to-microsd /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/beagleplay-microsd-to-emmc /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/beagleplay-emmc-to-microsd-w-swap /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/beagleplay-microsd-to-emmc-w-swap /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/ti-linux-firmware/ti-sysfw/ti-fs-firmware-am62x-gp.bin /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/ti-linux-firmware/ti-sysfw/ti-fs-stub-firmware-am62x-gp.bin /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/arm-trusted-firmware/build/k3/lite/release/bl31.bin /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/optee/core/tee-pager_v2.bin /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/pkg/tiboot3.bin /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/pkg/tispl.bin /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/pkg/u-boot.img /opt/u-boot/bb-u-boot-beagleplay-mainline
diff --git a/bb-u-boot-beagleplay-mainline/suite/jammy/debian/install-emmc.sh b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/install-emmc.sh
new file mode 100755
index 000000000..e9b9f30a9
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/install-emmc.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+if ! id | grep -q root; then
+	echo "must be run as root"
+	exit
+fi
+
+wdir="/opt/u-boot/bb-u-boot-beagleplay-mainline"
+
+if [ -b /dev/mmcblk0 ] ; then
+	#mmc extcsd read /dev/mmcblk0
+	mmc bootpart enable 1 2 /dev/mmcblk0
+	mmc bootbus set single_backward x1 x8 /dev/mmcblk0
+	mmc hwreset enable /dev/mmcblk0
+
+	echo "Clearing eMMC boot0"
+
+	echo '0' >> /sys/class/block/mmcblk0boot0/force_ro
+
+	echo "dd if=/dev/zero of=/dev/mmcblk0boot0 count=32 bs=128k"
+	dd if=/dev/zero of=/dev/mmcblk0boot0 count=32 bs=128k
+
+	echo "dd if=${wdir}/tiboot3.bin of=/dev/mmcblk0boot0 bs=128k"
+	dd if=${wdir}/tiboot3.bin of=/dev/mmcblk0boot0 bs=128k
+fi
diff --git a/bb-u-boot-beagleplay-mainline/suite/jammy/debian/install-microsd.sh b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/install-microsd.sh
new file mode 100755
index 000000000..641b45063
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/install-microsd.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+if ! id | grep -q root; then
+	echo "must be run as root"
+	exit
+fi
+
+wdir="/opt/u-boot/bb-u-boot-beagleplay-mainline"
+
+if [ -d /boot/firmware/ ] ; then
+	cp -v ${wdir}/tiboot3.bin /boot/firmware/
+	cp -v ${wdir}/tispl.bin /boot/firmware/
+	cp -v ${wdir}/u-boot.img /boot/firmware/
+	if [ ! -d /boot/firmware/ti-sysfw/ ] ; then
+		mkdir -p /boot/firmware/ti-sysfw/
+	fi
+	cp -v ${wdir}/ti-fs-stub-firmware-am62x-gp-signed.bin /boot/firmware/ti-sysfw/
+fi
diff --git a/bb-u-boot-beagleplay-mainline/suite/jammy/debian/install.sh b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/install.sh
new file mode 100755
index 000000000..487432332
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/install.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+if ! id | grep -q root; then
+	echo "must be run as root"
+	exit
+fi
+
+wdir="/opt/u-boot/bb-u-boot-beagleplay-mainline"
+
+if [ -d /boot/firmware/ ] ; then
+	cp -v ${wdir}/tiboot3.bin /boot/firmware/
+	cp -v ${wdir}/tispl.bin /boot/firmware/
+	cp -v ${wdir}/u-boot.img /boot/firmware/
+fi
diff --git a/bb-u-boot-beagleplay-mainline/suite/jammy/debian/microsd-extlinux-w-swap.conf b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/microsd-extlinux-w-swap.conf
new file mode 100644
index 000000000..a6cb257f8
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/microsd-extlinux-w-swap.conf
@@ -0,0 +1,6 @@
+label Linux microSD with swap
+    kernel /Image
+    append root=/dev/mmcblk1p3 ro rootfstype=ext4 resume=/dev/mmcblk1p2 rootwait net.ifnames=0 quiet
+    fdtdir /
+    #fdtoverlays /overlays/<file>.dtbo
+    initrd /initrd.img
diff --git a/bb-u-boot-beagleplay-mainline/suite/jammy/debian/microsd-extlinux.conf b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/microsd-extlinux.conf
new file mode 100644
index 000000000..1e4e30811
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/microsd-extlinux.conf
@@ -0,0 +1,6 @@
+label Linux microSD
+    kernel /Image
+    append root=/dev/mmcblk1p2 ro rootfstype=ext4 rootwait net.ifnames=0 quiet
+    fdtdir /
+    #fdtoverlays /overlays/<file>.dtbo
+    initrd /initrd.img
diff --git a/bb-u-boot-beagleplay-mainline/suite/jammy/debian/rules b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/rules
new file mode 100755
index 000000000..4adcd2266
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/jammy/debian/rules
@@ -0,0 +1,57 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+TARGETDIR=bb-u-boot-beagleplay-mainline
+#/opt/u-boot/$(TARGETDIR)/
+
+#ti-linux-firmware
+#HEAD: https://git.ti.com/gitweb?p=processor-firmware/ti-linux-firmware.git;a=summary
+#Mirror: https://github.com/beagleboard/ti-linux-firmware
+TILF_TAG=09.00.00.007
+TILF_REPO="https://github.com/beagleboard/ti-linux-firmware.git"
+
+#arm-trusted-firmware
+#HEAD: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/
+#2.9+
+ATF_TAG=master
+ATF_REPO="https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git"
+
+#optee_os
+#HEAD: https://github.com/OP-TEE/optee_os
+#3.22.0+
+TEE_TAG=master
+TEE_REPO="https://github.com/OP-TEE/optee_os"
+
+#U-Boot
+UB_CONFIG=am62x_evm
+UB_BRANCH=BeaglePlay-V1-mainline-rfc
+UB_REPO="https://git.beagleboard.org/beagleboard/u-boot.git"
+
+override_dh_strip:
+	# Just disable for now...
+
+override_dh_auto_configure:
+	mkdir -p ./tmp/pkg/
+	mkdir -p /opt/u-boot/$(TARGETDIR)/ti-linux-firmware/
+	mkdir -p ./tmp/ti-linux-firmware/ ; git clone -b $(TILF_TAG) $(TILF_REPO) --depth=5 ./tmp/ti-linux-firmware/ ; rsync -a ./tmp/ti-linux-firmware/* /opt/u-boot/$(TARGETDIR)/ti-linux-firmware/ --delete
+	mkdir -p ./tmp/arm-trusted-firmware/ ; git clone -b $(ATF_TAG) $(ATF_REPO) --depth=5 ./tmp/arm-trusted-firmware/
+	make -C ./tmp/arm-trusted-firmware/ -j4 CROSS_COMPILE=aarch64-linux-gnu- CFLAGS= LDFLAGS= ARCH=aarch64 PLAT=k3 TARGET_BOARD=lite K3_PM_SYSTEM_SUSPEND=1 SPD=opteed all
+	cp -v ./tmp/arm-trusted-firmware/build/k3/lite/release/bl31.bin /opt/u-boot/$(TARGETDIR)/
+	mkdir -p ./tmp/optee_os/ ; git clone -b $(TEE_TAG) $(TEE_REPO) --depth=5 ./tmp/optee_os/
+	make -C ./tmp/optee_os/ -j4 O=../optee CROSS_COMPILE=arm-linux-gnueabihf- CROSS_COMPILE64=aarch64-linux-gnu- CFLAGS= LDFLAGS= PLATFORM=k3-am62x CFG_WITH_SOFTWARE_PRNG=y CFG_ARM64_core=y all
+	cp -v ./tmp/optee/core/tee-pager_v2.bin /opt/u-boot/$(TARGETDIR)/
+	mkdir -p ./tmp/u-boot/ ; git clone -b $(UB_BRANCH) $(UB_REPO) --depth=5 ./tmp/u-boot/
+	make -C ./tmp/u-boot -j1 O=../r5 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- $(UB_CONFIG)_r5_defconfig
+	make -C ./tmp/u-boot -j5 O=../r5 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- BINMAN_INDIRS=/opt/u-boot/$(TARGETDIR)/ti-linux-firmware/
+	cp -v ./tmp/r5/tiboot3-am62x-gp-evm.bin ./tmp/pkg/tiboot3.bin
+	make -C ./tmp/u-boot -j1 O=../a53 ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- $(UB_CONFIG)_a53_defconfig
+	make -C ./tmp/u-boot -j5 O=../a53 ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- BL31=/opt/u-boot/$(TARGETDIR)/bl31.bin TEE=/opt/u-boot/$(TARGETDIR)/tee-pager_v2.bin BINMAN_INDIRS=/opt/u-boot/$(TARGETDIR)/ti-linux-firmware/
+	cp -v ./tmp/a53/tispl.bin_unsigned ./tmp/pkg/tispl.bin
+	cp -v ./tmp/a53/u-boot.img_unsigned ./tmp/pkg/u-boot.img
+
+%:
+	dh $@
+
diff --git a/bb-u-boot-beagleplay-mainline/suite/trixie/debian/beagleplay-emmc-to-microsd b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/beagleplay-emmc-to-microsd
new file mode 100644
index 000000000..97ee3967c
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/beagleplay-emmc-to-microsd
@@ -0,0 +1,8 @@
+source=/dev/mmcblk0
+destination=/dev/mmcblk1
+rfs_partition=dual
+rfs_boot_startmb=1
+rfs_boot_size_mb=128
+flash_back=/opt/u-boot/bb-u-boot-beagleplay-mainline/beagleplay-microsd-to-emmc
+extlinux=/opt/u-boot/bb-u-boot-beagleplay-mainline/microsd-extlinux.conf
+flash_cc1352p=enable
diff --git a/bb-u-boot-beagleplay-mainline/suite/trixie/debian/beagleplay-emmc-to-microsd-w-swap b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/beagleplay-emmc-to-microsd-w-swap
new file mode 100644
index 000000000..46955b2f7
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/beagleplay-emmc-to-microsd-w-swap
@@ -0,0 +1,9 @@
+source=/dev/mmcblk0
+destination=/dev/mmcblk1
+rfs_partition=dual
+rfs_boot_startmb=1
+rfs_boot_size_mb=128
+rfs_swap_size_mb=2048
+flash_back=/opt/u-boot/bb-u-boot-beagleplay-mainline/beagleplay-microsd-to-emmc-w-swap
+extlinux=/opt/u-boot/bb-u-boot-beagleplay-mainline/microsd-extlinux-w-swap.conf
+flash_cc1352p=enable
diff --git a/bb-u-boot-beagleplay-mainline/suite/trixie/debian/beagleplay-microsd-to-emmc b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/beagleplay-microsd-to-emmc
new file mode 100644
index 000000000..8c782fac3
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/beagleplay-microsd-to-emmc
@@ -0,0 +1,9 @@
+source=/dev/mmcblk1
+destination=/dev/mmcblk0
+rfs_partition=dual
+rfs_boot_startmb=1
+rfs_boot_size_mb=128
+bootloader=/opt/u-boot/bb-u-boot-beagleplay-mainline/install-emmc.sh
+flash_back=/opt/u-boot/bb-u-boot-beagleplay-mainline/beagleplay-emmc-to-microsd
+extlinux=/opt/u-boot/bb-u-boot-beagleplay-mainline/emmc-extlinux.conf
+flash_cc1352p=enable
diff --git a/bb-u-boot-beagleplay-mainline/suite/trixie/debian/beagleplay-microsd-to-emmc-w-swap b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/beagleplay-microsd-to-emmc-w-swap
new file mode 100644
index 000000000..d3d90ae77
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/beagleplay-microsd-to-emmc-w-swap
@@ -0,0 +1,10 @@
+source=/dev/mmcblk1
+destination=/dev/mmcblk0
+rfs_partition=dual
+rfs_boot_startmb=1
+rfs_boot_size_mb=128
+rfs_swap_size_mb=2048
+bootloader=/opt/u-boot/bb-u-boot-beagleplay-mainline/install-emmc.sh
+flash_back=/opt/u-boot/bb-u-boot-beagleplay-mainline/beagleplay-emmc-to-microsd-w-swap
+extlinux=/opt/u-boot/bb-u-boot-beagleplay-mainline/emmc-extlinux-w-swap.conf
+flash_cc1352p=enable
diff --git a/bb-u-boot-beagleplay-mainline/suite/trixie/debian/changelog b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/changelog
new file mode 100644
index 000000000..0cb5b6d43
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/changelog
@@ -0,0 +1,6 @@
+bb-u-boot-beagleplay-mainline (2023.07.20230725.1-0~trixie+20230725) trixie; urgency=low
+
+  * Rebuild for repos.rcn-ee.com
+
+ -- Robert Nelson <robertcnelson@gmail.com>  Tue, 25 Jul 2023 18:24:37 -0500
+
diff --git a/bb-u-boot-beagleplay-mainline/suite/trixie/debian/compat b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/compat
new file mode 100644
index 000000000..ec635144f
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/bb-u-boot-beagleplay-mainline/suite/trixie/debian/control b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/control
new file mode 100644
index 000000000..dc21decf6
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/control
@@ -0,0 +1,30 @@
+Source: bb-u-boot-beagleplay-mainline
+Section: misc
+Priority: extra
+Maintainer: Robert Nelson <robertcnelson@gmail.com>
+Build-Depends:
+ debhelper (>= 9)
+ , bc,
+ , bison
+ , ca-certificates
+ , device-tree-compiler
+ , flex
+ , gcc-arm-linux-gnueabihf
+ , git
+ , libssl-dev
+ , python3-cryptography
+ , python3-jsonschema
+ , python3-pycryptodome
+ , python3-pyelftools
+ , rsync
+ , u-boot-tools
+Standards-Version: 4.5.1
+
+Package: bb-u-boot-beagleplay-mainline
+Architecture: arm64
+Depends:
+ ${shlibs:Depends}
+ , ${misc:Depends}
+ , mmc-utils
+Description: bb-u-boot-beagleplay-mainline
+ bb-u-boot-beagleplay-mainline
diff --git a/bb-u-boot-beagleplay-mainline/suite/trixie/debian/emmc-extlinux-w-swap.conf b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/emmc-extlinux-w-swap.conf
new file mode 100644
index 000000000..5f148324a
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/emmc-extlinux-w-swap.conf
@@ -0,0 +1,6 @@
+label Linux eMMC with swap
+    kernel /Image
+    append root=/dev/mmcblk0p3 ro rootfstype=ext4 resume=/dev/mmcblk0p2 rootwait net.ifnames=0 quiet
+    fdtdir /
+    #fdtoverlays /overlays/<file>.dtbo
+    initrd /initrd.img
diff --git a/bb-u-boot-beagleplay-mainline/suite/trixie/debian/emmc-extlinux.conf b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/emmc-extlinux.conf
new file mode 100644
index 000000000..79659c73b
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/emmc-extlinux.conf
@@ -0,0 +1,6 @@
+label Linux eMMC
+    kernel /Image
+    append root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait net.ifnames=0 quiet
+    fdtdir /
+    #fdtoverlays /overlays/<file>.dtbo
+    initrd /initrd.img
diff --git a/bb-u-boot-beagleplay-mainline/suite/trixie/debian/install b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/install
new file mode 100644
index 000000000..870cfa003
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/install
@@ -0,0 +1,18 @@
+debian/install.sh /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/install-microsd.sh /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/install-emmc.sh /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/microsd-extlinux.conf /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/emmc-extlinux.conf /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/microsd-extlinux-w-swap.conf /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/emmc-extlinux-w-swap.conf /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/beagleplay-emmc-to-microsd /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/beagleplay-microsd-to-emmc /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/beagleplay-emmc-to-microsd-w-swap /opt/u-boot/bb-u-boot-beagleplay-mainline
+debian/beagleplay-microsd-to-emmc-w-swap /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/ti-linux-firmware/ti-sysfw/ti-fs-firmware-am62x-gp.bin /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/ti-linux-firmware/ti-sysfw/ti-fs-stub-firmware-am62x-gp.bin /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/arm-trusted-firmware/build/k3/lite/release/bl31.bin /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/optee/core/tee-pager_v2.bin /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/pkg/tiboot3.bin /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/pkg/tispl.bin /opt/u-boot/bb-u-boot-beagleplay-mainline
+tmp/pkg/u-boot.img /opt/u-boot/bb-u-boot-beagleplay-mainline
diff --git a/bb-u-boot-beagleplay-mainline/suite/trixie/debian/install-emmc.sh b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/install-emmc.sh
new file mode 100755
index 000000000..e9b9f30a9
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/install-emmc.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+if ! id | grep -q root; then
+	echo "must be run as root"
+	exit
+fi
+
+wdir="/opt/u-boot/bb-u-boot-beagleplay-mainline"
+
+if [ -b /dev/mmcblk0 ] ; then
+	#mmc extcsd read /dev/mmcblk0
+	mmc bootpart enable 1 2 /dev/mmcblk0
+	mmc bootbus set single_backward x1 x8 /dev/mmcblk0
+	mmc hwreset enable /dev/mmcblk0
+
+	echo "Clearing eMMC boot0"
+
+	echo '0' >> /sys/class/block/mmcblk0boot0/force_ro
+
+	echo "dd if=/dev/zero of=/dev/mmcblk0boot0 count=32 bs=128k"
+	dd if=/dev/zero of=/dev/mmcblk0boot0 count=32 bs=128k
+
+	echo "dd if=${wdir}/tiboot3.bin of=/dev/mmcblk0boot0 bs=128k"
+	dd if=${wdir}/tiboot3.bin of=/dev/mmcblk0boot0 bs=128k
+fi
diff --git a/bb-u-boot-beagleplay-mainline/suite/trixie/debian/install-microsd.sh b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/install-microsd.sh
new file mode 100755
index 000000000..641b45063
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/install-microsd.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+if ! id | grep -q root; then
+	echo "must be run as root"
+	exit
+fi
+
+wdir="/opt/u-boot/bb-u-boot-beagleplay-mainline"
+
+if [ -d /boot/firmware/ ] ; then
+	cp -v ${wdir}/tiboot3.bin /boot/firmware/
+	cp -v ${wdir}/tispl.bin /boot/firmware/
+	cp -v ${wdir}/u-boot.img /boot/firmware/
+	if [ ! -d /boot/firmware/ti-sysfw/ ] ; then
+		mkdir -p /boot/firmware/ti-sysfw/
+	fi
+	cp -v ${wdir}/ti-fs-stub-firmware-am62x-gp-signed.bin /boot/firmware/ti-sysfw/
+fi
diff --git a/bb-u-boot-beagleplay-mainline/suite/trixie/debian/install.sh b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/install.sh
new file mode 100755
index 000000000..487432332
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/install.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+if ! id | grep -q root; then
+	echo "must be run as root"
+	exit
+fi
+
+wdir="/opt/u-boot/bb-u-boot-beagleplay-mainline"
+
+if [ -d /boot/firmware/ ] ; then
+	cp -v ${wdir}/tiboot3.bin /boot/firmware/
+	cp -v ${wdir}/tispl.bin /boot/firmware/
+	cp -v ${wdir}/u-boot.img /boot/firmware/
+fi
diff --git a/bb-u-boot-beagleplay-mainline/suite/trixie/debian/microsd-extlinux-w-swap.conf b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/microsd-extlinux-w-swap.conf
new file mode 100644
index 000000000..a6cb257f8
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/microsd-extlinux-w-swap.conf
@@ -0,0 +1,6 @@
+label Linux microSD with swap
+    kernel /Image
+    append root=/dev/mmcblk1p3 ro rootfstype=ext4 resume=/dev/mmcblk1p2 rootwait net.ifnames=0 quiet
+    fdtdir /
+    #fdtoverlays /overlays/<file>.dtbo
+    initrd /initrd.img
diff --git a/bb-u-boot-beagleplay-mainline/suite/trixie/debian/microsd-extlinux.conf b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/microsd-extlinux.conf
new file mode 100644
index 000000000..1e4e30811
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/microsd-extlinux.conf
@@ -0,0 +1,6 @@
+label Linux microSD
+    kernel /Image
+    append root=/dev/mmcblk1p2 ro rootfstype=ext4 rootwait net.ifnames=0 quiet
+    fdtdir /
+    #fdtoverlays /overlays/<file>.dtbo
+    initrd /initrd.img
diff --git a/bb-u-boot-beagleplay-mainline/suite/trixie/debian/rules b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/rules
new file mode 100755
index 000000000..4adcd2266
--- /dev/null
+++ b/bb-u-boot-beagleplay-mainline/suite/trixie/debian/rules
@@ -0,0 +1,57 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+TARGETDIR=bb-u-boot-beagleplay-mainline
+#/opt/u-boot/$(TARGETDIR)/
+
+#ti-linux-firmware
+#HEAD: https://git.ti.com/gitweb?p=processor-firmware/ti-linux-firmware.git;a=summary
+#Mirror: https://github.com/beagleboard/ti-linux-firmware
+TILF_TAG=09.00.00.007
+TILF_REPO="https://github.com/beagleboard/ti-linux-firmware.git"
+
+#arm-trusted-firmware
+#HEAD: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/
+#2.9+
+ATF_TAG=master
+ATF_REPO="https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git"
+
+#optee_os
+#HEAD: https://github.com/OP-TEE/optee_os
+#3.22.0+
+TEE_TAG=master
+TEE_REPO="https://github.com/OP-TEE/optee_os"
+
+#U-Boot
+UB_CONFIG=am62x_evm
+UB_BRANCH=BeaglePlay-V1-mainline-rfc
+UB_REPO="https://git.beagleboard.org/beagleboard/u-boot.git"
+
+override_dh_strip:
+	# Just disable for now...
+
+override_dh_auto_configure:
+	mkdir -p ./tmp/pkg/
+	mkdir -p /opt/u-boot/$(TARGETDIR)/ti-linux-firmware/
+	mkdir -p ./tmp/ti-linux-firmware/ ; git clone -b $(TILF_TAG) $(TILF_REPO) --depth=5 ./tmp/ti-linux-firmware/ ; rsync -a ./tmp/ti-linux-firmware/* /opt/u-boot/$(TARGETDIR)/ti-linux-firmware/ --delete
+	mkdir -p ./tmp/arm-trusted-firmware/ ; git clone -b $(ATF_TAG) $(ATF_REPO) --depth=5 ./tmp/arm-trusted-firmware/
+	make -C ./tmp/arm-trusted-firmware/ -j4 CROSS_COMPILE=aarch64-linux-gnu- CFLAGS= LDFLAGS= ARCH=aarch64 PLAT=k3 TARGET_BOARD=lite K3_PM_SYSTEM_SUSPEND=1 SPD=opteed all
+	cp -v ./tmp/arm-trusted-firmware/build/k3/lite/release/bl31.bin /opt/u-boot/$(TARGETDIR)/
+	mkdir -p ./tmp/optee_os/ ; git clone -b $(TEE_TAG) $(TEE_REPO) --depth=5 ./tmp/optee_os/
+	make -C ./tmp/optee_os/ -j4 O=../optee CROSS_COMPILE=arm-linux-gnueabihf- CROSS_COMPILE64=aarch64-linux-gnu- CFLAGS= LDFLAGS= PLATFORM=k3-am62x CFG_WITH_SOFTWARE_PRNG=y CFG_ARM64_core=y all
+	cp -v ./tmp/optee/core/tee-pager_v2.bin /opt/u-boot/$(TARGETDIR)/
+	mkdir -p ./tmp/u-boot/ ; git clone -b $(UB_BRANCH) $(UB_REPO) --depth=5 ./tmp/u-boot/
+	make -C ./tmp/u-boot -j1 O=../r5 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- $(UB_CONFIG)_r5_defconfig
+	make -C ./tmp/u-boot -j5 O=../r5 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- BINMAN_INDIRS=/opt/u-boot/$(TARGETDIR)/ti-linux-firmware/
+	cp -v ./tmp/r5/tiboot3-am62x-gp-evm.bin ./tmp/pkg/tiboot3.bin
+	make -C ./tmp/u-boot -j1 O=../a53 ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- $(UB_CONFIG)_a53_defconfig
+	make -C ./tmp/u-boot -j5 O=../a53 ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- BL31=/opt/u-boot/$(TARGETDIR)/bl31.bin TEE=/opt/u-boot/$(TARGETDIR)/tee-pager_v2.bin BINMAN_INDIRS=/opt/u-boot/$(TARGETDIR)/ti-linux-firmware/
+	cp -v ./tmp/a53/tispl.bin_unsigned ./tmp/pkg/tispl.bin
+	cp -v ./tmp/a53/u-boot.img_unsigned ./tmp/pkg/u-boot.img
+
+%:
+	dh $@
+
diff --git a/bb-u-boot-beagleplay-mainline/version.sh b/bb-u-boot-beagleplay-mainline/version.sh
index 3695bfd8e..ee9fa1606 100644
--- a/bb-u-boot-beagleplay-mainline/version.sh
+++ b/bb-u-boot-beagleplay-mainline/version.sh
@@ -4,7 +4,7 @@
 
 package_name="bb-u-boot-beagleplay-mainline"
 debian_pkg_name="${package_name}"
-package_version="2023.07.20230725.0"
+package_version="2023.07.20230725.1"
 package_source=""
 src_dir=""
 
@@ -20,3 +20,6 @@ debian_patch=""
 clear_changelog="enable"
 
 bullseye_version="~bullseye+20230725"
+bookworm_version="~bookworm+20230725"
+trixie_version="~trixie+20230725"
+jammy_version="~jammy+20230725"
-- 
GitLab