Jetson TX2 Flashing


I’m trying to flash a Jetson TX2 using the jetson-flash tool 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| Downloading and extracting Downloading and extracting 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 (/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 (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.



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?

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 which got fixed in v0.5.8, but let’s first see what versions you use.

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.


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.