sudo systemctl set-default multi-user.target
sudo systemctl set-default graphical.target
function getFilePaths( | |
folderPath, | |
customFilter = () => true, | |
maxDepth = -1, | |
depth = 0 | |
) { | |
if (depth == maxDepth) return []; | |
const entries = readdirSync(folderPath).map((entries) => | |
Path.join(folderPath, entries) |
The parameter sensor-id=
describes the camera target. This id can be found by using ls /dev/
. If the camera correctly plugged in then there should be a devices called /dev/videoX
, where X is the camera id.
test@test-desktop:~$ gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, format=(string)NV12, framerate=(fraction)30/1' ! nvvidconv ! queue ! xvimagesink
Peak
# Decompile | |
dtc -I dtb -O dts -o devicetree.dts /boot/dtb/<your_devicetree_file_name>.dtb | |
# Compile | |
dtc -I dts -O dtb devicetree.dts -o <your_devicetree_file_name>.dtb | |
# Merge with DTBO | |
fdtoverlay -i modified-base.dtb -o modified-full.dtb /boot/tegra194-p3668-all-p3509-0000-user-custom.dtbo | |
# DTS from fs |
sudo parted /dev/sdb mklabel gpt | |
sudo parted /dev/sdb mkpart APP 0GB 32GB | |
sudo mkfs.ext4 /dev/sdb1 | |
Put the Jetson device into recovery mode (middle button ~4 seconds… then combo left button ~4 seconds… then release both) | |
Connect USB-C from host to Jetson (port next to power light) | |
sudo BOOTDEV=sda1 ./flash.sh --no-flash jetson-agx-xavier-devkit sda1 | |
sudo mount /dev/sdb1 /mnt | |
sudo mkdir tmp_system | |
sudo mount bootloader/system.img.raw ./tmp_system | |
sudo rsync -axHAWX --numeric-ids --info=progress2 --exclude=/proc ./tmp_system/ /mnt |
Important commands:
# Get related infos for flashing (sector size, start and end addresses)
sudo fdisk -l /dev/sdc
# Alternative for better regex actions:
sudo sfdisk -d /dev/sdc
# Copy image to storage
export type SelectorType = "option1" | "option2"; | |
export type SelectType<S extends SelectorType> = S extends "option1" | |
? Type1 | |
: S extends "option2" | |
? Type2 | |
: never; |