The “-S 14580MiB” (case sensitive) size is a known working size and I would have to wonder if there is some sort of simple typographic error causing rejection. 14580MiB is compliant with a 512-byte block size. However, the fact that this shows as an ext4 issue while creating the image on the host makes this much more interesting. The location in the flash.sh script where this is calculated is here:
# flash.sh R24.2:
485 local bcnt=$(( $3 / 512 ));
486 local bcntdiv=$(( $3 % 512 ));
487 if [ $bcnt -eq 0 -o $bcntdiv -ne 0 ]; then
488 echo "Error: $4 file system size has to be 512 bytes allign.";
489 exit 1;
490 fi
That size is a very simple calculation and does not even require query of the JTX1. I am very curious, on your host on the command line, what is the output of:
echo $LANG
I’m thinking the script is somewhat bulletproof for this calculation, and that if it isn’t a typographic error, then the command line is being parsed wrong. Command line parsing is very straightforward, but character sets could get in the way. If that is the case then there might be quite a few locations where something strange could be going on for just that reason.
This line is harmless and expected:
Warning: missing eksfile...
This part is hard evidence that something in the flash script itself is failing (it isn’t the JTX1 failing, it’s the flash software):
File "/home/joel/nvidia/Linux_for_Tegra/elf-get-entry.py", line 73
print '0x%x' % ep
^
SyntaxError: Missing parentheses in call to 'print'
Could not determine entry point of bootloader binary
When I flash with this same L4T version I do not have this error. I use Fedora, so the CentOS should probably work too. In addition to the “echo $LANG” question, is there anything special at all about the host where the elf-get-entry.py error showed up?
If the host does not have something odd going on, such as because of LANG or use of a VM, then I would have to suspect that the driver package and sample rootfs downloads themselves are corrupt. Many people have used this particular version of flash.sh (including myself) and never had that particular error…which occurs prior to ever touching the Jetson.
Probably the next step is to completely delete everything in the driver and sample rootfs downloads and re-install them on your host just to be certain there is nothing getting in the way due to corruption. Be careful to use only a web browser for the download, don’t use utilities like wget.