_dhanos_
03/01/2023, 5:44 PMWaveshare NX-FAN-PWM
heatsink: https://www.amazon.com/Waveshare-Official-Compatible-Speed-Adjustable-Height-Limited/dp/B09TF5T12Bsudo apt install -y wget qemu-user-static nano
Driver 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-r3521aarch64tbz2wget https://developer.nvidia.com/downloads/jetson-linux-r3521-aarch64tbz2
wget https://developer.nvidia.com/downloads/linux-sample-root-filesystem-r3521aarch64tbz2
tar 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/
0
.
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 exitcd Linux_for_Tegra/
sudo ./apply_binaries.sh
sudo ./tools/l4t_flash_prerequisites.sh
tpi -p on
(turns on all nodes)
- tpi -u device -n 2
- tpi -p off
(turns off all nodes)lsusb
. It should pop up as the Nvidia Corp. APX
device on the list.sudo ./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.Renesas D720201
chip - it works out of the box. I used the controller to connect keyboard and mousetpi -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
).quiet
(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.nano
or any other editor of choice:
sudo apt install -y nano
sudo 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 nvfancontrol
15W
power mode - change it to MAXN
using the setting in the top-right part of the screen.sudo apt update
sudo apt -y upgrade
sudo apt -y dist-upgrade
sudo reboot
sudo apt -y install nvidia-jetpack
sudo 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.01
stress
- an utility to put stress to the CPU
sudo apt -y install stress
sudo reboot
py
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)
stress -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.1n4001
03/01/2023, 10:41 PM_dhanos_
03/02/2023, 7:26 AM1n4001
03/02/2023, 12:54 PMlamawithonel
03/07/2023, 12:08 AM_dhanos_
03/07/2023, 9:33 AMsnowsoft
03/09/2023, 4:42 PM_dhanos_
03/09/2023, 4:45 PMsnowsoft
03/09/2023, 4:46 PM_dhanos_
03/09/2023, 4:46 PMsnowsoft
03/09/2023, 4:48 PM_dhanos_
03/09/2023, 4:49 PMsnowsoft
03/09/2023, 4:50 PM_dhanos_
03/09/2023, 4:50 PM1n4001
03/13/2023, 12:44 AM_dhanos_
03/13/2023, 2:46 AMhashkode
03/17/2023, 6:22 PM_dhanos_
03/17/2023, 6:23 PMhashkode
03/17/2023, 6:26 PM_dhanos_
03/17/2023, 6:30 PMhashkode
03/17/2023, 6:31 PM_dhanos_
03/17/2023, 6:31 PMhashkode
03/17/2023, 6:33 PM_dhanos_
03/17/2023, 6:37 PMhashkode
03/17/2023, 6:54 PM_dhanos_
03/17/2023, 6:59 PMhashkode
03/17/2023, 7:01 PMterarex
04/23/2023, 3:55 PMcarina.akaia.io
10/18/2023, 6:08 PM_dhanos_
10/18/2023, 8:30 PMcarina.akaia.io
10/19/2023, 1:10 AM_dhanos_
10/19/2023, 3:01 AMcarina.akaia.io
10/20/2023, 2:03 PM_dhanos_
10/21/2023, 9:29 PMfentonfenton
10/22/2023, 7:00 PMcarina.akaia.io
10/23/2023, 2:28 PMfentonfenton
10/23/2023, 4:15 PMImage
is not a gzip file, Image.gz
is!fentonfenton
11/03/2023, 1:24 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? 🙂history
if you can 🙂carina.akaia.io
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 internal
kernel/Image.gz
into kernel/Image
binutils
and build-essential
installation into l4t_flash_prerequisites.sh
_dhanos_
11/03/2023, 1:51 PMcarina.akaia.io
11/03/2023, 1:51 PM_dhanos_
11/03/2023, 1:51 PMcarina.akaia.io
11/03/2023, 1:52 PM_dhanos_
11/03/2023, 1:52 PMcarina.akaia.io
11/03/2023, 1:53 PM_dhanos_
11/03/2023, 1:53 PMcarina.akaia.io
11/03/2023, 1:54 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 filesystem_dhanos_
11/03/2023, 1:58 PMcarina.akaia.io
11/03/2023, 1:58 PM_dhanos_
11/03/2023, 2:00 PMcarina.akaia.io
11/03/2023, 2:01 PM_dhanos_
11/03/2023, 2:03 PMcarina.akaia.io
11/03/2023, 2:04 PM_dhanos_
11/03/2023, 2:06 PMcarina.akaia.io
11/03/2023, 2:07 PM_dhanos_
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.io
11/03/2023, 2:07 PM_dhanos_
11/03/2023, 2:07 PMcarina.akaia.io
11/03/2023, 2:07 PMBus 003 Device 002: ID 0955:7323 NVIDIA Corp. APX
_dhanos_
11/03/2023, 2:08 PMcarina.akaia.io
11/03/2023, 2:08 PM_dhanos_
11/03/2023, 2:08 PMcarina.akaia.io
11/03/2023, 2:08 PM_dhanos_
11/03/2023, 2:09 PMcarina.akaia.io
11/03/2023, 2:11 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.encrypt
carina@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_backup
fentonfenton
11/03/2023, 5:29 PMcarina.akaia.io
11/03/2023, 7:40 PM_dhanos_
11/03/2023, 7:52 PMcarina.akaia.io
11/03/2023, 8:55 PM