aml_commonlib: CF1 Fix updateenv block issue [1/1]

PD#OTT-59596

Problem:
When bootenv_update is called, fsync occasionally takes too long time,
resulting in the failure of "envimg_buffer_lock".

Solution:
Remove the fsync operation and use the "O_SYNC" parameter instead,
Change the lock operation to infinite wait

Verify:
SC2-AH212
RDK trunk PB#9005
YOCTO 4.0 PB#1630

Change-Id: I4115777283532703260b1f7c53dc6f560af6aba7
Signed-off-by: zhenyu.gao <zhenyu.gao@amlogic.com>
1 file changed