tools: pack_v2: fix wififw image flashing script

tiny-nor was using ubi volume name "wifi_fw" instead
of partition name "0:WIFIFW". This change fixes the same.

Change-Id: I55dc83a2cc40178ffffdfa25fe20a739f21040ad
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
This commit is contained in:
Gokul Sriram Palanisamy 2023-09-27 19:16:44 +05:30
parent 5f169ad23b
commit f52ebe8b10

View file

@ -630,12 +630,12 @@ class Pack(object):
if ver_check == True:
combs = self.__find_wifi_fw_ver_combinations(filename)
for k, v in combs.items():
if flinfo.type != "emmc":
if self.flash_type in ["nand", "nand-4k", "norplusnand", "norplusnand-4k"]:
self.__gen_flash_script_for_ubi_wififw(k, script, v)
else:
self.__gen_flash_script_for_non_ubi_wififw(partition, k, flinfo, script, v)
else:
if flinfo.type != "emmc":
if self.flash_type in ["nand", "nand-4k", "norplusnand", "norplusnand-4k"]:
self.__gen_flash_script_for_ubi_wififw(filename, script, None)
else:
self.__gen_flash_script_for_non_ubi_wififw(partition, filename, flinfo, script, None)