@@ -41,6 +41,7 @@ function build_bootable_armbian_uboot_rockchip() {
4141function list_bootable_armbian_uboot_rockchip_vendor() {
4242 declare -g -A bootable_boards=()
4343 bootable_boards[" r58x" ]=" BOARD=mekotronics-r58x-pro BRANCH=vendor"
44+ bootable_boards[" blade3" ]=" BOARD=mixtile-blade3 BRANCH=vendor"
4445}
4546
4647function build_bootable_armbian_uboot_rockchip_vendor() {
@@ -195,6 +196,10 @@ function write_uboot_script() {
195196 exit 2
196197 fi
197198
199+ declare -g -a bootable_tinkerbell_kernel_params=()
200+ fill_array_bootable_tinkerbell_kernel_parameters " ${BOARD} "
201+ declare tinkerbell_args=" ${bootable_tinkerbell_kernel_params[*]} "
202+
198203 declare console_extra_args=" ${bootable_info['CONSOLE_EXTRA_ARGS']:- " " } "
199204 cat << - BOOT_CMD > "${boot_cmd_file} "
200205 # Hook u-boot bootscript; mkimage -C none -A arm -T script -d /boot.cmd /boot.scr
@@ -204,7 +209,7 @@ function write_uboot_script() {
204209 setenv ramdisk_addr_r "0x40000000"
205210 test -n "\$ {distro_bootpart}" || distro_bootpart=1
206211 echo "Boot script loaded from \$ {devtype} \$ {devnum}:\$ {distro_bootpart}"
207- setenv bootargs "${UBOOT_EXTLINUX_CMDLINE} console=tty0 console=${UBOOT_KERNEL_SERIALCON}${console_extra_args} "
212+ setenv bootargs "${UBOOT_EXTLINUX_CMDLINE} console=tty0 console=${UBOOT_KERNEL_SERIALCON}${console_extra_args} ${tinkerbell_args} "
208213 echo "Booting with: \$ {bootargs}"
209214
210215 echo "Loading initramfs... \$ {ramdisk_addr_r} /uinitrd"
@@ -221,6 +226,9 @@ function write_uboot_script() {
221226 booti \$ {kernel_addr_r} \$ {ramdisk_addr_r} \$ {fdt_addr_r}
222227 BOOT_CMD
223228
229+ log info " Marking uinitrd.wanted..."
230+ touch " ${fat32_root_dir} /uinitrd.wanted" # marker file for utility run during fat32 image creation; see create_image_fat32_root_from_dir()
231+
224232 log_file_bat " ${boot_cmd_file} " " info" " Produced Armbian u-boot boot.cmd/boot.scr"
225233
226234 return 0
0 commit comments