Banana PI R4 and 25.12 interface name change

Hello,

Does anybody already upgrade openwrt from 24 to 25 ?

I’m asking because I see in release notes:

  • Bananapi BPI-R4: Interfaces ''eth1'' was renamed to ''sfp-lan'' or ''lan4'', and interface ''eth2'' was renamed to ''sfp-wan'' to match the labels. You have to upgrade without saving the configuration.

As far I understand I have to reset the configuration and reinstall from scratch.

But can I modify files in /etc/ to modify eth2 to SFP-wan without commiting in uci and then upgrade ?

1 Like

I did. I just renamed eth1 and eth2 in /etc/config/network to sfp-lan and sfp-wan correspondingly. Then add to /etc/config/system line option compat_version '1.1' into system section or you can do it like this `uci set system.@system[0].compat_version='1.1'

uci commit system`
dont reload configuration just upgrade. Everything works properly and i didn’t setup anything else

3 Likes

What does compat_version do ?

prevents silent upgrade to incompatible version.

Thank you i will try then

1 Like

Been sitting here today thinking about upgrading mine this weekend. Might have just saved me a bit of work.

How did you apgrade then? Owut, attended sysupgrade or via luci? Or is all of them save?

Additional information, hope can help

1 Like

i made own image using image builder locally and flashed it using Flash new firmware image

1 Like

I tried it and can confirm it works. So thanks for the explanation!

Only this command changes nothing in my “system” file, i had to manually add the option.