Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 45bc4940 authored by Robert Nelson's avatar Robert Nelson
Browse files

drop bb-u-boot-beagleboneai64-debian-rc, use ci:...

drop bb-u-boot-beagleboneai64-debian-rc, use ci: https://openbeagle.org/beagleboard/u-boot-beagleboneai64



Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent cb7c11be
Branches
No related merge requests found
Showing
with 0 additions and 415 deletions
#!/bin/bash
dl_src () {
if [ -d ./src/ ] ; then
rm -rf ./src/
fi
git clone https://openbeagle.org/beagleboard/usr-customizations.git ./src/
}
run_sed () {
sed -i -e 's:bb-u-boot-beagleboneai64:bb-u-boot-beagleboneai64-rc:g' ./src/${wfile}
}
copy_all () {
cp -v ./src/${wfile} ./suite/bullseye/debian/
cp -v ./src/${wfile} ./suite/bookworm/debian/
# cp -v ./src/${wfile} ./suite/trixie/debian/
# cp -v ./src/${wfile} ./suite/jammy/debian/
# cp -v ./src/${wfile} ./suite/noble/debian/
}
dl_src
wfile="arm64/etc/beagle-flasher/bbai64-emmc-to-microsd" ; run_sed ; copy_all
wfile="arm64/etc/beagle-flasher/bbai64-emmc-to-nvme" ; run_sed ; copy_all
wfile="arm64/etc/beagle-flasher/bbai64-microsd-to-emmc" ; run_sed ; copy_all
* 20240402 - v2024.04 - https://github.com/u-boot/u-boot/releases/tag/v2024.04
* 20240320 - 09.02.00.009 - https://git.ti.com/gitweb?p=processor-firmware/ti-linux-firmware.git;a=tag;h=refs/tags/09.02.00.009
* 20240401 - master - https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/+/753da8ce4500b1084be41a1d3bb034d47cdf2add
* 20240119 - 4.1.0 - https://github.com/OP-TEE/optee_os/commits/4.1.0
* add extlinux.conf boot menu options over serial
* Bump FAT partition to 256MB for boot recovery images
* Enable a extlinux.conf option to flash other media directly
* extlinux.conf more vocal on eMMC vs microSD
* Flasher scripts, echo Serial over HDMI
* extlinux.conf, unify labels to make flasher change more generic
debug_over_display=tty0
source=/dev/mmcblk0
destination=/dev/mmcblk1
rfs_partition=dual
rfs_boot_startmb=1
rfs_boot_size_mb=256
rfs_boot_permissions=user,uid=1000,gid=1000,defaults
flash_back=/opt/u-boot/bb-u-boot-beagleboneai64-rc/bbai64-microsd-to-emmc
extlinux=/opt/u-boot/bb-u-boot-beagleboneai64-rc/microsd-extlinux.conf
debug_over_display=tty0
source=/dev/mmcblk0
destination=/dev/nvme0n1
rfs_partition=hybrid
rfs_boot_permissions=user,uid=1000,gid=1000,defaults
rfs_rootfs_startmb=1
extlinux=/opt/u-boot/bb-u-boot-beagleboneai64-rc/nvme-extlinux.conf
debug_over_display=tty0
source=/dev/mmcblk1
destination=/dev/mmcblk0
rfs_partition=dual
rfs_boot_startmb=1
rfs_boot_size_mb=256
rfs_boot_permissions=user,uid=1000,gid=1000,defaults
bootloader=/opt/u-boot/bb-u-boot-beagleboneai64-rc/install-emmc.sh
flash_back=/opt/u-boot/bb-u-boot-beagleboneai64-rc/bbai64-emmc-to-microsd
extlinux=/opt/u-boot/bb-u-boot-beagleboneai64-rc/emmc-extlinux.conf
bb-u-boot-beagleboneai64-rc (2024.04.20240402.0-0~bookworm+20240406) bookworm; urgency=low
* 20240402 - v2024.04 - https://github.com/u-boot/u-boot/releases/tag/v2024.04
* 20240320 - 09.02.00.009 - https://git.ti.com/gitweb?p=processor-firmware/ti-linux-firmware.git;a=tag;h=refs/tags/09.02.00.009
* 20240401 - master - https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/+/753da8ce4500b1084be41a1d3bb034d47cdf2add
* 20240119 - 4.1.0 - https://github.com/OP-TEE/optee_os/commits/4.1.0
* add extlinux.conf boot menu options over serial
* Bump FAT partition to 256MB for boot recovery images
* Enable a extlinux.conf option to flash other media directly
* extlinux.conf more vocal on eMMC vs microSD
* Flasher scripts, echo Serial over HDMI
* extlinux.conf, unify labels to make flasher change more generic
-- Robert Nelson <robertcnelson@gmail.com> Sat, 06 Apr 2024 14:51:31 -0500
9
Source: bb-u-boot-beagleboneai64-rc
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-dev
, python3-jsonschema
, python3-pycryptodome
, python3-pyelftools
, python3-setuptools
, python3-yaml
, rsync
, swig
, u-boot-tools
, yamllint
Standards-Version: 4.5.1
Package: bb-u-boot-beagleboneai64-rc
Architecture: arm64
Depends:
${shlibs:Depends}
, ${misc:Depends}
, mmc-utils
Description: bb-u-boot-beagleboneai64-rc
bb-u-boot-beagleboneai64-rc
menu title BeagleBone AI-64 eMMC (extlinux.conf)
timeout 50
default eMMC (default)
label eMMC Recovery
kernel /Image
append root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait net.ifnames=0 systemd.unified_cgroup_hierarchy=false
fdtdir /
initrd /initrd.img
label copy eMMC to microSD
kernel /Image
append root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait net.ifnames=0 systemd.unified_cgroup_hierarchy=false init=/usr/sbin/init-beagle-flasher
fdtdir /
initrd /initrd.img
label eMMC (default)
kernel /Image
append root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait net.ifnames=0 systemd.unified_cgroup_hierarchy=false quiet
fdtdir /
#fdtoverlays /overlays/<file>.dtbo
initrd /initrd.img
menu title BeagleBone AI-64 eMMC (extlinux.conf)
timeout 50
default eMMC (default)
label eMMC Recovery
kernel /Image
append root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait net.ifnames=0
fdtdir /
initrd /initrd.img
label copy eMMC to microSD
kernel /Image
append root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait net.ifnames=0 init=/usr/sbin/init-beagle-flasher
fdtdir /
initrd /initrd.img
label eMMC (default)
kernel /Image
append root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait net.ifnames=0 quiet
fdtdir /
#fdtoverlays /overlays/<file>.dtbo
initrd /initrd.img
#!/bin/bash
if ! id | grep -q root; then
echo "must be run as root"
exit
fi
wdir="/opt/u-boot/bb-u-boot-beagleboneai64-rc"
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
fi
debian/install.sh /opt/u-boot/bb-u-boot-beagleboneai64-rc
debian/install-microsd.sh /opt/u-boot/bb-u-boot-beagleboneai64-rc
debian/install-emmc.sh /opt/u-boot/bb-u-boot-beagleboneai64-rc
debian/erase-emmc.sh /opt/u-boot/bb-u-boot-beagleboneai64-rc
debian/emmc-extlinux.conf /opt/u-boot/bb-u-boot-beagleboneai64-rc
debian/emmc-extlinux-homeassistant.conf /opt/u-boot/bb-u-boot-beagleboneai64-rc
debian/microsd-extlinux.conf /opt/u-boot/bb-u-boot-beagleboneai64-rc
debian/microsd-extlinux-homeassistant.conf /opt/u-boot/bb-u-boot-beagleboneai64-rc
debian/nvme-extlinux.conf /opt/u-boot/bb-u-boot-beagleboneai64-rc
debian/bbai64-emmc-to-microsd /opt/u-boot/bb-u-boot-beagleboneai64-rc
debian/bbai64-emmc-to-nvme /opt/u-boot/bb-u-boot-beagleboneai64-rc
debian/bbai64-microsd-to-emmc /opt/u-boot/bb-u-boot-beagleboneai64-rc
tmp/pkg/bl31.bin /opt/u-boot/bb-u-boot-beagleboneai64-rc
tmp/pkg/sysfw.itb /opt/u-boot/bb-u-boot-beagleboneai64-rc
tmp/pkg/tee-pager_v2.bin /opt/u-boot/bb-u-boot-beagleboneai64-rc
tmp/pkg/tiboot3.bin /opt/u-boot/bb-u-boot-beagleboneai64-rc
tmp/pkg/tispl.bin /opt/u-boot/bb-u-boot-beagleboneai64-rc
tmp/pkg/u-boot.img /opt/u-boot/bb-u-boot-beagleboneai64-rc
#!/bin/bash
if ! id | grep -q root; then
echo "must be run as root"
exit
fi
wdir="/opt/u-boot/bb-u-boot-beagleboneai64-rc"
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
#!/bin/bash
if ! id | grep -q root; then
echo "must be run as root"
exit
fi
wdir="/opt/u-boot/bb-u-boot-beagleboneai64-rc"
if [ -d /boot/firmware/ ] ; then
cp -v ${wdir}/sysfw.itb /boot/firmware/
cp -v ${wdir}/tiboot3.bin /boot/firmware/
cp -v ${wdir}/tispl.bin /boot/firmware/
cp -v ${wdir}/u-boot.img /boot/firmware/
fi
#!/bin/bash
if ! id | grep -q root; then
echo "must be run as root"
exit
fi
wdir="/opt/u-boot/bb-u-boot-beagleboneai64-rc"
if [ -d /boot/firmware/ ] ; then
cp -v ${wdir}/sysfw.itb /boot/firmware/
cp -v ${wdir}/tiboot3.bin /boot/firmware/
cp -v ${wdir}/tispl.bin /boot/firmware/
cp -v ${wdir}/u-boot.img /boot/firmware/
fi
menu title BeagleBone AI-64 microSD (extlinux.conf)
timeout 50
default microSD (default)
label microSD Recovery
kernel /Image
append root=/dev/mmcblk1p2 ro rootfstype=ext4 rootwait net.ifnames=0 systemd.unified_cgroup_hierarchy=false
fdtdir /
initrd /initrd.img
label copy microSD to eMMC
kernel /Image
append root=/dev/mmcblk1p2 ro rootfstype=ext4 rootwait net.ifnames=0 systemd.unified_cgroup_hierarchy=false init=/usr/sbin/init-beagle-flasher
fdtdir /
initrd /initrd.img
label microSD (default)
kernel /Image
append root=/dev/mmcblk1p2 ro rootfstype=ext4 rootwait net.ifnames=0 systemd.unified_cgroup_hierarchy=false quiet
fdtdir /
#fdtoverlays /overlays/<file>.dtbo
initrd /initrd.img
menu title BeagleBone AI-64 microSD (extlinux.conf)
timeout 50
default microSD (default)
label microSD Recovery
kernel /Image
append root=/dev/mmcblk1p2 ro rootfstype=ext4 rootwait net.ifnames=0
fdtdir /
initrd /initrd.img
label copy microSD to eMMC
kernel /Image
append root=/dev/mmcblk1p2 ro rootfstype=ext4 rootwait net.ifnames=0 init=/usr/sbin/init-beagle-flasher
fdtdir /
initrd /initrd.img
label microSD (default)
kernel /Image
append root=/dev/mmcblk1p2 ro rootfstype=ext4 rootwait net.ifnames=0 quiet
fdtdir /
#fdtoverlays /overlays/<file>.dtbo
initrd /initrd.img
menu title BeagleBone AI-64 NVMe (extlinux.conf)
timeout 50
default NVMe (default)
label NVMe Recovery
kernel /Image
append root=/dev/nvme0n1p1 ro rootfstype=ext4 rootwait net.ifnames=0
fdtdir /
initrd /initrd.img
label NVMe (default)
kernel /Image
append root=/dev/nvme0n1p1 ro rootfstype=ext4 rootwait net.ifnames=0 quiet
fdtdir /
#fdtoverlays /overlays/<file>.dtbo
initrd /initrd.img
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
#https://manpages.debian.org/bookworm/dpkg-dev/dpkg-buildflags.1.en.html
export DEB_BUILD_MAINT_OPTIONS = hardening=-fortify
TARGETDIR=bb-u-boot-beagleboneai64-rc
#/opt/u-boot/$(TARGETDIR)/
#ti-linux-firmware
#HEAD: https://git.ti.com/gitweb?p=processor-firmware/ti-linux-firmware.git;a=summary
#TAGS: https://git.ti.com/gitweb?p=processor-firmware/ti-linux-firmware.git;a=tags
#Mirror: https://github.com/beagleboard/ti-linux-firmware
TILF_TAG=09.02.00.009
#TILF_REPO="https://github.com/beagleboard/ti-linux-firmware.git"
#Local Mirror
TILF_REPO="https://git.gfnd.rcn-ee.org/TexasInstruments/ti-linux-firmware.git"
#trusted-firmware-a
#HEAD: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/
#TAGS: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/refs/
TFA_TAG=master
#TFA_TAG=lts-v2.10.2
#TFA_REPO="https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git"
#Local Mirror
TFA_REPO="https://git.gfnd.rcn-ee.org/mirror/trusted-firmware-a.git"
TFA_BOARD=generic
#optee_os
#HEAD: https://github.com/OP-TEE/optee_os
#TAGS: https://github.com/OP-TEE/optee_os/tags
#OPTEE_TAG=master
OPTEE_TAG=4.1.0
#OPTEE_REPO="https://github.com/OP-TEE/optee_os"
#Local Mirror
OPTEE_REPO="https://git.gfnd.rcn-ee.org/mirror/optee_os.git"
OPTEE_PLATFORM=k3-j721e
#U-Boot
UBOOT_CFG_CORTEXR="j721e_beagleboneai64_r5_defconfig"
UBOOT_CFG_CORTEXA="j721e_beagleboneai64_a72_defconfig"
UB_TAG="v2024.04"
UB_REPO="https://github.com/beagleboard/u-boot.git"
UB_TIBOOT=tiboot3-j721e-gp-evm.bin
UB_ITB=sysfw-j721e-gp-evm.itb
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 -c http.sslVerify=false 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/trusted-firmware-a/ ; git -c http.sslVerify=false clone -b $(TFA_TAG) $(TFA_REPO) --depth=5 ./tmp/trusted-firmware-a/ ; git --git-dir ./tmp/trusted-firmware-a/.git log --pretty=oneline
make -C ./tmp/trusted-firmware-a/ -j8 CROSS_COMPILE=aarch64-linux-gnu- CFLAGS= LDFLAGS= ARCH=aarch64 PLAT=k3 TARGET_BOARD=$(TFA_BOARD) SPD=opteed all
cp -v ./tmp/trusted-firmware-a/build/k3/$(TFA_BOARD)/release/bl31.bin ./tmp/pkg/
cp -v ./tmp/trusted-firmware-a/build/k3/$(TFA_BOARD)/release/bl31.bin /opt/u-boot/$(TARGETDIR)/
mkdir -p ./tmp/optee_os/ ; git -c http.sslVerify=false clone -b $(OPTEE_TAG) $(OPTEE_REPO) --depth=5 ./tmp/optee_os/ ; git --git-dir ./tmp/optee_os/.git log --pretty=oneline
make -C ./tmp/optee_os/ -j8 O=../optee CROSS_COMPILE=arm-linux-gnueabihf- CROSS_COMPILE64=aarch64-linux-gnu- CFLAGS= LDFLAGS= PLATFORM=$(OPTEE_PLATFORM) CFG_ARM64_core=y all
cp -v ./tmp/optee/core/tee-pager_v2.bin ./tmp/pkg/
cp -v ./tmp/optee/core/tee-pager_v2.bin /opt/u-boot/$(TARGETDIR)/
mkdir -p ./tmp/u-boot/ ; git -c http.sslVerify=false clone -b $(UB_TAG) $(UB_REPO) --depth=5 ./tmp/u-boot/ ; git --git-dir ./tmp/u-boot/.git log --pretty=oneline
make -C ./tmp/u-boot -j1 O=../CORTEXR CROSS_COMPILE=arm-linux-gnueabihf- $(UBOOT_CFG_CORTEXR)
make -C ./tmp/u-boot -j8 O=../CORTEXR CROSS_COMPILE=arm-linux-gnueabihf- BINMAN_INDIRS=/opt/u-boot/$(TARGETDIR)/ti-linux-firmware/
ls -lha ./tmp/CORTEXR/
cp -v ./tmp/CORTEXR/$(UB_TIBOOT) ./tmp/pkg/tiboot3.bin
cp -v ./tmp/CORTEXR/$(UB_ITB) ./tmp/pkg/sysfw.itb
make -C ./tmp/u-boot -j1 O=../CORTEXA CROSS_COMPILE=aarch64-linux-gnu- $(UBOOT_CFG_CORTEXA)
make -C ./tmp/u-boot -j8 O=../CORTEXA 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/
ls -lha ./tmp/CORTEXA/
cp -v ./tmp/CORTEXA/tispl.bin_unsigned ./tmp/pkg/tispl.bin
cp -v ./tmp/CORTEXA/u-boot.img_unsigned ./tmp/pkg/u-boot.img
%:
dh $@
override_dh_builddeb:
dh_builddeb -- -Zxz
debug_over_display=tty0
source=/dev/mmcblk0
destination=/dev/mmcblk1
rfs_partition=dual
rfs_boot_startmb=1
rfs_boot_size_mb=256
rfs_boot_permissions=user,uid=1000,gid=1000,defaults
flash_back=/opt/u-boot/bb-u-boot-beagleboneai64-rc/bbai64-microsd-to-emmc
extlinux=/opt/u-boot/bb-u-boot-beagleboneai64-rc/microsd-extlinux.conf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment