I am working on wandboard imx6 dual, I was able to write and read a value to a ram location 0x12000000 using md and mw commands. But once the board was reboot via software the value resets and gets back to the initial value. Why it happens so,is it the actual behavior? Also I would like to know where dram initialization takes place.
Thanks in advance.
ddr initialized in dcd header in uboot/board/freescale/mx6sabresd/mx6q_4x_mt41j128.cfg
or similar locations on other boards.
Also it may be useful to check schematic as on some boards reset is performed as
whole board reset when pmic shortly switch off/on (for MMPF0100 using PWRON).
If the software reboot, generates a hardware reset, via the POR pin, which is likely, then the DRAM controller will be reset and re-initialised and the behaviour you are describing would be expected.
DRAM initialisation is not fixed and up to the user, but the most common, and likely, initialisation is done through the DCD filed at boot time, see the boot chapter in the reference manual for more details -
For more specifics on the wandboard you could try their site and forums -