OTA customization requirements, please help me see how to achieve it

Hi All:
I want to create an OTA package while retaining the /nat_env directory of the jp5.1.2 device environment, and add a new partition nvme0n1p16, and copy the original nat_env content to the nav_env (nvme0n1p16) of the new partition. The situation is as follows.How can I achieve it?

JP5.1.2

robot@tegra:~$ lsblk
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0          7:0    0    16M  1 loop
zram0        251:0    0   970M  0 disk
zram1        251:1    0   970M  0 disk
zram2        251:2    0   970M  0 disk
zram3        251:3    0   970M  0 disk
zram4        251:4    0   970M  0 disk
zram5        251:5    0   970M  0 disk
zram6        251:6    0   970M  0 disk
zram7        251:7    0   970M  0 disk
nvme0n1      259:0    0 953.9G  0 disk
├─nvme0n1p1  259:1    0 952.4G  0 part /
├─nvme0n1p2  259:2    0   128M  0 part
├─nvme0n1p3  259:3    0   768K  0 part
├─nvme0n1p4  259:4    0  31.6M  0 part
├─nvme0n1p5  259:5    0   128M  0 part
├─nvme0n1p6  259:6    0   768K  0 part
├─nvme0n1p7  259:7    0  31.6M  0 part
├─nvme0n1p8  259:8    0    80M  0 part
├─nvme0n1p9  259:9    0   512K  0 part
├─nvme0n1p10 259:10   0    64M  0 part
├─nvme0n1p11 259:11   0    80M  0 part
├─nvme0n1p12 259:12   0   512K  0 part
├─nvme0n1p13 259:13   0    64M  0 part
├─nvme0n1p14 259:14   0   400M  0 part
└─nvme0n1p15 259:15   0 479.5M  0 part
robot@tegra:~$ cat /etc/nv_tegra_release
# R35 (release), REVISION: 4.1, GCID: 33958178, BOARD: t186ref, EABI: aarch64, DATE: Tue Aug  1 19:57:35 UTC 2023
robot@tegra:~$ ls  /nav_env/
bin
robot@tegra:~$

JP6.2

robot@tegra:~$ lsblk
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0          7:0    0    16M  1 loop
zram0        252:0    0 978.5M  0 disk [SWAP]
zram1        252:1    0 978.5M  0 disk [SWAP]
zram2        252:2    0 978.5M  0 disk [SWAP]
zram3        252:3    0 978.5M  0 disk [SWAP]
zram4        252:4    0 978.5M  0 disk [SWAP]
zram5        252:5    0 978.5M  0 disk [SWAP]
zram6        252:6    0 978.5M  0 disk [SWAP]
zram7        252:7    0 978.5M  0 disk [SWAP]
nvme0n1      259:0    0 953.9G  0 disk
├─nvme0n1p1  259:1    0    64G  0 part /
├─nvme0n1p2  259:2    0   128M  0 part
├─nvme0n1p3  259:3    0   768K  0 part
├─nvme0n1p4  259:4    0  31.6M  0 part
├─nvme0n1p5  259:5    0   128M  0 part
├─nvme0n1p6  259:6    0   768K  0 part
├─nvme0n1p7  259:7    0  31.6M  0 part
├─nvme0n1p8  259:8    0    80M  0 part
├─nvme0n1p9  259:9    0   512K  0 part
├─nvme0n1p10 259:10   0    64M  0 part /boot/efi
├─nvme0n1p11 259:11   0    80M  0 part
├─nvme0n1p12 259:12   0   512K  0 part
├─nvme0n1p13 259:13   0    64M  0 part
├─nvme0n1p14 259:14   0   400M  0 part
├─nvme0n1p15 259:15   0 479.5M  0 part
└─nvme0n1p16 259:16   0 888.4G  0 part /nav_env
robot@tegra:~$ more /etc/nv_tegra_release
# R36 (release), REVISION: 4.3, GCID: 38968081, BOARD: generic, EABI: aarch64, DATE: Wed Jan  8 01:49:37 UTC 2025
# KERNEL_VARIANT: oot
TARGET_USERSPACE_LIB_DIR=nvidia
TARGET_USERSPACE_LIB_DIR_PATH=usr/lib/aarch64-linux-gnu/nvidia
robot@tegra:~$ ls /nav_env/
bin 
robot@tegra:~$ mount -l | grep nav_env
/dev/nvme0n1p16 on /nav_env type ext4 (rw,relatime)

It seems the duplicate topic as How to keep the original system directory and files in OTA - Jetson & Embedded Systems / Jetson Orin NX - NVIDIA Developer Forums, I’ve replied you there.

Do you mean this custom partition is not included in your JP5.1.2 before update?
It seems not the expected operation to me that “using OTA update to create custom partition”.

I’ve noticed that the rootfs in your JP5.1.2 is 952.4GB, but it is 64GB in your JP6.2.
It cannot be achieved by image-based OTA update since OTA update is not used to repartition the disk. It is used to update the data in the partition and the firmwares.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.