<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[hikey 970 开发板刷基础固件和Android系统]]></title><description><![CDATA[<p dir="auto">刷板子的系统主要包括两个方面，一个是基础固件,一个就是系统文件。根据板子上面四个开关状态的不同板子会处在不同的状态。</p>
<p dir="auto"><img src="/assets/uploads/files/1526694883385-screenshot-from-2018-05-19-09-54-20-resized.png" alt="0_1526694882717_Screenshot from 2018-05-19 09-54-20.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">开关位于图中的22的位置<br />
这四个开关的功能分别是</p>
<ol>
<li>自动开机<br />
这个开关如果是On,当板子通电的时候就会自动启动系统。反之则上电之后要按电源键启动。</li>
<li>启动模式<br />
开关是On的时候上电后启动至刷基础固件模式，这时候可以通过程序给板子刷基础固件。当是off的时候系统会从已经安装的bootloader启动。</li>
<li>系统启动模式<br />
当是On的时候系统会以UEFI模式启动，反之则会直接启动系统</li>
<li>扩展功能选择<br />
当是On的时候会使用低速扩展口功能，当是Off的时候会使用蓝牙功能。</li>
</ol>
<p dir="auto">基础固件包含了板子的bootloader等等。如果基础固件刷错了系统就不能再启动了。甚至连fastboot也不能使用，也无法再刷其他系统。正常情况下只是刷系统是不需要刷基础固件的。</p>
<h2>安装基础程序</h2>
<pre><code>sudo apt-get install android-tools-adb
sudo apt-get install android-tools-fastboot
</code></pre>
<h2>基础固件</h2>
<p dir="auto">以下的操作都是在Linux系统环境下完成的</p>
<h3>下载镜像</h3>
<p dir="auto">从96boards的970下载主页下载最新的<a href="https://www.96boards.org/documentation/consumer/hikey970/downloads/aosp.md.html" target="_blank" rel="noopener noreferrer">系统镜像</a>。目前(2018.5.19)只有Android的。这个文件中包含了基础固件和系统镜像。</p>
<p dir="auto">下载完成后你需要解压这个文件。在image文件夹中包含了需要的文件。</p>
<h3>下载镜像工具</h3>
<pre><code class="language-bash">git clone https://github.com/96boards-hikey/tools-images-hikey970
</code></pre>
<p dir="auto">官方的工具有错误，我们需要进行修改后才能用<br />
在 recovery-flash.sh 的第一行</p>
<pre><code class="language-bash">#/bin/bash
</code></pre>
<p dir="auto">改为</p>
<pre><code>#!/bin/bash
</code></pre>
<p dir="auto">将第九行</p>
<pre><code>UEFI_BUILD_PATH=/home/qubo/tools-images-hikey970
</code></pre>
<p dir="auto">改为</p>
<pre><code>UEFI_BUILD_PATH=${PWD}
</code></pre>
<p dir="auto">然后把刚才下载的文件中的<code>image</code>里的所有文件复制到<code>tools-images-hikey970</code>文件夹</p>
<h3>设置开发板启动方式</h3>
<p dir="auto">把板子的开关设置成 On On On Off,然后上电。按照之前的说明，这时候板子处在刷基础固件的状态。<br />
用数据线通过USB把板子和电脑连接起来。</p>
<p dir="auto">正常情况下你会在/dev/ 文件夹下面发现一个ttyUSBX的设备，X是一个数字可能是0,1之类的。确认自己的板子是对应哪个设备。</p>
<h3>刷入固件</h3>
<p dir="auto">运行</p>
<pre><code class="language-bash">sudo ./recovery-flash.sh ttyUSBX
# 如果你的设备是ttyUSB0那么你可以省略第二个参数
</code></pre>
<p dir="auto">程序卡在了 <code>wait for devices</code>可能的原因是</p>
<ol>
<li>你安装过modemmanager，这个程序会给我们的板子发数据导致程序写入失败。解决方法很简单，卸载这个软件</li>
</ol>
<pre><code class="language-bash">sudo apt-get purge modemmanager
</code></pre>
<ol start="2">
<li>你刷入了错误的固件。可能你的固件是从别的地方下载的，也可能是自己编译的。如果是这样那么很有可能是固件自身出了问题。</li>
</ol>
<h2>系统镜像</h2>
<p dir="auto">实际上在刷入上个基础固件的时候会自动的把系统镜像也刷入进去。这时候把板子上的开关设置为On Off On Off就可以启动系统了。第一次启动的时候要多等一会，因为Android要先初始化一下。</p>
<p dir="auto">如果只是要刷系统固件可以只刷入系统固件中的下面几个文件。执行</p>
<pre><code class="language-bash">sudo fastboot flash boot boot.img
sudo fastboot flash cache cache.img
sudo fastboot flash system system.img
sudo fastboot flash userdata  userdata.img
</code></pre>
]]></description><link>http://community.bwbot.org/topic/462/hikey-970-开发板刷基础固件和android系统</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 06:37:14 GMT</lastBuildDate><atom:link href="http://community.bwbot.org/topic/462.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 19 May 2018 02:38:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to hikey 970 开发板刷基础固件和Android系统 on Wed, 13 Jun 2018 01:00:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.bwbot.org/uid/603">@how0723</a> 普通的USB摄像头就可以</p>
]]></description><link>http://community.bwbot.org/post/660</link><guid isPermaLink="true">http://community.bwbot.org/post/660</guid><dc:creator><![CDATA[weijiz]]></dc:creator><pubDate>Wed, 13 Jun 2018 01:00:20 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 开发板刷基础固件和Android系统 on Tue, 12 Jun 2018 09:23:20 GMT]]></title><description><![CDATA[<p dir="auto">请问hikey970支持什么摄像头？？？</p>
]]></description><link>http://community.bwbot.org/post/659</link><guid isPermaLink="true">http://community.bwbot.org/post/659</guid><dc:creator><![CDATA[how0723]]></dc:creator><pubDate>Tue, 12 Jun 2018 09:23:20 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 开发板刷基础固件和Android系统 on Fri, 08 Jun 2018 02:28:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.bwbot.org/uid/603">@how0723</a> 已经有了我今天才找到，可以参照这里 http://smartfire.cn/thread-748-1-1.html<br />
不过我还没测试。</p>
]]></description><link>http://community.bwbot.org/post/653</link><guid isPermaLink="true">http://community.bwbot.org/post/653</guid><dc:creator><![CDATA[weijiz]]></dc:creator><pubDate>Fri, 08 Jun 2018 02:28:07 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 开发板刷基础固件和Android系统 on Fri, 08 Jun 2018 01:59:20 GMT]]></title><description><![CDATA[<p dir="auto">我的hikey970已经能启动android系统了，但是debian系统的镜像什么时候放出来呢？</p>
]]></description><link>http://community.bwbot.org/post/652</link><guid isPermaLink="true">http://community.bwbot.org/post/652</guid><dc:creator><![CDATA[how0723]]></dc:creator><pubDate>Fri, 08 Jun 2018 01:59:20 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 开发板刷基础固件和Android系统 on Thu, 07 Jun 2018 03:02:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.bwbot.org/uid/603">@how0723</a> 有预装的Android系统。第一次上电要等一段时间。还要注意那几个开关的位置要设置成On Off On Off</p>
]]></description><link>http://community.bwbot.org/post/648</link><guid isPermaLink="true">http://community.bwbot.org/post/648</guid><dc:creator><![CDATA[weijiz]]></dc:creator><pubDate>Thu, 07 Jun 2018 03:02:11 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 开发板刷基础固件和Android系统 on Thu, 07 Jun 2018 02:45:20 GMT]]></title><description><![CDATA[<p dir="auto">hikey 970里面预装有系统吗？我上电后，屏幕上什么都没有？为什么？</p>
]]></description><link>http://community.bwbot.org/post/647</link><guid isPermaLink="true">http://community.bwbot.org/post/647</guid><dc:creator><![CDATA[how0723]]></dc:creator><pubDate>Thu, 07 Jun 2018 02:45:20 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 开发板刷基础固件和Android系统 on Mon, 04 Jun 2018 06:56:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.bwbot.org/uid/600">@mzh</a> 现在装不了linux的</p>
]]></description><link>http://community.bwbot.org/post/646</link><guid isPermaLink="true">http://community.bwbot.org/post/646</guid><dc:creator><![CDATA[Yangoogle]]></dc:creator><pubDate>Mon, 04 Jun 2018 06:56:39 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 开发板刷基础固件和Android系统 on Sat, 02 Jun 2018 13:48:35 GMT]]></title><description><![CDATA[<p dir="auto">现在有Linux的镜像么？说明书上说是pre install debian，结果板子里带的是Android</p>
]]></description><link>http://community.bwbot.org/post/645</link><guid isPermaLink="true">http://community.bwbot.org/post/645</guid><dc:creator><![CDATA[mzh]]></dc:creator><pubDate>Sat, 02 Jun 2018 13:48:35 GMT</pubDate></item></channel></rss>