Fastboot does not start while recovering from bad flash(es)

Is it possible to use hikey-idt to load boot device tree and ptable images?

Why? … because…
I was experimenting with UEFI boot trust zone and about everything when suddenly I noticed adb did not work and fastboot did not work either. No problems I thought, I just to a recovery flash and I will be back again in no time. This was not the case.

The board boots up in recovery mode and it is possible to load images with hikey_idt but still

2395	0|+2396	0|+2397	0|+2398	0|+2399	0|+2400	0|+2401	0|+2402	0|+2403	0|+2404	0|+2405	0|+2406	0|+2407	0|+2408	0|+2409	0|+2410	0|+2411	0|+2412	0|+2413	0|+2414	0|+2415	0|+2416	0|+2417	0|+2418	0|+2419	0|+2420	0|+2421	0|+2422	0|+2423	0|+2424	0|+2425	0|+2426	0|+2427	0|+2428	0|+2429	0|+2430	0|+2431	0|+2432	0|+2433	0|+2434	0|+2435	0|+2436	0|+2437	0|+2438	0|+2439	0|+2440	0|+2441	0|+2442	0|+2443	0|+2444	0|+2445	0|+2446	0|+2447	0|+2448	0|+2449	0|+2450	0|+2451	0|+2452	0|+2453	0|+2454	0|+2455	0|+2456	0|+2457	0|+2458	0|+2459	0|+2460	0|+2461	0|+2462	0|+2463	0|+2464	0|+2465	0|+2466	0|+2467	0|+2468	0|+2469	0|+2470	0|+2471	0|+2472	0|+2473	0|+2474	0|+2475	0|+2476	0|+2477	0|+2478	0|+2479	0|+2480	0|+2481	0|+2482	0|+2483	0|+2484	0|+2485	0|+2486	0|+2487	0|+2488	0|+2489	0|+2490	0|+2491	0|+2492	0|+2493	0|+2494	0|+2495	0|+2496	0|+2497	0|+2498	0|+2499	0|+2500	0|+2501	0|+2502	0|+2503	0|+2504	0|+2505	0|+2506	0|+2507	0|+2508	0|+2509	0|+2510	0|+2511	0|+2512	0|+2513	0|+2514	0|+2515	0|+2516	0|+2517	0|+2518	0|+2519	0|+2520	0|+2521	0|+2522	0|+2523	0|+2524	0|+2525	0|+2526	0|+2527	0|+2528	0|+2529	0|+2530	0|+2531	0|+2532	0|+2533	0|+2534	0|+2535	0|+2536	0|+2537	0|+2538	0|+2539	0|+2540	0|+2541	0|+2542	0|+2543	0|+2544	0|+2545	0|+2546	0|+2547	0|+2548	0|+2549	0|+2550	0|+2551	0|+2552	0|+2553	0|+2554	0|+2555	0|+2556	0|+2557	0|+2558	0|+2559	0|+2560	0|+2561	0|+2562	0|+2563	0|+2564	0|+2565	0|+2566	0|+2567	0|+2568	0|+2569	0|+2570	0|+2571	0|+2572	0|+2573	0|+2574	0|+2575	0|+2576	0|+2577	0|+2578	0|+2579	0|+2580	0|+2581	0|+2582	0|+2583	0|+2584	0|+2585	0|+2586	0|+2587	0|+2588	0|+2589	0|+2590	0|+2591	0|+2592	0|+2593	0|+2594	0|+2595	0|+2596	0|+2597	0|+2598	0|+2599	0|+2600	0|+2601	0|+2602	0|+2603	0|+2604	0|+2605	0|+2606	0|+2607	0|+2608	0|+2609	0|+2610	0|+2611	0|+2612	0|+2613	0|+2614	0|+2615	0|+2616	0|+2617	0|+2618	0|+2619	0|+2620	0|+2621	0|+2622	0|+2623	0|+2624	0|+2625	0|+2626	0|+2627	0|+2628	0|+2629	0|+2630	0|+2631	0|+2632	0|+2633	0|+2634	0|+2635	0|+2636	0|+2637	0|+2638	0|+2639	0|+2640	0|+2641	0|+2642	0|+2643	0|+2644	0|+2645	0|+2646	0|+2647	0|+2648	0|+2649	0|+2650	0|+2651	0|+2652	0|+2653	0|+2654	0|+2655	0|+2656	0|+2657	0|+2658	0|+2659	0|+2660	0|+2661	0|+2662	0|+2663	0|+2664	0|+2665	0|+2666	0|+2667	0|+2668	0|+2669	0|+2670	0|+2671	0|+2672	0|+2673	0|+2674	0|+2675	0|+2676	0|+2677	0|+2678	0|+2679	0|+2680	0|+2681	0|+2682	0|+2683	0|+2684	0|+2685	0|+2686	0|+2687	0|+2688	0|+2689	0|+2690	0|+2691	0|+2692	0|+2693	0|+2694	0|+2695	0|+2696	0|+2697	0|+2698	0|+2699	0|+2700	0|+2701	0|+2702	0|+2703	0|+2704	0|+2705	0|+2706	0|+2707	0|+2708	0|+2709	0|+2710	0|+2711	0|+2712	0|+2713	0|+2714	0|+2715	0|+2716	0|+2717	0|+2718	0|+2719	0|+2720	0|+2721	0|+2722	0|+2723	0|+2724	0|+2725	0|+2726	0|+2727	0|+2728	0|+2729	0|+2730	0|+2731	0|+2732	0|+2733	0|+2734	0|+2735	0|+2736	0|+2737	0|+2738	0|+2739	0|+2740	0|+2741	0|+2742	0|+2743	0|+2744	0|+2745	0|+2746	0|+2747	0|+2748	0|+2749	0|+2750	0|+2751	0|+2752	0|+2753	0|+2754	0|+2755	0|+2756	0|+2757	0|+2758	0|+2759	0|+2760	0|+2761	0|+2762	0|+2763	0|+2764	0|+2765	0|+2766	0|+2767	0|+2768	0|+2769	0|+2770	0|+2771	0|+2772	0|+2773	0|+2774	0|+2775	0|+2776	0|+2777	0|+2778	0|+2779	0|+2780	0|+2781	0|+2782	0|+2783	0|+2784	0|+2785	0|+2786	0|+2787	0|+2788	0|+2789	0|+2790	0|+2791	0|+2792	0|+2793	0|+2794	0|+2795	0|+2796	0|+2797	0|+2798	0|+2799	0|+2800	0|+2801	0|+2802	0|+2803	0|+2804	0|+2805	0|+2806	0|+2807	0|+2808	0|+2809	0|+2810	0|+2811	0|+2812	0|+2813	0|+2814	0|+2815	0|+2816	0|+2817	0|+2818	0|+2819	0|+2820	0|+2821	0|+2822	0|+2823	0|+2824	0|+2825	0|+2826	0|+2827	0|+2828	0|+2829	0|+2830	0|+2831	0|+2832	0|+2833	0|+2834	0|+2835	0|+2836	0|+2837	0|+2838	0|+2839	0|+2840	0|+2841	0|+2842	0|+2843	0|+2844	0|+2845	0|+2846	0|+2847	0|+2848	0|+2849	0|+2850	0|+2851	0|+2852	0|+2853	0|+2854	0|+2855	0|+2856	0|+2857	0|+2858	0|+2859	0|+2860	0|+2861	0|+2862	0|+2863	0|+2864	0|+2865	0|+2866	0|+2867	0|+2868	0|+2869	0|+2870	0|+2871	0|+2872	0|+2873	0|+2874	0|+2875	0|+2876	0|+2877	0|+2878	0|+2879	0|+2880	0|+2881	0|+2882	0|+2883	0|+2884	0|+2885	0|+2886	0|+2887	0|+2888	0|+2889	0|+2890	0|+2891	0|+2892	0|+2893	0|+2894	0|+2895	0|+2896	0|+2897	0|+2898	0|+2899	0|+2900	0|+2901	0|+2902	0|+2903	0|+2904	0|+2905	0|+2906	0|+2907	0|+2908	0|+2909	0|+2910	0|+2911	0|+2912	0|+2913	0|+2914	0|+2915	0|+2916	0|+2917	0|+2918	0|+2919	0|+2920	0|+2921	0|+2922	0|+2923	0|+2924	0|+2925	0|+2926	0|+2927	0|+2928	0|+2929	0|+2930	0|+2931	0|+2932	0|+2933	0|+2934	0|+2935	0|+2936	0|+2937	0|+2938	0|+2939	0|+2940	0|+2941	0|+2942	0|+2943	0|+2944	0|+2945	0|+2946	0|+2947	0|+2948	0|+2949	0|+2950	0|+2951	0|+2952	0|+2953	0|+2954	0|+2955	0|+2956	0|+2957	0|+2958	0|+2959	0|+2960	0|+2961	0|+2962	0|+2963	0|+2964	0|+2965	0|+2966	0|+2967	0|+2968	0|+2969	0|+2970	0|+2971	0|+2972	0|+2973	0|+2974	0|+2975	0|+2976	0|+2977	0|+2978	0|+2979	0|+2980	0|+2981	0|+2982	0|+2983	0|+2984	0|+2985	0|+2986	0|+2987	0|+2988	0|+2989	0|+2990	0|+2991	0|+2992	0|+2993	0|+2994	0|+2995	0|+2996	0|+2997	0|+2998	0|+2999	0|+3000	0|+3001	0|+3002	0|+3003	0|+3004	0|+3005	0|+3006	0|+3007	0|+3008	0|+3009	0|+3010	0|+3011	0|+3012	0|+3013	0|+3014	0|+3015	0|+3016	0|+3017	0|+3018	0|+3019	0|+3020	0|+3021	0|+3022	0|+3023	0|+3024	0|+3025	0|+3026	0|+3027	0|+3028	0|+3029	0|+3030	0|+3031	0|+3032	0|+3033	0|+3034	0|+3035	0|+3036	0|+3037	0|+3038	0|+3039	0|+3040	0|+3041	0|+3042	0|+3043	0|+3044	0|+3045	0|+3046	0|+3047	0|+3048	0|+3049	0|+3050	0|+3051	0|+3052	0|+3053	0|+3054	0|+3055	0|+3056	0|+3057	0|+3058	0|+3059	0|+3060	0|+3061	0|+3062	0|+3063	0|+3064	0|+3065	0|+3066	0|+3067	0|+3068	0|+3069	0|+3070	0|+3071	0|+3072	0|+3073	0|+3074	0|+3075	0|+3076	0|+3077	0|+3078	0|+3079	0|+3080	0|+3081	0|+3082	0|+3083	0|+3084	0|+3085	0|+3086	0|+3087	0|+3088	0|+3089	0|+3090	0|+3091	0|+3092	0|+3093	0|+3094	0|+3095	0|+3096	0|+3097	0|+3098	0|+3099	0|+3100	0|+3101	0|+3102	0|+3103	0|+3104	0|+3105	0|+3106	0|+3107	0|+3108	0|+3109	0|+3110	0|+3111	0|+3112	0|+3113	0|+3114	0|+3115	0|+3116	0|+3117	0|+3118	0|+3119	0|+3120	0|+3121	0|+3122	0|+3123	0|+3124	0|+3125	0|+3126	0|+3127	0|+3128	0|+3129	0|+3130	0|+3131	0|+3132	0|+3133	0|+3134	0|+3135	0|+3136	0|+3137	0|+3138	0|+3139	0|+3140	0|+3141	0|+3142	0|+3143	0|+3144	0|+3145	0|+3146	0|+3147	0|+3148	0|+3149	0|+3150	0|+3151	0|+3152	0|+3153	0|+3154	0|+3155	0|+3156	0|+3157	0|+3158	0|+3159	0|+3160	0|+3161	0|+3162	0|+3163	0|+3164	0|+3165	0|+3166	0|+3167	0|+3168	0|+3169	0|+3170	0|+3171	0|+3172	0|+3173	0|+3174	0|+3175	0|+3176	0|+3177	0|+3178	0|+3179	0|+3180	0|+3181	0|+3182	0|+3183	0|+3184	0|+3185	0|+3186	0|+3187	0|+3188	0|+3189	0|+3190	0|+3191	0|+3192	0|+3193	0|+3194	0|+3195	0|+3196	0|+3197	0|+3198	0|+3199	0|+3200	0|+3201	0|+3202	0|+3203	0|+3204	0|+3205	0|+3206	0|+3207	0|+3208	0|+3209	0|+3210	0|+3211	0|+3212	0|+3213	0|+3214	0|+3215	0|+3216	0|+3217	0|+3218	0|+3219	0|+3220	0|+3221	0|+3222	0|+3223	0|+3224	0|+3225	0|+3226	0|+3227	0|+3228	0|+3229	0|+3230	0|+3231	0|+3232	0|+3233	0|+3234	0|+3235	0|+3236	0|+3237	0|+3238	0|+3239	0|+3240	0|+3241	0|+3242	0|+3243	0|+3244	0|+3245	0|+3246	0|+3247	0|+3248	0|+3249	0|+3250	0|+3251	0|+3252	0|+3253	0|+3254	0|+3255	0|+3256	0|+3257	0|+3258	0|+3259	0|+3260	0|+3261	0|+3262	0|+3263	0|+3264	0|+3265	0|+3266	0|+3267	0|+3268	0|+3269	0|+3270	0|+3271	0|+3272	0|+3273	0|+3274	0|+3275	0|+3276	0|+3277	0|+3278	0|+3279	0|+3280	0|+3281	0|+3282	0|+3283	0|+3284	0|+3285	0|+3286	0|+3287	0|+3288	0|+3289	0|+3290	0|+3291	0|+3292	0|+3293	0|+3294	0|+3295	0|+3296	0|+3297	0|+3298	0|+3299	0|+3300	0|+3301	0|+3302	0|+3303	0|+3304	0|+3305	0|+3306	0|+3307	0|+3308	0|+3309	0|+3310	0|+3311	0|+3312	0|+3313	0|+3314	0|+3315	0|+3316	0|+3317	0|+3318	0|+3319	0|+3320	0|+3321	0|+3322	0|+3323	0|+3324	0|+3325	0|+3326	0|+3327	0|+3328	0|+3329	0|+3330	0|+3331	0|+3332	0|+3333	0|+3334	0|+3335	0|+3336	0|+3337	0|+3338	0|+3339	0|+3340	0|+3341	0|+3342	0|+3343	0|+3344	0|+3345	0|+3346	0|+3347	0|+3348	0|+3349	0|+3350	0|
[USBI]expected:3430400, received:3430400 (bytes)
[USBI]download suc
iomcu_subsys_init
boot_c0 PROFILE 4
slave0 irq0:0x00000004
slave1 irq0:0x00000004
main:     ******** Fastboot for Kirin *****************
main:   ******** Build Date: Apr  8 2017, 15:34:11 **
main: ******** Fastboot start at 34688 ms **********

