(bug) Device Tree deploy failure: Error in .tar naming convention

Hey there, I am trying to deploy my custom device tree overlay with this command:

 torizoncore-builder dto deploy --remote-host 10.10.*xx.xx* --remote-username *xxxx* --remote-password *xxxxx* --force --reboot device-trees/overlays/verdin-imx8mp_aevex-gpio-19-21-256-overlay.dts

But I get this output back:

Downloading image from: https://artifacts.toradex.com/artifactory/torizoncore-oe-prerelease-frankfurt/kirkstone-6.x.y/monthly/25//torizon-rt/torizon-core-docker/oedeploy/torizon-core-docker-rt--Tezi_6.8.0-devel-202408+build.25.tar

The download may take some time. Please wait...
The requested image could not be found in the Toradex Artifactory.

Notice that there are TWO dashes between rt and Tezi, but at the toradex artifacts link, this .tar file only has one -

Is this a bug in the way the device tree deploy grabs the .tar name? or is it a typo in the naming? I tried to find out more about how the deploy command determines which .tar file to use to help see why this naming typo is occuring but could not find the answer.

https://artifacts.toradex.com/artifactory/torizoncore-oe-prerelease-frankfurt/kirkstone-6.x.y/monthly/25/verdin-imx8mp/torizon-rt/torizon-core-docker/oedeploy/torizon-core-docker-rt-verdin-imx8mp-Tezi_6.8.0-devel-202408+build.25.tar

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

Did you like my answer?

:+1: :-1:


Based on the provided context, it seems like there might be an issue with the naming convention used by the torizoncore-builder tool when it tries to locate the image in the Toradex Artifactory. The discrepancy between the expected and actual tarball names could indeed be causing the problem.

Here are a few steps you can take to troubleshoot and potentially resolve this issue:

  1. Verify the Image Name: Double-check the exact name of the tarball in the Toradex Artifactory. Ensure there are no typos or discrepancies in the name.

  2. Check for Updates: Ensure that you are using the latest version of the torizoncore-builder tool. There might have been updates or bug fixes related to this issue.

  3. Manual Download and Deployment:

    • Download the correct tarball manually from the Toradex Artifactory.
    • Use the torizoncore-builder tool to deploy the device tree overlay locally instead of relying on the remote download feature.
  4. Report the Issue: If the problem persists, it might be a bug in the torizoncore-builder tool. You can report this issue to Toradex support or on their GitHub repository, providing all the details and the discrepancy in the naming convention.

  5. Workaround: As a temporary workaround, you can manually adjust the naming convention in your local environment to match what the torizoncore-builder tool expects, if feasible.

If none of these steps resolve the issue, it would be best to contact Toradex support directly with all the details, including the exact command you are using and the error message you are receiving. They would be able to provide more specific guidance or a fix for the issue.

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

Am I misunderstanding intent/use of torizoncore-builder dto deploy?.

Greetings @kyle_wuz_here,

Please do not use the dto deploy command. It’s know to have issues and not work with 6.X versions of Torizon OS. It might even be deprecated/removed in the future. On a similar note don’t use the dt checkout command either, as this similarly does not work with 6.X and newer.

Instead use the build command as documented in this section: Device Tree Overlays on Torizon | Toradex Developer Center

Make sure you read the section below this regarding fetching the correct Linux and Device tree sources for your version of the OS.

Alternatively to the build command, you can use the other standalone commands besides dt checkout like:

  • images unpack
  • dto apply
  • union
  • deploy

Best Regards,
Jeremias

Understood! I was following that documentation:
Device Tree Overlays on Torizon | Toradex Developer Center.
which has the dto deploy as apart of the process
If it is no longer the desired process then maybe it should be changed! Thank you for your reply

Also, I am not sure if i pulled down a wrong version of the repo, but linux\include\dt-bindings\input\linux-event-codes.h was returning a syntax error:
Error: linux/include/dt-bindings/input/linux-event-codes.h:1.1-3 syntax error

for this line.
…/…/uapi/linux/input-event-codes.h.

fixed by changing it to this:
#include “…/…/uapi/linux/input-event-codes.h”

You’re on OS version 6.X with Verdin i.MX8M Plus. That means for the kernel you should be using this one here: linux-toradex.git - Linux kernel for Apalis, Colibri and Verdin modules

With branch toradex_5.15-2.2.x-imx.

As for the error you experienced, the file linux/include/dt-bindings/input/linux-event-codes.h shouldn’t be a normal text/code file. It’s actually a symlink to …/…/uapi/linux/input-event-codes.h. You can even see in our web repo it’s marked as a symlinked file: input « dt-bindings « include - linux-toradex.git - Linux kernel for Apalis, Colibri and Verdin modules

Maybe somehow when you cloned the repo onto your machine it didn’t preserve the symlink? On my system if I clone the repo I can see it’s a symlink and trying to open the file just opens the file the symlink was pointing to.

Best Regards,
Jeremias

1 Like

This i believe was the solution. I recloned the Repo and it was able to work this time.

Glad to have been of assistance!

Best Regards,
Jeremias