Had same issue with a 4gb, sd version.
Fixed it with a live Ubuntu 18.04 (I guess it would work also with a more recent version, but I already had flashed that one to a stick)
my process :
$ sudo add-apt-repository universe
$ sudo apt install nodejs npm git libxml2-utils
$ sudo npm i -g n
$ sudo n 12
close terminal; open a new one to refresh PATH as node has changed location
$ sudo npm i -g node-gyp
$ git clone https://github.com/balena-os/jetson-flash.git
$ cd jetson-flash
$ npm i
$ cd node-modules/resin-image-fs/node-modules/ext2fs/
$ node-gyp rebuild
$ cd ../../../..
$ ./bin/cmd.js -f /path/to/balena.img -m jetson-nano-qspi-sd
Notes :
- I’ve put the balena.img file on another usb stick.
-
nis a node version manager, it helps selecting a specific version of node (12 in our case) - for
node-gypto work you’ll also needbuild-essentials(and maybepython) but they were already installed as dependencies ofnpm. - previously tried the SDK route, but it didn’t worked on a live Ubuntu as it was requiring lots of free space and tried to install tons of useless stuffs on the host machine.
- the jetson needs to be in “debug” mode, meaning on my dk board bridging the
FC RECandGNDpins on the side of the board below the jetson module.