# Balena-jetson image for L4T R32.3.1

**URL:** <https://forums.balena.io/t/balena-jetson-image-for-l4t-r32-3-1/180760>\
**Category:** balenaOS\
**Created:** [September 1, 2020, 4:17pm UTC](https://forums.balena.io/t/balena-jetson-image-for-l4t-r32-3-1/180760 "2020-09-01T16:17:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpk](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@jpk](https://forums.balena.io/u/jpk)\
**Post date:** [September 1, 2020, 4:17pm UTC](https://forums.balena.io/t/balena-jetson-image-for-l4t-r32-3-1/180760/1 "2020-09-01T16:17:37Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![shaunmulligan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan/32/34_2.png) [@shaunmulligan](https://forums.balena.io/u/shaunmulligan)\
**Post date:** [September 1, 2020, 4:22pm UTC](https://forums.balena.io/t/balena-jetson-image-for-l4t-r32-3-1/180760/4 "2020-09-01T16:22:57Z")

</div>

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](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 .

---

<div class="post-metadata">

**Author:** ![jpk](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@jpk](https://forums.balena.io/u/jpk)\
**Post date:** [September 1, 2020, 7:09pm UTC](https://forums.balena.io/t/balena-jetson-image-for-l4t-r32-3-1/180760/7 "2020-09-01T19:09:22Z")

</div>

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 😛

---

<div class="post-metadata">

**Author:** ![jpk](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@jpk](https://forums.balena.io/u/jpk)\
**Post date:** [September 2, 2020, 6:53am UTC](https://forums.balena.io/t/balena-jetson-image-for-l4t-r32-3-1/180760/8 "2020-09-02T06:53:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![acostach](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@acostach](https://forums.balena.io/u/acostach)\
**Post date:** [September 2, 2020, 7:20am UTC](https://forums.balena.io/t/balena-jetson-image-for-l4t-r32-3-1/180760/9 "2020-09-02T07:20:23Z")

</div>

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](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](https://developer.nvidia.com/l4t-3231-archive) -\> L4T Driver Package (BSP).

---

<div class="post-metadata">

**Author:** ![jpk](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@jpk](https://forums.balena.io/u/jpk)\
**Post date:** [September 4, 2020, 5:15pm UTC](https://forums.balena.io/t/balena-jetson-image-for-l4t-r32-3-1/180760/11 "2020-09-04T17:15:15Z")

</div>

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.
```

---

<div class="post-metadata">

**Author:** ![dtischler](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dtischler/32/2483_2.png) [@dtischler](https://forums.balena.io/u/dtischler)\
**Post date:** [September 4, 2020, 8:24pm UTC](https://forums.balena.io/t/balena-jetson-image-for-l4t-r32-3-1/180760/12 "2020-09-04T20:24:36Z")

</div>

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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![jpk](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@jpk](https://forums.balena.io/u/jpk)\
**Post date:** [September 5, 2020, 12:51am UTC](https://forums.balena.io/t/balena-jetson-image-for-l4t-r32-3-1/180760/14 "2020-09-05T00:51:03Z")

</div>

Thanks that change fixed all the issues!
