-
Jetson TX1 & TX2 & Xavier
-
machine arch files for Jetson TX1 (Quad-core ARMCortex-A57 MPCore Processor)
-
git clone -b krogoth git://git.yoctoproject.org/poky.git cd poky git clone https://github.com/madisongh/meta-tegra . oe-init-build-env build_jetson cd build_jetson/conf/ ...
-
SPI - Serial Peripheral Interface
-
- git for Das U-Boot
- U-Boot tegra
- Linux for Tegra
- TX1: how to recover CUDA and Nvidia/X11 drivers…
- tegra downloads
- TX1/R23.1: New Flash Structure...How to Clone?
- Updating TX1 driver package but not rootfs
- cross compile U-Boot
export CROSS_COMPILE=/opt/linaro/gcc-linaro-5.3-2016.02-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- export ARCH=arm64 make distclean make p2371-2180_defconfig make
- Jetson/Cloning
sudo python2 ./tegraflash.py --bl cboot.bin --applet nvtboot_recovery.bin --chip 0x21 --cmd "read APP my_backup_image_APP.img" Welcome to Tegra Flash version 1.0.0 Type ? or help for help and q or quit to exit Use ! to execute system commands [ 0.0011 ] Generating RCM messages Error: Could not find tegrarcm file ./tegrarcm ./tegrarcm: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.6.8, not stripped
-
ARM cross compile
- Problems with linking arm objects : resolution
/usr/lib/gcc/arm-none-eabi/4.9.1/../../../../arm-none-eabi/lib/libc.a(lib_a-exit.o): In function `exit': /build/arm-none-eabi-gcc/src/gcc-4.9.1/build/arm-none-eabi/newlib/libc/stdlib/../../../../../newlib/libc/stdlib/exit.c:70: undefined reference to `_exit' /usr/lib/gcc/arm-none-eabi/4.9.1/../../../../arm-none-eabi/lib/libc.a(lib_a-sbrkr.o): In function `_sbrk_r': ...
arm-none-eabi-gcc hi.c -lc -specs=nosys.specs -o hi
export ARCH=arm64 export CROSS_COMPILE=/usr/bin/arm-none-eabi- export CROSS_COMPILE=/opt/armgcc/bin/
- Problems with linking arm objects : resolution
-
Das U-Boot programming
- Banana Pi: через U-Boot к Arch Linux
- U-Boot programming: A tutorial -- Part I
- U-Boot programming: A tutorial -- Part II
- U-Boot programming: A tutorial -- Part III
- Tegra/Mainline SW/U-Boot
- extlinux.conf
TIMEOUT 100 DEFAULT default MENU TITLE Boot menu LABEL default MENU LABEL Linux 3.18.8-rt2+ with Overlay LINUX vmlinuz-3.18.8-rt2+ FDTDIR . APPEND dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 smsc95xx.macaddr=${usbethaddr} root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait ro init=/sbin/init-overlay LABEL aufs MENU LABEL Linux 3.18.8-rt2+ with Aufs LINUX vmlinuz-3.18.8-rt2+ FDTDIR . APPEND dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 smsc95xx.macaddr=${usbethaddr} root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait ro OVERLAY=aufs init=/sbin/init-overlay LABEL rw MENU LABEL Linux 3.18.8-rt2+ RW root LINUX vmlinuz-3.18.8-rt2+ FDTDIR . APPEND dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 smsc95xx.macaddr=${usbethaddr} root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait ro LABEL nfs-busybox MENU LABEL Linux 3.18.8-rt2+ NFS BusyBox LINUX vmlinuz-3.18.8-rt2+ FDTDIR . APPEND dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 smsc95xx.macaddr=${usbethaddr} root=/dev/nfs rw nfsroot=192.168.1.10:/srv/nfs/rpi ip=192.168.1.33:::::eth0 elevator=deadline rootwait ...
gvim u-boot/common/cmd_pxe.c u-boot/common/cmd_ext2.c uboot/fs/fs.c
static int get_relfile(cmd_tbl_t *cmdtp, const char *file_path, unsigned long file_addr) ... strcat(relfile, file_path); printf("Retrieving file: %s\n", relfile); sprintf(addr_buf, "%lx", file_addr); return do_getfile(cmdtp, relfile, addr_buf);
-
U-Boot scripts
-
PCI & PCIe
-
Cross compilation
- A versatile (cross-)toolchain generator.
- Cross Compiling Environment Setup For ARM Architecture Pidora OS
- Building embedded ARM systems with Crosstool-NG
- Bash: Build Binutils, GCC, Newlib, and GDB for ARM EABI (Cross-compiler).
- building U-boot
- Jetson/TX1 Upstream Kernel
- tegra-uboot-flasher-scripts : README-developer
- Compiling Tegra X1 source code
- [meta-fsl-arm,5/5] u-boot: fix build error under gcc6
- SDL
-
Docker
- NVIDIA Docker Container User Guide
- issue creating containers due to seccomp failure (error adding seccomp filter rule for syscall clone3: permission denied: unknown
tl;dr
sudo dpkg -i docker.io_20.10.2-0ubuntu1_18.04.2_arm64.deb [sudo] password for alsam: dpkg: warning: downgrading docker.io from 20.10.7-0ubuntu5~18.04.3 to 20.10.2-0ubuntu1~18.04.2 (Reading database ... 214354 files and directories currently installed.) Preparing to unpack docker.io_20.10.2-0ubuntu1_18.04.2_arm64.deb ... Unpacking docker.io (20.10.2-0ubuntu1~18.04.2) over (20.10.7-0ubuntu5~18.04.3) ... Setting up docker.io (20.10.2-0ubuntu1~18.04.2) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... ... sudo apt-mark hold docker.io
-
misc
-
Unknown command 'jetson_release' (pip command not found) tl;dr
$ sudo -H pip3 install -U setuptools Collecting setuptools Downloading https://files.pythonhosted.org/packages/b0/3a/88b210db68e56854d0bcf4b38e165e03be377e13907746f825790f3df5bf/setuptools-59.6.0-py3-none-any.whl (952kB) 100% |████████████████████████████████| 962kB 768kB/s Installing collected packages: setuptools Successfully installed setuptools-59.6.0 $ sudo -H pip3 install -U jetson-stats Collecting jetson-stats
-
Number of CPU cores on Jetson Xavier tl;dr
sudo nvpmodel -m 2
-
restore screen after removing an inserting HDMI tl;dr
sudo xrandr -s 1
-
Network Troubleshooting
- Jetson/Remote Access
- tl;dr
sudo service networking start sudo service network-manager start
-
cursor disable in X11
cat /lib/systemd/system/X.service ... ExecStart=/usr/bin/startx -- -nocursor ... sudo systemctl daemon-reload sudo systemctl restart X
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
-
How do I know what version of L4T my Jetson TX1 is running? tl;dr
cat /etc/nv_tegra_release
sudo apt-get install qtmultimedia5-dev libqt5multimediawidgets5 libqt5multimedia5-plugins libqt5multimedia5 qtdeclarative5 sudo apt-get install libjpeg-turbo8 libjpeg-turbo8-dev libturbojpeg0-dev libevdev-dev
-