Marginality with UFS chip change?

Fail log

hikey960 boarid:5301 xloader use UART6
scsysstat_value[0].
clear reset source
last_keypoint0,reboot_type0
secdbg not DCU.
SecDbgVer exit

xloader chipid is: 0x36600110, start at 14484ms.
Build Date: Dec 6 2017, 15:31:59
[clock_init] ++
hikey960 [hikey960_clk_init]
hi3660 [clk_setup]
[clock_init] –
storage type is UFS
ufs retry: 6 count v_tx:0 v_rx:0
ufs set v_tx:0 v_rx:0
UfsLuInit ret:0
UsbMode, nvData invalid
rtc_nve_read failed !
Hikey960[5301] no need avs_init.
ddr ft:0xf20332a3,mode:1 target:4
[USBI]driver init:0003e800 0003f840 00000000
[USBI]download start! total_frame:24
+1 0|+2 0|+3 0|+4 0|+5 0|+6 0|+7 0|+8 0|+9 0|+10 0|+11 0|+12 0|+13 0|+14 0|+15 0|+16 0|+17 0|+18 0|+19 0|+20 0|+21 0|+22 0|+23 0|+24 0|
[USBI]expected:23680, received:23680 (bytes)
[USBI]download suc
UceLdOk
ch 0 gt_errfail, STATUS:0x00000060
ch 0 gdst_errfail, STATUS:0x00000040
ch 1 gt_errfail, STATUS:0x00000060
ch 1 gdst_errfail, STATUS:0x00000040
ch 2 gt_errfail, STATUS:0x00000060
ch 2 gdst_errfail, STATUS:0x00000040
ch 3 gt_errfail, STATUS:0x00000060
ch 3 gdst_errfail, STATUS:0x00000040
timeout
timeout
timeout
timeout
density: 0x0c0c0c0c,0x00000000,0x0c0c0c0c,0x00000000,0x0c0c0c0c,0x00000000,0x0c0c0c0c,0x00000000
ddr info 0x00000306
400M
685M
1067M
C0R,V0x0000002c e:66
C1R,V0x0000002d e:66
C2R,V0x0000002c e:66
C3R,V0x0000002c e:66
C0R,V0x0000002d e:66
C1R,V0x0000002e e:66
C2R,V0x0000002d e:66
C3R,V0x0000002d e:66
C0R,V0x0000002e e:65
C1R,V0x0000002f e:66
C2R,V0x0000002e e:66
C3R,V0x0000002e e:66
C0R,V0x0000002f e:65
C1R,V0x00000030 e:65
C2R,V0x0000002f e:65
C3R,V0x0000002f e:66
1244M
1866M
C0R,V0x00000017 e:113
UsbMode, nvData invalid
UsbMode, nvData invalid
UsbMode, nvData invalid
[USBI]driver init:0003e800 0003f840 00000000
[USBI]download start! total_frame:1152
+1 0|+2 0|+3 0|+4 0|+5 0|+6 0|+7 0|+8 0|+9 0|+10 0|+11 0|+12 0|+13 0|+14 0|+15 0|+16 0|+17 0|+18 0|+19 0|+20 0|+21 0|+22 0|+23 0|+24 0|+25 0|+26 0|+27 0|+28 0|+29 0|+30 0|+31 0|+32 0|+33 0|+34 0|+35 0|+36 0|+37 0|+38 0|+39 0|+40 0|+41 0|+42 0|+43 0|+44 0|+45 0|+46 0|+47 0|+48 0|+49 0|+50 0|+51 0|+52 0|+53 0|+54 0|+55 0|+56 0|+57 0|+58 0|+59 0|+60 0|+61 0|+62 0|+63 0|+64 0|+65 0|+66 0|+67 0|+68 0|+69 0|+70 0|+71 0|+72 0|+73 0|+74 0|+75 0|+76 0|+77 0|+78 0|+79 0|+80 0|+81 0|+82 0|+83 0|+84 0|+85 0|+86 0|+87 0|+88 0|+89 0|+90 0|+91 0|+92 0|+93 0|+94 0|+95 0|+96 0|+97 0|+98 0|+99 0|+100 0|+101 0|+102 0|+103 0|+104 0|+105 0|+106 0|+107 0|+108 0|+109 0|+110 0|+111 0|+112 0|+113 0|+114 0|+115 0|+116 0|+117 0|+118 0|+119 0|+120 0|+121 0|+122 0|+123 0|+124 0|+125 0|+126 0|+127 0|+128 0|+129 0|+130 0|+131 0|+132 0|+133 0|+134 0|+135 0|+136 0|+137 0|+138 0|+139 0|+140 0|+141 0|+142 0|+143 0|+144 0|+145 0|+146 0|+147 0|+148 0|+149 0|+150 0|+151 0|+152 0|+153 0|+154 0|+155 0|+156 0|+157 0|+158 0|+159 0|+160 0|+161 0|+162 0|+163 0|+164 0|+165 0|+166 0|+167 0|+168 0|+169 0|+170 0|+171 0|+172 0|+173 0|+174 0|+175 0|+176 0|+177 0|+178 0|+179 0|+180 0|+181 0|+182 0|+183 0|+184 0|+185 0|+186 0|+187 0|+188 0|+189 0|+190 0|+191 0|+192 0|+193 0|+194 0|+195 0|+196 0|+197 0|+198 0|+199 0|+200 0|+201 0|+202 0|+203 0|+204 0|+205 0|+206 0|+207 0|+208 0|+209 0|+210 0|+211 0|+212 0|+213 0|+214 0|+215 0|+216 0|+217 0|+218 0|+219 0|+220 0|+221 0|+222 0|+223 0|+224 0|+225 0|+226 0|+227 0|+228 0|+229 0|+230 0|+231 0|+232 0|+233 0|+234 0|+235 0|+236 0|+237 0|+238 0|+239 0|+240 0|+241 0|+242 0|+243 0|+244 0|+245 0|+246 0|+247 0|+248 0|+249 0|+250 0|+251 0|+252 0|+253 0|+254 0|+255 0|+256 0|+257 0|+258 0|+259 0|+260 0|+261 0|+262 0|+263 0|+264 0|+265 0|+266 0|+267 0|+268 0|+269 0|+270 0|+271 0|+272 0|+273 0|+274 0|+275 0|+276 0|+277 0|+278 0|+279 0|+280 0|+281 0|+282 0|+283 0|+284 0|+285 0|+286 0|+287 0|+288 0|+289 0|+290 0|+291 0|+292 0|+293 0|+294 0|+295 0|+296 0|+297 0|+298 0|+299 0|+300 0|+301 0|+302 0|+303 0|+304 0|+305 0|+306 0|+307 0|+308 0|+309 0|+310 0|+311 0|+312 0|+313 0|+314 0|+315 0|+316 0|+317 0|+318 0|+319 0|+320 0|+321 0|+322 0|+323 0|+324 0|+325 0|+326 0|+327 0|+328 0|+329 0|+330 0|+331 0|+332 0|+333 0|+334 0|+335 0|+336 0|+337 0|+338 0|+339 0|+340 0|+341 0|+342 0|+343 0|+344 0|+345 0|+346 0|+347 0|+348 0|+349 0|+350 0|+351 0|+352 0|+353 0|+354 0|+355 0|+356 0|+357 0|+358 0|+359 0|+360 0|+361 0|+362 0|+363 0|+364 0|+365 0|+366 0|+367 0|+368 0|+369 0|+370 0|+371 0|+372 0|+373 0|+374 0|+375 0|+376 0|+377 0|+378 0|+379 0|+380 0|+381 0|+382 0|+383 0|+384 0|+385 0|+386 0|+387 0|+388 0|+389 0|+390 0|+391 0|+392 0|+393 0|+394 0|+395 0|+396 0|+397 0|+398 0|+394 0|+565 0|+566 0|+567 0|+568 0|+569 0|+570 0|+571 0|+572 0|+573 0|+574 0|+575 0|+576 0|+577 0|+578 0|+579 0|+580 0|+581 0|+582 0|+583 0|+584 0|+585 0|+586 0|+587 0|+588 0|+589 0|+590 0|+591 0|+592 0|+593 0|+594 0|+595 0|+596 0|+597 0|+598 0|+599 0|+600 0|+601 0|+602 0|+603 0|+604 0|+605 0|+606 0|+607 0|+608 0|+609 0|+610 0|+611 0|+612 0|+613 0|+614 0|+615 0|+616 0|+617 0|+618 0|+619 0|+620 0|+621 0|+622 0|+623 0|+624 0|+625 0|+626 0|+627 0|+628 0|+629 0|+630 0|+631 0|+632 0|+633 0|+634 0|+635 0|+636 0|+637 0|+638 0|+639 0|+640 0|+641 0|+642 0|+643 0|+644 0|+645 0|+646 0|+647 0|+648 0|+649 0|+650 0|+651 0|+652 0|+653 0|+654 0|+655 0|+656 0|+657 0|+658 0|+659 0|+660 0|+661 0|+662 0|+663 0|+664 0|+665 0|+666 0|+667 0|+668 0|+669 0|+670 0|+671 0|+672 0|+673 0|+674 0|+675 0|+676 0|+677 0|+678 0|+679 0|+680 0|+681 0|+682 0|+683 0|+684 0|+685 0|+686 0|+687 0|+688 0|+689 0|+690 0|+691 0|+692 0|+693 0|+694 0|+695 0|+696 0|+697 0|+698 0|+699 0|+700 0|+701 0|+702 0|+703 0|+704 0|+705 0|+706 0|+707 0|+708 0|+709 0|+710 0|+711 0|+712 0|+713 0|+714 0|+715 0|+716 0|+717 0|+718 0|+719 0|+720 0|+721 0|+722 0|+723 0|+724 0|+725 0|+726 0|+727 0|+728 0|+729 0|+730 0|+731 0|+732 0|+733 0|+734 0|+735 0|+736 0|+737 0|+738 0|+739 0|+740 0|+741 0|+742 0|+743 0|+744 0|+745 0|+746 0|+747 0|+748 0|+749 0|+750 0|+751 0|+752 0|+753 0|+754 0|+755 0|+756 0|+757 0|+758 0|+759 0|+760 0|+761 0|+762 0|+763 0|+764 0|+765 0|+766 0|+767 0|+768 0|+769 0|+770 0|+771 0|+772 0|+773 0|+774 0|+775 0|+776 0|+777 0|+778 0|+779 0|+780 0|+781 0|+782 0|+783 0|+784 0|+785 0|+786 0|+787 0|+788 0|+789 0|+790 0|+791 0|+792 0|+793 0|+794 0|+795 0|+796 0|+797 0|+798 0|+799 0|+800 0|+801 0|+802 0|+803 0|+804 0|+805 0|+806 0|+807 0|+808 0|+809 0|+810 0|+811 0|+812 0|+813 0|+814 0|+815 0|+816 0|+817 0|+818 0|+819 0|+820 0|+821 0|+822 0|+823 0|+824 0|+825 0|+826 0|+827 0|+828 0|+829 0|+830 0|+831 0|+832 0|+833 0|+834 0|+835 0|+836 0|+837 0|+838 0|+839 0|+840 0|+841 0|+842 0|+843 0|+844 0|+845 0|+846 0|+847 0|+848 0|+849 0|+850 0|+851 0|+852 0|+853 0|+854 0|+855 0|+856 0|+857 0|+858 0|+859 0|+860 0|+861 0|+862 0|+863 0|+864 0|+865 0|+866 0|+867 0|+868 0|+869 0|+870 0|+871 0|+872 0|+873 0|+874 0|+875 0|+876 0|+877 0|+878 0|+879 0|+880 0|+881 0|+882 0|+883 0|+884 0|+885 0|+886 0|+887 0|+888 0|+889 0|+890 0|+891 0|+892 0|+893 0|+894 0|+895 0|+896 0|+897 0|+898 0|+899 0|+900 0|+901 0|+902 0|+903 0|+904 0|+905 0|+906 0|+907 0|+908 0|+909 0|+910 0|+911 0|+912 0|+913 0|+914 0|+915 0|+916 0|+917 0|+918 0|+919 0|+920 0|+921 0|+922 0|+923 0|+924 0|+925 0|+926 0|+927 0|+928 0|+929 0|+930 0|+931 0|+932 0|+933 0|+934 0|+935 0|+936 0|+937 0|+938 0|+939 0|+940 0|+941 0|+942 0|+943 0|+944 0|+945 0|+946 0|+947 0|+948 0|+949 0|+950 0|+951 0|+952 0|+953 0|+954 0|+955 0|+956 0|+957 0|+958 0|+959 0|+960 0|+961 0|+962 0|+963 0|+964 0|+965 0|+966 0|+967 0|+968 0|+969 0|+970 0|+971 0|+972 0|+973 0|+974 0|+975 0|+976 0|+977 0|+978 0|+979 0|+980 0|+981 0|+982 0|+983 0|+984 0|+985 0|+986 0|+987 0|+988 0|+989 0|+990 0|+991 0|+992 0|+993 0|+994 0|+995 0|+996 0|+997 0|+998 0|+999 0|+1000 0|+10010|+1002 0|+1003 0|+1004 0|+1005 0|+1006 0|+1007 0|+1008 0|+1009 0|+1010 0|+1011 0|+1012 0|+1013 0|+1014 0|+1015 0|+1016 0|+1017 0|+1018 0|+1019 0|+1020 0|+1021 0|+1022 0|+10230|+1024 0|+1025 0|+1026 0|+1027 0|+1028 0|+1029 0|+1030 0|+1031 0|+1032 0|+1033 0|+1034 0|+1035 0|+1036 0|+1037 0|+1038 0|+1039 0|+1040 0|+1041 0|+1042 0|+1043 0|+1044 0|+10450|+1046 0|+1047 0|+1048 0|+1049 0|+1050 0|+1051 0|+1052 0|+1053 0|+1054 0|+1055 0|+1056 0|+1057 0|+1058 0|+1059 0|+1060 0|+1061 0|+1062 0|+1063 0|+1064 0|+1065 0|+1066 0|+10670|+1068 0|+1069 0|+1070 0|+1071 0|+1072 0|+1073 0|+1074 0|+1075 0|+1076 0|+1077 0|+1078 0|+1079 0|+1080 0|+1081 0|+1082 0|+1083 0|+1084 0|+1085 0|+1086 0|+1087 0|+1088 0|+10890|+1090 0|+1091 0|+1092 0|+1093 0|+1094 0|+1095 0|+1096 0|+1097 0|+1098 0|+1099 0|+1100 0|+1101 0|+1102 0|+1103 0|+1104 0|+1105 0|+1106 0|+1107 0|+1108 0|+1109 0|+1110 0|+11110|+1112 0|+1113 0|+1114 0|+1115 0|+1116 0|+1117 0|+1118 0|+1119 0|+1120 0|+1121 0|+1122 0|+1123 0|+1124 0|+1125 0|+1126 0|+1127 0|+1128 0|+1129 0|+1130 0|+1131 0|+1132 0|+11330|+1134 0|+1135 0|+1136 0|+1137 0|+1138 0|+1139 0|+1140 0|+1141 0|+1142 0|+1143 0|+1144 0|+1145 0|+1146 0|+1147 0|+1148 0|+1149 0|+1150 0|+1151 0|+1152 0|
[USBI]expected:1179648, received:1179648 (bytes)
[USBI]download suc
iomcu_subsys_init
boot_c0 PROFILE 4
slave0 irq0:0x00000004
slave1 irq0:0x00000004
NOTICE: Booting Trusted Firmware
NOTICE: BL1: v1.5(release):v1.5-649-g7e8a891f
NOTICE: BL1: Built : 09:26:44, Aug 14 2018
NOTICE: BL1-FWU: FWU Process Started
UEFI firmware (version Alpha built at 09:26:28 on Aug 14 2018)
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll 0xBF18C000
Loading DxeCore at 0x00BF18B000 EntryPoint=0x00BF18C000
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll 0xBF18C000
HOBLIST address in DXE = 0xBEF4D018
Memory Allocation 0x00000004 0xBFFE8000 - 0xBFFE8FFF
Memory Allocation 0x00000004 0xBFFE7000 - 0xBFFE7FFF
Memory Allocation 0x00000004 0xBFFE6000 - 0xBFFE6FFF
Memory Allocation 0x00000004 0xBFFE5000 - 0xBFFE5FFF
Memory Allocation 0x00000004 0xBFFE9000 - 0xBFFFFFFF
Memory Allocation 0x00000004 0xBFFD5000 - 0xBFFE4FFF
Memory Allocation 0x00000004 0xBF8CF000 - 0xBFFD4FFF
Memory Allocation 0x00000004 0xBF1C9000 - 0xBF8CEFFF
Memory Allocation 0x00000004 0xBF18B000 - 0xBF1C8FFF
Memory Allocation 0x00000003 0xBF18B000 - 0xBF1C8FFF
FV Hob 0x1AC98000 - 0x1AD87FFF
FV Hob 0xBF1C9000 - 0xBF8CD7FF
FV2 Hob 0xBF1C9000 - 0xBF8CD7FF
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/PCD/Dxe/Pcd/DEBUG/PcdDxe.dll 0xBF0D1000
Loading driver at 0x000BF0D0000 EntryPoint=0x000BF0D1048 PcdDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/ArmPkg/Drivers/CpuDxe/CpuDxe/DEBUG/ArmCpuDxe.dll 0xBF0C1000
Loading driver at 0x000BF0C0000 EntryPoint=0x000BF0C1048 ArmCpuDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Core/RuntimeDxe/RuntimeDxe/DEBUG/RuntimeDxe.dll 0xBA0D0000
Loading driver at 0x000BA0C0000 EntryPoint=0x000BA0D0048 RuntimeDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe/DEBUG/SecurityStubDxe.dll 0xBF0B1000
Loading driver at 0x000BF0B0000 EntryPoint=0x000BF0B1048 SecurityStubDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter/DEBUG/EmbeddedMonotonicCounter.dll 0xBA030000
Loading driver at 0x000BA020000 EntryPoint=0x000BA030048 EmbeddedMonotonicCounter.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe/DEBUG/Reset.dll 0xB9F90000
Loading driver at 0x000B9F80000 EntryPoint=0x000B9F90048 Reset.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe/DEBUG/RealTimeClock.dll 0xB9EF0000
Loading driver at 0x000B9EE0000 EntryPoint=0x000B9EF0048 RealTimeClock.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/MetronomeDxe/MetronomeDxe/DEBUG/MetronomeDxe.dll 0xBF0A9000
Loading driver at 0x000BF0A8000 EntryPoint=0x000BF0A9048 MetronomeDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/SerialDxe/SerialDxe/DEBUG/SerialDxe.dll 0xBF0A1000
Loading driver at 0x000BF0A0000 EntryPoint=0x000BF0A1048 SerialDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Platforms/Hisilicon/HiKey960/HiKey960GpioDxe/HiKey960GpioDxe/DEBUG/HiKey960Gpio.dll 0xBF09A000
Loading driver at 0x000BF099000 EntryPoint=0x000BF09A048 HiKey960Gpio.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/ArmPlatformPkg/Drivers/PL061GpioDxe/PL061GpioDxe/DEBUG/PL061GpioDxe.dll 0xBF091000
Loading driver at 0x000BF090000 EntryPoint=0x000BF091048 PL061GpioDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Platforms/Hisilicon/HiKey960/HiKey960Dxe/HiKey960Dxe/DEBUG/HiKey960Dxe.dll 0xBF07C000
Loading driver at 0x000BF07B000 EntryPoint=0x000BF07C048 HiKey960Dxe.efi
[BDID]Adcin0:217
[BDID]Adcin0Remap:1
[BDID]Adcin1:0
[BDID]Adcin1Remap:0
[BDID]Adcin2:597
[BDID]Adcin2Remap:3
[BDID]boardid: 5301
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/DpcDxe/DpcDxe/DEBUG/DpcDxe.dll 0xBF074000
Loading driver at 0x000BF073000 EntryPoint=0x000BF074048 DpcDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe/DEBUG/EmuVariableRuntimeDxe.dll 0xB9E50000
Loading driver at 0x000B9E40000 EntryPoint=0x000B9E50048 EmuVariableRuntimeDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe/DEBUG/HiiDatabase.dll 0xBF043000
Loading driver at 0x000BF042000 EntryPoint=0x000BF043048 HiiDatabase.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe/DEBUG/DevicePathDxe.dll 0xBF02E000
Loading driver at 0x000BF02D000 EntryPoint=0x000BF02E048 DevicePathDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe/DEBUG/CapsuleRuntimeDxe.dll 0xB9DB0000
Loading driver at 0x000B9DA0000 EntryPoint=0x000B9DB0048 CapsuleRuntimeDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/ArmPkg/Drivers/ArmGic/ArmGicDxe/DEBUG/ArmGicDxe.dll 0xBF024000
Loading driver at 0x000BF023000 EntryPoint=0x000BF024048 ArmGicDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe/DEBUG/FaultTolerantWriteDxe.dll 0xBF015000
Loading driver at 0x000BF014000 EntryPoint=0x000BF015048 FaultTolerantWriteDxe.efi
Ftw: Workspace or Spare block does not exist!
Error: Image at 000BF014000 start failed: Invalid Parameter
remove-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe/DEBUG/FaultTolerantWriteDxe.dll 0xBF015000
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe/DEBUG/SetupBrowser.dll 0xBEFF8000
Loading driver at 0x000BEFF7000 EntryPoint=0x000BEFF8048 SetupBrowser.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/BdsDxe/BdsDxe/DEBUG/BdsDxe.dll 0xBEFCD000
Loading driver at 0x000BEFCC000 EntryPoint=0x000BEFCD048 BdsDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe/DEBUG/DtPlatformDxe.dll 0xBEFC3000
Loading driver at 0x000BEFC2000 EntryPoint=0x000BEFC3048 DtPlatformDxe.efi
DtPlatformDxeEntryPoint: no DT/ACPI preference found, defaulting to DT
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/ArmPkg/Drivers/TimerDxe/TimerDxe/DEBUG/ArmTimerDxe.dll 0xBEFBA000
Loading driver at 0x000BEFB9000 EntryPoint=0x000BEFBA048 ArmTimerDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe/DEBUG/DisplayEngine.dll 0xBEF97000
Loading driver at 0x000BEF96000 EntryPoint=0x000BEF97048 DisplayEngine.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer/DEBUG/WatchdogTimer.dll 0xBEF8F000
Loading driver at 0x000BEF8E000 EntryPoint=0x000BEF8F048 WatchdogTimer.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe/DEBUG/ConPlatformDxe.dll 0xBEF84000
Loading driver at 0x000BEF83000 EntryPoint=0x000BEF84048 ConPlatformDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe/DEBUG/TerminalDxe.dll 0xBEF71000
Loading driver at 0x000BEF70000 EntryPoint=0x000BEF71048 TerminalDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Drivers/Keyboard/VirtualKeyboardDxe/VirtualKeyboardDxe/DEBUG/VirtualKeyboardDxe.dll 0xBEF66000
Loading driver at 0x000BEF65000 EntryPoint=0x000BEF66048 VirtualKeyboardDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Platforms/Hisilicon/HiKey960/HiKey960MmcDxe/HiKey960MmcDxe/DEBUG/HiKey960MmcDxe.dll 0xBEF5D000
Loading driver at 0x000BEF5C000 EntryPoint=0x000BEF5D048 HiKey960MmcDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceDxe/DEBUG/NonDiscoverablePciDeviceDxe.dll 0xB9D44000
Loading driver at 0x000B9D43000 EntryPoint=0x000B9D44048 NonDiscoverablePciDeviceDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Drivers/SdMmc/DwMmcHcDxe/DwMmcHcDxe/DEBUG/DwMmcHcDxe.dll 0xB9D30000
Loading driver at 0x000B9D2F000 EntryPoint=0x000B9D30048 DwMmcHcDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Sd/SdDxe/SdDxe/DEBUG/SdDxe.dll 0xB9D20000
Loading driver at 0x000B9D1F000 EntryPoint=0x000B9D20048 SdDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/MnpDxe/MnpDxe/DEBUG/MnpDxe.dll 0xB9D08000
Loading driver at 0x000B9D07000 EntryPoint=0x000B9D08048 MnpDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/ArpDxe/ArpDxe/DEBUG/ArpDxe.dll 0xB9CF8000
Loading driver at 0x000B9CF7000 EntryPoint=0x000B9CF8048 ArpDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe/DEBUG/Ip4Dxe.dll 0xB9CD1000
Loading driver at 0x000B9CD0000 EntryPoint=0x000B9CD1048 Ip4Dxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe/DEBUG/Udp4Dxe.dll 0xB9CBC000
Loading driver at 0x000B9CBB000 EntryPoint=0x000B9CBC048 Udp4Dxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe/DEBUG/Tcp4Dxe.dll 0xB9C9A000
Loading driver at 0x000B9C99000 EntryPoint=0x000B9C9A048 Tcp4Dxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe/DEBUG/Dhcp4Dxe.dll 0xB9C84000
Loading driver at 0x000B9C83000 EntryPoint=0x000B9C84048 Dhcp4Dxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe/DEBUG/Mtftp4Dxe.dll 0xB9C6E000
Loading driver at 0x000B9C6D000 EntryPoint=0x000B9C6E048 Mtftp4Dxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe/DEBUG/UefiPxe4BcDxe.dll 0xB9C57000
Loading driver at 0x000B9C56000 EntryPoint=0x000B9C57048 UefiPxe4BcDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/Ax88772b/DEBUG/Ax88772b.dll 0xB9C10000
Loading driver at 0x000B9C00000 EntryPoint=0x000B9C10048 Ax88772b.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Drivers/Block/DwUfsHcDxe/DwUfsHcDxe/DEBUG/DwUfsHcDxe.dll 0xB9BA4000
Loading driver at 0x000B9BA3000 EntryPoint=0x000B9BA4048 DwUfsHcDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruDxe/DEBUG/UfsPassThruDxe.dll 0xB9B92000
Loading driver at 0x000B9B91000 EntryPoint=0x000B9B92048 UfsPassThruDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe/DEBUG/ScsiBus.dll 0xB9B85000
Loading driver at 0x000B9B84000 EntryPoint=0x000B9B85048 ScsiBus.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe/DEBUG/ScsiDisk.dll 0xB9B6F000
Loading driver at 0x000B9B6E000 EntryPoint=0x000B9B6F048 ScsiDisk.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe/DEBUG/DiskIoDxe.dll 0xB9B62000
Loading driver at 0x000B9B61000 EntryPoint=0x000B9B62048 DiskIoDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe/DEBUG/PartitionDxe.dll 0xB9B53000
Loading driver at 0x000B9B52000 EntryPoint=0x000B9B53048 PartitionDxe.efi
add-symbol-file /work/jenkins/workspace/ap-uefi-bin/EDK2_ARCH/ARM/EDK2_BINARY/FatPkg/label/sas-sw/Build/Fat/RELEASE_GCC49/AARCH64/FatPkg/EnhancedFatDxe/Fat/DEBUG/Fat.dll 0xBEF55260
Loading driver at 0x000BEF55000 EntryPoint=0x000BEF552A8 Fat.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe/DEBUG/EnglishDxe.dll 0xBA115000
Loading driver at 0x000BA114000 EntryPoint=0x000BA115048 EnglishDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe/DEBUG/UsbBusDxe.dll 0xB9B3E000
Loading driver at 0x000B9B3D000 EntryPoint=0x000B9B3E048 UsbBusDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe/DEBUG/UsbMassStorageDxe.dll 0xB9B2F000
Loading driver at 0x000B9B2E000 EntryPoint=0x000B9B2F048 UsbMassStorageDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Platforms/Hisilicon/HiKey960/HiKey960UsbDxe/HiKey960UsbDxe/DEBUG/HiKey960UsbDxe.dll 0xB9B1D000
Loading driver at 0x000B9B1C000 EntryPoint=0x000B9B1D048 HiKey960UsbDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Platforms/Hisilicon/HiKey960/HiKey960FastbootDxe/HiKey960FastbootDxe/DEBUG/HiKey960FastbootDxe.dll 0xB9B08000
Loading driver at 0x000B9B07000 EntryPoint=0x000B9B08048 HiKey960FastbootDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Drivers/Usb/DwUsb3Dxe/DwUsb3Dxe/DEBUG/DwUsb3Dxe.dll 0xB9AF9000
Loading driver at 0x000B9AF8000 EntryPoint=0x000B9AF9048 DwUsb3Dxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe/DEBUG/FastbootTransportUsbDxe.dll 0xB9AF1000
Loading driver at 0x000B9AF0000 EntryPoint=0x000B9AF1048 FastbootTransportUsbDxe.efi
WARNING: CAN NOT BOOT KERNEL IN RECOVERY MODE!
Switch to normal boot mode, then reboot to boot kernel.

