Initramfs image size too big

Please provide the following info (check/uncheck the boxes after clicking “+ Create Topic”):
Software Version
DRIVE OS Linux 5.2.0
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
[-] other DRIVE OS version
other

Target Operating System
[-] Linux
QNX
other

Hardware Platform
[-] NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)
other

SDK Manager Version
1.4.0.7363
other

Host Machine Version
[-] native Ubuntu 18.04
other

Can you please explain how to configure the size of initramfs. My initramfs size is 227 MB

user@rblb7hxu:~/Nvidia/drive-t186ref-foundation/tools/host/flashtools/bootburn$ ./bootburn.sh -b e3550b03-t194a -B qspi
Execute Xavier Script
FlashCommandLineFromUser : -b e3550b03-t194a -B qspi
Using Python scripts
Bootburn Starting with arguments [’./bootburn.py’, ‘-b’, ‘e3550b03-t194a’, ‘-B’, ‘qspi’, ‘–user’, ‘uidr5704’]
board is e3550b03-t194a

validating parameters

Check finished successfully
Done parsing command line

[bootburn]: [getListTargetsInRecovery(2727)] : Bus 001 Device 018: ID 0955:7019 NVidia Corp.
sh: /sys/module/usbcore/parameters/autosuspend: Permission denied
Bootburn Active
target validation is successfully completed
[bootburn]: [GetTargetECID(683)] : Target BR_CID: 0x88021911647d02831c00000017fe0280

[bootburn]: [GetTargetECID(684)] : Target ECID: 0x1647d02831c00000017fe0280

[bootburn]: [GenAdbSerialNum(386)] : ADB serial number is 2P3T0A1HO00000BVS0K0
[bootburn]: [CheckForDeviceType(751)] : Detected ES production device type
[bootburn]: [SendAndBootAppletSigned(1875)] : Sending MB1 & Applet
[bootburn]: [DisplayHostInfoAndPaths(217)] :

[bootburn]: [DisplayHostInfoAndPaths(218)] : ############## Host machine info ##############
[bootburn]: [DisplayHostInfoAndPaths(219)] : Host system Linux
[bootburn]: [DisplayHostInfoAndPaths(220)] : Host node rblb7hxu
[bootburn]: [DisplayHostInfoAndPaths(221)] : Host release 5.4.0-65-generic
[bootburn]: [DisplayHostInfoAndPaths(222)] : Host version #73~18.04.1-Ubuntu SMP Tue Jan 19 09:02:24 UTC 2021
[bootburn]: [DisplayHostInfoAndPaths(223)] : Host machine x86_64
[bootburn]: [DisplayHostInfoAndPaths(224)] : Host processor x86_64
[bootburn]: [DisplayHostInfoAndPaths(225)] : Target ChipId 0x19 ChipVersion 0x2
[bootburn]: [DisplayHostInfoAndPaths(226)] : ###############################################
[bootburn]: [DisplayHostInfoAndPaths(229)] :

[bootburn]: [PreserveTargetSkuInfo(1237)] : Preserving SkuInfo from Target
[bootburn]: [SendAndBootMB1Signed(1838)] : Sending MB1
[bootburn]: [GenerateImage(1927)] : Generating Flashing-RCM Images
[bootburn]: [BootRCMImage(2367)] : Sending Blob for RCM to target
[bootburn]: [GenerateImage(1945)] : Generating Flash Images, this may take a few minutes
command line used was:
[’./bootburn.py’, ‘-b’, ‘e3550b03-t194a’, ‘-B’, ‘qspi’, ‘–user’, ‘uidr5704’]

s_ERROR_TOOL_NVIMAGEGEN

:[E]: PrepareFlashingList : 2164: Error FileOperationFailed (0x12)
:[E]: Insufficient space for writing file A_1_5_ramdisk_zerosign.img to partition ramdisk
File size = 0x4bed3e0:[E]: nvimagegen : 1025: Error FileOperationFailed (0x12)
:[E]: Preparing FlashingList failed
:[E]: QbFindAndCreateImages : 1203: Error (Unknown) (0xff00)
:[E]: Failed to exectute nvimagegen
:[E]: QbCreatePartition : 1605: Error (Unknown) (0xff00)
:[E]: failed to find and create images
:[E]: nvimagegen : 866: Error (Unknown) (0xff00)
:[E]: Creating Partition images failed
:[E]: QbFindAndCreateImages : 1203: Error (Unknown) (0xff00)
:[E]: Failed to exectute nvimagegen
:[E]: QbCreatePartition : 1605: Error (Unknown) (0xff00)
:[E]: failed to find and create images
:[E]: nvimagegen : 866: Error (Unknown) (0xff00)
:[E]: Creating Partition images failed

Exception 53 raised in bootburn_active
Traceback (most recent call last):
File “./bootburn.py”, line 102, in bootburn_active
bootburnLib.CreateFlashImages(targetConfig.f_FlashCfg)
File “/home/uidr5704/Nvidia/drive-t186ref-foundation/tools/host/flashtools/bootburn_t19x_py/bootburn_lib.py”, line 2136, in CreateFlashImages
self.GenerateImage(configFiles, l_Operation, p_TempDumpPath)
File “/home/uidr5704/Nvidia/drive-t186ref-foundation/tools/host/flashtools/bootburn_t19x_py/bootburn_lib.py”, line 1979, in GenerateImage
AbnormalTermination(“s_ERROR_TOOL_NVIMAGEGEN”, nverror.NvError_NvImagegen)
File “/home/uidr5704/Nvidia/drive-t186ref-foundation/tools/host/flashtools/bootburn_t19x_py/flashtools_nverror.py”, line 247, in AbnormalTermination
raise OSError(errorCode)
OSError: 53
returning to directory /home/uidr5704/Nvidia/drive-t186ref-foundation/tools/host/flashtools/bootburn_t19x_py
Cleaning up …
Cleaning temp dir

Dear @david.godwin,
Is there any reason for not using sdkmanager for flashing target?

I am using the yocto build as mentioned in the User guide NVIDIA_DRIVE_OS_5.1_Linux_SDK_References and NVIDIA_DRIVE_OS_5.1_Linux_PDK_References
The default build went well and I was able to flash. I have issues when adding my yocto layers and yocto-tegra-initramfs-rootfs.img is more than 200MB. I had a look into all the .cfg files in the bootburn.sh and tried using -k option to specify the cfg file but its all failing. Can you please explain how to configure the size?

Dear @david.godwin ,
I checked with core team on supporting this request.
Seems like you want additional size.

File size = 0x4bed3e0:[E]: nvimagegen : 1025: Error FileOperationFailed (0x12)

Additional Size = 0x4bed3e0 – 0x400000 = 0x47ED3E0 =~75420640 =~ 75 MB
There is not 75 MB available as the total size of the qspi is 64MB.

We would suggest to place their binaries in Ubuntu and run them from there instead of placing them in initramfs