Jetson Ag xOrin Industrial with Jetson Linux R35.6.0, how to add custom partition in layout file?

Jetson Ag xOrin Industrial with Jetson Linux R35.6.0, how to add custom partition in layout file?
Layout file in Linux_for_tegra/bootloader/t186ref/cfg/flash_t234_qspi_sdmmc_industrial.xml

Hi,
If the device cannot be flashed/booted, please refer to the page to get uart log from the device:
Jetson/General debug - eLinux.org
And get logs of host PC and Jetson device for reference. If you are using custom board, you can compare uart log of developer kit and custom board to get more information.
Also please check FAQs:
Jetson AGX Orin FAQ
If possible, we would suggest follow quick start in developer guide to re-flash the system:
Quick Start — NVIDIA Jetson Linux Developer Guide 1 documentation
And see if the issue still persists on a clean-flashed system.
Thanks!

Hi 491447151,

Do you want to create custom partition in internal eMMC?
You can refer to how APP configured in partition layout file and create your own.

Or you can refer to the following thread from another user on Orin NX with NVMe SSD.
How to add a larger custom partition? - #7 by KevinFFF

Linux_for_tegra/bootloader/t186ref/cfg/flash_t234_qspi_sdmmc_industrial.xml

<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
APPSIZE
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 0x808 </allocation_attribute>
<align_boundary> 16384 </align_boundary>
<percent_reserved> 0 </percent_reserved>
<unique_guid> APPUUID </unique_guid>
APPFILE
Required. Contains the rootfs. This partition must be assigned
the “1” for id as it is physically put to the end of the device, so that it
can be accessed as the fixed known special device /dev/mmcblk0p1.

How to add APP_b/APP_c/App_d partition?

Have you referred to the thread I shared to check if it can help in your case?

You can share the partition layout file you are using and the flash log for further check.

