[PATCH v3 0/3] uboot-envtools: multiple config partitions
Bjørn Mork
bjorn at mork.no
Tue Apr 6 10:43:02 BST 2021
Most devices supported by the realtek target use a modified U-Boot
based on Realtek's SDK. This version splits the U-Boot environment in
two separate config partitions. Some of the devices use the second
partition for variables of interest to OpenWrt, like for example dual
boot control and mac address ranges.
This series adds support for using more than one uboot-envtools
configuration file, with helper scripts for simple access to the
alternate configuration.
The helper scripts are named after the U-Boot shell commands
implemented by the vendor U-Boot:
printsys => fw_printsys
setsys => fw_setsys
similar to the U-Boot commands
printenv => fw_printenv
setenv => fw_setenv
Changes:
v3:
- using a dedicated variable name for the second partition
- new patch removing "read-only" from the second partition
of supported devices
v2:
- incremented PKG_RELEASE
- using wrapper scripts instead of patching the tool
Bjørn Mork (3):
uboot-envtools: add support for multiple config partitions
uboot-envtools: add wrapper scripts for alternate config
realtek: allow writing to "u-boot-env2"
package/boot/uboot-envtools/Makefile | 3 ++
package/boot/uboot-envtools/files/fw_printsys | 2 +
package/boot/uboot-envtools/files/fw_setsys | 2 +
package/boot/uboot-envtools/files/realtek | 8 +++-
.../uboot-envtools/files/uboot-envtools.sh | 38 ++++++++++++-------
.../realtek/dts/rtl8380_netgear_gigabit.dtsi | 1 -
.../realtek/dts/rtl8380_zyxel_gs1900.dtsi | 1 -
.../dts/rtl8382_allnet_all-sg8208m.dts | 1 -
.../dts/rtl8382_d-link_dgs-1210-10p.dts | 1 -
.../realtek/dts/rtl8382_d-link_dgs-1210.dtsi | 1 -
10 files changed, 38 insertions(+), 20 deletions(-)
create mode 100644 package/boot/uboot-envtools/files/fw_printsys
create mode 100644 package/boot/uboot-envtools/files/fw_setsys
--
2.20.1
More information about the openwrt-devel
mailing list