Press ESCAPE for boot options Ufs Get Dev Descriptor Error, Status = Device Error
.[Bds]Booting Android Fastboot
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp/DEBUG/AndroidFastbootApp.dll 0xB9AD9000
Loading driver at 0x000B9AD8000 EntryPoint=0x000B9AD9000 AndroidFastbootApp.efi
Warning: Couldn’t locate Android NVM device (status: Not Found)
Android Fastboot mode - version 0.7.
Press RETURN or SPACE key to quit.
Warning: Couldn’t locate Android NVM device (status: Not Found)
Fastboot platform: check for partition-type:ptable
Downloading 24576 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:24576
24576 / 24576 bytes downloaded (100%)
Flashing partition ptable

Synchronous Exception at 0x0000000000000000

X0 0x0000000000000000 X1 0x0000000000000000 X2 0x0000000000000000 X3 0x0000000000006000
X4 0x00000000BE722018 X5 0x0000000000000000 X6 0x0000000000000000 X7 0x0000000000000020
X8 0x00000000BF1BDA28 X9 0x00000000FFF06000 X10 0x0000000000000004 X11 0x0000000000000000
X12 0x00000000703FE07A X13 0x0000000000000000 X14 0x0000000000000000 X15 0x0000000000000000
X16 0x00000000BFFFFA00 X17 0x0000000000000000 X18 0x0000000000000000 X19 0x00000000BE791318
X20 0x00000000BE789F98 X21 0x0000000000000000 X22 0x0000000000000000 X23 0x0000000000000000
X24 0x0000000000000000 X25 0x0000000000000000 X26 0x0000000000000000 X27 0x0000000000000000
X28 0x0000000000000000 FP 0x00000000BFFFF3F0 LR 0x00000000B9B08BD0