main: print soc_id computed in xloader phase, is below:
main: 00000000  main: 00000000  main: 00000000  main: 00000000  main: 
main: 00000000  main: 00000000  main: 00000000  main: 00000000  main: 
led_alwayson: can't get dtb operators
bbox: bbox_register_module_ops success.
bfm: : >>>>>enter bfm_init
bfm: : [disable_boot_fail_system] boot_fail_system state is 0
clock: PLL Stat
clock: PLL2 ctrl0=0x04909604,ctrl1=0x02000000
clock: PLL2 acpu en_stat:0x00000008, acpu gt_stat:0x00040000
clock: PLL2 final en_stat:0x00100000, final gt_stat:0x00020000
clock: PLL3 ctrl0=0x04904005,ctrl1=0x07555555
clock: PLL3 acpu en_stat:0x00000000, acpu gt_stat:0x00000000
clock: PLL3 final en_stat:0x00200000, final gt_stat:0x00040000
clock: clock init OK
ufs: ufs start on platform[36600110]ufs: ufs current mode: 0x00000011
ufs: ufs current gear: 0x00000003
ufs: ufs mphy reg 0x4A = 0x00000000
ufs: bUD0BaseOffset: 0x00000010, bUDConfigPLength: 0x00000010
ufs: UFS device manufacturerid = 0x000001ad
ufs: UFS device: H****
bfm: : >>>>>enter set_boot_stage
bfm: : bootStageCode is 0x02000001, mntnStageCode is 27
bfm: : <<<<<exit set_boot_stage.
storage: emmc_ops invalid
storage: storage type is UFS
bfm: : bfm system is disabled!
storage: emmc_init: BL2_STAGE_EMMC_OK is 33554435!
bfm: : >>>>>enter set_boot_stage
bfm: : bootStageCode is 0x02000003, mntnStageCode is 29
bfm: : <<<<<exit set_boot_stage.
bfm: : >>>>>enter set_boot_stage
bfm: : bootStageCode is 0x02010001, mntnStageCode is 30
bfm: : <<<<<exit set_boot_stage.
ddr: current logic version is lpddr4 verison !!!
ddr: ddr size is 4096MB
bbox: register modid [0x81fff200]
bbox: register exception succeed.
bbox: register modid [0x81fff202]
bbox: register exception succeed.
bbox: register modid [0x81fff20b]
bbox: register exception succeed.
watchdog: Enable watchdog start
boardid: [BDID]boardid: 5301 
gpio: hikey960_gpio_init: GPIO 46 202 206 ouput low, GPIO 219 pullup.
load_kernel: register_update_dt_ops for usb!
secureboot: Enter secboot_init: set pll efuse flag!
secureboot: pll efuse flag has been succ set!bbox: register modid [0x81fff20a]
bbox: register exception succeed.
secureboot: SECBOOT_DEV_INFO_DADDR = 0x1d7fff00, SECBOOT_DEV_INFO_SIZE = 0x00000040!
dtimage: number of dtb = 1
dtimage: =========uncompress_dtb_addr=[0x16f00000],====vrl_addr=[0x1b0e64e0]====
dtimage: [device_tree_get_dtb_entry:215] Verify Not Exist
dtimage: fdt_init success!
dtimage: -----can not find hisilicon,fastboot node by compatible 
dtimage: -----can not find hisilicon,fastboot node by compatible 
load_kernel: register_update_dt_ops for led!
reboot_reason: scsysstat_value is 0x00000000
pmu: can not find fastboot,hisi-pmic-mntn node1 
pmu: pmu_property_read_u32 fastboot,hisi-pmic-mntn, hisilicon,data-width, failed
pmu: pmu_mntn_record_dts_parse failed!
bbox: save_tempbuffer_to_loop_area():727:storage_read fail[-1]
reboot_reason: reboot_reason is AP_S_COLDBOOT
reboot_reason: clear_reset_source in!
reboot_reason: tmp =0x0effcc70
dtimage: -----can not find fastboot,charger node by compatible 
power: get_chargerIC_type: getU32byCompatible fastboot,charger, hw_charger_type failed!
dtimage: -----can not find fastboot,coul node by compatible 
power: get_coul_type: get  coul_type failed!
power: get  coul_type failed!
power: hi6421v500 register coulometer ops fail!
dtimage: -----can not find huawei,hisi_bci_battery node by compatible 
no_module: [hi6523_get_config_info]: can't get battery board type
dtimage: -----can not find fastboot,charger node by compatible 
no_module: get hi6523 i2c reg num fail!
dtimage: -----can not find fastboot,charger node by compatible 
no_module: [hi6523_start_charging_by_init_params]: get ichrg_pre_limit fail
dtimage: -----can not find huawei,hi6523_charger node by compatible 
no_module: [hi6523_start_charging_by_init_params]: get reg fail
dtimage: -----can not find fastboot,buckboost node by compatible 
max77813: get_buckboost_type: getU32byCompatible fastboot,buckboost, hw_buckboost_type failed!
max77813: get dts buckboost type fail!
cpu_buck: pmu type3 not registered
cpu_buck: Bad cpu buck info:1
bbox: Could not find path /rdr
bbox: Could not find status property.
mntn: tele_mntn_stat_point_init: can not bbox_ops !
dtimage: -----can not find hisilicon,fastboot node by compatible 
mntn: [tele_mntn_m3_wdt_config]: getU32byCompatible(hisilicon,fastboot, lpm3-board-type) error!
mntn: mntn init
mntndump: enable_reserved_ddr_dts: Could not find path /reserved-memory/mntndump
mntndump: mntn_dump_init failed
mntndump: get_mntn_dump_addr:mid[2] is not init
mntn: kernel dump is not available
mntn: reboot_type is 0
mntn: 
no need to dump_mem...
mntn: enter [registe_pstore_ramoops_dump]
mntndump: get_mntn_dump_addr:mid[5] is not init
mntn: no mdump_pstore info
mntn: M3_RDR_SYS_CONTEXT_BASE_ADDR is null
uart_cfg: [MNTN]:Could not find node.
uart_cfg: set_default_uart_cfg: uart_from_dts_read failed!
uart_cfg: module_idx 2, uart_no 6 
uart_cfg: odule_idx 11, uart_no 15 
uart_cfg: module_idx 2, uart_no 6 
uart_cfg: getU32byCompatible(hisilicon,fastboot, uart-board-type) error!
uart_cfg: boardid: 5301 use uart port: 6
pasr: in pasr_init-43 ...ddr: current logic version is lpddr4 verison !!!
ddr: current logic version is lpddr4 verison !!!
dtimage: -----can not find huawei,lcd_panel_type node by compatible 
display: [display]get_detect_type: huawei,lcd_panel_type: get detect_type fail
display: lcd:no lcd detect_type
no_module: [LOGO] get_logo_buffer_from_dtsi: Could not find path /reserved-memory/logo-buffer.
no_module: [LOGO] logo_init: logo init failed!!! used the default fb addr.
display: [display]jdi_otm2503b_panel_init: lcd type is not JDI_OTM2503B_5P5_LCD.
display: [display]jdi_nt35696_panel_init: lcd type is not JDI_NT35696_5P5_LCD.
dtimage: -----can not find huawei,lcd_panel_type node by compatible 
display: [display]get_dts_value: can not get huawei,lcd_panel_type, bl_bus_id=4!
dtimage: -----can not find ti,lm36923 node by compatible 
display: [display]get_dts_value: can not get ti,lm36923, support=0!
display: get lm36923_support failed!
bfm: : >>>>>enter set_boot_stage
bfm: : bootStageCode is 0x02010002, mntnStageCode is 31
bfm: : <<<<<exit set_boot_stage.
Audio_codec: [audio]:Could not find "hisilicon,codec-controller" node.
load_teeos: can not find fb node fingerprint
load_teeos: failed to find fb node ese_config
display: [display]hisi_get_disp_info: hisifb_data is NULL pointer, return!
bfm: : >>>>>enter set_boot_stage
bfm: : bootStageCode is 0x02010003, mntnStageCode is 32
bfm: : <<<<<exit set_boot_stage.
watchdog: Disable watchdog start
bfm: : [disable_boot_fail_system] boot_fail_system state is 0
rescue: ^^^^^^^^^[rescue_init] ok !
usbloader: bootmode is 4
usb: [USBFINFO]USB RESET
usb: [USBFINFO]USB CONNDONE, superspeed

