[PATCH v2 0/2] uboot-envtools: support for multiple config partitions
Stijn Segers
foss at volatilesystems.org
Wed Dec 16 07:37:45 EST 2020
Hi Bjørn!
Op zondag 13 december 2020 om 20u07 schreef Bjørn Mork <bjorn at mork.no>:
> Changes since v1:
> - incremented PKG_RELEASE
> - using wrapper scripts instead of patching the tool
>
> Bjørn Mork (2):
> uboot-envtools: add support for multiple config partitions
> uboot-envtools: add wrapper scripts for alternate config
>
> package/boot/uboot-envtools/Makefile | 5 ++-
> 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
> ++++++++++++-------
> 5 files changed, 39 insertions(+), 16 deletions(-)
> create mode 100644 package/boot/uboot-envtools/files/fw_printsys
> create mode 100644 package/boot/uboot-envtools/files/fw_setsys
>
> --
> 2.20.1
>
>
I'm giving this a spin (since I have a Realtek switch now :^) ).
Fw_printenv prints info as expected but fw_printsys comes up empty. Not
sure if this is expected behaviour. There's no /etc/fw_sys.config after
installing the new uboot-envtools package (revision 10).
# fw_printenv
baudrate=115200
boardmodel=ZyXEL_GS1900_10HP
bootargs=console=ttyS0,115200 mem=64M quiet
bootcmd=cst fcTest; boota
bootdelay=0
ethact=rtl8380#0
ethaddr=BC:CF:4F:74:3C:15
ipaddr=192.168.1.1
netmask=255.255.255.0
serverip=192.168.1.111
stderr=serial
stdin=serial
stdout=serial
# fw_printsys
# ls /etc/fw*
/etc/fw_env.config
Calling 'fw_setsys bootpartition 0' e.g. exits silently. No
/etc/fw_sys.config gets created.
When I create /etc/fw_sys.config manually then try to set a value
again, it errors:
# fw_setsys bootpartition 0
Cannot parse config file '/etc/fw_sys.config': Invalid argument
Error: environment not initialized
root at OpenWrt:~# ls /etc/fw_sys.config
/etc/fw_sys.config
#
Cheers
Stijn
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list