The tip of balena-os/balena-jetson repository builds an image based on L4T R32.4.2.
How can I build an image based on L4T R32.3.1?
Hi Jonathan, I’m not an expert and will check with some of the OS team, but just looking at the change log I would guess if you checked out the tag v2.47.1+rev2 ( https://github.com/balena-os/balena-jetson/blob/v2.47.1+rev2/CHANGELOG.md ) and built from there that would include r32.3.1 recipe .
Do I need to clear the cache or clean the build? Cause I see this error:
ERROR: ParseError at /home/jonathan/src/balena-jetson/build/…/layers/meta-tegra/recipes-multimedia/gstreamer/gstreamer1.0-plugins-nvjpeg_1.14.0-r32.4.2.bb:24: Could not include required file recipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc
Hoping to save time here
Even with a clean build at that tag I hit issues barys -r -d -m jetson-xavier
ERROR: ParseError at /home/jonathan/src/balena-jetson/build/…/layers/meta-tegra/recipes-multimedia/gstreamer/gstreamer1.0-plugins-nveglgles_1.2.3-r32.4.2.bb:56: Could not include required file re
cipes-multimedia/gstreamer/gstreamer1.0-plugins-packaging.inc
Hi Jonathan,
Can you please try checking out the tag that Shaun mentioned?
For instance:
git checkout v2.47.1+rev2
git submodule update --init --recursive
balena-yocto-scripts/build/barys -b build_xavier_32_3_1 -m jetson-xavier --shared-sstate ./sstate-cache/ --shared-downloads ./downloads/ -d
After the build completes the final image is generated in:
./build_xavier_32_3_1/tmp/deploy/images/jetson-xavier/resin-image-jetson-xavier-<timestamp>.rootfs.resinos-img
You will need to change the URL to the BSP in jetson-flash at this line https://github.com/balena-os/jetson-flash/commit/473954bd2c87f3f6662437fe73ad704034b100b7#diff-e3ae725bc8769ccad1ee8d4d600c464fR95 to use the 32.3.1 Driver Package (BSP) archive.
You can use the URL from the “L4T Driver Package (BSP)” link https://developer.nvidia.com/l4t-3231-archive -> L4T Driver Package (BSP).
Ran into errors building v2.47.1+rev2 as you recommended:
WARNING: balena-18.09.10-dev+git7cb464a406748016f2df0c31a9851d20456a3d31-r0 do_fetch: Failed to fetch URL git://github.com/resin-os/balena.git;branch=master;destsuffix=git/src/import, attempting MIRRORS if available
ERROR: balena-18.09.10-dev+git7cb464a406748016f2df0c31a9851d20456a3d31-r0 do_fetch: Fetcher failure: Unable to find revision 7cb464a406748016f2df0c31a9851d20456a3d31 in branch master even from upstream
ERROR: balena-18.09.10-dev+git7cb464a406748016f2df0c31a9851d20456a3d31-r0 do_fetch: Fetcher failure for URL: 'git://github.com/resin-os/balena.git;branch=master;destsuffix=git/src/import'. Unable to fetch URL from any source.
ERROR: balena-18.09.10-dev+git7cb464a406748016f2df0c31a9851d20456a3d31-r0 do_fetch:
ERROR: balena-18.09.10-dev+git7cb464a406748016f2df0c31a9851d20456a3d31-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/jonathan/src/f-balena-jetson/build/tmp/work/aarch64-poky-linux/balena/18.09.10-dev+git7cb464a406748016f2df0c31a9851d20456a3d31-r0/temp/log.do_fetch.15443
ERROR: Task (/home/jonathan/src/f-balena-jetson/build/../layers/meta-balena/meta-balena-common/recipes-containers/balena/balena_git.bb:do_fetch) failed with exit code '1'
Looks like some resin-os tarballs are missing from yoctoproject and openembedded:
--2020-09-04 17:04:44-- http://downloads.yoctoproject.org/mirror/sources/git2_github.com.resin-os.balena.git.tar.gz
Resolving downloads.yoctoproject.org (downloads.yoctoproject.org)... 198.145.29.63
Connecting to downloads.yoctoproject.org (downloads.yoctoproject.org)|198.145.29.63|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
....
--2020-09-04 17:04:44-- http://sources.openembedded.org/git2_github.com.resin-os.balena.git.tar.gz
Resolving sources.openembedded.org (sources.openembedded.org)... 198.145.29.27
Connecting to sources.openembedded.org (sources.openembedded.org)|198.145.29.27|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-09-04 17:04:44 ERROR 404: Not Found.
Hi Jonathan, I have seen that first issue before, as well. I resolved it by altering the layers/meta-balena/meta-balena-common/recipes-containers/balena/balena_git.bb
file to modify the version and branch to:
BALENA_VERSION = "18.09.10"
BALENA_BRANCH= "18.09-balena"
SRCREV = "7cb464a406748016f2df0c31a9851d20456a3d31"
As for the second issue, I am not familiar with that one. What recipe is triggering that error? What part of the build is looking for those files? Thanks.
Thanks that change fixed all the issues!