summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorCristian Iorga <cristian.iorga@intel.com>2014-06-20 18:42:16 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-06-23 17:51:22 +0100
commit219228805a4d5d822894c8f6c2526e1b9a8609ff (patch)
tree283f1e5d8a9c63c5ff20dbf1a3e9a78d82bc9b25 /meta
parent5ed9bb42abf93aa084dd23ca68cc996a94a51a10 (diff)
downloadopenembedded-core-219228805a4d5d822894c8f6c2526e1b9a8609ff.tar.gz
openembedded-core-219228805a4d5d822894c8f6c2526e1b9a8609ff.tar.bz2
openembedded-core-219228805a4d5d822894c8f6c2526e1b9a8609ff.zip
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. Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/initrdscripts/files/init-install-testfs.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install-testfs.sh b/meta/recipes-core/initrdscripts/files/init-install-testfs.sh
index 116a6b7b58..6faa233c9f 100644
--- a/meta/recipes-core/initrdscripts/files/init-install-testfs.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install-testfs.sh
@@ -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