Skip to content

Commit c068753

Browse files
committed
arduino-uno-q: move flash binaries to armbian/qcombin
Move EDL flash binaries (ABL, XBL, TrustZone, GPT tables, etc.) from packages/blobs/arduino/flash/ to the external armbian/qcombin repository under the Agatti folder, following the same pattern as rkbin for Rockchip and mtkbin for MediaTek. Add qcombin.sh extension to fetch binaries during build. Update image-output-arduino.sh to source flash files from qcombin cache and derive U-Boot package path from BRANCH/BOARD variables.
1 parent a98f3cd commit c068753

32 files changed

Lines changed: 9 additions & 181 deletions

config/sources/families/qrb2210.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ ARCH="arm64"
1111

1212
LINUXFAMILY="qrb2210"
1313
enable_extension "image-output-arduino"
14+
enable_extension "qcombin"
1415
declare -g IMAGE_PARTITION_TABLE='gpt'
1516
declare -g ATF_COMPILE="no"
17+
declare -g QCOMBIN_DIR="$SRC/cache/sources/qcombin"
1618

1719
declare -g BOOTDELAY=1
1820
declare -g BOOTSOURCE='https://github.com/arduino/u-boot.git'

extensions/image-output-arduino.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ function post_build_image__900_convert_to_arduino_img() {
2121
dd if="${img}" of="${ROOTFS_IMAGE_FILE}" bs=${sector_size} skip=${p2_start} count=${p2_sectors} status=progress
2222

2323
rm -rf arduino-images
24-
mkdir -p arduino-images
25-
cp -r ${SRC}/packages/blobs/arduino/flash arduino-images
24+
mkdir -p arduino-images/flash
25+
cp -r "${QCOMBIN_DIR}/Agatti/"* arduino-images/flash/
2626

2727
mkdir -p rootfs_mount
2828
local rootfs_loop=$(losetup -f --show "${ROOTFS_IMAGE_FILE}")
2929
mount ${rootfs_loop} rootfs_mount
30-
cp rootfs_mount/usr/lib/linux-u-boot-edge-arduino-uno-q/boot.img arduino-images/flash
30+
cp rootfs_mount/usr/lib/linux-u-boot-${BRANCH}-${BOARD}/boot.img arduino-images/flash/
3131
umount rootfs_mount
3232
losetup -d ${rootfs_loop}
3333

extensions/qcombin.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
function fetch_sources_tools__qcombin() {
3+
fetch_from_repo "${QCOMBIN_GIT_URL:-"https://github.com/armbian/qcombin"}" "qcombin" "branch:${QCOMBIN_GIT_BRANCH:-"main"}"
4+
}
-148 KB
Binary file not shown.
-24 Bytes
Binary file not shown.
-47.8 KB
Binary file not shown.
-84.3 KB
Binary file not shown.
-16.5 KB
Binary file not shown.
-16.5 KB
Binary file not shown.
-16.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)