DhanOS
03/01/2023, 5:44 PMDhanOS
03/01/2023, 6:08 PMDhanOS
03/01/2023, 6:10 PMWaveshare NX-FAN-PWM heatsink: https://www.amazon.com/Waveshare-Official-Compatible-Speed-Adjustable-Height-Limited/dp/B09TF5T12BDhanOS
03/01/2023, 6:11 PMDhanOS
03/01/2023, 6:12 PMDhanOS
03/01/2023, 6:12 PMDhanOS
03/01/2023, 6:12 PMDhanOS
03/01/2023, 6:15 PMDhanOS
03/01/2023, 6:17 PMDhanOS
03/01/2023, 6:17 PMDhanOS
03/01/2023, 6:18 PMDhanOS
03/01/2023, 6:18 PMsudo apt install -y wget qemu-user-static nanoDhanOS
03/01/2023, 6:19 PMDriver Package (BSP) and Sample Root Filesystem. For example, for Jetson Linux 35.2.1 the links are:
- `Driver Package (BSP)`: https://developer.nvidia.com/downloads/jetson-linux-r3521-aarch64tbz2
- `Sample Root Filesystem`: https://developer.nvidia.com/downloads/linux-sample-root-filesystem-r3521aarch64tbz2DhanOS
03/01/2023, 6:19 PMwget https://developer.nvidia.com/downloads/jetson-linux-r3521-aarch64tbz2
wget https://developer.nvidia.com/downloads/linux-sample-root-filesystem-r3521aarch64tbz2DhanOS
03/01/2023, 6:19 PMtar xpf jetson-linux-r3521-aarch64tbz2
Unpack the Sample Root Filesystem into the Driver Package (BSP) (sudo is important here):
sudo tar xpf linux-sample-root-filesystem-r3521aarch64tbz2 -C Linux_for_Tegra/rootfs/DhanOS
03/01/2023, 6:20 PM0.
sudo nano Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb2-bct-misc-p3767-0000.dts
The last EEPROM configuration line says:
cvb_eeprom_read_size = <0x100>;
Replace the value of 0x100 with 0x0 (make sure to not modify cvm_eeprom_read_size instead - the name is similar, but starts with cvm, modify the one whose name starts with cvb - b like a board):
cvb_eeprom_read_size = <0x0>;
Press F3 and F2 to save and exitDhanOS
03/01/2023, 6:21 PMcd Linux_for_Tegra/
sudo ./apply_binaries.sh
sudo ./tools/l4t_flash_prerequisites.shDhanOS
03/01/2023, 6:22 PMDhanOS
03/01/2023, 6:23 PMtpi -p on (turns on all nodes)
- tpi -u device -n 2
- tpi -p off (turns off all nodes)DhanOS
03/01/2023, 6:23 PMlsusb. It should pop up as the Nvidia Corp. APX device on the list.DhanOS
03/01/2023, 6:23 PMsudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 \
  -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/t186ref/cfg/flash_t234_qspi.xml" \
  --showlogs --network usb0 p3509-a02+p3767-0000 internal
If you want to use a USB drive (untested by me):
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device sda1 \
  -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/t186ref/cfg/flash_t234_qspi.xml" \
  --showlogs --network usb0 p3509-a02+p3767-0000 internal
