reboot Command
The reboot command is used to restart the system running the HotRIO firmware. It can reboot the system normally or into Device Firmware Update (DFU) mode. This command supports a single parameter to specify the mode for rebooting.
Usage
The reboot command has the following syntax:
reboot [--dfu]
Where: - –dfu (optional): Reboots the system into DFU mode for firmware updates. If not provided, the system will reboot normally.
Command Description
- Without parameters: When executed without any parameters, the reboot command will reboot the system normally. 
- With the `–dfu` parameter: If the –dfu parameter is provided, the system will reboot into DFU mode, which is typically used for firmware updates. 
Examples
- Execute the reboot command to reboot normally:
- reboot Rebooting... 
 
- Reboot into DFU mode by using the –dfu option:
- reboot --dfu Rebooting into DFU mode... 
 
- Attempting to use an invalid parameter will result in an error:
- reboot --invalid Error, only valid parameter is --dfu 
 
Error Handling
If the command encounters an invalid parameter (other than –dfu), the following error message will be shown: - “Error, only valid parameter is –dfu”
Command Execution
When the reboot command is executed, the system performs the following steps: 1. If no parameter is provided, the system reboots normally. 2. If the –dfu parameter is provided, the system will reboot into DFU mode. 3. If an invalid parameter is supplied, the command will return an error message, and no reboot will take place.
The reboot command ensures that the system can be restarted either for regular operations or in DFU mode, based on the user’s choice.