GithubHelp home page GithubHelp logo

zer0w0lf / tools-images-hikey960 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 96boards-hikey/tools-images-hikey960

0.0 1.0 0.0 7.5 MB

Tools and images for HiKey960

License: BSD 2-Clause "Simplified" License

Shell 27.11% Python 72.89%

tools-images-hikey960's Introduction

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: Material and Preperations
  • Step 2: Dependencies
  • Step 3: Enter recovery/forced-download mode on HiKey960
  • Step 4: Flash Base Firmware
  • Step 5: Explore other modes, proceed to OS installation
  • Troubleshooting

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
  • To boot into fastboot mode everytime set switch 1 & 3 to ON state and switch 2 to OFF state.
  • To boot into fastboot mode at every alternate rebooot set switch 1 to ON and switch 2 & 3 to OFF state.
  • To boot into recovery mode set switch 1 & 2 to ON state and switch 3 to OFF state

Step 2: Dependencies

Host Linux Machine

  • Remove modemmanager. At least in Ubuntu 14.04 and 16.04 verions, we found a conflicting issue if modemmanager is installed and active. Modemmanager monitors ttyUSBx's incoming data, when it reads some given pattern, it will send some bytes back into the tty as response. And those bytes sent by modemmanager can make board side recovery flashing tool confuse and fail. Solution is to uninstall this service. If you have a doubt whether you are safe to remove it or not, double confirm here: ModemManager homepage.
$ sudo dpkg -s modemmanager
$ sudo apt-get remove modemmanager
  • Android SDK “Platform-Tools” for Linux can be downloaded here
  • Use terminal to clone this repository into desired folder and cd into tools-images-hikey960
$ git clone https://github.com/96boards-hikey/tools-images-hikey960
$ cd tools-images-hikey960

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

  • Remove power from the board
  • Change Jumper/DIP switch settings, to enter recovery/forced-download mode:
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
  • Apply power to the board using 96Boards compliant power supply
  • Insert USB Type-C cable (OTG port) to the board, and connect the other end to your Linux PC
  • Check whether there is a device node "/dev/ttyUSBx". If there is, it means your PC has detected the target board; If there is not, try to repeat previous steps.

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

  • If recovery script "./recovery-flash.sh /dev/ttyUSBx" fail to run to completion and you see "< waiting for any device >" in a loop, then try uninstalling modemmanager from your host machine. The script will work after that. Don't forget to install modemmanager back after recovery.
  • If you run into trouble, see the README-technical.md file in this directory.

tools-images-hikey960's People

Contributors

docularxu avatar fboudra avatar hzhuang1 avatar johnstultz-work avatar ric96 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.