This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM335X: NOR flags resetting to default

Part Number: PROCESSOR-SDK-AM335X

Hi,

    We checking in Nor Flash { m25p16 } interfaced am335x board series, used to set & get from nor environment flag using this command nor_getenv, nor_setenv.

     setting values { nor_setenv } in nor flags, After reboot, We are getting { nor_getenv } nor environment flag correctly. 

    & After we are not getting set environment flag due to facing couple of power dips/failures . Nor flags are resetting to default.

    Please resolve my issue we are facing " Nor flags are resetting to default due to facing couple of power dips/failures"

 

Starting with the following flags:
nor_setenv 0 1 1
nor_setenv 0 2 4
nor_setenv 0 3 4
nor_setenv 0 4 2
nor_setenv 0 5 0

nor_setenv 1 1 1
nor_setenv 1 2 4
nor_setenv 1 3 4
nor_setenv 1 4 2
nor_setenv 1 5 0

nor_setenv 3 1 1
nor_setenv 3 2 4
nor_setenv 3 3 4
nor_setenv 3 4 2
nor_setenv 3 5 0

nor_setsig 1

And then rebooting the board, after a couple of power failures in the MLO/u-boot, the NOR settings are reset to default:
.root@txsky:~# nor_getenv 0 1
1
root@txsky:~# nor_getenv 0 2
2
root@txsky:~# nor_getenv 0 3
2
root@txsky:~# nor_getenv 0 4
2
root@txsky:~# nor_getenv 0 5
0
root@txsky:~# nor_getenv 0 6
0
root@txsky:~# nor_getenv 1 1
1
root@txsky:~# nor_getenv 1 2
2
root@txsky:~# nor_getenv 1 3
2
root@txsky:~# nor_getenv 1 4
2
root@txsky:~# nor_getenv 1 5
0
root@txsky:~# nor_getenv 1 6
0
root@txsky:~# nor_getenv 3 1
1
root@txsky:~# nor_getenv 3 2
2
root@txsky:~# nor_getenv 3 3
2
root@txsky:~# nor_getenv 3 4
2
root@txsky:~# nor_getenv 3 5
0
root@txsky:~# nor_getenv 3 6
0


Please guide us to resolve my issue.

Regards,
SanthanaKumarS