V0 0xF7375BAFBCFFA539 8F5EF1FF1FF47469 V1 0x3E37D7F097DEFFDE 3F3FEFFF97FFD4DF
V2 0xE162B3B7D97E67BA F5937DEFB198DFCF V3 0xDC176F26FFFF3877 DCABC77B96778CD3
V4 0xF4DF73FFE3FA3E9F FEF88AFF7F28559D V5 0xB1FBFCC2DF647FBB FDBF1CFD3DDF73DC
V6 0x72FCE9E9B0D67733 9DFDE3B7EF6FA14D V7 0x4DFFE3FBF7F3C8A3 2DEE7CFFFD25BFFE
V8 0x0000000000000000 471B2FA7557BDEFF V9 0x0000000000000000 1C79D70F77D1FFDB
V10 0x0000000000000000 4FC6E77B6EE99FAC V11 0x0000000000000000 EDF3FF777ECF666F
V12 0x0000000000000000 FA65F5DF7D739DFF V13 0x0000000000000000 69514F5D6FC5D6F7
V14 0x0000000000000000 97934CD2D7F5C7BF V15 0x0000000000000000 F7BD6F5A4D594FF9
V16 0xB250CEF3FFBC9A2F 48DC52C21B2F3057 V17 0xE6AE8D96BD2DF7B1 FD79F7F67F962FF2
V18 0x144DFEE157C4DBFD E0F67CFF6C706E9F V19 0x5715A35EEE7FE39F 4FEDE80FD9FFDFFF
V20 0xFBD75FCB9B60FF3F 63D67D6B5538B7DB V21 0x17FB27C2A4CDD7EF 4977B3DAA97FF7C6
V22 0xCEFEFB8FF256DFA5 CF8E56FA1FF67FD1 V23 0x7BBFF27A5ADCFEDC F9EAFDA774BD995D
V24 0xFDCD5EED9AB1F938 FBDF9D744872707C V25 0xDA7973B0F737F734 F6FEFDB3FF39DD36
V26 0x7BFEEF2A63EDE26F 0F8E0DEB57A6BEFA V27 0xDFEBF58D3B77F16F C79F7E12F7F7777D
V28 0x3883FFE67EECDBBB 2DE870DBB5BE7DD7 V29 0x4EBBFF1DF39C4DDB D8CBF9EF9F61F6BC
V30 0xEF1E9EDF3B9FFD7E 367EE37CDF1B37B8 V31 0xF8FF717EDFE7FBCD BE76ED86FF87D9FD