[ 13.0002 ] MB2 version 01.00.0000
[ 13.2628 ] Flashing the device
[ 13.2632 ] tegraparser_v2 --storageinfo storage_info.bin --generategpt --pt flash.xml.bin
[ 13.2637 ] gpt_secondary_3_0.bin:
[ 13.2641 ] partition_id partition_name StartingLba EndingLba
[ 13.2642 ] 1 BCT 0 2047
[ 13.2644 ] 2 A_mb1 2048 3071
[ 13.2645 ] 3 A_psc_bl1 3072 3583
[ 13.2646 ] 4 A_MB1_BCT 3584 3839
[ 13.2647 ] 5 A_MEM_BCT 3840 4351
[ 13.2648 ] 6 A_tsec-fw 4352 6399
[ 13.2650 ] 7 A_nvdec 6400 8447
[ 13.2651 ] 8 A_mb2 8448 9471
[ 13.2652 ] 9 A_xusb-fw 9472 9983
[ 13.2653 ] 10 A_bpmp-fw 9984 13055
[ 13.2654 ] 11 A_bpmp-fw-dtb 13056 19199
[ 13.2656 ] 12 A_psc-fw 19200 20735
[ 13.2659 ] 13 A_mts-mce 20736 21759
[ 13.2660 ] 14 A_sc7 21760 22143
[ 13.2661 ] 15 A_pscrf 22144 22527
[ 13.2663 ] 16 A_mb2rf 22528 22783
[ 13.2663 ] 17 A_cpu-bootloader 22784 29951
[ 13.2663 ] 18 A_secure-os 29952 38143
[ 13.2663 ] 19 A_eks 38144 38655
[ 13.2663 ] 20 A_dce-fw 38656 42751
[ 13.2663 ] 21 A_fsi-fw 42752 55039
[ 13.2663 ] 22 A_spe-fw 55040 56191
[ 13.2663 ] 23 A_rce-fw 56192 58239
[ 13.2663 ] 24 A_adsp-fw 58240 62335
[ 13.2663 ] 25 A_reserved_on_boot 62336 63999
[ 13.2663 ] 26 B_mb1 64000 65023
[ 13.2663 ] 27 B_psc_bl1 65024 65535
[ 13.2663 ] 28 B_MB1_BCT 65536 65791
[ 13.2663 ] 29 B_MEM_BCT 65792 66303
[ 13.2663 ] 30 B_tsec-fw 66304 68351
[ 13.2663 ] 31 B_nvdec 68352 70399
[ 13.2663 ] 32 B_mb2 70400 71423
[ 13.2663 ] 33 B_xusb-fw 71424 71935
[ 13.2663 ] 34 B_bpmp-fw 71936 75007
[ 13.2663 ] 35 B_bpmp-fw-dtb 75008 81151
[ 13.2663 ] 36 B_psc-fw 81152 82687
[ 13.2663 ] 37 B_mts-mce 82688 83711
[ 13.2663 ] 38 B_sc7 83712 84095
[ 13.2663 ] 39 B_pscrf 84096 84479
[ 13.2663 ] 40 B_mb2rf 84480 84735
[ 13.2664 ] 41 B_cpu-bootloader 84736 91903
[ 13.2664 ] 42 B_secure-os 91904 100095
[ 13.2664 ] 43 B_eks 100096 100607
[ 13.2664 ] 44 B_dce-fw 100608 104703
[ 13.2664 ] 45 B_fsi-fw 104704 116991
[ 13.2664 ] 46 B_spe-fw 116992 118143
[ 13.2664 ] 47 B_rce-fw 118144 120191
[ 13.2664 ] 48 B_adsp-fw 120192 124287
[ 13.2664 ] 49 B_reserved_on_boot 124288 125951
[ 13.2664 ] 50 bad-page 125952 126975
[ 13.2664 ] 51 uefi_variables 126976 127487
[ 13.2664 ] 52 uefi_ftw 127488 128511
[ 13.2664 ] 53 worm 129920 130303
[ 13.2664 ] 54 BCT-boot-chain_backup 130304 130431
[ 13.2664 ] 55 reserved_partition 130432 130559
[ 13.2664 ] 56 secondary_gpt_backup 130560 130687
[ 13.2664 ] 57 B_VER 130688 130815
[ 13.2664 ] 58 A_VER 130816 130943
[ 13.2664 ] End sector for APP_b, expected at: 124321758, actual: 0
[ 13.2664 ]

    <partition name="APP" id="1" type="data">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> APPSIZE </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 0x808 </allocation_attribute>
        <align_boundary> 16384 </align_boundary>
        <percent_reserved> 0 </percent_reserved>
        <unique_guid> APPUUID </unique_guid>
        <filename> APPFILE </filename>
        <description> **Required.** Contains the rootfs. This partition must be assigned
          the "1" for id as it is physically put to the end of the device, so that it
          can be accessed as the fixed known special device `/dev/mmcblk0p1`. </description>
    </partition>
    <partition name="APP_b" id="17" type="data">
        <allocation_policy> sequential </allocation_policy>
        <filesystem_type> basic </filesystem_type>
        <size> APPSIZE </size>
        <file_system_attribute> 0 </file_system_attribute>
        <allocation_attribute> 0x808 </allocation_attribute>
        <align_boundary> 16384 </align_boundary>
        <percent_reserved> 0 </percent_reserved>
        <unique_guid> APPUUID </unique_guid>
        <filename> APPFILE </filename>
        <description> Backup. </description>
    </partition>


this ?

Please share the log and partition layout as file here instead of the screenshot or pasting the content directly.

You should configure 0x8 for allocation_attribute in APP partition.
Only the last partition can be configured as 0x808.

What’s the APPSIZE in your case? (i.e. what’s the size you want to use for each APP partition?)

APPSIZE=14GB


this?


this is why?

Please share the full log as file here instead of screenshot…

Are you able to flash the board with custom partition layout file successfully?