Difference between revisions of "Enable/Power peripherals"

From Take-Air Wiki
Jump to navigation Jump to search
(Created page with "After installation the ESP module and Cube are enabled by default: They will be powered when booting the Jetson. To configure this a the script is provided: <code>/opt/take-ai...")
 
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
After installation the ESP module and Cube are enabled by default: They will be powered when booting the Jetson.
+
After installation, the ESP module and Cube are enabled by default: they will be powered when booting the Jetson.
 
To configure this a the script is provided: <code>/opt/take-air/OpenOC2-boot.sh</code>.
 
To configure this a the script is provided: <code>/opt/take-air/OpenOC2-boot.sh</code>.
 
This script automatically gets executed during boot.
 
This script automatically gets executed during boot.
  
To disable automatic power-on of the ESP, change the line:
+
== Change configuration ==
START_ESP="yes"
 
to:
 
START_ESP="no"
 
  
Similarly, to disable automatic power-on of the Cube, change the line:
+
*To disable automatic power-on of the ESP, change the line: <code>START_ESP="yes"</code> to <code>START_ESP="no"</code>.
START_CUBE="yes"
+
*Similarly, to disable automatic power-on of the Cube, change the line: <code>START_CUBE="yes"</code> to <code>START_CUBE="no"</code>.
to:
+
*Perform a reboot apply the change(s):
START_CUBE="no"
+
*:<code>$ sudo reboot 0</code>
  
Reboot to take effect.
+
== Bootscript status ==
 +
To check if the bootscript gets executed correctly, use:
 +
$ systemctl status openoc2boot.service

Latest revision as of 17:38, 1 November 2021

After installation, the ESP module and Cube are enabled by default: they will be powered when booting the Jetson. To configure this a the script is provided: /opt/take-air/OpenOC2-boot.sh. This script automatically gets executed during boot.

Change configuration

  • To disable automatic power-on of the ESP, change the line: START_ESP="yes" to START_ESP="no".
  • Similarly, to disable automatic power-on of the Cube, change the line: START_CUBE="yes" to START_CUBE="no".
  • Perform a reboot apply the change(s):
    $ sudo reboot 0

Bootscript status

To check if the bootscript gets executed correctly, use:

$ systemctl status openoc2boot.service