SP 0x00000000BFFFF3F0 ELR 0x0000000000000000 SPSR 0x60000205 FPSR 0x00000000
ESR 0x02000000 FAR 0x0000000000000000

ESR : EC 0x00 IL 0x1 ISS 0x00000000

Stack dump:
00000BFFFF2F0: 4FEDE80FD9FFDFFF 5715A35EEE7FE39F 63D67D6B5538B7DB FBD75FCB9B60FF3F
00000BFFFF310: 4977B3DAA97FF7C6 17FB27C2A4CDD7EF CF8E56FA1FF67FD1 CEFEFB8FF256DFA5
00000BFFFF330: F9EAFDA774BD995D 7BBFF27A5ADCFEDC FBDF9D744872707C FDCD5EED9AB1F938
00000BFFFF350: F6FEFDB3FF39DD36 DA7973B0F737F734 0F8E0DEB57A6BEFA 7BFEEF2A63EDE26F
00000BFFFF370: C79F7E12F7F7777D DFEBF58D3B77F16F 2DE870DBB5BE7DD7 3883FFE67EECDBBB
00000BFFFF390: D8CBF9EF9F61F6BC 4EBBFF1DF39C4DDB 367EE37CDF1B37B8 EF1E9EDF3B9FFD7E
00000BFFFF3B0: BE76ED86FF87D9FD F8FF717EDFE7FBCD 0000000000000000 0000000060000205
00000BFFFF3D0: 0000000000000000 0000000002000000 0000000000000000 00000000B9B0B7F0

