I am using the factory supplied image, i.e., https://github.com/BPI-SINOVOIP/BPI-R4PRO-4E-OPENWRT-V24.10.0-Master-Devel. I want to be able to adjust the U-Boot args from within Linux itself, however attempting to do so leads to this error when I boot from eMMC:
$ fw_printenv
Cannot parse config file '/etc/fw_env.config': No such file or directory
Failed to find NVMEM device
Claude supplied me with a fix that works:
cat > /etc/fw_env.config <<'EOF'
/dev/mmcblk0 0x400000 0x40000
/dev/mmcblk0 0x440000 0x40000
EOF
Then fw_printenv works.
It also told me to build and include the kmod-ubootenv-nvram module but that made no difference - it still prints out the same error even after installing kmod-ubootenv-nvram.
Questions
- Does
fw_printenvwork for anyone on the stockBanana Pi BPI-R4 Pro 4Eimage? - Is
/etc/fw_env.configsimply missing from the stock image?
If someone at Banana Pi or else where could please verify, that would be great.
Thanks,
- Bana