From 0a3a57a88bd55ce2396e685ab2cf0bde8359be9c Mon Sep 17 00:00:00 2001 From: nl6720 Date: Fri, 24 Feb 2023 17:50:13 +0200 Subject: configs/*/grub/grub.cfg: rearrange module loading * Do not manually load modules that will get loaded by invoking a command. * Explicitly load serial modules. * Move `insmod all_video` after the font is loaded. --- configs/baseline/grub/grub.cfg | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'configs/baseline') diff --git a/configs/baseline/grub/grub.cfg b/configs/baseline/grub/grub.cfg index 40248eb..371e6ee 100644 --- a/configs/baseline/grub/grub.cfg +++ b/configs/baseline/grub/grub.cfg @@ -9,15 +9,19 @@ insmod exfat insmod udf # Use graphics-mode output -insmod all_video -insmod font if loadfont "${prefix}/fonts/unicode.pf2" ; then + insmod all_video set gfxmode="auto" terminal_input console terminal_output console fi # Enable serial console +insmod serial +insmod usbserial_common +insmod usbserial_ftdi +insmod usbserial_pl2303 +insmod usbserial_usbdebug if serial --unit=0 --speed=115200; then terminal_input --append serial terminal_output --append serial -- cgit v1.2.3-70-g09d2