# Jetson TX2 Flashing

**URL:** <https://forums.balena.io/t/jetson-tx2-flashing/303935>\
**Category:** balenaOS\
**Created:** [April 26, 2021, 7:22pm UTC](https://forums.balena.io/t/jetson-tx2-flashing/303935 "2021-04-26T19:22:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![smithandrewc](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@smithandrewc](https://forums.balena.io/u/smithandrewc)\
**Post date:** [April 26, 2021, 7:22pm UTC](https://forums.balena.io/t/jetson-tx2-flashing/303935/1 "2021-04-26T19:22:30Z")

</div>

Hi,

I’m trying to flash a Jetson TX2 using the [jetson-flash tool](https://github.com/balena-os/jetson-flash) and I’m getting the following error using the command _/bin/cmd.js -f image\_tx2-2.73.1+rev4-v12.4.6.img -m jetson-tx2_

```
...
\ Downloading and extracting 
https://developer.nvidia.com/embedded/L4T/r32_Release_v4.4/r32_Release_v4.4-G| Downloading and extracting https://developer.nvidia.com/embedded/L4T/r32_Release_v4.4/r32_Release_v4.4-G/ Downloading and extracting https://developer.nvidia.com/embedded/L4T/r32_Release_v4.4/r32_Release_v4.4-GSaved in /tmp/22732
Successfully generated hash
Checking resin cache
| Checking image cache for image_tx2-2.73.1
Cache image check done
Extracting partition kernel from /tmp/22732/resin/img to /tmp/22732/resin
(node:22732)UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'name' of undefined
at Object.exports.extractPartition (/mnt/dev8/balena/jetson-flash/lib/utils.js:137:38)
at async ResinJetsonFlash.generateArtifacts (/mnt/dev8/balena/jetson-flash/lib/resin-jetson-flash.js:291:14)
at async ResinJetsonFlash.run (/mnt/dev8/balena/jetson-flash/lib/resin-jetson-flash.js:319:3)
at async run (/mnt/dev8/balena/jetson-flash/bin/cmd.js:56:2)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:22732) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:22732) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

```

If jetson-flash doesn’t work, what is the recommended way to flash a tx2? I have confirmed everything works for the nano, same code isn’t working for the tx2.

Thanks,

Andrew

---

<div class="post-metadata">

**Author:** ![smithandrewc](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@smithandrewc](https://forums.balena.io/u/smithandrewc)\
**Post date:** [April 26, 2021, 7:44pm UTC](https://forums.balena.io/t/jetson-tx2-flashing/303935/3 "2021-04-26T19:44:47Z")

</div>

Now that I look at it, the instructions given in the BalenaOS downloads page (when you click add device) talk about using an SD card. The TX2 I’m using is the emmc version that is flashed over USB. Are any of the available TX2 boards meant to be flashed over USB to the EMMC?

---

<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:** [April 27, 2021, 8:39am UTC](https://forums.balena.io/t/jetson-tx2-flashing/303935/4 "2021-04-27T08:39:12Z")

</div>

Hi @smithandrewc , what version of the jetson-flash tool shows this error for you? Is it v0.5.9 or some other version, and which nodejs version do you use?

Also, what is the exact commands that you used to:

- install or set-up jetson-flash
- flash the board

The log you pasted seems very similar to [Can't seem to flash images built from 2.73.1 · Issue #43 · balena-os/jetson-flash · GitHub](https://github.com/balena-os/jetson-flash/issues/43) which got fixed in v0.5.8, but let’s first see what versions you use.

---

<div class="post-metadata">

**Author:** ![smithandrewc](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@smithandrewc](https://forums.balena.io/u/smithandrewc)\
**Post date:** [April 27, 2021, 5:58pm UTC](https://forums.balena.io/t/jetson-tx2-flashing/303935/6 "2021-04-27T17:58:02Z")

</div>

Thanks @acostach . I don’t think the problem was the flasher, I was using an older version (v0.5.7) but I think it had more to do with the image I was trying to flash (not being meant to flash over USB). I compiled my own balenaOS image from source and used the non-flasher image and it flashed properly. It’s not booting but I think that requires a new thread.

Thanks.

---

<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:** [April 28, 2021, 8:04am UTC](https://forums.balena.io/t/jetson-tx2-flashing/303935/7 "2021-04-28T08:04:27Z")

</div>

Hi Andrew, images newer than v2.72.0 need v0.5.8 at least, for the reason mentioned above. The TX2 image from the dashboard is a flasher image, so jetson-flash extracts the OS image from it. You should pass the flasher one to jetson-flash, even if you’re doing a local build.
