All of lore.kernel.org
 help / color / mirror / Atom feed
* [Fuego] Regarding ttc configuration
@ 2021-01-06 11:04 Pooja Sanjay More
  2021-01-07  0:41 ` Tim.Bird
  0 siblings, 1 reply; 2+ messages in thread
From: Pooja Sanjay More @ 2021-01-06 11:04 UTC (permalink / raw)
  To: Bird, Tim, tbird20d, fuego

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

Hi,

We have installed "ttc" outside the container and configured it for basic
commands like console and login. Using ttc commands we are able to login
into rpi board.
Also, for rpi hard reboot  "rpireboot.py"  script is assign to "reboot_cmd".

*ttc.conf:*






*ipaddr=192.168.3.162console_cmd=minicom -D /dev/ttyUSB0 -b
115200login_cmd=ssh pi@192.168.3.162
<pi@192.168.3.162>reboot_cmd=~/fuego/fuego-core/scripts/rpireboot.py*

Thanks and regards,
Pooja More

-- 






This
message contains confidential information and is intended only 
for the
individual(s) named. If you are not the intended
recipient, you are 
notified that disclosing, copying, distributing or taking any
action in 
reliance on the contents of this mail and attached file/s is strictly
prohibited. Please notify the
sender immediately and delete this e-mail 
from your system. E-mail transmission
cannot be guaranteed to be secured or 
error-free as information could be
intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain
viruses. The sender therefore does 
not accept liability for any errors or
omissions in the contents of this 
message, which arise as a result of e-mail
transmission.

[-- Attachment #2: Type: text/html, Size: 1536 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Fuego] Regarding ttc configuration
  2021-01-06 11:04 [Fuego] Regarding ttc configuration Pooja Sanjay More
@ 2021-01-07  0:41 ` Tim.Bird
  0 siblings, 0 replies; 2+ messages in thread
From: Tim.Bird @ 2021-01-07  0:41 UTC (permalink / raw)
  To: pooja.sm, tbird20d, fuego



> -----Original Message-----
> From: Pooja Sanjay More <pooja.sm@pathpartnertech.com>
> 
> Hi,
> 
> We have installed "ttc" outside the container and configured it for basic commands like console and login. Using ttc commands we are
> able to login into rpi board.
> Also, for rpi hard reboot  "rpireboot.py"  script is assign to "reboot_cmd".
> 
> ttc.conf:
> 
> 
> ipaddr=192.168.3.162
> console_cmd=minicom -D /dev/ttyUSB0 -b 115200
> login_cmd=ssh pi@192.168.3.162 <mailto:pi@192.168.3.162>
> reboot_cmd=~/fuego/fuego-core/scripts/rpireboot.py

Sounds good.  I'm glad to hear it's working outside the container.

I have been thinking about the problem of where to place ttc helper scripts.
I have some problems in my own lab, with some ttc operations working
outside the Fuego container (that is, working when ttc is executed
directly on the host), but not working inside the container.

I have thought about putting ttc helper scripts into /usr/local/bin
(or maybe even a new directory /usr/test/bin), and bind-mounting
that into the Fuego container, so that 'ttc' in the container can use
the same helper scripts as 'ttc' outside the container.   Let me know
if you have any thoughts about this.  The 'labcontrol' project is intended
to provide a web-based rest API for board control, which will make
this situation go away.  However, that project is not quite ready yet,
and raises some issues of its own.

Note that the provisioning test uses the Fuego function 'target_reboot',
which currently only does a software reboot of the system.

However, there is an overlay function for hardware reboot:
ov_board_control_reboot(), which currently calls 'ftc power-cycle'
(which ends up using the BOARD_CONTROL variable in the system
to call either pdudaemon or ttc to perform a hard reboot of the board).

If you have 'ttc reboot' support inside the container, then you should be
able to add:
BOARD_CONTROL="ttc"
to your rpi board file (along with the TTC_TARGET setting),
and then Fuego should have hardware power control of the board.

Once your board settings are correct, and you can do 'ttc reboot' inside
the container, then you should also be able to do 'ftc power-cycle' both
inside and outside the container, to control power to your boards.

I'll try to get the Functional.reboot test working to test the different
reboot options and configurations in Fuego, so you can test your configuration
there.  The board control support was in flux that last time anyone worked on it, so I'm
not sure the state of it.  But I'd like to get it working in your lab.  And once the
design is settled, it all needs to get documented.
  -- Tim

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-07  0:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-06 11:04 [Fuego] Regarding ttc configuration Pooja Sanjay More
2021-01-07  0:41 ` Tim.Bird

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.