Help for broken VF2? "Error inserting "<>" variable, errno=1"

Curiouser and curiouser … The printenv output on my system has just two entries - one for an ipaddr and one for netmask. I cannot update any of the ones that it’s complaining about (I get the same error, but other network related values e.g. serverip and gatewayip CAN be set and they are persistent across restarts after using saveenv). I wonder what’s making it accept some values and not others … I feel there’s a solution to my board’s problems here somewhere.

StarFive # printenv
ipaddr=192.168.0.91
netmask=255.255.255.0
serverip=192.168.0.38

Environment size: 65/65532 bytes
StarFive # setenv ipaddr 192.168.0.99
StarFive # printenv
ipaddr=192.168.0.99
netmask=255.255.255.0
serverip=192.168.0.38

Environment size: 65/65532 bytes
StarFive # setenv gatewayip 192.168.0.1
StarFive # printenv
gatewayip=192.168.0.1
ipaddr=192.168.0.99
netmask=255.255.255.0
serverip=192.168.0.38

Environment size: 87/65532 bytes
StarFive # setenv bootmode flash
## Error: flags type check failure for "bootmode" <= "flash" (type: i)
## Error inserting "bootmode" variable, errno=1
StarFive #