Flashing will take a longer time and the flasher will exit once it's done. The Orin NX FAN would not be spinning for the first part of the flashing process, but this is not a problem - the Orin NX will work just fine cooled passively by the heatsink for this part of the flashing process.DhanOS
03/01/2023, 6:24 PMDhanOS
03/01/2023, 6:27 PMRenesas D720201 chip - it works out of the box. I used the controller to connect keyboard and mouseDhanOS
03/01/2023, 6:28 PMtpi -p off). Disconnect the USB A-A cable.
Move Orin NX and NVME to Node 1, connect Mini PCIe USB controller to have a way to connect mouse and keyboard. There might be a way to configure Orin NX without keyboard/mouse and monitor using one of the scripts in the tools folder (l4t_creat_default_user.sh) but I haven't attempted that.
Turn on the Node 1 power via the web interface of via the command (tpi -p on).DhanOS
03/01/2023, 6:28 PMDhanOS
03/01/2023, 6:29 PMquiet (default) and cool. Quiet is really quiet but if we want to put some load on the device, I'd suggest to change it to cool which is still pretty quiet.DhanOS
03/01/2023, 6:29 PMnano or any other editor of choice:
sudo apt install -y nanoDhanOS
03/01/2023, 6:30 PMsudo systemctl stop nvfancontrol
sudo nano /etc/nvfancontrol.conf
Find the line containing FAN_DEFAULT_PROFILE - near the bottom of the file content:
FAN_DEFAULT_PROFILE quiet
And replace quiet with cool:
FAN_DEFAULT_PROFILE cool
Press F3 and F2 to save and exit, then run:
sudo rm /var/lib/nvfancontrol/status
sudo systemctl start nvfancontrolDhanOS
03/01/2023, 6:30 PM15W power mode - change it to MAXN using the setting in the top-right part of the screen.DhanOS
03/01/2023, 6:30 PMsudo apt update
sudo apt -y upgrade
sudo apt -y dist-upgrade
sudo rebootDhanOS
03/01/2023, 6:30 PMsudo apt -y install nvidia-jetpackDhanOS
03/01/2023, 6:31 PMsudo apt -y install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev liblapack-dev libblas-dev gfortran
sudo apt -y install python3-pip
sudo pip3 install -U pip testresources setuptools
sudo pip3 install -U numpy==1.21.1 future==0.18.2 mock==3.0.5 keras_preprocessing==1.1.2 keras_applications==1.0.8 gast==0.4.0 protobuf pybind11 cython pkgconfig packaging h5py==3.6.0
sudo pip3 install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v51 tensorflow==2.11.0+nv23.01DhanOS
03/01/2023, 6:31 PMstress - an utility to put stress to the CPU
sudo apt -y install stressDhanOS
03/01/2023, 6:31 PMsudo rebootDhanOS
03/01/2023, 6:31 PMDhanOS
03/01/2023, 6:31 PMpy
import os
import time
import subprocess
from threading import Thread
import tensorflow as tf
from tensorflow.keras import optimizers, layers, models
import numpy as np
BATCH_SIZE = 4
HIDDEN_LAYERS = 2
HIDDEN_LAYER_KERNELS = 4
DATASET_SIZE = 2048
DATA_SHAPE = (256, 256, 3)
model = models.Sequential()
model.add(layers.Conv2D(HIDDEN_LAYER_KERNELS, (3, 3), activation='relu', input_shape=DATA_SHAPE, strides=(1, 1), padding="same"))
model.add(layers.MaxPooling2D((2, 2), strides=(1, 1), padding="same"))
for _ in range(HIDDEN_LAYERS):
    model.add(layers.Conv2D(HIDDEN_LAYER_KERNELS, (5, 5), activation='relu', strides=(1, 1), padding="same"))
    model.add(layers.MaxPooling2D((5, 5), strides=(1, 1), padding="same"))