00000BFFFF3F0: 00000000BFFFF420 00000000B9B08F58 00000000BE722018 0000000000006000
00000BFFFF410: 00000000B9B1621E 00000000BFFFF77C 00000000BFFFF520 00000000B9AD9D5C
00000BFFFF430: 00000000BFFFF450 00000000BE722018 0000000000006000 00000000BFFFF776
00000BFFFF450: 00000000BFFFF490 00000000BEF7445C 00000000BFFFF4D0 00000000BFFFF4BF
00000BFFFF470: 00000000BFFFF4C8 00000000BF0A6050 DCABC77B96778CD3 0000000000000001
00000BFFFF490: 00000000BFFFF520 00000000B9AD9B8C 00000000BFFFF576 00000000BE7DA8D8
00000BFFFF4B0: 9DFDE3B7EF6FA14D 0A0A00E9B0D67733 2DEE7CFFFD25BFFE 0000000000000001
00000BFFFF4D0: 0000000000000019 0000000000000050 0000000000000000 00000000BE7DA928
ASSERT [ArmCpuDxe] /home/buildslave/workspace/96boards-reference-uefi-staging/76/edk2/ArmPkg/Library/DefaultExceptionHandlerLib/AArch64/DefaultExceptionHandler.c(265): ((BOOLEAN)(0==1))

