CPUBL-CFG fails to be flashed

Hello,

I am unable to flash CPUBL-CFG partition on the Xavier NX. During the flash, I get below error:

*** Updating [CPUBL-CFG] with  ***
*** Error: the file for writing CPUBL-CFG or signing is not specified. ****

My goal is to make netboot as the first preference. I am trying to follow the procedure we had followed for AGX Xavier. However, the partitions seem to be different on NX (no cpu-bootloader or CPUBL-CFG partitions).

$ sudo gdisk -l /dev/mmcblk0
GPT fdisk (gdisk) version 1.0.3

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/mmcblk0: 62521344 sectors, 29.8 GiB
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 64210415-D6C9-4F78-A55E-BAD079B8C9CE
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 62521310
Partitions will be aligned on 2048-sector boundaries
Total free space is 12441 sectors (6.1 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1          610304        62519295   29.5 GiB    8300  APP
   2            2048          133119   64.0 MiB    8300  kernel
   3          133120          264191   64.0 MiB    8300  kernel_b
   4          264192          265087   448.0 KiB   8300  kernel-dtb
   5          266240          267135   448.0 KiB   8300  kernel-dtb_b
   6          268288          397311   63.0 MiB    8300  recovery
   7          397312          398335   512.0 KiB   8300  recovery-dtb
   8          399360          399871   256.0 KiB   8300  kernel-bootctrl
   9          401408          401919   256.0 KiB   8300  kernel-bootctrl_b
  10          403456          608255   100.0 MiB   8300  RECROOTFS
  11          608256          608291   18.0 KiB    8300  UDA

I am trying to follow the steps mentioned at: How to boot from nfs on Xavier NX? - #3 by carolyuu but I think it’s only for one boot, the next time NX is booted, it falls back to booting from the SD card.

In the meantime, I am working on modifying cboot source code to make netboot as first priority with “dhcp-enabled” as default.

Any update on this?

hello AnishAney,

that’re default flashed partitions you may refer to configuration file for reference,
it’s reference to device instance="0" type="spi" to flash CPUBL-CFG partition,
for example,
$OUT/bootloader/t186ref/cfg/flash_l4t_t194_spi_sd_p3668.xml

since you’re working with SD card version, you’ll only see partitions under device type="sdcard".
please have a try to perform complete flash process to update that partition.
thanks

Thank you, JerryChang.

I will give it a try, though for now I have made sufficient changes to the CBoot itself to make it reliably boot the system over network.