Skip to content

Commit

Permalink
Finally some progress.
Browse files Browse the repository at this point in the history
Added debug capabilities inside of KERNEL_ADD in board config, also specifying ttys0 serial speed of 115200, which works now.
Added debugging through kexec -d call as well if DEBUG output activated in board config

Now Tinycore stalls at ethernet init, loop is established and resized multiple times, so it seems that tinycore has what he was searching for to prepare normal boot options in memory.
Investigating vga options and will output some info on PR
  • Loading branch information
tlaurion committed Mar 31, 2023
1 parent 6459416 commit a39d71c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export CONFIG_BOOTSCRIPT=/bin/gui-init
export CONFIG_BOOT_REQ_HASH=n
export CONFIG_BOOT_REQ_ROLLBACK=n
export CONFIG_BOOT_RECOVERY_SERIAL="/dev/ttyS0"
export CONFIG_BOOT_KERNEL_ADD="console=ttyS0 console=tty systemd.zram=0"
export CONFIG_BOOT_KERNEL_ADD="nosmp debug console=ttyS0,115200 console=tty systemd.zram=0"
export CONFIG_BOOT_KERNEL_REMOVE="quiet rhgb splash"

export CONFIG_TPM=y
Expand Down
12 changes: 7 additions & 5 deletions config/linux-qemu.config
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,9 @@ CONFIG_COMPAT_FOR_U64_ALIGNMENT=y
# Firmware Drivers
#
# CONFIG_EDD is not set
CONFIG_FIRMWARE_MEMMAP=y
# CONFIG_FIRMWARE_MEMMAP is not set
# CONFIG_DMIID is not set
CONFIG_DMI_SYSFS=y
# CONFIG_DMI_SYSFS is not set
CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
# CONFIG_ISCSI_IBFT is not set
# CONFIG_FW_CFG_SYSFS is not set
Expand All @@ -536,8 +536,8 @@ CONFIG_GOOGLE_FIRMWARE=y
CONFIG_GOOGLE_COREBOOT_TABLE=y
CONFIG_GOOGLE_MEMCONSOLE=y
CONFIG_GOOGLE_MEMCONSOLE_X86_LEGACY=y
# CONFIG_GOOGLE_FRAMEBUFFER_COREBOOT is not set
# CONFIG_GOOGLE_MEMCONSOLE_COREBOOT is not set
CONFIG_GOOGLE_FRAMEBUFFER_COREBOOT=y
CONFIG_GOOGLE_MEMCONSOLE_COREBOOT=y
# CONFIG_GOOGLE_VPD is not set

#
Expand Down Expand Up @@ -1529,7 +1529,9 @@ CONFIG_DEVMEM=y
CONFIG_NVRAM=y
# CONFIG_RAW_DRIVER is not set
CONFIG_DEVPORT=y
# CONFIG_HPET is not set
CONFIG_HPET=y
CONFIG_HPET_MMAP=y
CONFIG_HPET_MMAP_DEFAULT=y
# CONFIG_HANGCHECK_TIMER is not set
CONFIG_TCG_TPM=y
CONFIG_HW_RANDOM_TPM=y
Expand Down
13 changes: 11 additions & 2 deletions initrd/bin/kexec-boot
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ adjust_cmd_line() {
adjusted_cmd_line="y"
}

if [ "$CONFIG_DEBUG_OUTPUT" = "y" ];then
kexeccmd="$kexeccmd -d"
fi

module_number="1"
while read line
do
Expand All @@ -80,15 +84,17 @@ do
elif [ "$kexectype" = "elf" ]; then
DEBUG "kexectype= $kexectype"
DEBUG "restval= $restval"
DEBUG "kexeccmd= $kexeccmd"
DEBUG "filepath= $filepath"
#kexeccmd="$kexeccmd --noefi --console-vga -l $filepath"
kexeccmd="$kexeccmd --reuse-video-type -l $filepath"
#kexeccmd="$kexeccmd --command-line \"$restval vga=current\""
#kexeccmd="$kexeccmd --noefi --reset-vga -l $filepath"
#kexeccmd="$kexeccmd --noefi --console-vga --reuse-video-type -l $filepath"
#kexeccmd="$kexeccmd --noefi --real-mode --console-vga --reuse-video-type -l $filepath"
#kexeccmd="$kexeccmd -l $filepath --command-line \"$restval vga=current\""
kexeccmd="$kexeccmd -l $filepath"
#kexeccmd="$kexeccmd -l $filepath"
else
DEBUG "unknown kexectype!!!!"
kexeccmd="$kexeccmd -l $filepath"
fi
fi
Expand Down Expand Up @@ -152,4 +158,7 @@ if [ "$CONFIG_TPM" = "y" ]; then
fi

echo "Starting the new kernel"
if [ "$CONFIG_DEBUG_OUTPUT" = "y" ];then
exec kexec -d -e
fi
exec kexec -e

0 comments on commit a39d71c

Please sign in to comment.