What do you exactly mean by flush ?

I guess you mean overwritting ptable with the stock image (from #76) with:
fastboot flash ptable prm_ptable.img

Do you mean you unsoldered the UFS chip and replaced with a Samsung part???

From the log, UFS device isn’t recognized. I hope you could execute these commands in below by manual.

  1. Don’t launch AndroidFastbootApp by default.
  2. There’s a 10-seconds timeout when UEFI is booting. The press ESC key to enter boot menu to select uefi shell.
  3. Check whether block devices are printed.

indeed it seems UFS device is not initialized properly…

here’s what we get with “failing” board:

map: No mapping found. v2.1
Press ESC in 3 seconds to skip startup.nsh or any other key to continue.
Shell> .60 (EDK II, 0x00010000)
Shell> devices
T D
Y C I
P F A
CTRL E G G #P #D #C Device Name
==== = = = == == === =========================================================
19 R - - 0 1 1 VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(115200,8,N
,1)
1F R - - 0 2 0 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF00000000
00)
20 R - - 0 3 0 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00F037FF00000000
00)
5A D - - 1 2 0 VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(115200,8,N
,1)/VenMsg(7D916D80-5BB1-458C-A48F-E25FDD51EF94)
Shell>

for the record, here’s what we get with known good board:

UEFI Interactive Shell v2.1
EDK II
UEFI v2.60 (EDK II, 0x00010000)
Mapping table
BLK0: Alias(s):
VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF0000000000)/UFS(0x0
,0x0)
BLK1: Alias(s):
VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF0000000000)/UFS(0x0
,0x1)
BLK2: Alias(s):
VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF0000000000)/UFS(0x0
,0x2)
BLK3: Alias(s):
VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF0000000000)/UFS(0x0
,0x2)/HD(1,GPT,F9F21F00-A8D4-5F0E-9746-594869AEC34E,0x100,0x700)
BLK4: Alias(s):
VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF0000000000)/UFS(0x0
,0x3)
BLK5: Alias(s):
VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF0000000000)/UFS(0x0
,0x3)/HD(1,GPT,697C41E0-7A59-4DFA-A9A6-AA43AC5BE684,0x100,0x100)
BLK10: Alias(s):
VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF0000000000)/UFS(0x0
,0x3)/HD(2,GPT,3F5F8C48-4402-4ACE-9058-30BFEA4FA53F,0x200,0xC00)
BLK11: Alias(s):
VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF0000000000)/UFS(0x0
,0x3)/HD(3,GPT,E2F5E2A9-C9B7-4089-9859-4498F1D3EF7E,0xE00,0x600)
BLK12: Alias(s):
VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF0000000000)/UFS(0x0
,0x3)/HD(4,GPT,DC1A888E-F17C-4964-92D6-F8FCC402ED8B,0x1400,0xC00)
BLK13: Alias(s):
VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF0000000000)/UFS(0x0
,0x3)/HD(5,GPT,10CC3268-05F0-4DB2-AA00-707361427FC8,0x2000,0x10000)
BLK14: Alias(s):
VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF0000000000)/UFS(0x0
,0x3)/HD(6,GPT,5D8481D4-C170-4AA8-9438-8743C73EA8F5,0x12000,0x100)
BLK15: Alias(s):
VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF0000000000)/UFS(0x0
,0x3)/HD(7,GPT,D3340696-9B95-4C64-8DF6-E6D4548FBA41,0x12100,0x4000)
BLK16: Alias(s):
VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF0000000000)/UFS(0x0
,0x3)/HD(8,GPT,6E53B0BB-FA7E-4206-B607-5AE699E9F066,0x16100,0x1000)
BLK17: Alias(s):
VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF0000000000)/UFS(0x0
,0x3)/HD(9,GPT,F1E126A6-CEEF-45C1-AACE-29F33AC9CF13,0x17100,0x200)
BLK6: Alias(s):
VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF0000000000)/UFS(0x0
,0x3)/HD(10,GPT,C3E50923-FB85-4153-B925-759614D4DFCD,0x17300,0x125000)
BLK7: Alias(s):
VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF0000000000)/UFS(0x0
,0x3)/HD(11,GPT,919D7080-D71A-4AE1-9227-E4585210C837,0x13C300,0x31000)
BLK8: Alias(s):
VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF0000000000)/UFS(0x0
,0x3)/HD(12,GPT,611EAC6B-BC42-4D72-90AC-418569C8E9B8,0x16D300,0x100)
BLK9: Alias(s):
VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF0000000000)/UFS(0x0
,0x3)/HD(13,GPT,FEA80D9C-F3E3-45D9-AED0-1D06E4ABD77F,0x16D400,0x604800)
Press ESC in 4 seconds to skip startup.nsh or any other key to continue.
Shell>
Shell> devices
T D
Y C I
P F A
CTRL E G G #P #D #C Device Name
==== = = = == == === =========================================================
19 R - - 0 1 1 VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(115200,8,N
,1)
1F R - - 0 4 4 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF00000000
00)
20 R - - 0 3 0 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00F037FF00000000
00)
5A D - - 1 2 0 VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(115200,8,N
,1)/VenMsg(7D916D80-5BB1-458C-A48F-E25FDD51EF94)
5B D - - 1 2 0 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF00000000
00)/UFS(0x0,0x0)
5C D - - 1 2 0 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF00000000
00)/UFS(0x0,0x1)
5D B - - 1 3 1 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF00000000
00)/UFS(0x0,0x2)
5E B - - 1 3 13 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF00000000
00)/UFS(0x0,0x3)
5F D - - 1 1 0 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF00000000
00)/UFS(0x0,0x2)/HD(1,GPT,F9F21F00-A8D4-5F0E-9746-594869AEC34E,0x100,0x700)
60 D - - 1 1 0 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF00000000
00)/UFS(0x0,0x3)/HD(1,GPT,697C41E0-7A59-4DFA-A9A6-AA43AC5BE684,0x100,0x100)
61 D - - 1 1 0 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF00000000
00)/UFS(0x0,0x3)/HD(2,GPT,3F5F8C48-4402-4ACE-9058-30BFEA4FA53F,0x200,0xC00)
62 D - - 1 1 0 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF00000000
00)/UFS(0x0,0x3)/HD(3,GPT,E2F5E2A9-C9B7-4089-9859-4498F1D3EF7E,0xE00,0x600)
63 D - - 1 1 0 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF00000000
00)/UFS(0x0,0x3)/HD(4,GPT,DC1A888E-F17C-4964-92D6-F8FCC402ED8B,0x1400,0xC00)
64 D - - 1 1 0 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF00000000
00)/UFS(0x0,0x3)/HD(5,GPT,10CC3268-05F0-4DB2-AA00-707361427FC8,0x2000,0x10000)
65 D - - 1 1 0 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF00000000
00)/UFS(0x0,0x3)/HD(6,GPT,5D8481D4-C170-4AA8-9438-8743C73EA8F5,0x12000,0x100)
66 D - - 1 1 0 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF00000000
00)/UFS(0x0,0x3)/HD(7,GPT,D3340696-9B95-4C64-8DF6-E6D4548FBA41,0x12100,0x4000)
67 D - - 1 1 0 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF00000000
00)/UFS(0x0,0x3)/HD(8,GPT,6E53B0BB-FA7E-4206-B607-5AE699E9F066,0x16100,0x1000)
68 D - - 1 1 0 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF00000000
00)/UFS(0x0,0x3)/HD(9,GPT,F1E126A6-CEEF-45C1-AACE-29F33AC9CF13,0x17100,0x200)
69 D - - 1 1 0 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF00000000
00)/UFS(0x0,0x3)/HD(10,GPT,C3E50923-FB85-4153-B925-759614D4DFCD,0x17300,0x125000
)
6A D - - 1 1 0 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF00000000
00)/UFS(0x0,0x3)/HD(11,GPT,919D7080-D71A-4AE1-9227-E4585210C837,0x13C300,0x31000
)
6B D - - 1 1 0 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF00000000
00)/UFS(0x0,0x3)/HD(12,GPT,611EAC6B-BC42-4D72-90AC-418569C8E9B8,0x16D300,0x100)
6C D - - 1 1 0 VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF00000000
00)/UFS(0x0,0x3)/HD(13,GPT,FEA80D9C-F3E3-45D9-AED0-1D06E4ABD77F,0x16D400,0x60480
0)
Shell>