model.add(layers.Conv2D(2, (DATA_SHAPE[0] // 8, DATA_SHAPE[1] // 8), activation='relu'))
model.add(layers.Flatten())
model.add(layers.Dense(64, activation='relu'))
model.add(layers.Dense(10))
model.summary()
X = np.ones((DATASET_SIZE, *DATA_SHAPE))
y = np.ones((DATASET_SIZE, 10))
data = tf.data.Dataset.from_tensor_slices((X, y))
data = data.batch(BATCH_SIZE)
model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=1e-3),
              loss=tf.keras.losses.BinaryCrossentropy())
model.fit(data, epochs=1000)DhanOS
03/01/2023, 6:32 PMstress -c 8
to stress the CPU, and in another tun:
python3.8 test.py
to stress the GPU at the same time. At this stage the Orin NX might start showing over-current messages which means we are stressing it more than it can handle. During these tests I haven't noticed anything wrong with the Turing Pi 2 board, but I haven't measured voltages yet either.DhanOS
03/01/2023, 6:32 PM1n4001
03/01/2023, 10:41 PMDhanOS
03/02/2023, 7:26 AM1n4001
03/02/2023, 12:54 PMlamawithonel
03/07/2023, 12:08 AMDhanOS
03/07/2023, 9:33 AMsnowsoft
03/09/2023, 4:42 PMDhanOS
03/09/2023, 4:45 PMsnowsoft
03/09/2023, 4:46 PMDhanOS
03/09/2023, 4:46 PMsnowsoft
03/09/2023, 4:48 PMDhanOS
03/09/2023, 4:49 PMsnowsoft
03/09/2023, 4:50 PMDhanOS
03/09/2023, 4:50 PM1n4001
03/13/2023, 12:44 AM1n4001
03/13/2023, 12:45 AMDhanOS
03/13/2023, 2:46 AMDhanOS
03/13/2023, 2:46 AMHashkode
03/17/2023, 6:22 PMDhanOS
03/17/2023, 6:23 PMHashkode
03/17/2023, 6:26 PMDhanOS
03/17/2023, 6:30 PMDhanOS
03/17/2023, 6:30 PMDhanOS
03/17/2023, 6:30 PMHashkode
03/17/2023, 6:31 PMDhanOS
03/17/2023, 6:31 PMDhanOS
03/17/2023, 6:31 PMHashkode
03/17/2023, 6:33 PMHashkode
03/17/2023, 6:35 PMDhanOS
03/17/2023, 6:37 PMHashkode
03/17/2023, 6:54 PMDhanOS
03/17/2023, 6:59 PMHashkode
03/17/2023, 7:01 PMDan D.
04/23/2023, 3:55 PMCarina ∅ Akaia
10/18/2023, 6:08 PMDhanOS
10/18/2023, 8:30 PMDhanOS
10/18/2023, 8:30 PMCarina ∅ Akaia
10/19/2023, 1:10 AMCarina ∅ Akaia
10/19/2023, 1:11 AMDhanOS
10/19/2023, 3:01 AMCarina ∅ Akaia
10/20/2023, 2:03 PMDhanOS
10/21/2023, 9:29 PMfentonfenton
10/22/2023, 7:00 PMCarina ∅ Akaia
10/23/2023, 2:28 PMCarina ∅ Akaia
10/23/2023, 2:29 PMfentonfenton
10/23/2023, 4:15 PMfentonfenton
10/23/2023, 4:16 PMCarina ∅ Akaia
11/03/2023, 12:33 PMCarina ∅ Akaia
11/03/2023, 12:33 PMCarina ∅ Akaia
11/03/2023, 12:43 PMCarina ∅ Akaia
11/03/2023, 12:46 PMCarina ∅ Akaia
11/03/2023, 1:05 PMImage is not a gzip file, Image.gz is!Carina ∅ Akaia
11/03/2023, 1:06 PMfentonfenton
11/03/2023, 1:24 PMfentonfenton
11/03/2023, 1:26 PMstrings: command not found is probably because of a missing package (maybe something in sudo ./tools/l4t_flash_prerequisites.sh ????) - it's hard to say from your cropped screenshots. could you try pasting terminal out next time so we can see the full strings you are running? 🙂fentonfenton
11/03/2023, 1:27 PMhistory if you can 🙂Carina ∅ Akaia
11/03/2023, 1:43 PMsudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 \  
  -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/t186ref/cfg/flash_t234_qspi.xml" \  
  --showlogs --network usb0 jetson-orin-nano-devkit internalCarina ∅ Akaia
11/03/2023, 1:44 PMkernel/Image.gz into kernel/ImageCarina ∅ Akaia
11/03/2023, 1:46 PMbinutils and build-essential installation into l4t_flash_prerequisites.shCarina ∅ Akaia
11/03/2023, 1:48 PMCarina ∅ Akaia
11/03/2023, 1:48 PMDhanOS
11/03/2023, 1:51 PMCarina ∅ Akaia
11/03/2023, 1:51 PMDhanOS
11/03/2023, 1:51 PMCarina ∅ Akaia
11/03/2023, 1:52 PMCarina ∅ Akaia
11/03/2023, 1:52 PMDhanOS
11/03/2023, 1:52 PMCarina ∅ Akaia
11/03/2023, 1:53 PMCarina ∅ Akaia
11/03/2023, 1:53 PMDhanOS
11/03/2023, 1:53 PMCarina ∅ Akaia
11/03/2023, 1:54 PMCarina ∅ Akaia
11/03/2023, 1:57 PMsudo apt -y upgrade, sudo apt -y dist-upgrade, BSP and root filesystem versions will be different if you always choose the recent version over time, plus some of the commands assuming a case-insensitive filesystemDhanOS
11/03/2023, 1:58 PMCarina ∅ Akaia
11/03/2023, 1:58 PMCarina ∅ Akaia
11/03/2023, 1:58 PMCarina ∅ Akaia
11/03/2023, 1:59 PMCarina ∅ Akaia
11/03/2023, 1:59 PMDhanOS
11/03/2023, 2:00 PMCarina ∅ Akaia
11/03/2023, 2:01 PMCarina ∅ Akaia
11/03/2023, 2:01 PMDhanOS
11/03/2023, 2:03 PMDhanOS
11/03/2023, 2:04 PMCarina ∅ Akaia
11/03/2023, 2:04 PMCarina ∅ Akaia
11/03/2023, 2:05 PMDhanOS
11/03/2023, 2:06 PMCarina ∅ Akaia
11/03/2023, 2:07 PMDhanOS
11/03/2023, 2:07 PMtpi tool) to device for the node that you put the Orin module in, turn the node power onCarina ∅ Akaia
11/03/2023, 2:07 PMDhanOS
11/03/2023, 2:07 PMCarina ∅ Akaia
11/03/2023, 2:07 PMCarina ∅ Akaia
11/03/2023, 2:08 PMBus 003 Device 002: ID 0955:7323 NVIDIA Corp. APXDhanOS
11/03/2023, 2:08 PMCarina ∅ Akaia
11/03/2023, 2:08 PMDhanOS
11/03/2023, 2:08 PMCarina ∅ Akaia
11/03/2023, 2:08 PMDhanOS
11/03/2023, 2:09 PMDhanOS
11/03/2023, 2:10 PMDhanOS
11/03/2023, 2:10 PMCarina ∅ Akaia
11/03/2023, 2:11 PMCarina ∅ Akaia
11/03/2023, 2:11 PMCarina ∅ Akaia
11/03/2023, 2:13 PMcarina@arm:~/Linux_for_Tegra/bootloader$ sudo bash flashcmd.txt
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
 Entering RCM boot
