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?
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
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:
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:
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:
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,
...
}
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
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
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:
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.
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?