Tezi Auto Reboot feature not working

Hi Team,

I have been working on a project which uses the Toradex Colibri IMX6ULL. I have flashed a custom Linux distro to the SOM which was built using Yocto.

In the image to be flashed, I have given the Auto Installation feature in image.json and in the wrapeup.sh, I have added “reboot -f” to provide Auto Reboot feature .

But then on inserting the USB Removable medium, which has the image, the installation takes place, but then the reboot does not happen.
NOTE: Normally a dialog box appears in case of normal install, which asks if we want to reboot the system. In this case, that does not appear in the UI and then the UI turns OFF.

Can you please direct me if there is anything additional needed for the Tezi Auto Reboot process?

Thanks in Advance.

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


It sounds like you’ve correctly set up the autoinstall property in your image.json and added the reboot -f command in your wrapup.sh script. However, the issue you’re experiencing where the system does not reboot automatically could be due to a few reasons. Here are some steps to troubleshoot and ensure the auto-reboot feature works as expected:

  1. Check wrapup.sh Execution:
    Ensure that the wrapup.sh script is being executed correctly. You can add some debug statements in the script to log its execution. For example:

    # wrapup.sh
    echo "Wrapup script started" > /var/volatile/tezi_wrapup.log
    reboot -f
    echo "Reboot command issued" >> /var/volatile/tezi_wrapup.log
    
  2. Remount the Medium:
    If your wrapup.sh script is located on a removable medium (like a USB stick), ensure that the medium is remounted in read-write mode before writing to it. By default, it is mounted in read-only mode. You can remount it as follows:

    # wrapup.sh
    mount -o remount,rw /media/sdX1
    echo "Wrapup script started" > /media/sdX1/tezi_wrapup.log
    reboot -f
    echo "Reboot command issued" >> /media/sdX1/tezi_wrapup.log
    
  3. Verify autoinstall Property:
    Double-check that the autoinstall property in your image.json is set to true. It should look something like this:

    {
      "config_format": 1,
      "autoinstall": true,
      ...
    }
    
  4. Check for Errors in Logs:
    Access the serial console and check the logs for any errors that might indicate why the reboot is not happening. You can view the log file using:

    cat /var/volatile/tezi.log
    
  5. Ensure Proper Script Permissions:
    Make sure that the wrapup.sh script has the correct permissions to be executed. You can set the permissions using:

    chmod +x wrapup.sh
    
  6. Test Reboot Command Manually:
    Manually test the reboot -f command on the device to ensure it works as expected. This will help verify that the command itself is not the issue.

If after these steps the issue persists, please provide any error messages or additional logs that might help in diagnosing the problem further.

Please, also check if these links can help you solve your problem:

Toradex Easy Installer Configuration Files | Toradex Developer Center.

I have tried all the steps mentioned above. Even after these steps, the issue persists.

Hi @Divakaran !

Which carrier board are you using? Do you have access to its debug serial?

If so, can you send the logs from the serial after the UI turns off?

Best regards.
Lucas Azeituno

Hi @lucas_az.tx ,
I am using ‘Colibri Evaluation Board V3.2A’ for the SOM above specified.

Yes I have access to the serial port. But even after echoing a serial print over the serial port available in wrapeup.sh, it is not displaying the prints.

Hi @Divakaran!

I tested here using Colibri iM6ULL with Aster and it worked. I downloaded our BSP 6.8.0, extracted the file into a USB stick, and wrote my wrapup.sh like the one below:

#!/bin/sh
reboot -f
exit 0

After that, I installed this image using the USB stick, and it rebooted automatically. I could confirm the reboot because the serial showed me the boot log. I’m currently using Picocom to access the serial debug.

Could you, please, test these steps and tell me if it worked?

Best regards.
Lucas Azeituno

Hello @Divakaran,

Make sure to update the proper wrapup.sh.

For example, if you have built a custom local image, update wrapup.sh that is in the same folder as image.json.

Updating wrapup.sh that is a part of Tezi installer files will not work.

Best Regards,
Jaroslav

1 Like