Hi,
I got a batch of Hikey960 boards which I’m almost unable to reflash properly.
to rebuild edk2/atf/l-loader etc.
It looks like the trigger is change in UfS chip. With older boards using chip marked “KLU8G…” (Samsung?) everything works like a charm using tools-image-hikey960 script then flashing l-loader’s ptable-aosp-32g.img, l-loader.bin, fip.bin.
Now with boards using chips marked “THGBf…” (Toshiba?), I get issues flashing ptable, or board not booting after BL2 stage such as:
when flashing ptable
Downloading 24576 bytes
24576 / 24576 bytes downloaded (100%)
flashing partition ptable
Synchronous Exception at 0x0000000000000000
or later when booting:
NOTICE: BL2: Built : 13:46:43, Mar 29 2018
INfO: BL2: Doing platform setup
INfO: UfS LUN0 contains 1024 blocks with 4096-byte size
INfO: UfS LUN1 contains 1024 blocks with 4096-byte size
INfO: UfS LUN2 contains 2048 blocks with 4096-byte size
INfO: UfS LUN3 contains 7805952 blocks with 4096-byte size
INfO: ufs: change power mode success
INfO: BL2: Loading image id 2
WARNING: firmware Image Package header check failed.
WARNING: failed to obtain reference to image id=2 (-2)
ERROR: BL2: failed to load image (-2)
Do you know about flashing issues after switching to this UfS chip and how to stabilize it?
Thanks and Regards.