A module containing various additional connectors for convenience. These are:
Connect to a serial console using conserver.
You can configure the device name using the
Example: (board config)
from tbot.machine import board from tbot_contrib.connector import conserver class MyBoard(conserver.ConserverConnector, board.Board): conserver_device = "ttyS0" BOARD = MyBoard
mach (LinuxShell) – A cloneable lab-host machine. The
ConsoleConnectorwill try to clone this machine’s connection and use that to connect to the board. This means that you have to make sure you give the correct lab-host for your respecitive board to the constructor here.
Device name for conserver.
This property is required.
conserver_master: Optional[str] = None¶
Optional name of the conserver master to connect to (
conserver_command: Union[str, List] = 'console'¶
Command to connect with conserver.
conserver_command = ["console", "-p1234", "-n"]
conserver_forcerw: bool = True¶
Whether to force the console into read-write mode (
This is necessary for the case where a session is already attached to this console while tbot is running. Otherwise, tbot will not be able to properly intercept the boot process and might fail for odd reasons.
If you don’t want tbot to mess with an already running session, set this to