How to modify the size of the kernel partition

I changed the kernel, the image is enlarged after compilation, and I can’t find the flash kernel.

the error infomation is:

[ 12.2361 ] Bootloader version 01.00.0000
[ 12.2477 ] Writing partition kernel with 1_boot_sigheader.img.encrypt
[ 12.2479 ] 0000000074740204: E> NV3P_SERVER: Accessing offset 78499840 after boundary partition size 67108864
[ 12.2493 ]
[ 12.2493 ]
Error: Return value 4
Command tegradevflash_v2 --write kernel 1_boot_sigheader.img.encrypt
Failed to flash/read t186ref.

so,I need the kernel partition size,please help me,thank you!!!


we found there is an internal bug for bootloader, it’ll crash after modify the kernel partition size.
please also refer to Topic 1054833 for details.

hi jerrychang:

I can change the size of the kernel partition, but if it is too big, it will not boot. Is it because of the size limitation of the flash partition?
size = 87108864 can boot
size = 147108864 can not boot

hi jerrychang:
I also want to know what the size of xavier is flash.


the maximum boot image size is 64MB.
please note that there’s known issue for modify the kernel partition size.
we’ll include the fix for the next public release (i.e. l4t-r32.2).