fip: use stat instead of ls to get file size for ramdump [1/1]

PD#SH-21542

Problem:
The command ls depends on the several environment
things, for example on the unix group name.
If the unix group has space inside END_LENS will be
calculated inproperly.

Solution:
So replace it with stat command.

Verify:
sc2_ah212, t3_t982

Change-Id: I74846a612c19dc72c64dc0f19a84125fe91ee480
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
1 file changed