Confusion on Flashing Image Over Ethernet, and Question on some functionality

Hey everyone!

I’m in need of some assistance setting up unattended flashing over ethernet. I’m trying to follow the documentation found here:

https://developer.toradex.com/easy-installer/toradex-easy-installer/toradex-easy-installer-detailed-manual/#unattended-flashing-over-ethernet

Firstly, I’m operating on the assumption that the DNS option found under “Custom Image Server without Local Media” is not a necessary step, its just an option, correct?

If that’s correct, then I’m not sure where I’m going wrong with getting this to work. I have been able to use the images serve command in TorizonCore Builder to send autoinstall images over http, so there shouldn’t be anything about the network that’s incorrect.

Here’s my setup so far: I am using an Ubuntu VM with nginx installed. under /etc/nginx/sites-available/default, I have the following:

server {

   listen 80 default_server;

   listen [::]:80 default_server;

   root /var/www/html;

   index index.html index.htm index.nginx-debian.html;

   server_name _;

   location / {

       try_files $uri $uri/ =404;

   }

}

Then, after running " $ sudo ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default", I get the following:

root@Testing:/etc/nginx/sites-available# sudo ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default

ln: failed to create symbolic link '/etc/nginx/sites-enabled/default': File exists

root@Testing:/etc/nginx/sites-available#

which I assume means that the link is correct?

under the filepath “/var/www/html/image_list.json” I have:

{

 "config_format": 1,

 "images": [

   "testing/image.json"

 ]

}

So my image name is “testing”, which I have put in this directory (/var/www/html/testing). The autoinstall in the iamge.json file in testing is set to true. After restarting nginx, I expect my board, which has tezi installer on it currently, to be able to see the image and start downloading it, but it doesn’t. Does anyone see where I went wrong?

After this, I have another question concerning this server. Is it possible using this server (or some other service like the cloud) to automatically install an updated image? I have used the torizon cloud to manually update units both in house and out in the field, I was curious if there would be a way to automate this so that once a new image is made, a board could automatically be updated. For context, our workflow is to load a version of our software when we initially set up the boards, but by the time a board is installed on our equipment, our latest version of the software may be newer.

Thanks!

1 Like

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

Did you like my answer?

:+1: :-1:


Hello!

Thank you for reaching out with your questions. Let’s address them one by one:

  1. DNS Option for Custom Image Server: You are correct that the DNS option under “Custom Image Server without Local Media” is optional. It is used to redirect the default Toradex image server URL to your local server using DNS. If your network setup allows direct access to your server via IP, you can skip this step.

  2. Nginx Setup Issue: The error message you encountered indicates that the symbolic link already exists, which is normal if you have previously set up nginx. Ensure that the symbolic link /etc/nginx/sites-enabled/default correctly points to /etc/nginx/sites-available/default. If nginx is running and your image files are correctly placed in /var/www/html, your setup should be correct.

  3. Troubleshooting Image Access:

    • Ensure your board is on the same network as your server and can reach it via HTTP. Test this by accessing the server from another device on the network.
    • Verify that the image_list.json file is correctly formatted and accessible at the expected URL.
    • Check the Toradex Easy Installer logs for any error messages that might indicate network or configuration issues.
  4. Automating Image Updates: To automate updates, you can use the autoinstall feature of the Toradex Easy Installer by setting autoinstall: true in your image.json. This will allow the board to automatically install the image upon detection. For more advanced update management, consider using Torizon OTA capabilities, which facilitate remote updates and management of devices in the field.

I hope this helps you get your setup working smoothly. If you have any more questions, feel free to ask.

Best regards,
Toradex AI Assistant

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

How to flash baseimage of Verdin IMX8M through ssh.

Some update after my initial post here. I was using TightVNC to look at the board while I was setting up the server. The board had Tezi on it before I created my nginx server. On a whim, i tried unplugging and plugging back in my board, which broke my connection to TightVNC, but I saw my software loaded into the board after a couple minutes. So clearly, the server did in fact work, but only when the server was up and running prior to tezi running it seems. I didn’t have this problem with the images serve function, which is strange since they’re both over http.

So that problem seems solved! Just need the last question answered.

Hey @jeatontenney,

Glad you got the server working as expected.

On the second question. Devices that are provisioned on the cloud can have their polling time set, the default is 5 minutes. So every 5 minutes, if there is an update, it will automatically download it. This still requires you pushing the update to the cloud. The idea is that you can organize your devices into fleets, so you only have to do this once, and it will push to the entire fleet.

The other ‘automatic’ aspect is to work with Torizon Cloud API to get the control you want.

-Eric

Thanks for the update @eric.tx ! I may have to check out the api to see if that’ll serve our purposes. I’ll get back to you on that. In terms of the http server, am I correct in saying that flashing a board over http will work only when the server is on before powering on a board? This was the only thing that worked for my case, and I’m wondering if that’s repeatable with other people.

Hey @jeatontenney,

I will check with our Toradex Easy Installer Team to validate, but your statement sounds correct.

I’m assuming the easy installer checks to see if it has a connection, if it does → flashing over ethernet, if it does not, then it moves on, not staying in a loop waiting for a connection. Again, I’ll validate with the team, but I believe this to be correct.

-Eric

Hey @jeatontenney,

I just checked with our team, and this is expected.

-Eric