but fast boot can still not be detected by the PC however
[89733.583457] usb 1-2: Device not responding to setup address.
[89733.791434] usb 1-2: Device not responding to setup address.
[89733.999264] usb 1-2: device not accepting address 113, error -71
[89733.999357] usb usb1-port2: unable to enumerate USB device

So I suspect there is something still present in flash from those which is preventing bootloader to function as it should … so is it possible to use hikey_idt to load for instance a working device tree

From the log, I don’t see the the ‘recovery.bin’ image has been loaded and boot up. The ‘recovery.bin’ image is essentially a UEFI image and it should support fastboot protocol. Could you confirm which recovery binaries you are using? E.g., the latest recovery binaries are located in [1].

I don’t quite understand what’s your meaning for loading device tree at here. Do you want to directly use hikey_idt to load dtb and kernel image so can directly boot the system? If you are asking for this, based on the previous experience, this is not suggested. I think hikey_idt can load images if you define the load image name and load address in the file config [2], but I don’t this can work for two reasons: it cannot comply with ARMv8 booting sequence, and it might miss SoC specific registers setting.

[1] http://snapshots.linaro.org/reference-platform/components/uefi-staging/latest/hikey960/release/
[2] http://snapshots.linaro.org/reference-platform/components/uefi-staging/latest/hikey960/release/config

