I’m not sure where to report bugs in scripts but this one took me a while to figure out.
Using Parallels on Mac, I wanted to setup the Xavier to run in PCIe endpoint mode. I made the appropriate changes and ran:
~/Desktop/Parallels Shared Folders/Home/Downloads/Linux_for_Tegra$ sudo ./flash.sh jetson-xavier mmcblk0p1
This reliably finished with:
sed: can't read /media/psf/Home/Downloads/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory Making system.img... formating ext4 filesystem on system.img failed.
When I moved the whole Linux_for_Tegra folder to ~/ all ran fine. I’m not sure whether it’s the fact that the path has spaces, or something else fishy with the path and how it’s mounted.