Rootfs for L4T R32.5.1 is missing files

Hello,

i built a custom kernel and wanted to flash the image with the flash.sh script as follows:
./flash.sh jetson-xavier-nx-devkit mmcblk0p1

The flash exits with the following error:
Making recovery ramdisk for recovery image…
Re-generating recovery ramdisk for recovery image…
/data/Linux_for_Tegra/bootloader/ramdisk_tmp /data/Linux_for_Tegra/bootloader /data/Linux_for_Tegra
30402 blocks
_BASE_KERNEL_VERSION=4.9.201-tegra
cp: cannot stat ‘/data/Linux_for_Tegra/rootfs/etc/wpa_supplicant.conf’: No such file or directory
failed command: cp -fv /data/Linux_for_Tegra/rootfs/etc/wpa_supplicant.conf /data/Linux_for_Tegra/bootloader/ramdisk_tmp//etc/wpa_supplicant.conf

I got the sources with the source_sync.sh -k tegra-l4t-r32.5.1 command, and used corresponding l4t and sample rootfs releases.

The complete log is attached here:
error.log (11.2 KB)

Could you compare the default jetpack tarball and what you’ve downloaded and see if really missing below file in rootfs?

Linux_for_Tegra/rootfs/etc/wpa_supplicant.conf

Yes it was missing.

It actually seems that i could fix it by issue apply_binaries.sh before flashing the image.

FYI, you only need to run that once.