Aha thanks I was trying to remove the UEFI and get back to the factory state. This explains I still have some UEFI stuck in the system.

There are some error prints about missing device tree, so it seemed plausible. My ultimate goal is to be able to re-flash with my intended images again.

I tested with latest boot images [1]; the hikey-idt loads the images and recovery.bin will run. At my side, the switch is set with recovery mode (switch 1 & 2 to ON state and switch 3 to OFF state), recovery.bin will not automatically run into fastboot mode so I need to wait in the console and input ‘f’ to let recovery.bin run into fastboot mode. Finally, this can flash the sequential images (prm_ptable.img/hisi-sec_xloader.img/l-loader.bin/fip.bin).

[1] http://snapshots.linaro.org/reference-platform/components/uefi-staging/latest/hikey960/release/

I think I reach the same point but after loading fast boot I get this in console

[Bds]Booting Android Fastboot
add-symbol-file /home/fredrik/hikey_security/edk2/Build/HiKey960/DEBUG_CLANG38/AARCH64/EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp/DEBUG/AndroidFastbootApp.dll 0xBA3D0000
Loading driver at 0x000BA3CF000 EntryPoint=0x000BA3D0000 AndroidFastbootApp.efi

and in my PC dmesg I see

[196738.243754] usb 1-2: new full-speed USB device number 24 using xhci_hcd
[196738.371788] usb 1-2: device descriptor read/64, error -71
[196738.607792] usb 1-2: device descriptor read/64, error -71
[196738.843755] usb 1-2: new full-speed USB device number 25 using xhci_hcd
[196738.971793] usb 1-2: device descriptor read/64, error -71
[196739.207794] usb 1-2: device descriptor read/64, error -71
[196739.315805] usb usb1-port2: attempt power cycle
[196739.967780] usb 1-2: new full-speed USB device number 26 using xhci_hcd
[196739.967965] usb 1-2: Device not responding to setup address.
[196740.175946] usb 1-2: Device not responding to setup address.
[196740.383767] usb 1-2: device not accepting address 26, error -71
[196740.511779] usb 1-2: new full-speed USB device number 27 using xhci_hcd
[196740.511966] usb 1-2: Device not responding to setup address.
[196740.719960] usb 1-2: Device not responding to setup address.
[196740.927769] usb 1-2: device not accepting address 27, error -71
[196740.927841] usb usb1-port2: unable to enumerate USB device

Something is very broken in my setup.

Thanks for the pointers for some reason with this board now unplug and replug the usb cable gets the enumeration working for both adb and fastboot - but still very strange.