From ef735aaa441cdecb236ffc7a49275598bf3f87f7 Mon Sep 17 00:00:00 2001 From: pstruebi Date: Thu, 17 Apr 2025 14:50:57 +0200 Subject: [PATCH] additional stuff --- USAGE_GUIDE.md | 2 +- board/raspberrypi3_swupdate/config.txt | 4 ++ configs/raspberrypi5_swupdate_defconfig | 64 +++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 configs/raspberrypi5_swupdate_defconfig diff --git a/USAGE_GUIDE.md b/USAGE_GUIDE.md index d36e021..bdfe366 100644 --- a/USAGE_GUIDE.md +++ b/USAGE_GUIDE.md @@ -7,7 +7,7 @@ This guide walks you through building the Auracaster system, flashing it to an S Before building, install the required packages (for Ubuntu/Debian): ```bash -sudo apt update && sudo apt install -y build-essential git rsync bc python3 unzip file wget cpio libssl-dev libncurses5-dev flex bison libelf-dev device-tree-compiler u-boot-tools +sudo apt update && sudo apt install -y build-essential git rsync bc python3 unzip file wget cpio libssl-dev libncurses5-dev flex bison libelf-dev device-tree-compiler u-boot-tools libgnutls28-dev ``` ## Building the System diff --git a/board/raspberrypi3_swupdate/config.txt b/board/raspberrypi3_swupdate/config.txt index e01956a..c06e22a 100644 --- a/board/raspberrypi3_swupdate/config.txt +++ b/board/raspberrypi3_swupdate/config.txt @@ -18,3 +18,7 @@ gpu_mem=32 # start the bootloader which then selects system A or B kernel=u-boot.bin + +# dt overlays +#dtoverlay=disable-bt +#dtoverlay=disable-wifi \ No newline at end of file diff --git a/configs/raspberrypi5_swupdate_defconfig b/configs/raspberrypi5_swupdate_defconfig new file mode 100644 index 0000000..52a3bd0 --- /dev/null +++ b/configs/raspberrypi5_swupdate_defconfig @@ -0,0 +1,64 @@ +# Auracaster System - Raspberry Pi 5 SWUpdate Defconfig + +# Architecture +BR2_aarch64=y +BR2_cortex_a76=y +BR2_ARM_FPU_VFPV4=y + +# Toolchain +BR2_TOOLCHAIN_BUILDROOT_CXX=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_TARBALL=y +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,576cc10e1ed50a9eacffc7a05c796051d7343ea4)/linux-576cc10e1ed50a9eacffc7a05c796051d7343ea4.tar.gz" +BR2_LINUX_KERNEL_DEFCONFIG="bcm2712" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2712-rpi-5-b" +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y + +# Filesystem +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_ROOTFS_EXT2_SIZE="256M" + +# Bootloader +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +#BR2_TARGET_UBOOT_CUSTOM_VERSION=y +#BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2023.07.02" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="rpi_5" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_PYTHON3=y +BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_FORMAT_BIN=y +BR2_TARGET_UBOOT_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_AURACASTER_SYSTEM_PATH)/board/raspberrypi5_swupdate/uboot.config" +BR2_PACKAGE_UBOOT_TOOLS=y +BR2_PACKAGE_UBOOT_TOOLS_MKIMAGE=y +BR2_PACKAGE_UBOOT_TOOLS_MKENVIMAGE=y +BR2_PACKAGE_UBOOT_TOOLS_BOOT_SCRIPT=y +BR2_PACKAGE_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="$(BR2_EXTERNAL_AURACASTER_SYSTEM_PATH)/board/raspberrypi5_swupdate/boot.scr.txt" +BR2_PACKAGE_UBOOT_TOOLS_ENVIMAGE=y +BR2_PACKAGE_UBOOT_TOOLS_ENVIMAGE_SOURCE="$(BR2_EXTERNAL_AURACASTER_SYSTEM_PATH)/board/raspberrypi5_swupdate/uboot-env.txt" +BR2_PACKAGE_UBOOT_TOOLS_ENVIMAGE_SIZE="0x20000" + +# Raspberry Pi firmware +BR2_PACKAGE_RPI_FIRMWARE=y +BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE="$(BR2_EXTERNAL_AURACASTER_SYSTEM_PATH)/board/raspberrypi5_swupdate/config.txt" + +# Useful packages +BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y +BR2_PACKAGE_XZ=y +BR2_PACKAGE_KMOD=y +BR2_PACKAGE_KMOD_TOOLS=y + +# SWUpdate (A/B update support) +BR2_PACKAGE_SWUPDATE=y +BR2_PACKAGE_SWUPDATE_WEBSERVER=y +BR2_PACKAGE_SWUPDATE_PROGRESS=y +BR2_PACKAGE_SWUPDATE_SYSTEMD=y +BR2_PACKAGE_SWUPDATE_SIGNED_IMAGES=y +BR2_PACKAGE_SWUPDATE_SSL=y + +# Additional settings as needed (add more based on your project requirements)