DRIVE AGX ORIN: New partition

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
1.9.3.10904
other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

Hi @VickNV,

I’m actually working on the DRIVE AGX Orin, and we want to create a new partition that is visible in the Linux userspace. I’m actually playing around with these two files from the SDK files in the docker container:

/drive/drive-foundation/platform-config/hardware/nvidia/platform/t23x/automotive/pct/drive_av/linux/boot_chain_storage.cfg
/drive/drive-foundation/platform-config/hardware/nvidia/platform/t23x/automotive/pct/drive_av/linux/linux_storage.cfg

But I’m facing two issues:

  1. I can’t create a new partition because the flashing process fails, telling me something about the partition I want to create:
start nvimagegen
arguments: ./nvimagegen --parentcfg /drive/drive-foundation/tools/flashtools/bootburn_t23x_py/__temp_t234/Tegra-A-f50e9050d53/flash-images/tmp_global_storage_sub2.cfg --cfg /drive/drive-foundation/tools/flashtools/bootburn_t23x_py/__temp_t234/Tegra-A-f50e9050d53/flash-images/tmp_global_storage_sub2_sub2.cfg --prefix A_1 --chip 0x23 --chipver A01 --bct_der_consts /drive/drive-foundation/tools/flashtools/bootburn_t23x_py/__temp_t234/Tegra-A-f50e9050d53/der_const_val.bin --pvitversion 6.0.8.1-34176994 --guestcfg 1 --ptonly
:[D]: BRBCT Derivaiton Constants initialized
:[I]:   nvimage starting config parsing activities  
EKC PartitionAttrib=0x00000000 (null)
EKC PartitionAttrib=0x00000000 /drive/drive-linux/kernel/preempt_rt/images/Image
EKC PartitionAttrib=0x00000000 /drive/drive-linux/filesystem/initramfs.cpio
  nvimage QbInitPartitions  
PartitionId=1 Name=pt Id=1 FileName=(null) Size=262144 IsPersistent=0
PartitionId=2 Name=kernel-dtb Id=2 FileName=/drive/drive-foundation/virtualization/hypervisor/t23x/configs/t234ref-release/pct/p3710-10-a03/linux/tegra234-p3710-0010-a01-linux-driveav-gos.dtb Size=393216 IsPersistent=0
PartitionId=3 Name=kernel Id=3 FileName=(null) Size=28311552 IsPersistent=0
PartitionId=4 Name=ramdisk Id=4 FileName=(null) Size=7340032 IsPersistent=0
PartitionId=5 Name=gos0-gp1 Id=5 FileName=(null) Size=262144 IsPersistent=0
PartitionId=6 Name=gos0-fs-data Id=6 FileName=/drive/drive-linux/filesystem/targetfs.img Size=27899330560 IsPersistent=0
PartitionId=7 Name=gos0-gpt Id=7 FileName=(null) Size=262144 IsPersistent=0
GPT Device size 27936161792. start location 27936026624
PartitionId=8 Name=gos0-gp1-data Id=8 FileName=(null) Size=262144 IsPersistent=0
:[E]: QbPartMgrDerivePartInfo            : 2050: Error BadParameter (0x4)
:[E]: Layout size= (0x68123ffff) exceeds device 28 size= (0x681200000)at partition gos0-gp1-data (8) with size= 262144
:[E]: PopulatePartitionEntryInfo         : 2100: Error BadParameter (0x4)
:[E]: Failed to Create Partition for gos0-gp1-data
:[E]: QbPartMgrAddTableEntry             : 2155: Error BadParameter (0x4)
:[E]: CreatePartition                    :  535: Error BadParameter (0x4)
:[E]: QbInitPartitions                   : 1916: Error BadParameter (0x4)
:[E]: failed to create partitions
Failed to initialize partitions
:[E]: nvimagegen                         :  942: Error BadParameter (0x4)
:[E]: Initializing partitions failed
finish nvimagegen
Error Code 4
62144 IsPersistent=1
PartitionId=25 Name=gos0-crashlogs Id=25 FileName=(null) Size=1048576 IsPersistent=1
PartitionId=26 Name=custom Id=26 FileName=(null) Size=3670016 IsPersistent=0
PartitionId=27 Name=secure-os Id=27 FileName=/drive/drive-foundation/firmware/bin/t23x/tzvault/p3710-10-a03/tos.img Size=4194304 IsPersistent=0
PartitionId=28 Name=adsp-fw Id=28 FileName=/drive/drive-foundation/firmware/bin/common/adsp-fw.bin Size=2097152 IsPersistent=0
PartitionId=29 Name=fsi-fw Id=29 FileName=/drive/drive-foundation/firmware/bin/t23x/fsi/fsi-fw.bin Size=6291456 IsPersistent=0
PartitionId=30 Name=xusb-fw Id=30 FileName=/drive/drive-foundation/firmware/bin/t23x/kernel-firmware/xusb_fw_load/t234/xusb_t234_prod.bin Size=262144 IsPersistent=0
PartitionId=31 Name=dce-fw Id=31 FileName=dce-dtb.bin Size=9437184 IsPersistent=0
PartitionId=32 Name=pvit Id=32 FileName=(null) Size=262144 IsPersistent=0
PartitionId=33 Name=pva-fw Id=33 FileName=/drive/drive-linux/firmware/nvpva_020.fw Size=2621440 IsPersistent=0
PartitionId=34 Name=kernel Id=34 FileName=(null) Size=10485760 IsPersistent=0
PartitionId=35 Name=guest-linux Id=35 FileName=(null) Size=27936161792 IsPersistent=0
PartitionId=36 Name=gos0-rw-overlay Id=36 FileName=(null) Size=1073741824 IsPersistent=0
PartitionId=37 Name=qnx-update Id=37 FileName=(null) Size=25165824 IsPersistent=0
PartitionId=38 Name=qnx-update-fs Id=38 FileName=(null) Size=134217728 IsPersistent=1
PartitionId=39 Name=ufs-eco-dummy Id=39 FileName=(null) Size=1048576 IsPersistent=1
Initialized partitions successfully
metadata for partition mb1-bootloader created under filename meta_A_mb1-bootloader.txt
:[E]: QbFindAndCreateImages              : 1502: Error (Unknown) (0xff00)
:[E]: Failed to exectute nvimagegen: ./nvimagegen --parentcfg /drive/drive-foundation/tools/flashtools/bootburn_t23x_py/__temp_t234/Tegra-A-f50e9050d53/flash-images/tmp_global_storage_sub2.cfg --cfg /drive/drive-foundation/tools/flashtools/bootburn_t23x_py/__temp_t234/Tegra-A-f50e9050d53/flash-images/tmp_global_storage_sub2_sub2.cfg       --prefix A_1   --chip 0x23 --chipver A01       --bct_der_consts /drive/drive-foundation/tools/flashtools/bootburn_t23x_py/__temp_t234/Tegra-A-f50e9050d53/der_const_val.bin   --pvitversion  6.0.8.1-34176994 --guestcfg 1 --ptonly
:[E]: QbCreatePartition                  : 2021: Error (Unknown) (0xff00)
:[E]: failed to find and create images
Failed to create partitions
:[E]: nvimagegen                         : 1093: Error (Unknown) (0xff00)
:[E]: Creating Partition images failed
finish nvimagegen
Error Code ff00
:[D]: executing ./nvimagegen --parentcfg /drive/drive-foundation/tools/flashtools/bootburn_t23x_py/__temp_t234/Tegra-A-f50e9050d53/flash-images/tmp_global_storage.cfg --cfg /drive/drive-foundation/tools/flashtools/bootburn_t23x_py/__temp_t234/Tegra-A-f50e9050d53/flash-images/tmp_global_storage_sub2.cfg --prefix A --chip 0x23 --chipver A01 --ptonly         --bct_der_consts /drive/drive-foundation/tools/flashtools/bootburn_t23x_py/__temp_t234/Tegra-A-f50e9050d53/der_const_val.bin   --pvitversion  6.0.8.1-34176994
:[E]: nvimagegen                         : 1062: Error (Unknown) (0xff00)
:[E]: Failed to exectute nvimagegen
finish nvimagegen
Error Code ff00

