The out-of-tree qcom-smem patches traditionally displayed mtd partition names
in upper case, starting with the new mainline qcom-smem support in kernel v5.10,
it switches to normalizing the partition names to lower case.
Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
;;
edgecore,ecw5410)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
- ucidef_set_interface_macaddr "lan" "$(mtd_get_mac_binary "0:ART" 0x6)"
- ucidef_set_interface_macaddr "wan" "$(mtd_get_mac_binary "0:ART" 0x0)"
+ if [ -b "$(find_mtd_part 0:art)" ]; then
+ ucidef_set_interface_macaddr "lan" "$(mtd_get_mac_binary "0:art" 0x6)"
+ ucidef_set_interface_macaddr "wan" "$(mtd_get_mac_binary "0:art" 0x0)"
+ else
+ # XXX: drop upper case after kernel v5.4 is gone (qcom-smem)
+ ucidef_set_interface_macaddr "lan" "$(mtd_get_mac_binary "0:ART" 0x6)"
+ ucidef_set_interface_macaddr "wan" "$(mtd_get_mac_binary "0:ART" 0x0)"
+ fi
;;
linksys,ea7500-v1)
hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)
ath10k_patch_mac $(mtd_get_mac_binary ART 0x1e)
;;
edgecore,ecw5410)
- caldata_extract "0:ART" 0x1000 0x2f20
+ if [ -b "$(find_mtd_part 0:art)" ]; then
+ caldata_extract "0:art" 0x1000 0x2f20
+ else
+ # XXX: drop upper case after kernel v5.4 is gone (qcom-smem)
+ caldata_extract "0:ART" 0x1000 0x2f20
+ fi
;;
linksys,ea7500-v1 |\
linksys,ea8500)
"ath10k/pre-cal-pci-0002:01:00.0.bin")
case $board in
edgecore,ecw5410)
- caldata_extract "0:ART" 0x5000 0x2f20
+ if [ -b "$(find_mtd_part 0:art)" ]; then
+ caldata_extract "0:art" 0x5000 0x2f20
+ else
+ # XXX: drop upper case after kernel v5.4 is gone (qcom-smem)
+ caldata_extract "0:ART" 0x5000 0x2f20
+ fi
;;
esac
;;