1 Star 0 Fork 1

a-daydream / tools-images-hikey960

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
BSD-2-Clause

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.
Copyright (c) 2014-2016, Linaro Ltd. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

暂无描述 展开 收起
Python 等 2 种语言
BSD-2-Clause
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/a-daydream/tools-images-hikey960.git
git@gitee.com:a-daydream/tools-images-hikey960.git
a-daydream
tools-images-hikey960
tools-images-hikey960
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891