96boards-hikey / tools-images-hikey960

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

Base Firmware files and installation

This sections shows how to install all base firmware components for the HiKey960. Once finished with these instructions, please continue to the HiKey960 documentation landing page to flash an operating system.


Step 1: Materials and Preperations

Materials

Preperations

There are two versions of HiKey960: v1 and v2. One important difference you should know is: v1 is using Jumper (J2001), while v2 is using DIP switch (SW2201). Both are located in the bottom side of board.

There are two versions of HiKey960
v1 uses Jumpers (J2001)
v2 uses DIP Switches (SW2201)

**Both version of switches are located on the bottom of the board.

Jumper / DIP Switch comparison
Jumper Pin 1-2 = DIP switch 1
Jumper Pin 3-4 = DIP switch 2
Jumper Pin 5-6 = DIP switch 3

Step 2: Dependencies

Host Linux Machine

$ sudo dpkg -s modemmanager
$ sudo apt-get remove modemmanager
$ git clone https://github.com/96boards-hikey/tools-images-hikey960
$ cd tools-images-hikey960

Step 3: Enter recovery/forced-download mode on HiKey960:

Name Link / Switch State
Auto Power up Link 1-2 / Switch 1 closed / ON
Recovery Link 3-4 / Switch 2 closed / ON
Fastboot Link 5-6 / Switch 3 open / OFF

Step 4: Flash base firmware

Once again using the terminal on your host machine, execute the following command. Be sure to replace /dev/ttyUSBx with the USB value detected by your machine.

$ sudo ./recovery-flash.sh /dev/ttyUSBx

After it completes, the base firmware will be flashed to the device, this does not mean OS.

The board will then be in fastboot mode.

Step 5: Explore other modes, proceed to OS installation

Name Link / Switch Normal Mode Fastboot Mode Recovery Mode
Auto Power up Link 1-2 / Switch 1 closed / ON closed / ON closed / ON
Recovery Link 3-4 / Switch 2 open / OFF open / OFF closed / ON
Fastboot Link 5-6 / Switch 3 open / OFF closed / ON open / OFF

Troubleshooting