# resinos-jetson-flash

> This tool allows the user to flash resinOS on the Jetson device using Nvidia flashing tools.

Latest version **0.5.0** (published 2020-08-07) · Apache-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install resinos-jetson-flash
pnpm add resinos-jetson-flash
yarn add resinos-jetson-flash
bun add resinos-jetson-flash
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.5.0 |
| Published | 2020-08-07 |
| First published | 2019-09-25 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 17 |
| Unpacked size | 142.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Theodor Gherzan |
| Maintainers | balena.io |
| Keywords | flash, resinOS, USB |

## Links

- npm: https://www.npmjs.com/package/resinos-jetson-flash
- Repository: https://github.com/resin-os/resin-jetson-flash
- Homepage: https://github.com/resin-os/resin-jetson-flash#readme
- Issues: https://github.com/resin-os/resin-jetson-flash/issues
- npm.io page: https://npm.io/package/resinos-jetson-flash

## Dependencies (17)

- [hasha](https://npm.io/package/hasha.md) ^3.0.0
- [yargs](https://npm.io/package/yargs.md) ^11.0.0
- [ext2fs](https://npm.io/package/ext2fs.md) ^1.0.13
- [lodash](https://npm.io/package/lodash.md) ^4.17.10
- [tar-fs](https://npm.io/package/tar-fs.md) ^1.16.3
- [xml-js](https://npm.io/package/xml-js.md) ^1.6.4
- [request](https://npm.io/package/request.md) ^2.87.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^6.0.1
- [make-dir](https://npm.io/package/make-dir.md) ^1.3.0
- [file-disk](https://npm.io/package/file-disk.md) ^4.1.3
- [partitioninfo](https://npm.io/package/partitioninfo.md) ^4.0.1
- [resin-image-fs](https://npm.io/package/resin-image-fs.md) ^5.0.4
- [unbzip2-stream](https://npm.io/package/unbzip2-stream.md) ^1.2.5
- [progress-stream](https://npm.io/package/progress-stream.md) ^2.0.0
- [stream-to-string](https://npm.io/package/stream-to-string.md) ^1.1.0
- [string-to-stream](https://npm.io/package/string-to-stream.md) ^1.1.1
- [resin-cli-visuals](https://npm.io/package/resin-cli-visuals.md) ^1.4.2

## Recent versions

- 0.5.0 (latest) — 2020-08-07
- 0.5.0-32-4-2-96261aa34cd88fe1a6ba7737eb80c0be835d7408 (32-4-2-96261aa34cd88fe1a6ba7737eb80c0be835d7408) — 2020-06-10
- 0.5.0-32-4-2-473954bd2c87f3f6662437fe73ad704034b100b7 (32-4-2-473954bd2c87f3f6662437fe73ad704034b100b7) — 2020-06-02
- 0.5.0-32-4-2-812031af8d1ebfe8c634b27aa0e5f59763d4b1ec (32-4-2-812031af8d1ebfe8c634b27aa0e5f59763d4b1ec) — 2020-06-02
- 0.4.1-update-readme-d32bc3b2b58cc561ab7e2ba96d8301e2b7bdaa32 (update-readme-d32bc3b2b58cc561ab7e2ba96d8301e2b7bdaa32) — 2020-03-03
- 0.4.0-add-tx2-32-2-14b95dfee026c83c97fd7ee7169a1644d3b52672 (add-tx2-32-2-14b95dfee026c83c97fd7ee7169a1644d3b52672) — 2020-02-03
- 0.3.0-jetson-nano-use-rp1-c9e87bbcbc449edbceed64a8c28664541f07b16f (jetson-nano-use-rp1-c9e87bbcbc449edbceed64a8c28664541f07b16f) — 2019-11-14
- 0.3.0-add-tx2-32-2-4f4aa59f5b50b90bd818e9dbfa7424dca9c9ac79 (add-tx2-32-2-4f4aa59f5b50b90bd818e9dbfa7424dca9c9ac79) — 2019-10-07
- 0.2.0-xavier-support-e5fa823f4871cd4ae63048284c8023365052b4e0 (xavier-support-e5fa823f4871cd4ae63048284c8023365052b4e0) — 2019-10-03
- 0.1.0-xavier-support-f8cdf71309103c1992bde8b239b53dd0ac2fa02b (xavier-support-f8cdf71309103c1992bde8b239b53dd0ac2fa02b) — 2019-10-03
- 0.1.0-nano-offsets-update-7356a43aed3002691d84de025dc648ecd54c3f29 (nano-offsets-update-7356a43aed3002691d84de025dc648ecd54c3f29) — 2019-09-25
- 0.1.0-xavier-support-f4b70fe1b30085c6511a65d6312f4d19729a8c3c (xavier-support-f4b70fe1b30085c6511a65d6312f4d19729a8c3c) — 2019-09-25
- 0.4.1 — 2020-03-03
- 0.4.0 — 2020-02-03
- 0.3.0 — 2019-11-15
- … 2 more at https://npm.io/package/resinos-jetson-flash/versions

## README

# jetson-flash

> This tool allows users to flash BalenaOS on Jetson supported devices

This tool is separate into two parts:
- Extract resin-image from a resin-image-flasher (this will be moved to [etcher](https://github.com/resin-io/etcher) once the fatfs issues are fixed)
- Flash resin-image via USB on a Jetson board (this will be moved to [etcher](https://github.com/resin-io/etcher))

Balena devices support
---------------------

* Nvidia Jetson TX2
* NVidia Jetson NANO (both sd-card and emmc versions)
* NVidia Jetson Xavier
* NVidia Jetson NX

WARNINGS
--------

Due to issues with the fatfs node module, which does not support some operations we cannot transfer the following Balena configurations:

* system-proxy

Assumptions
-----------

- Linux based host
- Sudo privileges

Prerequisites
-------------

-  A Jetson BalenaOS image

Tool dependencies
-----------------

- [NodeJS](https://nodejs.org) (>= v10)
- This tool runs internally the Linux_for_Tegra package that Nvidia provides, so we assume you have all the dependencies for this tool installed.

Getting Started
---------------

NOTES:
 - Make sure that the Jetson board is pluged to your host via USB and is in recovery mode
 - Running the Nvidia flash tool requires sudo priviliges
 - This tool will produce all intermidiate steps in `/tmp/${pid_of_process}` and will require sudo priviliges to delete
 - If flashing Jetson TX2 with a BalenaOS image older than 2.47, please checkout tag 'v0.3.0'. BalenaOS 2.47 updated L4T version from 28.3 to 32.4.2.
 - Current BSP version used for flashing is L4T 32.4.2. Please ensure the BalenaOS version you are flashing uses the same L4T, by consulting the changelog
   available in the [BalenaOS Jetson](https://github.com/balena-os/balena-jetson/commits/master) repository.

Clone this repository
```sh
$ git clone https://github.com/balena-os/jetson-flash.git
```

Run the cli, specifying desired device type:
```sh
$ ./bin/cmd.js -f balena.img -m <device_type>
```

Current supported device types are: jetson-nano-emmc, jetson-nano-qspi-sd, jetson-tx2, jetson-xavier, jetson-xavier-nx-devkit-emmc

Support
-------

If you're having any problems, please [raise an issue](https://github.com/balena-os/jetson-flash/issues/new) on GitHub and the balena.io team will be happy to help.

License
-------

The project is licensed under the Apache 2.0 license.

---
_Source: https://npm.io/package/resinos-jetson-flash · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
