@@ -15,7 +15,7 @@ declare -g BOOTDELAY=1
15
15
declare -g BOOTPATCHDIR="${BOOTPATCHDIR:-"u-boot-filogic"}"
16
16
declare -g BOOTBRANCH="${BOOTBRANCH:-"tag:v2025.04"}"
17
17
declare -g BOOTENV_FILE='filogic.txt'
18
- declare -g UBOOT_TARGET_MAP=";;u-boot.bin"
18
+ declare -g UBOOT_TARGET_MAP=";;u-boot.bin u-boot_sdmmc.fip bl2.img "
19
19
declare -g BOOTSCRIPT='boot-filogic.cmd:boot.cmd'
20
20
declare -g IMAGE_PARTITION_TABLE="gpt"
21
21
declare -g LINUXFAMILY=filogic
@@ -28,11 +28,15 @@ function add_host_dependencies__filogic_add_xxd_hostdep() {
28
28
29
29
# Handling of FIP blobs
30
30
function uboot_custom_postprocess() {
31
- run_host_command_logged rm -f "$SRC"/cache/u-boot_sdmmc.fip
31
+ run_host_command_logged rm -f "$SRC"/cache/sources/u-boot-worktree/u-boot/v2025.04/bl2.img
32
+ run_host_command_logged cp "$SRC"/cache/sources/arm-trusted-firmware/mtksoc-20250212/build/mt7988/release/bl2.img \
33
+ "$SRC"/cache/sources/u-boot-worktree/u-boot/v2025.04
34
+
35
+ run_host_command_logged rm -f "$SRC"/cache/sources/u-boot-worktree/u-boot/v2025.04/u-boot_sdmmc.fip
32
36
run_host_command_logged fiptool create \
33
37
--soc-fw "$SRC"/cache/sources/arm-trusted-firmware/mtksoc-20250212/build/mt7988/release/bl31.bin \
34
38
--nt-fw "$SRC"/cache/sources/u-boot-worktree/u-boot/v2025.04/u-boot.bin \
35
- "$SRC"/cache/u-boot_sdmmc.fip
39
+ "$SRC"/cache/sources/u-boot-worktree/u-boot/v2025.04/ u-boot_sdmmc.fip
36
40
}
37
41
38
42
case $BRANCH in
50
54
#KERNELPATCHDIR="archive/filogic-${KERNEL_MAJOR_MINOR}"
51
55
52
56
write_uboot_platform() {
53
- dd if="$SRC"/cache/sources/arm-trusted-firmware/mtksoc-20250212/build/mt7988/release /bl2.img of=$2 bs=512 seek=34 status=noxfer > /dev/null 2>&1
54
- dd if="$SRC"/cache /u-boot_sdmmc.fip of=$2 bs=512 seek=13312 status=noxfer >/dev/null 2>&1
57
+ dd if=$1 /bl2.img of=$2 bs=512 seek=34 status=noxfer > /dev/null 2>&1
58
+ dd if=$1 /u-boot_sdmmc.fip of=$2 bs=512 seek=13312 status=noxfer >/dev/null 2>&1
55
59
56
60
# backup gpt table
57
61
LAST_START=$(parted "$2" unit s print | grep -v "^$" | tail -n 1 | awk '{print $2}' | tr -d 's')
0 commit comments