mirror of
https://git.yoctoproject.org/poky
synced 2026-04-22 15:32:14 +02:00
init-install-testfs: add grub serial line support
For automated hardware testing, boot process control via serial interface is needed. As such, in grub, serial line support is added upon testmaster image install. Also add a specific timeout to automatically start the master image upon start of testing phase. Tested on multiple hardware targets without issues. (From OE-Core rev: 219228805a4d5d822894c8f6c2526e1b9a8609ff) Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
7c1a975a1c
commit
94fea43746
@@ -172,6 +172,11 @@ if [ -f /etc/grub.d/00_header ] ; then
|
||||
GRUBCFG="/boot/grub/grub.cfg"
|
||||
mkdir -p $(dirname $GRUBCFG)
|
||||
cat >$GRUBCFG <<_EOF
|
||||
serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1
|
||||
terminal_input --append serial
|
||||
terminal_output --append serial
|
||||
set timeout_style=hidden
|
||||
set timeout=5
|
||||
menuentry "Linux" {
|
||||
set root=(hd0,1)
|
||||
linux /vmlinuz root=$rootfs $rootwait rw $5 $3 $4 quiet
|
||||
|
||||
Reference in New Issue
Block a user