[   0.0222 ] mb1_t234_prod_aligned_sigheader.bin.encrypt filename is from --mb1_bin
[   0.0223 ] psc_bl1_t234_prod_aligned_sigheader.bin.encrypt filename is from --psc_bl1_bin
[   0.0223 ] rcm boot with presigned binaries
[   0.0237 ] tegrarcm_v2 --new_session --chip 0x23 0 --uid --download bct_br br_bct_BR.bct --download mb1 mb1_t234_prod_aligned_sigheader.bin.encrypt --download psc_bl1 psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt
Error: Return value 8
Command tegrarcm_v2 --new_session --chip 0x23 0 --uid --download bct_br br_bct_BR.bct --download mb1 mb1_t234_prod_aligned_sigheader.bin.encrypt --download psc_bl1 psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --download bct_mb1 mb1_bct_MB1_sigheader.bct.encryptCarina ∅ Akaia
11/03/2023, 2:13 PMcarina@arm:~/Linux_for_Tegra/bootloader$ cat flashcmd.txt
./tegraflash.py --bl uefi_jetson_with_dtb_sigheader.bin.encrypt --bct br_bct_BR.bct --securedev  --bldtb tegra234-p3767-0000-p3768-0000-a0.dtb --applet rcm_2_encrypt.rcm --applet_softfuse rcm_1_encrypt.rcm --cmd "rcmboot"  --cfg secureflash.xml --chip 0x23 --mb1_bct mb1_bct_MB1_sigheader.bct.encrypt --mem_bct mem_rcm_sigheader.bct.encrypt --mb1_cold_boot_bct mb1_cold_boot_bct_MB1_sigheader.bct.encrypt --mb1_bin mb1_t234_prod_aligned_sigheader.bin.encrypt --psc_bl1_bin psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --mem_bct_cold_boot mem_coldboot_sigheader.bct.encrypt  --bins "psc_fw pscfw_t234_prod_sigheader.bin.encrypt; mts_mce mce_flash_o10_cr_prod_sigheader.bin.encrypt; mb2_applet applet_t234_sigheader.bin.encrypt; mb2_bootloader mb2_t234_with_mb2_cold_boot_bct_MB2_sigheader.bin.encrypt; xusb_fw xusb_t234_prod_sigheader.bin.encrypt; dce_fw display-t234-dce_sigheader.bin.encrypt; nvdec nvdec_t234_prod_sigheader.fw.encrypt; bpmp_fw bpmp_t234-TE980M-A1_prod_sigheader.bin.encrypt; bpmp_fw_dtb tegra234-bpmp-3767-0000-a02-3509-a02_with_odm_sigheader.dtb.encrypt; sce_fw camera-rtcpu-sce_sigheader.img.encrypt; rce_fw camera-rtcpu-t234-rce_sigheader.img.encrypt; ape_fw adsp-fw_sigheader.bin.encrypt; spe_fw spe_t234_sigheader.bin.encrypt; tos tos-optee_t234_sigheader.img.encrypt; eks eks_t234_sigheader.img.encrypt; kernel boot.img; kernel_dtb tegra234-p3767-0000-p3768-0000-a0.dtb"    --secondary_gpt_backup  --bct_backupfentonfenton
11/03/2023, 5:29 PMfentonfenton
11/03/2023, 5:29 PMfentonfenton
11/03/2023, 5:33 PMCarina ∅ Akaia
11/03/2023, 7:40 PMCarina ∅ Akaia
11/03/2023, 7:41 PMDhanOS
11/03/2023, 7:52 PMCarina ∅ Akaia
11/03/2023, 8:55 PMCarina ∅ Akaia
11/03/2023, 8:56 PMCarina ∅ Akaia
11/03/2023, 8:56 PMCarina ∅ Akaia
11/03/2023, 8:57 PMCarina ∅ Akaia
11/03/2023, 8:57 PMCarina ∅ Akaia
12/23/2023, 8:00 PMpoohthepirate
12/26/2023, 5:24 PMCarina ∅ Akaia
12/26/2023, 5:41 PM