AnsweredAssumed Answered

iMX6 persistent data storage

Question asked by mc maddie on Mar 14, 2017
Latest reply on Mar 16, 2017 by mc maddie



The subject might be bit misleading. What I'm looking for is some way to store data (32bit is enough) that will survive reboot from Linux to U-boot on iMX6Q.


On iMX5 based product I reserved part of the iRAM for that and it worked fine. I tried same on iMX6Q and it seems that data won't survive reboot to U-boot but is cleared. 


I'm using Yocto 2.1 with Linux 4.1.15 with NXP patches. U-boot is 2016.03.


I found out that for whatever reason iRAM is called now OCRAM in code and I changed the ocram definition size if devicetree so I have last 4kB free. I then used my driver to reserve that part and I can read/write the iRAM just fine from Linux side. I'm using the same base code I've used in iMX5 based product so that is known to work.


Does anyone else know what could cause the iRAM to be cleared on reboot and/or what other (better?) ways there are to transfer data (32-bits is enough) from Linux to U-boot? It helps if it's something that clears on power off ie. RAM based and also to avoid any flash etc.. wearing out overtime if being written at every reboot.