read-echo: functions to read data from repo

Change-Id: I61a0b8bf254cd84c49def0f7ddda5ab026c689f4