OK. Does this issue exist on all your boards with “THG” UFS chip, or parts of boards with “THG” UFS chip?

All three “THG UFS failing” boards show the same problem, with UFS device not mapped in UEFI shell.

On the other hand I have other “THG UFS boards” working properly.

So I guess it’s either a manufacturing problem, or an issue with recovery firmware in UFS init.

Hi, baou
Sorry late for you.
About this question, we may still need to ask you to describe in detail the steps to reproduce, including the code you are building with, and where do other images come from?
In fact, we want to reproduce this problem in the same way as you do and analyze the problem.

Look forward to your reply, we hope to resolve your problems as soon as possible.

Thanks!

Hi,

Thanks for your reply.

1/ The procedure is simple, take a board fresh out of the box
using build https://snapshots.linaro.org/96boards/reference-platform/components/uefi-staging/76/hikey960/debug/ :
./hikey_idt -c config
fastboot flash ptable prm_ptable.img

flashing hangs with the “synchronous exception” error.

2/ Now I just discovered that if I run the tool from https://github.com/96boards-hikey/tools-images-hikey960 with just:
./hikey_idt -c config

Then later after a reboot, and same recovery procedure as 1/ then it’s possible to flash prm_ptable.
This is true for the three failing boards I had.
So likely there’s something done in tools-image-hikey960 putting the UFS device back in a working state …

