@@ -41,6 +41,7 @@ function build_bootable_armbian_uboot_rockchip() {
41
41
function list_bootable_armbian_uboot_rockchip_vendor() {
42
42
declare -g -A bootable_boards=()
43
43
bootable_boards[" r58x" ]=" BOARD=mekotronics-r58x-pro BRANCH=vendor"
44
+ bootable_boards[" blade3" ]=" BOARD=mixtile-blade3 BRANCH=vendor"
44
45
}
45
46
46
47
function build_bootable_armbian_uboot_rockchip_vendor() {
@@ -195,6 +196,10 @@ function write_uboot_script() {
195
196
exit 2
196
197
fi
197
198
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
+
198
203
declare console_extra_args=" ${bootable_info['CONSOLE_EXTRA_ARGS']:- " " } "
199
204
cat << - BOOT_CMD > "${boot_cmd_file} "
200
205
# Hook u-boot bootscript; mkimage -C none -A arm -T script -d /boot.cmd /boot.scr
@@ -204,7 +209,7 @@ function write_uboot_script() {
204
209
setenv ramdisk_addr_r "0x40000000"
205
210
test -n "\$ {distro_bootpart}" || distro_bootpart=1
206
211
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} "
208
213
echo "Booting with: \$ {bootargs}"
209
214
210
215
echo "Loading initramfs... \$ {ramdisk_addr_r} /uinitrd"
@@ -221,6 +226,9 @@ function write_uboot_script() {
221
226
booti \$ {kernel_addr_r} \$ {ramdisk_addr_r} \$ {fdt_addr_r}
222
227
BOOT_CMD
223
228
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
+
224
232
log_file_bat " ${boot_cmd_file} " " info" " Produced Armbian u-boot boot.cmd/boot.scr"
225
233
226
234
return 0
0 commit comments