My all files and folders get disappeared after a system reboot. I am running petalinux on zynq chip by xilinx.
I got some hint why is this happening. Actually my entire system is booting from RAM. perhaps default behavior. Looking at xilinx forum I found that I can modify the rootfs as described here Build and Modify a Rootfs.
From the link I followed the following steps:
Initrd To modify an initial ramdisk:
Extract the initrd image from the gzip archive.
Mount the initrd image.
chmod u+rwx ramdisk.image mkdir tmp_mnt/ sudo mount -o loop ramdisk.image tmp_mnt/ cd tmp_mnt/
Make changes in the mounted filesystem.
I am stuck here. What changes shall I make here to achieve my goal?
After mounting I get the following folders:
$ ls bin etc lib linuxrc mnt proc root sys update_qspi.sh var dev home licenses lost+found opt README sbin tmp usr