Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Libreboot build system
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Libreboot project
Libreboot build system
Commits
7a5b443f
Commit
7a5b443f
authored
1 year ago
by
livio
Committed by
Libreboot project
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Added boot-time and manual overrides of serial, spkmodem and gfxterm
parent
55447daa
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/grub/config/grub.cfg
+58
-10
58 additions, 10 deletions
config/grub/config/grub.cfg
with
58 additions
and
10 deletions
config/grub/config/grub.cfg
+
58
−
10
View file @
7a5b443f
...
...
@@ -14,6 +14,11 @@ terminal_input --append at_keyboard
terminal_input
--append
usb_keyboard
terminal_output
--append
cbmemc
# User interface overrides wherever "keystatus" is supported
# Keep SHIFT key pressed before powering on to disable graphics
if
keystatus
--shift
; then
terminal_output
--append
vga_text
else
gfxpayload
=
keep
terminal_output
--append
gfxterm
...
...
@@ -24,6 +29,19 @@ elif [ -f (cbfsdisk)/background.jpg ]; then
insmod
jpeg
background_image
(cbfsdisk)/background.jpg
fi
fi
# Keep CTRL pressed to enable default serial terminal (COM1 or the like)
if
keystatus
--ctrl
; then
serial
terminal_input
--append
serial
terminal_output
--append
serial
fi
# Keep ALT pressed to enable spkmodem
if
keystatus
--alt
; then
terminal_output
--append
spkmodem
fi
set
default
=
"0"
if
[ -f (cbfsdisk)/timeout.cfg ]
; then
...
...
@@ -343,3 +361,33 @@ menuentry 'Load MemTest86+ [m]' --hotkey='m' {
chainloader
/img/memtest
}
fi
submenu
'Other'
{
menuentry
'Enable
default
serial
terminal'
{
serial
terminal_input
--append
serial
terminal_output
--append
serial
}
menuentry
'Disable
default
serial
terminal'
{
terminal_input
--remove
serial
terminal_output
--remove
serial
}
menuentry
'Enable
gfxterm'
{
terminal_output
--append
gfxterm
terminal_output
--remove
vga_text
}
menuentry
'Disable
gfxterm'
{
terminal_output
--remove
gfxterm
terminal_output
--append
vga_text
}
menuentry
'Enable
spkmodem'
{
terminal_output
--append
spkmodem
}
menuentry
'Disable
spkmodem'
{
terminal_output
--remove
spkmodem
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment