Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions labgrid/strategy/ubootstrategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ def transition(self, status):
raise StrategyError("can not transition to {}".format(status))
elif status == self.status:
return # nothing to do
elif self.status == Status.shell and status == Status.uboot:
# in shell: we can simply reboot to get U-boot
# make sure run() reads the shell prompt and returns
self.shell.run("(sleep 1;reboot)&")
self.target.activate(self.uboot)
elif status == Status.uboot:
# cycle power
self.target.activate(self.power)
Expand Down