The need for the minimalist images came from the official jetson images being large in size and containing pre-installed packages that are not necessary, resulting in the consumption of valuable disk space and memory.
- Jetson nano
- Jetson nano 2gb
- Jetson orin nano
- Jetso agx xavier
- Jetson xavier nx
Supported Ubuntu releases: 20.04, 22.04, 24.04
L4T versions: 32.x, 35.x, 36.x
Important
For jetson orin nano, you might need to update the firmware before being able to use an image based on l4t 36.x
check this link for more information.
The prebuilt images are available in the GitHub release page 👉 here
To be able to decompress the images, you must have lrzip installed.
After the image is decompressed, follow the section below to flash the image to your board.
The default login is:
username: jetson
password: jetson
Note
Building the jetson image has been tested only on Linux machines.
Building the jetson image is fairly easy. All you need to have is the following tools installed on your machine.
Start by cloning the repo from github
git clone https://github.com/pythops/jetson-image
cd jetson-image
Then create a new rootfs with the desired ubuntu version.
Note
Only the orin family boards can use ubuntu 24.04
For ubuntu 22.04
just build-jetson-rootfs 20.04
This will create the rootfs in the rootfs
directory.
Tip
You can modify the Containerfile.rootfs.*
files to add any tool or configuration that you will need in the final image.
Next, use the following command to build the Jetson image:
$ just build-jetson-image -b <board> -r <revision> -d <device> -l <l4t version>
Tip
If you wish to add some specific nvidia packages that are present in the common
section from this link
such as libcudnn8
for instance, then edit the filel4t_packages.txt
in the root directory, add list each package name on separate line.
For example, to build an image for jetson-orin-nano
board:
$ just build-jetson-image -b jetson-orin-nano -d SD -l 36
Run with -h
for more information
just build-jetson-image -h
Note
Not every jetson board can be updated to the latest l4t version.
Check this link for more information.
The Jetson image will be built and saved in the current directory in a file named jetson.img
To flash the jetson image, just run the following command:
$ sudo just flash-jetson-image <jetson image file> <device>
Where device
is the name of the sdcard/usb identified by your system.
For instance, if your sdard is recognized as /dev/sda
, then replace device
by /dev/sda
Note
There are numerous tools out there to flash images to sd card that you can use. I stick with dd
as it's simple and does the job.
Once you boot the board with the new image, then you can install Nvidia libraries using apt
$ sudo apt install -y libcudnn8 libcudnn8-dev ...
For the jetson nano for instance with the new image, only 150MB of RAM is used, which leaves you with 3.85 GB for your projects !
If you need more advanced configuration or a custom setup, you can contact me on this address support@pythops.com
AGPLv3