编辑grub的配置文件menu.list (/boot/grub/menu.lst)
# To enable grub serial console to ttya uncomment the following lines
# and comment out the splashimage line below
# WARNING: don't enable grub serial console when BIOS console serial
# redirection is active!!!
serial --unit=0 --speed=9600
terminal serial
#
# Uncomment the following line to enable GRUB splashimage on console
#splashimage /boot/grub/splash.xpm.gz
同时:
title Solaris Nevada snv_61 X86
kernel$ /platform/i86pc/kernel/$ISADIR /unix -B console=ttya
module$ /platform/i86pc/$ISADIR/boot _archive
The key is to get the grub to go to the console to allow you to select
which kernel you want and
then to add "-B console=ttya" to tell the kernel to use that same
console port.
# To enable grub serial console to ttya uncomment the following lines
# and comment out the splashimage line below
# WARNING: don't enable grub serial console when BIOS console serial
# redirection is active!!!
serial --unit=0 --speed=9600
terminal serial
#
# Uncomment the following line to enable GRUB splashimage on console
#splashimage /boot/grub/splash.xpm.gz
同时:
title Solaris Nevada snv_61 X86
kernel$ /platform/i86pc/kernel/$ISADIR
module$ /platform/i86pc/$ISADIR/boot
The key is to get the grub to go to the console to allow you to select
which kernel you want and
then to add "-B console=ttya" to tell the kernel to use that same
console port.
本文介绍如何编辑GRUB配置文件menu.lst以启用串口控制台,详细说明了必要的配置更改步骤,包括注释掉splash image行并启用GRUB串口控制台,以及为内核参数添加'-Bconsole=ttya'以确保使用正确的串口。
1399

被折叠的 条评论
为什么被折叠?



