cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
confused_guy
Visitor
Visitor
229 Views
Registered: ‎08-29-2018

Non-volatile memory in Petalinux on ZC702

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! 

Tags (3)
0 Kudos
Reply
2 Replies
ksloatdesignlinx
Explorer
Explorer
173 Views
Registered: ‎02-24-2020

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).

Ken Sloat - Embedded Software Engineer
https://www.designlinxhs.com
0 Kudos
Reply
sabankocal
Voyager
Voyager
166 Views
Registered: ‎08-02-2019

Hi @confused_guy,

I can share a usefull link about adding a startup script in Petalinux image.

Saban

 

<--- If reply is helpful, please feel free to give Kudos, and close if it answers your question --->
0 Kudos
Reply