Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
To build a Torizon Yocto image offline, especially when dealing with network restrictions like a company firewall, you can follow these steps to ensure all necessary resources are available locally:
-
Pre-download Required Resources:
- Use a machine with internet access to download all necessary source files and dependencies. You can achieve this by running the
bitbake
command with the-c fetchall
option, which will download all sources for your target image. Once downloaded, transfer these files to your offline build server.
- Use a machine with internet access to download all necessary source files and dependencies. You can achieve this by running the
-
Configure Local.conf for Offline Use:
- In your
local.conf
file, setBB_NO_NETWORK = "1"
to prevent any network access during the build process. - Set
CONNECTIVITY_CHECK_URIS = ""
to disable network connectivity checks. - Ensure that the
DL_DIR
variable inlocal.conf
points to the directory where you have stored the pre-downloaded sources.
- In your
-
Use a Local Mirror:
- If feasible, set up a local mirror for the Yocto downloads. This involves configuring the
PREMIRRORS
andMIRRORS
variables inlocal.conf
to point to your local server where the sources are stored.
- If feasible, set up a local mirror for the Yocto downloads. This involves configuring the
-
Verify Certificates:
- The error message you encountered suggests a problem with server certificate verification. Ensure that your build environment has the necessary CA certificates installed. You might need to configure Git to use a specific CA file or, as a last resort, disable SSL verification (though this is not recommended for production environments).
-
Troubleshoot Specific Errors:
- The error related to
fetcher_hashes_dummyfunc
indicates a problem with fetching or verifying sources. Double-check that all sources are correctly downloaded and accessible from your offline server.
- The error related to
By following these steps, you should be able to configure your build environment to work offline, thus avoiding the network-related errors you are encountering. If issues persist, ensure that all paths and configurations are correctly set in your local.conf
and other relevant configuration files.
I hope this helps you set up your offline build environment successfully.
Best regards,
Toradex AI Assistant.
Please, also check if these links can help you solve your problem:
Yocto / Torizon + Custom Kernel + Kernel Module + Network Mgmt + Apps [Architecture Help Neded].