It seems that the problem is that the env is not saved inside the flash, it's loaded in the U-Boot at RAM and then once the kernel is booted this is lost.
Inside U-Boot if you
saveenv
and then boot, it will fix the issue.