[PATCH v2] mt7621: move uboot-envtools to DEFAULT_PACKAGES

Peter Naulls peter at chocky.org
Tue Feb 28 09:33:54 PST 2023


On 2/28/23 09:07, Felix Baumann wrote:

> one issue I see here is that there are MT7621 devices like the Asus RT-AX53U that don't save their environment to their u-boot-env partition by default.
> You still need to execute saveenv while connected via serial.
> Note: the device doesn't have a u-boot-env partition in stock rom. The environment is saved to the second half of the original u-boot partition.
> We added uboot-envtools support by splitting the u-boot partition in half.

What problem are you trying to solve here?  Are you relying upon the u-boot 
values for MAC address or something?

On one of my boards, so I do fix up the u-boot values, just so it's correct, but 
the actual MAC values are stored elsewhere in both binary and ASCII values.

If you just care about reading the values, it's not required to use u-boot-env
tools - you can parse yourself or use the OpenWrt functions, which are basically
a "strings" operation.

But I think the bottom line here is mt7621 is a very diverse platform, and 
there's no one-size-fits-all with package selection or anything.





More information about the openwrt-devel mailing list