Solved this issue by following procedure.
-> added the "#define CONFIG_SYS_MMC_ENV_PART 0" in the "include/configs/imx8mm_evk.h" file in uboot.
which makes the environment will rw to userspace area.
and made one partition(/dev/mmcblk2p1) in emmc for this environment. and given the env partition starting address as env offset address(0x400000) in uboot.
etc/fw_env.config configured as below
/dev/mmcblk2p1 0x400000 0x1000
now i can able to read and write to the env using fw_printenv and fw_setenv.