-
Notifications
You must be signed in to change notification settings - Fork 1
03.06 NVMe
This procedure details the cloning steps for Advantech devices using NVMe storage. This method utilizes a two-step process: initializing the NVMe and then using the rsync protocol to clone the filesystem.
This step runs a special flash command to initialize the NVMe partition, load a recovery ramdisk, and establish a network connection for cloning.
- Prepare Device and Connect: Extract the correct BSP on the host PC. Put the MIC device into Recovery Mode and connect it to the host PC using a Micro-USB cable.
-
Execute Initialization Command: Run the command corresponding to your device from the BSP root directory. This command will output an SSH connection string (e.g.,
ssh root@fc00:1:1:0::2) that you will need for the next step.
| Device | Initialization Command |
|---|---|
| MIC-733AO | sudo ./tools/kernel_flash/l4t_initrd_flash.sh --initrd jetson-agx-orin-devkit nvme0n1p1 |
| MIC-715OX | sudo ./tools/kernel_flash/l4t_initrd_flash.sh --initrd p3509-a02-p3767-0000 nvme0n1p1 |
-
Mount NVMe Partition: Use the noted SSH address to remotely mount the NVMe partition (
/dev/nvme0n1p1) to the mount point (/mnt) on the target device:ssh root@fc00:1:1:0::2 "mount /dev/nvme0n1p1 /mnt" -
Copy rsync Dependencies: Copy the
rsyncexecutable and its required libraries from the host BSP'srootfsto the device's temporary environment to enable the cloning operation.scp -6 rootfs/usr/bin/rsync root@[\fc00:1:1:0::2\]:/bin scp -6 rootfs/usr/lib/aarch64-linux-gnu/libpopt.so.0.0.1 root@[\fc00:1:1:0::2\]:/usr/lib/libpopt.so.0 scp -6 rootfs/usr/lib/aarch64-linux-gnu/libxxhash.so.0.8.1 root@[\fc00:1:1:0::2\]:/usr/lib/libxxhash.so.0
-
Prepare SSH Access: Temporarily switch to the root user on the host PC and establish an SSH connection to the device for key generation, then exit back to your normal host account.
sudo su ssh root@fc00:1:1:0::2 exit exit
-
Execute rsync Clone: Run the
rsynccommand to clone the master device's configured root filesystem (mounted at/mnt) back to the host PC's BSProotfs/directory.sudo rsync -avtxHAWX --delete root@[\fc00:1:1:0::2\]:/mnt/ rootfs/
-
Modify fstab: Navigate to the
rootfs/etcdirectory within your BSP and modify thefstabfile to correctly specify the boot partition on the NVMe device (/dev/nvme0n1p10).
| Device | fstab Modification Command |
|---|---|
| MIC-733AO | sudo sed -i "s|^UUID.*|/dev/nvme0n1p10 /boot/efi vfat defaults 0 1|g" ./rootfs/etc/fstab |
| MIC-715OX |
Manually edit: sudo vim MIC-715OX_OrinNX_6.0_V1.0.3_SDK/rootfs/etc/fstab and ensure the last string is: /dev/nvme0n1p10 /boot/efi vfat defaults 0 1
|
-
Set Boot Priority (MIC-733AO only): For the MIC-733AO, run this command to set the default boot priority to NVMe.
sudo fdtput -t s ./kernel/dtb/L4TConfiguration.dtbo /fragment@0/__overlay__/firmware/uefi/variables/gNVIDIATokenSpaceGuid/DefaultBootPriority data "nvme,emmc,usb,sd,ufs" -
Execute Final Flash Command: Put the new target device into Recovery Mode again. Run the flash command corresponding to your device. This command uses the customized
rootfs/data you cloned.
| Device | Flash Command (Restores Cloned rootfs) |
|---|---|
| MIC-733AO | sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/generic/cfg/flash_t234_qspi.xml" --showlogs --network usb0 jetson-agx-orin-devkit internal |
| MIC-715OX | Do Normal Flash again by SOP |
|
|
|
|
1 BSP Support
1.1 What's Jetpack BSP?
1.2 What can be found in BSP folder?
1.3 Jetpack BSP installation concept
1.4 Support Jetpack Version
1.5 MIC-711 Series BSP
1.6 MIC-713 Series BSP
1.7 MIC-732 Series BSP
1.8 MIC-733 Series BSP
1.9 MIC-742 Series BSP
1.10 MIC-743 Series BSP
1.11 MIC-710 Series BSP
1.12 MIC-712 Series BSP
1.13 MIC-715 Series BSP
1.14 MIC-717 Series BSP
1.15 MIC-720 Series BSP
1.16 MIC-730 Series BSP
2 I/O Function Support
2.1 Locating the Correct Package
2.2 The Test Utility
2.3 The Guide is Key
2.4 Support Models
2.5 MIC-713(S)
2.6 MIC-733