Skip to content
Snippets Groups Projects
Verified Commit 2402f3cd authored by Karel Koci's avatar Karel Koci :metal:
Browse files

imgs/boot: fix failure in bootup

parent 00940f62
1 merge request!2Initial development
......@@ -15,6 +15,7 @@ wget "https://repo.turris.cz/hbk/medkit/omnia-medkit-latest.tar.gz" -O medkit.ta
# Repack as CPIO
mkdir root
tar -xzf medkit.tar.gz -C root
ln -sf /sbin/init root/init
( cd root && find . | cpio -H newc -o > ../root.cpio )
mkimage -A arm -O linux -T ramdisk -C none -d root.cpio root.uimage
......
......@@ -76,7 +76,8 @@ class Board():
# Wait for bootup
self.pexpect.expect_exact(["Router Turris successfully started.", ])
# Note Shell sends new line which opens terminal for it
return cli.Shell(self.pexpect)
# TODO why this flush timeouts?
return cli.Shell(self._pexpect, flush=False)
def serial_pexpect(self):
"""Returns pexpect handle to serial TTY interface.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment