Reference/demo distribution for NVIDIA Jetson platforms using Yocto Project tools and the meta-tegra BSP layer.
Metadata layers are brought in as git submodules:
| Layer Repo | Branch | Description |
|---|---|---|
| poky | scarthgap | OE-Core from poky repo at yoctoproject.org |
| meta-tegra | scarthgap | L4T BSP layer - L4T R36.4.0/JetPack 6.1 |
| meta-tegra-community | scarthgap | OE4T layer with additions from the community |
| meta-openembedded | scarthgap | OpenEmbedded layers |
| meta-virtualization | scarthgap | Virtualization layer for docker support |
The upstream project has been modified to support AOS on the Jetson Nano 8GB SOM on a Seeed studio J401. To build, run:
export MACHINE=p3768-0000-p3767-0003
. repos/poky/oe-init-build-env build
bitbake demo-image-base && ../to_xfs.py tmp/deploy/images/p3768-0000-p3767-0003/demo-image-base-p3768-0000-p3767-0003.rootfs.tegraflash.tar.gz demo-image-base-p3768-0000-p3767-0003.rootfs.tegraflash.tar.zst
Note: this hasn't been tested yet with a fresh checkout, not everything might be captured yet.
To flash, extract the image, then run sudo ./initrd-flash with the orin in bootloader mode, connected over USB.
To build for a devkit instead of a seed J401, run:
export MACHINE=jetson-orin-nano-devkit-nvme
. repos/poky/oe-init-build-env build
bitbake demo-image-base && ../to_xfs.py tmp/deploy/images/jetson-orin-nano-devkit-nvme/demo-image-base-jetson-orin-nano-devkit-nvme.rootfs.tegraflash.tar.gz demo-image-base-jetson-orin-nano-devkit-nvme.rootfs.tegraflash.tar.zst
And flash the same way, with ./initrd-flash
To view the serial console:
python3 /usr/lib/python3/dist-packages/serial/tools/miniterm.py /dev/ttyUSB0 115200
To turn on all debugging in dmesg:
echo 0xffff | sudo tee /sys/module/uvcvideo/parameters/trace
Set it back to 0 to turn it off.
echo 0 | sudo tee /sys/module/uvcvideo/parameters/trace
To turn quirks on to fix bandwidth calcs:
rmmod uvcvideo
modprobe uvcvideo quirks=128
dmesg will spit out frame statistics, including bandwidth usage.