pack_v2: Append flupdate commands

If flash image type is emmc, switch the flash
type to emmc from nor in norplusemmc board using
the flupdate commands. Once the image is flashed
switch back the flash type to nor using the same
flupdate commands.

This change is to support the below Change-Id
Ib328cc1fea0b37f27e6479d55fce08365fbfcf69

Change-Id: Ia5f75923d7bdfd313a986826f1ac2f7f571c414a
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
This commit is contained in:
Hariharan K 2023-04-14 23:46:37 +05:30 committed by Gerrit - the friendly Code Review server
parent 48d9f76a4a
commit cd5362a218

View file

@ -903,6 +903,8 @@ class Pack(object):
script.append("flashinit nand")
elif flinfo.type == "emmc" or self.flash_type == "norplusemmc":
script.append("flashinit mmc")
if flinfo.type == "emmc":
script.append("flupdate set mmc")
if flinfo.type != "emmc":
self.__gen_script_mibib(script, flinfo, parts, parts_length, "mibib_reload")
@ -1068,6 +1070,9 @@ class Pack(object):
continue
if flinfo.type == "emmc":
script.append("flupdate clear")
return 1
def __gen_script_cdt(self, images, flinfo, root, section_conf, partition):