mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-03-09 15:40:13 +00:00
* Enable Bluetooth LE radio support * Build our own bccmd which we need to setup/enable this BT chipset sadly * Use our own tool we build to interface with the ubnt eeprom, so we can not rely on their custom kernel module * Also fix HDDs not spinning down on shutdown, doing something similar to how unifi does it but a tad more generic.
53 lines
1.6 KiB
Bash
Executable file
53 lines
1.6 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
root_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
|
|
build_path="${root_path}/BuildEnv"
|
|
|
|
# Docker image name
|
|
docker_tag=unvr-nas:builder
|
|
|
|
# Expected UNVR Firmware and hash
|
|
firmware_filename="f449-UNVRPRO-4.0.3-fdec2c4f-1855-4eb6-8711-e22f8f904922.bin"
|
|
firmware_md5="5dcdc03bdec1524767007fcd12e81777"
|
|
|
|
# Toolchain
|
|
toolchain_url="https://developer.arm.com/-/media/Files/downloads/gnu/12.2.rel1/binrel/arm-gnu-toolchain-12.2.rel1-x86_64-aarch64-none-linux-gnu.tar.xz"
|
|
toolchain_filename="$(basename ${toolchain_url})"
|
|
toolchain_bin_path="${toolchain_filename%.tar.xz}/bin"
|
|
toolchain_cross_compile="aarch64-none-linux-gnu-"
|
|
|
|
# Kernel
|
|
kernel_src="https://github.com/fabianishere/udm-kernel/archive/refs/heads/master.tar.gz"
|
|
kernel_filename="udm-kernel-master.tar.gz"
|
|
kernel_config="alpine_v2_defconfig"
|
|
kernel_overlay_dir="kernel"
|
|
|
|
# Genimage
|
|
genimage_src="https://github.com/pengutronix/genimage/releases/download/v16/genimage-16.tar.xz"
|
|
genimage_filename="$(basename ${genimage_src})"
|
|
genimage_repopath="${genimage_filename%.tar.xz}"
|
|
|
|
# bluez
|
|
bluez_src="https://github.com/bluez/bluez/archive/refs/tags/5.55.tar.gz"
|
|
bluez_filename="bluez-$(basename ${bluez_src})"
|
|
bluez_repopath="${bluez_filename%.tar.gz}"
|
|
|
|
# Distro
|
|
distrib_name="debian"
|
|
#deb_mirror="http://ftp.us.debian.org/debian"
|
|
deb_mirror="http://debian.uchicago.edu/debian"
|
|
deb_release="bookworm"
|
|
deb_arch="arm64"
|
|
fs_overlay_dir="filesystem"
|
|
|
|
debug_msg () {
|
|
BLU='\033[0;32m'
|
|
NC='\033[0m'
|
|
printf "${BLU}${@}${NC}\n"
|
|
}
|
|
|
|
error_msg () {
|
|
BLU='\033[0;31m'
|
|
NC='\033[0m'
|
|
printf "${BLU}${@}${NC}\n"
|
|
}
|