--- embedtools/src/ub_env.c 2014/01/28 08:57:43 1.1.2.2 +++ embedtools/src/ub_env.c 2014/01/28 22:03:01 1.1.2.3 @@ -2,16 +2,41 @@ #include "ub_env.h" +static int +ub_flash_io(env_t * __restrict e, int mode) +{ + int f, ret = 0; + + FTRACE(4); + + f = open(DRV_UB_ENV_MAP, mode); + if (f == -1) { + printf("Error:: Can't access u-boot-env device %s\n", DRV_UB_ENV_MAP); + return -1; + } + + if (mode & O_RDWR) { + } else { + } + + close(f); + return ret; +} + const char* ub_getenv(const char *csName) { const char *str = NULL; + FTRACE(3); + return str; } int ub_setenv(const char *csName, const char *csValue) { + FTRACE(3); + return 0; }