git clone https://github.com/ARM-software/arm-trusted-firmware.git cd arm-trusted-firmware make $NUMJOBS PLAT=sun50i_a64 DEBUG=1 bl31 # U-boot make $NUMJOBS BL31=../arm-trusted-firmware/build/sun50i_a64/debug/bl31.bin orangepi_prim_defconfig make $NUMJOBS BL31=../arm-trusted-firmware/build/sun50i_a64/debug/bl31.bin