Jetson

From 太極
Jump to navigation Jump to search

General information

More

4GB vs 2GB

Comparison between Jetson Nano 2GB and Jetson Nano 4GB

ARMv8, ARMv9

  • https://en.wikipedia.org/wiki/ARM_architecture_family
  • ARMv8 is an ARM instruction set architecture announced in 2011. It brought a large number of fundamental changes to the instruction set, including the introduction of 64-bit operating capabilities. ARMv8 architecture uses two execution states, AArch32 and AArch64. As the names imply, one is for running 32-bit code and one for 64-bit.
  • After ARMv8, which was introduced in 2011, ARM introduced ARMv9 architecture.
  • According to ARM, some of the major new features of the ARMv9-A architecture include Realm Management Extension (RME) and Embedded Trace Extension (ETE) and Trace Buffer Extension (TRBE).
  • Apple M1 chip or M2 chip is based on ARMv8.5-A instruction set architecture.

Vs Raspberry Pi 4

The two motherboard are similar:new Raspberry Pi has the same arch and almost the same processor (nvidia one is older). VLC doesn’t work on Nvidia Jetson Nano

Get started

  • Getting Started with Jetson Nano 2GB Developer Kit. Jetson 2GB Developer Kit User Guide. How-to guides. NVIDIA AI tutorials and courses.
  • Getting Started: Nvidia Jetson Nano, Object Detection and Classification.
    sudo apt-get update 
    sudo apt-get install v4l-utils
    v4l2-ctl --list-devices --list-formats
    
    ./imagenet-camera.py --camera=/dev/video0 
    ./detectnet-camera.py --camera=/dev/video0 
    </li>
    <li>Self-paced, online training from [https://www.nvidia.com/en-us/training/ NVIDIA DEEP LEARNING INSTITUTE]
    </ul>
    
    == Hello AI World ==
    * https://github.com/dusty-nv/jetson-inference
    
    == Ubuntu 20.04 ==
    [https://qengineering.eu/install-ubuntu-20.04-on-jetson-nano.html Install Ubuntu 20.04 on Jetson Nano]
    
    == Camera ==
    [https://dmccreary.medium.com/getting-your-camera-working-on-the-nvida-nano-336b9ecfed3a Getting Your Camera Working on the Nvidia Nano]
    
    = Tips =
    == Boot from USB ==
    <ul>
    <li>https://github.com/jetsonhacks/bootFromUSB 2021, [https://www.jetsonhacks.com/2021/03/10/jetson-nano-boot-from-usb/ Jetson Nano – Boot from USB] 2021 
    <ul>
    <li>Boot Jetson nano from a micro SD card</li>
    <li>git clone https://github.com/jetsonhacks/bootFromUSB.git </li>
    <li>Disks > Format > GPT > '+' > SSD240 </li>
    <li>Mount SSD. ls /dev/sd* </li>
    <li>./copyRootToUSB.sh -p /dev/sda1 </li>
    <li>cd /media/USERNAME/SSD240/boot/extlinux </li>
    <li>sudo cp extlinux.conf extlinux.conf.bak </li>
    <li>./partUUID.sh </li>
    <li>sudo gedit extlinux.conf </li>
    <li>Shutdown. Remove SD card. Bingo. </li>
    </ul>
    </li>
    <li>[https://robroyce.dev/2021/02/11/how-to-boot-jetson-nano-from-usb-3-0-natively-with-jetpack-4-5/ How to Boot Jetson Nano From USB 3.0 (Natively) with Jetpack 4.5] 2021 </li>
    <li>[https://tutorial.cytron.io/2020/10/21/nvidia-jetson-nano-boot-from-usb/ Nvidia Jetson Nano Boot from USB] 2020 </li>
    <li>[https://jetsonhacks.com/2019/04/25/jetson-nano-run-on-usb-drive/ etson Nano – Run on USB Drive] 2019. Use a '''swap file''', not a swap partition.
    </ul>
    
    == Low memory problem in Jetson nano ==
    * [https://forums.developer.nvidia.com/t/low-memory-problem-in-jetson-nano/111964  Low memory problem in Jetson nano]
    
    == GPU benchmark ==
    * [https://www.arnabkumardas.com/platforms/nvidia/nvidia-jetson-nano-review-and-benchmark/ Nvidia Jetson Nano Review and Benchmark]
    
    * [https://linuxreviews.org/Glmark2 Glmark2]. Glmark2 is an OpenGL 2.0 and ES 2.0 benchmark. glmark2 is a cross-platform tool that can be used to test the performance of the GPU on both platforms with and without CUDA cores.
    ** '''sudo apt-get install glmark2'''
    * [https://wiki.luxcorerender.org/LuxMark_v3 LuxMark]
    
    == System monitor ==
    * [https://lambdalabs.com/blog/keeping-an-eye-on-your-gpus-2 Keeping An Eye On Your GPUs - GPU Monitoring Tools Compared]
    
    === '''jtop''' ===
    [https://jetsonhacks.com/2023/02/07/jtop-the-ultimate-tool-for-monitoring-nvidia-jetson-devices/ jtop: The Ultimate Tool for Monitoring NVIDIA Jetson Devices]
    <syntaxhighlight lang='bash'>
    sudo pip3 install -U jetson-stats
    jtop
    </syntaxhighlight>
    
    === Tegrastats Utility ===
    * [https://docs.nvidia.com/jetson/archives/r34.1/DeveloperGuide/text/AT/JetsonLinuxDevelopmentTools/TegrastatsUtility.html tegrastats]
    * [https://docs.nvidia.com/jetson/archives/r34.1/DeveloperGuide/text/AT/JetsonLinuxDevelopmentTools.html Jetson Linux Development Tools]
    
    === nvidia-smi ===
    * [https://forums.developer.nvidia.com/t/command-nvidia-smi-on-jetson-nano-not-working/119702 Command nvidia-smi on Jetson Nano not working?] or [https://forums.developer.nvidia.com/t/gpu-usage-info-nvidia-smi-is-not-there/189937 GPU usage info (nvidia-smi is not there)]
    * [https://developer.nvidia.com/nvidia-system-management-interface System Management Interface SMI]
    
    == Hardware acceleration ==
    * [https://forums.developer.nvidia.com/t/hardware-decoding-in-mpv-player/75872 Hardware decoding in mpv player]. '''totem''' is gstreamer based. 
    * https://github.com/jocover/jetson-ffmpeg
    
    == GStreamer, gst-launch-1.0 ==
    <ul>
    <li>[https://jetsonhacks.com/2019/04/02/jetson-nano-raspberry-pi-camera/ Jetson Nano + Raspberry Pi Camera]
    <li>To test 4K video playback on the NVIDIA Jetson Nano, you can use the GStreamer multimedia framework. See [https://developer.download.nvidia.com/embedded/L4T/r32_Release_v1.0/Docs/Accelerated_GStreamer_User_Guide.pdf?t=eyJscyI6ImJzZW8iLCJsc2QiOiJodHRwczovL3d3dy5iaW5nLmNvbS8ifQ== ACCELERATED GSTREAMER USER GUIDE]
    {{Pre}}
    sudo add-apt-repository universe
    sudo add-apt-repository multiverse
    sudo apt-get update
    sudo apt-get install gstreamer1.0-tools gstreamer1.0-alsa \\
       gstreamer1.0-plugins-base gstreamer1.0-plugins-good \\
       gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly \\
       gstreamer1.0-libav
    sudo apt-get install libgstreamer1.0-dev \\
       libgstreamer-plugins-base1.0-dev \\
       libgstreamer-plugins-good1.0-dev \\
       libgstreamer-plugins-bad1.0-dev
    
    gst-launch-1.0 filesrc location=<4k-video-file-path> ! qtdemux ! h264parse ! omxh264dec ! nveglglessink -e
    

    Replace <4k-video-file-path> with the path to your 4K video file. Note that the performance of 4K video playback may depend on other factors such as the bitrate of the video, the overall load on the Jetson Nano, and so on

  • 4k videos. Pixabay, Pexels.

swap

Alternative OS

https://forums.developer.nvidia.com/t/alternative-os/75649

LineageOS

ARES: aurora retro entertainment system

Kodi