[bootburnTegra-A]: [executeShellCommand(172)] : Return code: 255
command line used was:
['/drive/drive-foundation/tools/flashtools/bootburn/./bootburn.py', '-b', 'p3710-10-a03', '-B', 'qspi', '-x', '/dev/ttyACM1', '-D']


s_ERROR_TOOL_NVIMAGEGEN



Exception 46 raised in bootburn_active 
Traceback (most recent call last):
  File "/drive/drive-foundation/tools/flashtools/bootburn/../bootburn_t23x_py/bootburn.py", line 156, in bootburn_active
    bootburnOrin.Boot_Create_Flash_Coldboot()
  File "/drive/drive-foundation/tools/flashtools/bootburn/../bootburn_t23x_py/bootburn_orin.py", line 755, in Boot_Create_Flash_Coldboot
    self.CreateVDKImages(self.targetConfig.f_FlashCfg, self.targetConfig.p_OutDirPath, "flash-images")
  File "/drive/drive-foundation/tools/flashtools/bootburn/../bootburn_t23x_py/bootburn_orin.py", line 333, in CreateVDKImages
    self.GenerateImage(self.storageCfgParser.cfgFileList, l_Operation, operationPath)
  File "/drive/drive-foundation/tools/flashtools/bootburn/../bootburn_t23x_py/bootburn_lib.py", line 2505, in GenerateImage
    AbnormalTermination("s_ERROR_TOOL_NVIMAGEGEN", nverror.NvError_NvImagegen)
  File "/drive/drive-foundation/tools/flashtools/bootburn/../bootburn_t23x_py/flashtools_nverror.py", line 251, in AbnormalTermination
    raise OSError(errorCode)
OSError: 46

The new partition is called gos0-gp1-data and it’s just a dummy copy of gos0-gp1 to check the platform’s behavior, but it fails.

  1. I’m missing how the whole platform maps the partitions created in the configuration files to the ones visible in the Ubuntu userspace.

The whole idea is to create a new partition that can be mounted in a new directory in the rootfs called /data.

I could not find the documentation on how to do something like that. Does somebody know how I can do something like that?

Dear @mac.pinnock,
Let me check internally on this issue and get back to you.

Got it, thanks!

May I know why you need this? Any issue to keep the data under some folder in same partition?

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