Welcome to Jetson CUBE case repository
5. Setting up boot-up
Setting up boot-up
Setting up boot-upI. Learning ObjectivesII. Preparing for the experimentIII. Setting up the boot self-start service1. Copy the file2. Managing Configurations3. Managing services4. Run kill_oled.shIV. Experimental phenomena
I. Learning Objectives
- Understand the basic use of service
- Setting up a custom bootloader
- To understand how to add and remove file execution permissions.
To set the status of the OLED display, fan and RGB light bar on the Jetson series motherboards after powering on the system using the relevant files already written, the specific principles are not explained here, read the relevant code by yourself to understand.
II. Preparing for the experiment
Follow the assembly video tutorial to install the Jetson CUBE Nano chassis, or refer to the "Jetson CUBE Nano chassis_hardware wiring" tutorial document for installation, here to show the chassis expansion board and related hardware connections.

| Chassis Expansion Board | 3.3V | SDA | SCL | NC | GND | NC |
|---|---|---|---|---|---|---|
| OLED screen | 3.3V | SDA | SCL | NC | GND | NC |

| Chassis expansion board | 3 Pin connector | 2 Pin connector |
|---|---|---|
| RGB light bar | Fan |
III. Setting up the boot self-start service
Copy the RGB_Box.zip file in the information to the Home directory in the Jetson motherboard system, after decompressing the file, you need to change the path name within the kill_oled.sh and yahboom_oled.service files according to your own directory; if the paths are different, modify the location of the following figure.

1. Copy the file
Copy yahboom_oled.service to the /etc/systemd/system path.
sudo cp yahboom_oled.service /etc/systemd/system
2. Managing Configurations
Use the systemctl tool to load and manage configurations.
xxxxxxxxxxsystemctl daemon-reload
3. Managing services
Manage the yahboom_oled service.
- Starting the yahboom_oled service
xxxxxxxxxxsystemctl start yahboom_oled
- Stop yahboom_oled service.
xxxxxxxxxxsystemctl stop yahboom_oled
- Restart yahboom_oled service
xxxxxxxxxxsystemctl restart yahboom_oled
- Setting up the yahboom_oled service to start on boot
xxxxxxxxxxsystemctl enable yahboom_oled
- Disable yahboom_oled service boot-up self-start
xxxxxxxxxxsystemctl disable yahboom_oled

Note: The picture is to demonstrate the effect of each command after running, run the command yourself according to your needs.
4. Run kill_oled.sh
Running the kill_oled.sh file will stop the yahboom_oled service and the yahboom_oled service process, at this time the OLED display will not show anything.
- Add executable permissions
xxxxxxxxxxchmod +x kill_oled.sh
- Cancellation of executable privileges