Regards.

yes, a socket was soldered to swap the parts.

F

Hi,

I now hit the same intermittent issue with “ERROR: BL2: Failed to load image (-2)”
See log below.

It doesn’t happen often though.

Regards.

hikey960 boarid:5301 xloader use UART6
scsysstat_value[0].
clear reset source
last_keypoint0,reboot_type0
secdbg not DCU.
SecDbgVer exit

xloader chipid is: 0x36600110, start at 413ms.
Build Date: Dec 6 2017, 15:31:59
[clock_init] ++
hikey960 [hikey960_clk_init]
hi3660 [clk_setup]
[clock_init] –
storage type is UFS
ufs retry: 6 count v_tx:0 v_rx:0
ufs set v_tx:0 v_rx:0
Hikey960[5301] no need avs_init.
ddr ft:0xf20332a3,mode:1 target:4
UceLdOk
ch 0 gt_errfail, STATUS:0x00000060
ch 0 gdst_errfail, STATUS:0x00000040
ch 1 gt_errfail, STATUS:0x00000060
ch 1 gdst_errfail, STATUS:0x00000040
ch 2 gt_errfail, STATUS:0x00000060
ch 2 gdst_errfail, STATUS:0x00000040
ch 3 gt_errfail, STATUS:0x00000060
ch 3 gdst_errfail, STATUS:0x00000040
timeout
timeout
timeout
timeout
density: 0x0c0c0c0c,0x00000000,0x0c0c0c0c,0x00000000,0x0c0c0c0c,0x00000000,0x0c0c0c0c,0x00000000
ddr info 0x00000306
400M
685M
1067M
C0R,V0x0000002c e:66
C1R,V0x0000002d e:66
C2R,V0x0000002c e:66
C3R,V0x0000002d e:66
C0R,V0x0000002d e:66
C1R,V0x0000002e e:66
C2R,V0x0000002d e:66
C3R,V0x0000002e e:66
C0R,V0x0000002e e:66
C1R,V0x0000002f e:66
C2R,V0x0000002e e:66
C3R,V0x0000002f e:66
C0R,V0x0000002f e:66
C1R,V0x00000030 e:65
C2R,V0x0000002f e:65
C3R,V0x00000030 e:66
1244M
1866M
C2R,V0x00000015 e:113
C0R,V0x00000016 e:66
C1R,V0x00000016 e:193
C2R,V0x00000016 e:66
C3R,V0x00000016 e:113
C0R,V0x00000017 e:66
C1R,V0x00000017 e:66
C2R,V0x00000017 e:66
C3R,V0x00000017 e:66
iomcu_subsys_init
boot_c0 PROFILE 4
NOTICE: BL2: v1.5(release):v1.5-649-g7e8a891f
NOTICE: BL2: Built : 09:26:44, Aug 14 2018
ERROR: BL2: Failed to load image (-2)

this is still using build #76
this happens maybe once out of 10 reboots …

Same to me, it’s because the 2/ has a different config file than1/

tools-images-hikey960-master$ cat config 
./hisi-sec_usb_xloader.img 0x00020000
./hisi-sec_uce_boot.img 0x6A908000
./hisi-sec_fastboot.img 0x1AC00000 

instead of:

uefi_76$ cat config 
hisi-sec_usb_xloader.img 0x00020000
hisi-sec_uce_boot.img 0x6A908000
recovery.bin 0x1AC00000

last row is recovery image instead of fastboot. with this I am able to flash ptable without the exception.

F

Hi @baou,

Maybe this topic can help you. I had the same issue last week :wink:

@baou Do you still have this UFS issue? Hisilicon guys tried the new HiKey960 boards with THG UFS. But they can’t reproduce it with both build #79 and their local build.

Well unfortunately yes we still have a couple of “THG” UFS boards showing the issue. We had to put them appart as they are frankly unusable.
Since then, we got boards with Hynix UFS part and they are working like a charm.
Older boards with Samsung UFS still also work well.

when update the 32GB UFS to 64GB UFS,
after./hikey_idt -c config -p /dev/ttyUSB1
then : fastboot flash ptable prm_ptable.img

I got the same issue as this.

I download the bootload from here:

wget http://snapshots.linaro.org/reference-platform/embedded/morty/hikey960/latest/rpb/bootloader/fip.bin
wget http://snapshots.linaro.org/reference-platform/embedded/morty/hikey960/latest/rpb/bootloader/hikey_idt
wget http://snapshots.linaro.org/reference-platform/embedded/morty/hikey960/latest/rpb/bootloader/sec_uce_boot.img
wget http://snapshots.linaro.org/reference-platform/embedded/morty/hikey960/latest/rpb/bootloader/sec_usb_xloader.img
wget http://snapshots.linaro.org/reference-platform/embedded/morty/hikey960/latest/rpb/bootloader/sec_xloader.img
wget http://snapshots.linaro.org/reference-platform/embedded/morty/hikey960/latest/rpb/bootloader/l-loader.bin
wget http://snapshots.linaro.org/reference-platform/embedded/morty/hikey960/latest/rpb/bootloader/prm_ptable.img

Hi, baou
We did the stress tests internally with “THG” ufs board, but we didn’t reproduce the problem.
So, I wonder if you could send us the problem boards in your hand for further analysis to see if it’s a hardware problem.

You can send it to the following address and addressee:

Huawei Base, No.127, Jinye Road, Xi’an High-Tech Development District, Xi’an, Shaanxi Province, P.R. China

Postal Code:710077

Mobile:02913484901094

Thanks!

Hi,

Pls have a look at Synchronous Exception at 0x0000000000000000 while flashing prm_ptable.img - #9 by baou

It looks like this problem recovers from a specific EDK2 commit.

Thanks & Regards.

The uefi bootloader was updated back in May. Please see details;
https://bugs.96boards.org/show_bug.cgi?id=805