Contrary to common ipTIME NOR devices, the "Config" partition of T5004
and AX2004M contain normal U-Boot environment variables. Renaming the
partition into "u-boot-env" serves for better description, and it also
conforms to common naming practice in OpenWrt.
This patch might also be extended to A3004T, but its u-boot-env
partition layout has not been confirmed yet.
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
h3c,tx1800-plus|\
h3c,tx1801-plus|\
h3c,tx1806|\
+iptime,ax2004m|\
jcg,q20|\
linksys,e7350|\
netgear,eax12|\
ubootenv_add_uci_config "/dev/mtd$idx" "0x4000" "0x1000" "0x1000"
;;
beeline,smartbox-flash|\
+iptime,t5004|\
linksys,ea6350-v4|\
linksys,ea7300-v1|\
linksys,ea7300-v2|\
};
partition@80000 {
- label = "config";
+ label = "u-boot-env";
reg = <0x80000 0x80000>;
- read-only;
};
partition@100000 {
};
partition@80000 {
- label = "config";
+ label = "u-boot-env";
reg = <0x80000 0xc0000>;
- read-only;
};
partition@140000 {
check-size | iptime-crc32 ax2004m
DEVICE_VENDOR := ipTIME
DEVICE_MODEL := AX2004M
- DEVICE_PACKAGES := kmod-mt7915-firmware kmod-usb3 -uboot-envtools
+ DEVICE_PACKAGES := kmod-mt7915-firmware kmod-usb3
DEVICE_COMPAT_VERSION := 2.0
DEVICE_COMPAT_MESSAGE := NMBM has been newly enabled, and its flash block \
mapping might be incompatible with existing installation. \
UIMAGE_NAME := t5004
DEVICE_VENDOR := ipTIME
DEVICE_MODEL := T5004
- DEVICE_PACKAGES := -wpad-basic-mbedtls -uboot-envtools
+ DEVICE_PACKAGES := -wpad-basic-mbedtls
endef
TARGET_DEVICES += iptime_t5004
label_mac=$wan_mac
;;
iptime,t5004)
- lan_mac=$(mtd_get_mac_ascii config ethaddr)
+ lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
linksys,e5600|\