Here is my Environment:
Carry Board: Verdin-Development-Board
SoM: Verdin-iMX8MP
Tezi : “version”: “6.7.0-devel-202405+build.23.modified”
I’ am runing the Toradex Easy Installer from an offline installation (using a USB device) , after I have entered to the Recovery Mode and run the recovery-windows.bat .
I have set the autoinstall to true in the image.json file in the Tezi folder.
So the Torizon OS will be installed automaticlly without the need to:
Select the Torizon OS
Click on Install
Accept the terms
My qusetion is how to skip also the Power off / Reboot/ Return to menu dialogue,
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello Ahmed49,
To skip the “Power off / Reboot / Return to menu” dialogue after running the Toradex Easy Installer, you can modify the image.json file to include the post-install script that will automatically reboot the system after the installation is complete. Here is how you can do it:
Edit the image.json file:
Add a post-install script entry to the image.json file. This script will be executed after the installation process is complete.
This configuration will ensure that the system reboots automatically after the installation without showing the “Power off / Reboot / Return to menu” dialogue.
Ensure the script is executable:
Make sure that the script specified in the post-install section is executable. In this case, the reboot command is a standard Linux command and should work out of the box.
Test the configuration:
After making these changes, test the installation process to ensure that it behaves as expected and skips the dialogue.
By adding the post-install script to the image.json file, you can automate the reboot process and avoid manual intervention after the installation is complete.
Best regards,
[Your Name]
Please, also check if these links can help you solve your problem:
We still don’t have an auto power-off tag in Torizon Core Builder.
You can, however, use a wrapup_script to power off the device.
Inside the image folder created by Torizon Core Builder, there’s a script called wrapup.sh.
This script is run after a successful installation and can be configured to power off the device.
You just need to add the power off command at the end of the script.
Hi @allan.tx ,
I’m using the same carrier board and SoM as @Ahmed49, with a customized distro of the kirkstone-6.x.y Toradex BSP (VERSION_ID=6.4.0-devel).
Regards,
Loris
Does this mean that the command poweroff -f doesn’t work?
If yes, could you please specify how it doesn’t work? What happens when you use it? If, on Toradex Easy Installer’s terminal, you execute the command poweroff -f, what happens?
Hi @henrique.tx,
yes for me the command poweroff -f does not work. At the end of the flashing the usual pop-up appears prompting the three options: Power off / Reboot / Return to menu.
Best regards,
Loris
Hi @henrique.tx,
the version of my Easy Installer is 5.4.0. This could be the problem. I will try as soon as I will have a moment.
I just edited the wrapup.sh script as follow:
#!/bin/sh
poweroff -f
exit 0
Then:
put the board in boot mode.
run the easy installer.
easy installer install itself onto the SoM.
insert the pen-drive with the image (auto-installation is enable by “autoinstall”: true in image.json).
monitoring of the procedure by vnc connection to the SoM (I see the installation bar moving forward).
at the end of the installation a pop-up comes out asking the following: Power off / Reboot / Return to menu.
In order to better understand what you are trying to accomplish, could you please share why you would need to specifically shutdown the device after the flash?
Is this related to a production programming on your end?
Hi @henrique.tx,
I just want to flash some SoM with auto-tart of the procedure and power off at the end of it. In this way I know that the flashing is ended and I can move to the next one without the need of a vnc terminal.
It would be better if the poweroff -f command works, but for my goal I’m fine as well with the commands that I found.
Best regards,
Loris