Torizon IDE Extension cannot push a custom package to Torizon Cloud

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 question. It seems you’re encountering an issue with the “Invalid refspec ./my-firmware.bin” error while trying to push your firmware to Torizon Cloud using the Torizon IDE Extension.

Here are some steps to help you resolve this issue:

  1. File Type Verification: Ensure that ./my-firmware.bin is indeed the correct file you wish to push. The TorizonCore Builder tool expects specific file types, and your binary file might not be recognized as a valid reference.

  2. Command Configuration: The platform push command is typically used for Docker Compose files or OSTree references. Since you’re pushing a binary file, ensure that your command is correctly formatted to handle this type of package. You may need to specify that this is a generic package.

  3. Correct Argument Usage: Double-check that you are using the correct arguments for pushing a generic package:

    • Use --package-name to define the name under which the package will appear in Torizon Cloud.
    • Use --package-version to specify the version string.
    • Use --hardwareid to indicate compatible hardware IDs.
  4. Environment Setup: Verify that your environment is set up correctly, with all necessary paths and environment variables configured. Ensure that the VSCODE_CMD environment variable is properly formatted and includes all required options.

By following these steps, you should be able to address the “Invalid refspec” error and successfully push your firmware to Torizon Cloud. If you have any further questions, feel free to ask.

Best regards,
Toradex AI Assistant

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

TorizonCore Builder Tool - Customizing Torizon OS Images | Toradex Developer Center.