I need to flash a Xavier NX production module to boot from the nvme, all the components of the image, including the boot image must be located on the nvme.
But the command is not flashing at all. It’s reporting a successful flash, but it is not done.
What do you mean with it is not done?
The flashing log looks fine. Also, can you just use the default partition layout file, or is there any reason you have to customize it?
I meant that nothing is written on the nvme, I have tested with a wiped nvme (Zero written with dd), a brand new nvme (without being used before), and a previous written nvme (Using the SDK Manager). The results are always the same, nothing is written on the nvme.
The reason to use a custom partition layout, is because the size must reflect the real size of the nvme (I’m using 125 GB that is a little less than the real size of the 128GB), and edited the device type, beacuse on the initrd README file, is stated that on the partition layout, the device “type” needs to be “nvme”, anyway I have tested with the default partition layout with the same results.
Usually the disk storage promoted by the disk manufacturers is calculated with 1000 instead of 1024, so it’s expected you don’t really get 128GB (1024x1024x1024x128 byte) with a 128GB disk.
The README file itself kind of out-dated. You should use external as shown in the default one.
Yes, the SDK Manager work fine, but as the carrier board that we are using is based on the development board is customized, we need to copy 2 files: .cfg and .dbt to the bootloader/t186ref/BCT/ and kernel/dtb/ directories, before flashing.
In addition we need to do all the process with an script, because we need to guarantee the very same results every time
Well, this could work, but we do have 2 different platforms Xavier NX, and Orin NX, for the Orin, the initrd works fine, but not for the Xavier.
And we need to automatize all the flashing process, and the first thing that we do in the scripts is to identify the platform Orin or Xavier copying customization files, create platform structure and so on.
By the way, the final goal is to create a master image on a nvme, that can be cloned externally and then on the assembly line be assembled into the custom carrier board.
You said that SDK Manager was working fine, then how about manual initrd flash with the default partition layout file?
If it’s about the storage size issue, then I think this is the reason: