uboot-envtools: add env settings for ubnt,unifi-6-lr-v2
authorJoel Low <joel@joelsplace.sg>
Tue, 7 Nov 2023 14:05:14 +0000 (22:05 +0800)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 6 May 2024 11:49:19 +0000 (13:49 +0200)
commit587f3531fa35a09023684e79ad2df92de58bc808
treeddd13d5951ecbba12b1fb01f198894ec0329fcc9
parent1d4b88265b1befd36dc9e02881d57b46dfeb74b2
uboot-envtools: add env settings for ubnt,unifi-6-lr-v2

This has been tested on two of my Unifi 6 LR v2s:

```bash
$ fw_printenv # before
Cannot parse config file '/etc/fw_env.config': No such file or directory
$ cat /etc/fw_env.config
/dev/mtd3 0x0000 0x1000 0x1000 1
$ fw_printenv
arch=arm
baudrate=115200
board=mt7622_evb
board_name=mt7622_evb
bootcmd=bootubnt
bootdelay=3
bootfile=uImage
cpu=armv7
device_model=U6-LR
ethact=mtk_eth
ethaddr=<redacted>
ethcard=AQR112C
ipaddr=<redacted>
is_default=true
loadaddr=0x5007FF28
macaddr=<redacted>
serverip=<redacted>
soc=mt7622
stderr=serial
stdin=serial
stdout=serial
vendor=mediatek
is_ble_stp=true
```

I had to reverse-engineer the working settings above to the UCI script.

Signed-off-by: Joel Low <joel@joelsplace.sg>
Link: https://github.com/openwrt/openwrt/pull/13897
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
package/boot/uboot-envtools/files/mediatek_mt7622