Forum | Documentation | Website | Blog

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

bb-u-boot-beagleplay-debian-12 drop trixie (binutils)


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent d3a8929f
No related merge requests found
Showing
with 0 additions and 458 deletions
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-beagleplay/beagleplay-microsd-to-emmc
extlinux=/opt/u-boot/bb-u-boot-beagleplay/microsd-extlinux.conf
flash_cc1352p=enable
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
rfs_swap_size_mb=2048
flash_back=/opt/u-boot/bb-u-boot-beagleplay/beagleplay-microsd-to-emmc-w-swap
extlinux=/opt/u-boot/bb-u-boot-beagleplay/microsd-extlinux-w-swap.conf
flash_cc1352p=enable
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-beagleplay/install-emmc.sh
flash_back=/opt/u-boot/bb-u-boot-beagleplay/beagleplay-emmc-to-microsd
extlinux=/opt/u-boot/bb-u-boot-beagleplay/emmc-extlinux.conf
flash_cc1352p=enable
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
rfs_swap_size_mb=2048
bootloader=/opt/u-boot/bb-u-boot-beagleplay/install-emmc.sh
flash_back=/opt/u-boot/bb-u-boot-beagleplay/beagleplay-emmc-to-microsd-w-swap
extlinux=/opt/u-boot/bb-u-boot-beagleplay/emmc-extlinux-w-swap.conf
flash_cc1352p=enable
bb-u-boot-beagleplay (2024.10.20241114.1-0~trixie+20241219) trixie; urgency=low
* 20241007 - v2024.10 - https://github.com/u-boot/u-boot/releases/tag/v2024.10
* 20241118 - 10.01.10 - https://git.ti.com/gitweb?p=processor-firmware/ti-linux-firmware.git;a=tag;h=refs/tags/10.01.10
* 20241018 - 4.4.0 - https://github.com/OP-TEE/optee_os/commits/4.4.0
* 20241115 - v2.12.0 - https://github.com/ARM-software/arm-trusted-firmware/releases/tag/v2.12.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> Thu, 19 Dec 2024 11:38:57 -0600
9
Source: bb-u-boot-beagleplay
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
, libgnutls28-dev
, libssl-dev
, python3-cryptography
, python3-dev
, python3-jsonschema
, python3-pycryptodome
, python3-pyelftools
, python3-setuptools
, python3-yaml
, rsync
, swig
, u-boot-tools
, uuid-dev
, yamllint
Standards-Version: 4.5.1
Package: bb-u-boot-beagleplay
Architecture: arm64
Depends:
${shlibs:Depends}
, ${misc:Depends}
, mmc-utils
Description: beagleboard.org u-boot for beagleplay
beagleboard.org u-boot for beagleplay
menu title BeaglePlay eMMC (extlinux.conf)
timeout 50
default eMMC (default)
label eMMC disable BCFSERIAL
kernel /Image
append root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait net.ifnames=0 systemd.unified_cgroup_hierarchy=false
fdtdir /
fdtoverlays /overlays/k3-am625-beagleplay-bcfserial-no-firmware.dtbo
#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 (debug)
kernel /Image
append console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait net.ifnames=0 systemd.unified_cgroup_hierarchy=false
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 BeaglePlay eMMC (extlinux.conf) (swap enabled)
timeout 50
default eMMC (default)
label eMMC disable BCFSERIAL
kernel /Image
append root=/dev/mmcblk0p3 ro rootfstype=ext4 rootwait net.ifnames=0
fdtdir /
fdtoverlays /overlays/k3-am625-beagleplay-bcfserial-no-firmware.dtbo
#initrd /initrd.img
label copy eMMC to microSD
kernel /Image
append root=/dev/mmcblk0p3 ro rootfstype=ext4 rootwait net.ifnames=0 init=/usr/sbin/init-beagle-flasher
fdtdir /
initrd /initrd.img
label eMMC (debug)
kernel /Image
append console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk0p3 ro rootfstype=ext4 rootwait net.ifnames=0
fdtdir /
#initrd /initrd.img
label eMMC (default)
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
menu title BeaglePlay eMMC (extlinux.conf)
timeout 50
default eMMC (default)
label eMMC disable BCFSERIAL
kernel /Image
append root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait net.ifnames=0
fdtdir /
fdtoverlays /overlays/k3-am625-beagleplay-bcfserial-no-firmware.dtbo
#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 (debug)
kernel /Image
append console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait net.ifnames=0
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-beagleplay"
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-beagleplay
debian/install-microsd.sh /opt/u-boot/bb-u-boot-beagleplay
debian/install-emmc.sh /opt/u-boot/bb-u-boot-beagleplay
debian/erase-emmc.sh /opt/u-boot/bb-u-boot-beagleplay
debian/microsd-extlinux.conf /opt/u-boot/bb-u-boot-beagleplay
debian/microsd-extlinux-w-swap.conf /opt/u-boot/bb-u-boot-beagleplay
debian/microsd-extlinux-homeassistant.conf /opt/u-boot/bb-u-boot-beagleplay
debian/emmc-extlinux.conf /opt/u-boot/bb-u-boot-beagleplay
debian/emmc-extlinux-w-swap.conf /opt/u-boot/bb-u-boot-beagleplay
debian/emmc-extlinux-homeassistant.conf /opt/u-boot/bb-u-boot-beagleplay
debian/beagleplay-emmc-to-microsd /opt/u-boot/bb-u-boot-beagleplay
debian/beagleplay-microsd-to-emmc /opt/u-boot/bb-u-boot-beagleplay
debian/beagleplay-emmc-to-microsd-w-swap /opt/u-boot/bb-u-boot-beagleplay
debian/beagleplay-microsd-to-emmc-w-swap /opt/u-boot/bb-u-boot-beagleplay
tmp/pkg/bl31.bin /opt/u-boot/bb-u-boot-beagleplay
tmp/pkg/tee-pager_v2.bin /opt/u-boot/bb-u-boot-beagleplay
tmp/pkg/tiboot3.bin /opt/u-boot/bb-u-boot-beagleplay
tmp/pkg/tispl.bin /opt/u-boot/bb-u-boot-beagleplay
tmp/pkg/u-boot.img /opt/u-boot/bb-u-boot-beagleplay
tmp/pkg/build.txt /opt/u-boot/bb-u-boot-beagleplay
#!/bin/bash
if ! id | grep -q root; then
echo "must be run as root"
exit
fi
wdir="/opt/u-boot/bb-u-boot-beagleplay"
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-beagleplay"
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
#!/bin/bash
if ! id | grep -q root; then
echo "must be run as root"
exit
fi
wdir="/opt/u-boot/bb-u-boot-beagleplay"
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
menu title BeaglePlay microSD (extlinux.conf)
timeout 50
default microSD (default)
label microSD disable BCFSERIAL
kernel /Image
append root=/dev/mmcblk1p2 ro rootfstype=ext4 rootwait net.ifnames=0 systemd.unified_cgroup_hierarchy=false
fdtdir /
fdtoverlays /overlays/k3-am625-beagleplay-bcfserial-no-firmware.dtbo
#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 (debug)
kernel /Image
append console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk1p2 ro rootfstype=ext4 rootwait net.ifnames=0 systemd.unified_cgroup_hierarchy=false
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 BeaglePlay microSD (extlinux.conf) (swap enabled)
timeout 50
default microSD (default)
label microSD disable BCFSERIAL
kernel /Image
append root=/dev/mmcblk1p3 ro rootfstype=ext4 rootwait net.ifnames=0
fdtdir /
fdtoverlays /overlays/k3-am625-beagleplay-bcfserial-no-firmware.dtbo
#initrd /initrd.img
label copy microSD to eMMC
kernel /Image
append root=/dev/mmcblk1p3 ro rootfstype=ext4 rootwait net.ifnames=0 init=/usr/sbin/init-beagle-flasher
fdtdir /
initrd /initrd.img
label microSD (debug)
kernel /Image
append console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk1p3 ro rootfstype=ext4 rootwait net.ifnames=0
fdtdir /
#initrd /initrd.img
label microSD (default)
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
menu title BeaglePlay microSD (extlinux.conf)
timeout 50
default microSD (default)
label microSD disable BCFSERIAL
kernel /Image
append root=/dev/mmcblk1p2 ro rootfstype=ext4 rootwait net.ifnames=0
fdtdir /
fdtoverlays /overlays/k3-am625-beagleplay-bcfserial-no-firmware.dtbo
#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 (debug)
kernel /Image
append console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk1p2 ro rootfstype=ext4 rootwait net.ifnames=0
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
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
#https://manpages.debian.org/unstable/dpkg-dev/dpkg-buildflags.1.en.html
export DEB_BUILD_MAINT_OPTIONS = hardening=-branch,-fortify
TARGETDIR=bb-u-boot-beagleplay
#/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=10.01.10
#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://github.com/ARM-software/arm-trusted-firmware
#TAGS: https://github.com/ARM-software/arm-trusted-firmware/tags
#TAGS: https://github.com/ARM-software/arm-trusted-firmware/commits/master/
#TFA_TAG=master
TFA_TAG=v2.12.0
#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=lite
#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.4.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-am62x
#U-Boot
UBOOT_CFG_CORTEXR="am62x_beagleplay_r5_defconfig"
UBOOT_CFG_CORTEXA="am62x_beagleplay_a53_defconfig"
UB_TAG="v2024.10-Beagle"
UB_REPO="https://github.com/beagleboard/u-boot.git"
UB_TIBOOT=tiboot3-am62x-gp-evm.bin
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/ ; echo "ti-linux-firmware:" > ./tmp/pkg/build.txt ; git --git-dir ./tmp/ti-linux-firmware/.git rev-parse HEAD >> ./tmp/pkg/build.txt ; 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/ ; echo "Trusted Firmware for A:" >> ./tmp/pkg/build.txt ; git --git-dir ./tmp/trusted-firmware-a/.git rev-parse HEAD >> ./tmp/pkg/build.txt
make -C ./tmp/trusted-firmware-a/ -j8 CROSS_COMPILE=aarch64-linux-gnu- CFLAGS= LDFLAGS= ARCH=aarch64 PLAT=k3 TARGET_BOARD=$(TFA_BOARD) K3_PM_SYSTEM_SUSPEND=1 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/ ; echo "OP-TEE:" >> ./tmp/pkg/build.txt ; git --git-dir ./tmp/optee_os/.git rev-parse HEAD >> ./tmp/pkg/build.txt
make -C ./tmp/optee_os/ -j8 O=../optee CROSS_COMPILE=arm-linux-gnueabihf- CROSS_COMPILE64=aarch64-linux-gnu- CFLAGS= LDFLAGS= PLATFORM=$(OPTEE_PLATFORM) CFG_WITH_SOFTWARE_PRNG=y 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/ ; echo "U-Boot:" >> ./tmp/pkg/build.txt ; git --git-dir ./tmp/u-boot/.git rev-parse HEAD >> ./tmp/pkg/build.txt
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
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
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