@@ -187,6 +187,8 @@ function write_uboot_script_or_extlinux() {
187
187
function write_uboot_script() {
188
188
declare fat32_root_dir=" ${1} "
189
189
declare boot_cmd_file=" ${fat32_root_dir} /boot.cmd"
190
+
191
+ declare console_extra_args=" ${bootable_info['CONSOLE_EXTRA_ARGS']:- " " } "
190
192
cat << - BOOT_CMD > "${boot_cmd_file} "
191
193
# Hook u-boot bootscript; mkimage -C none -A arm -T script -d /boot.cmd /boot.scr
192
194
echo "Starting Tinkerbell Hook boot script..."
@@ -195,7 +197,7 @@ function write_uboot_script() {
195
197
setenv ramdisk_addr_r "0x40000000"
196
198
test -n "\$ {distro_bootpart}" || distro_bootpart=1
197
199
echo "Boot script loaded from \$ {devtype} \$ {devnum}:\$ {distro_bootpart}"
198
- setenv bootargs "${UBOOT_EXTLINUX_CMDLINE} "
200
+ setenv bootargs "${UBOOT_EXTLINUX_CMDLINE} console=tty0 console= ${UBOOT_KERNEL_SERIALCON}${console_extra_args} "
199
201
echo "Booting with: \$ {bootargs}"
200
202
201
203
echo "Loading initramfs... \$ {ramdisk_addr_r} /uinitrd"
@@ -221,7 +223,7 @@ function write_uboot_extlinux() {
221
223
declare fat32_root_dir=" ${1} "
222
224
223
225
declare console_extra_args=" ${bootable_info['CONSOLE_EXTRA_ARGS']:- " " } "
224
- declare bootargs=" ${UBOOT_EXTLINUX_CMDLINE} console=${UBOOT_KERNEL_SERIALCON}${console_extra_args} "
226
+ declare bootargs=" ${UBOOT_EXTLINUX_CMDLINE} console=tty0 console= ${UBOOT_KERNEL_SERIALCON}${console_extra_args} "
225
227
log info " Writing extlinux.conf; kernel cmdline: ${bootargs} "
226
228
227
229
declare -g -a bootable_tinkerbell_kernel_params=()
0 commit comments