UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor oerbakan
Visitor
129 Views
Registered: ‎01-16-2019

Petalinux non-volatile storage

Jump to solution

I'm booting my ZC702 board from SD Card. To do so, I've downloaded 2018.3-zc702-release.tar.xz pre-built image from https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/57639129/Zynq+2018.3+Release .

Everything is fine while booting but I'm loosing any changes I made on Linux after a re-boot. So, I think it writes into RAM but I want to keep my changes. 

What could be possibly wrong here and how can I solve this issue?

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
75 Views
Registered: ‎02-07-2018

Re: Petalinux non-volatile storage

Jump to solution

Hi @oerbakan,

You are right, by default the initramfs is  added with kernel. with this rootfs whatever the changes you do it will be lost once the board is reset.

Can you please use the rootfs from your SDcard 2nd partition, so that whatever the changes you do , it will be saved even for next boot. You will not lost once the power off.

Please add below config changes :

1. petalinux-config -c kernel
General setup --->
[ ] Initial RAM filesystem and RAM disk (initramfs/initrd) support  ---> By default it is enabled/selected , you can disable it.

save & exit
petalinux-build

 

2. Extract the rootfs to sdcard 2nd partition

sudo tar –xvf rootfs.tar.bz2  –C /media/sdcard/

 sync  

3.Power on the board &  Once you get u-boot console run below command:

4. change the bootargs to pick the rootfs from sdcard 2nd partition.

setenv bootargs 'console=ttyPS0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait

5.boot

 

Thanks & regards

Aravind

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

 

 

0 Kudos
1 Reply
Xilinx Employee
Xilinx Employee
76 Views
Registered: ‎02-07-2018

Re: Petalinux non-volatile storage

Jump to solution

Hi @oerbakan,

You are right, by default the initramfs is  added with kernel. with this rootfs whatever the changes you do it will be lost once the board is reset.

Can you please use the rootfs from your SDcard 2nd partition, so that whatever the changes you do , it will be saved even for next boot. You will not lost once the power off.

Please add below config changes :

1. petalinux-config -c kernel
General setup --->
[ ] Initial RAM filesystem and RAM disk (initramfs/initrd) support  ---> By default it is enabled/selected , you can disable it.

save & exit
petalinux-build

 

2. Extract the rootfs to sdcard 2nd partition

sudo tar –xvf rootfs.tar.bz2  –C /media/sdcard/

 sync  

3.Power on the board &  Once you get u-boot console run below command:

4. change the bootargs to pick the rootfs from sdcard 2nd partition.

setenv bootargs 'console=ttyPS0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait

5.boot

 

Thanks & regards

Aravind

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

 

 

0 Kudos