07-20-2020 04:13 AM
Does anyone know if there's any non-volatile memory in the default Petalinux image that comes on the SD card with the ZC702 Evaluation Board? I have created a simple bash script which I can successfully run in Petalinux, but every time I restart the board the script is gone. I assumed the /usr directory would be non-volatile, but that's not the case. Does anyone know if there's any particular directory that's non-volatile so I can store my scripts on the board? Thanks!
07-22-2020 05:09 AM
Usually the default images for PetaLinux are ramdisk images. The file system is an image loaded into RAM and mounted at boot time. You can make changes but obviously those will be wiped out upon system reset. You can modify the image build configuration to generate a different file system type if desired (i.e. ext4).
07-22-2020 05:26 AM
Hi @confused_guy,
I can share a usefull link about adding a startup script in Petalinux image.
Saban