[PATCH V3 1/2] fw_env: make flash_io() take buffer as an argument