fw_env: auto-detect NAND characteristics