96boards-hikey / tools-images-hikey960

Tools and images for HiKey960
BSD 2-Clause "Simplified" License
53 stars 47 forks source link

HiKey fastboot mode #34

Closed elkoniu closed 5 years ago

elkoniu commented 6 years ago

If I restore HiKey960 using: $sudo ./hikey_idt -c config -p /dev/ttyUSB1 I will have fastboot available without power cycle after this steep. Another option is to set switches (board v2) to ON-OFF-ON and then power cycle. This will also trigger fastboot access to board.

What is difference between those two situations? If fastboot enabled after usage of hikey_idt gives some more access to memory and it is "more powerfull" ?

When I am putting new OP-TEE or AOSP build if there is any difference "which fastboot" I will use?

hzhuang1 commented 6 years ago

Both of them are fastboot mode. And there's no difference.

In normal boot mode, you could input "ENTER" key on serial console to exit fastboot. Then UEFI will try to boot after exiting fastboot. In recovery mode, UEFI shouldn't boot kernel. If the user sticks to boot kernel, he will meet kernel hang.

elkoniu commented 6 years ago

So there is no difference if I flash new images (via fastboot) directly after board recovery via hikey_idt, or after power cycle with correct set of switches (ON-OFF-ON). I thought that crucial for the board recovery process is to use "this fastboot" enabled after hikey_idt command to put everything in right type of memory.

hzhuang1 commented 6 years ago

No. hikey_idt can't flush anything. It just download images into board RAM. Only UEFI could flash images via fastboot mode.

elkoniu commented 5 years ago

Thank you for answers:)