[PATCH] fw_env: autodetect NAND erase size and env sectors