mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-21 09:42:09 +00:00
ramips: rename mtd partition of ipTIME NAND devices
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>
This commit is contained in:
parent
7e04a611bc
commit
ec45f2f246
@ -73,6 +73,7 @@ belkin,rt1800|\
|
||||
h3c,tx1800-plus|\
|
||||
h3c,tx1801-plus|\
|
||||
h3c,tx1806|\
|
||||
iptime,ax2004m|\
|
||||
jcg,q20|\
|
||||
linksys,e7350|\
|
||||
netgear,eax12|\
|
||||
@ -92,6 +93,7 @@ ravpower,rp-wd03)
|
||||
ubootenv_add_uci_config "/dev/mtd$idx" "0x4000" "0x1000" "0x1000"
|
||||
;;
|
||||
beeline,smartbox-flash|\
|
||||
iptime,t5004|\
|
||||
linksys,ea6350-v4|\
|
||||
linksys,ea7300-v1|\
|
||||
linksys,ea7300-v2|\
|
||||
|
@ -74,9 +74,8 @@
|
||||
};
|
||||
|
||||
partition@80000 {
|
||||
label = "config";
|
||||
label = "u-boot-env";
|
||||
reg = <0x80000 0x80000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@100000 {
|
||||
|
@ -53,9 +53,8 @@
|
||||
};
|
||||
|
||||
partition@80000 {
|
||||
label = "config";
|
||||
label = "u-boot-env";
|
||||
reg = <0x80000 0xc0000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
partition@140000 {
|
||||
|
@ -1460,7 +1460,7 @@ define Device/iptime_ax2004m
|
||||
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. \
|
||||
@ -1474,7 +1474,7 @@ define Device/iptime_t5004
|
||||
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
|
||||
|
||||
|
@ -260,7 +260,7 @@ ramips_setup_macs()
|
||||
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|\
|
||||
|
Loading…
x
Reference in New Issue
Block a user