Igor,
For using NAND to store the environment variables you need to change include/configs/mx28evk.h and remove
#define CONFIG_ENV_IS_IN_MMC line
and use:
/* Environment is in NAND */
#define CONFIG_ENV_IS_IN_NAND
#define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
#define CONFIG_ENV_SECT_SIZE (128 * 1024)
#define CONFIG_ENV_RANGE (512 * 1024)
#define CONFIG_ENV_OFFSET 0x300000
#define CONFIG_ENV_OFFSET_REDUND \
(CONFIG_ENV_OFFSET + CONFIG_ENV_RANGE)
The above lines were taken from include/configs/m28evk.h (m28evk is a board developed by Denx).
By the way, if you think that any of my answers were correct or useful in this thread, please mark it as so.
Regards,
Fabio Estevam