<?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 debian 镜像（有opencl 和 tensorflow）]]></title><description><![CDATA[<p dir="auto">最近(2018.8.30) LeMaker发布了一个新的 Hikey 970 debian镜像。此镜像增加了HDMI支持，稳定性也提高了。同时增加了OpenCL和Tensorflow（只有python3.5）支持。此 Tensorflow 应该是进行了优化的，具体的是不是用到了NPU还不确定。经过我自己的测试此 Tensorflow 的速度比我自己安装的速度要快一倍。但是此镜像仍然不支持自带的蓝牙。</p>
<p dir="auto">下面是安装和使用方法</p>
<h3>下载镜像</h3>
<p dir="auto"><a href="https://www.bwbot.org/s/sgRMKZ" target="_blank" rel="noopener noreferrer">镜像下载链接</a></p>
<p dir="auto">从上面链接下载镜像并解压</p>
<pre><code class="language-bash">tar -xzvf hikey970-lebian-9.tar.gz
</code></pre>
<h3>刷入镜像</h3>
<p dir="auto">把hikey 970板子开关拨至 on off on off。链接USB线，并给板子上电。然后自己的电脑上执行下面的指令开始刷机</p>
<pre><code class="language-bash">./flash-all-binaries.sh
</code></pre>
<p dir="auto">等待刷机完成</p>
<h4>刷入分区补丁</h4>
<p dir="auto">默认的系统分区很小，所以需要打一个补丁，之后可以调整系统分区到60G。</p>
<p dir="auto"><a href="https://www.bwbot.org/s/GWciA9" target="_blank" rel="noopener noreferrer">分区补丁下载</a></p>
<p dir="auto">从上面的的下载地址下载补丁，之后解压。<br />
把解压后的内容复制到刚才的 hikey970-lebian-9 文件夹内。</p>
<p dir="auto">然后执行</p>
<pre><code class="language-bash">sudo fastboot flash boot boot-hikey970.uefi.2.img
sudo fastboot flash userdata hikey970-lebian9-tf.img
</code></pre>
<p dir="auto">等待程序执行完成</p>
<h3>启动系统</h3>
<p dir="auto">断开板子的电源，然后把开关拨至on off off off。给板子连接上鼠标键盘网线和显示器。然后给板子上电。<br />
等待系统启动完成。正常情况下应该可以看到登陆界面。用户名和密码都是<code>shunya</code>。</p>
<h3>调整分区</h3>
<p dir="auto">运行下面的指令调整分区</p>
<pre><code class="language-bash">sudo resize2fs /dev/sdd15
</code></pre>
<p dir="auto">这样能够把系统分区扩展到20G，剩下的需要用gparted扩展</p>
<pre><code class="language-bash">sudo apt-get install gparted
sudo gparted-pkexec # 注意此指令只能再外接显示器的情况下才能运行
</code></pre>
<p dir="auto">选择60G的硬盘，然后把未分配的空间全部扩展到最后一个分区。</p>
<pre><code class="language-bash">shunya@hikey970:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        53G  7.5G   44G  15% /
devtmpfs        2.8G     0  2.8G   0% /dev
tmpfs           2.9G     0  2.9G   0% /dev/shm
tmpfs           2.9G   25M  2.8G   1% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           2.9G     0  2.9G   0% /sys/fs/cgroup
tmpfs           577M     0  577M   0% /run/user/107
tmpfs           577M     0  577M   0% /run/user/1000
</code></pre>
<p dir="auto">可以看到系统空间已经增大到53G了。</p>
<h3>测试tensorflow</h3>
<p dir="auto">系统默认安装了Python 3.5的 tensorflow。下面用 <a href="https://github.com/eldar/pose-tensorflow" target="_blank" rel="noopener noreferrer">pose-tensorflow</a> 来测试一下。这个软件是一个利用 tensorflow 识别人体关键位置的程序。</p>
<h4>下载程序</h4>
<pre><code class="language-bash">git clone https://github.com/eldar/pose-tensorflow
</code></pre>
<h4>安装依赖</h4>
<pre><code class="language-bash">pip3 install scipy scikit-image matplotlib pyyaml easydict cython munkres
</code></pre>
<h4>下载模型</h4>
<pre><code class="language-bash"># Download pre-trained model files
$ cd models/mpii
$ ./download_models.sh
$ cd -
</code></pre>
<h4>运行模型</h4>
<pre><code class="language-bash"># Run demo of single person pose estimation
$ TF_CUDNN_USE_AUTOTUNE=0 python3 demo/singleperson.py
</code></pre>
<p dir="auto">正常应该会显示下图</p>
<p dir="auto"><img src="/assets/uploads/files/1535631148359-bccc745e-28f7-416d-b1b7-ac563c51bd45-image-resized.png" alt="0_1535631147956_bccc745e-28f7-416d-b1b7-ac563c51bd45-image.png" class=" img-responsive img-markdown" /></p>
]]></description><link>http://community.bwbot.org/topic/547/hikey-970-debian-镜像-有opencl-和-tensorflow</link><generator>RSS for Node</generator><lastBuildDate>Thu, 11 Jun 2026 00:47:06 GMT</lastBuildDate><atom:link href="http://community.bwbot.org/topic/547.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 Aug 2018 12:16:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to hikey 970 debian 镜像（有opencl 和 tensorflow） on Mon, 22 Apr 2019 05:11:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.bwbot.org/uid/858">@youngestuser</a> 运行clinfo可以查看信息。</p>
]]></description><link>http://community.bwbot.org/post/1198</link><guid isPermaLink="true">http://community.bwbot.org/post/1198</guid><dc:creator><![CDATA[weijiz]]></dc:creator><pubDate>Mon, 22 Apr 2019 05:11:19 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 debian 镜像（有opencl 和 tensorflow） on Sat, 20 Apr 2019 06:52:54 GMT]]></title><description><![CDATA[<p dir="auto">你好，你是说这个镜像里面内置有Opencl吗，那么如何查询是否有呢，有什么使用的相关教程吗</p>
]]></description><link>http://community.bwbot.org/post/1195</link><guid isPermaLink="true">http://community.bwbot.org/post/1195</guid><dc:creator><![CDATA[youngestuser]]></dc:creator><pubDate>Sat, 20 Apr 2019 06:52:54 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 debian 镜像（有opencl 和 tensorflow） on Thu, 07 Mar 2019 01:02:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.bwbot.org/uid/807">@SprayHank</a> nvme我没有测试过，可能内核没有开启对应的驱动模块。Tensorflow不需要从源码编译，这个镜像已经有编译好的版本。</p>
]]></description><link>http://community.bwbot.org/post/1109</link><guid isPermaLink="true">http://community.bwbot.org/post/1109</guid><dc:creator><![CDATA[weijiz]]></dc:creator><pubDate>Thu, 07 Mar 2019 01:02:33 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 debian 镜像（有opencl 和 tensorflow） on Wed, 06 Mar 2019 16:51:42 GMT]]></title><description><![CDATA[<p dir="auto">请问设备不识别nvme是什么回事？另外我编译tensorflow一直不成功</p>
]]></description><link>http://community.bwbot.org/post/1108</link><guid isPermaLink="true">http://community.bwbot.org/post/1108</guid><dc:creator><![CDATA[SprayHank]]></dc:creator><pubDate>Wed, 06 Mar 2019 16:51:42 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 debian 镜像（有opencl 和 tensorflow） on Tue, 25 Sep 2018 01:00:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.bwbot.org/uid/678">@xiaofeimo1</a> 不会，官方也没有提供。不过<a href="https://github.com/mengzhuo/hikey970-ubuntu-image/blob/master/build.sh" target="_blank" rel="noopener noreferrer">这里</a>有一个制作Ubuntu镜像的源。但是这个镜像还有一些问题。</p>
]]></description><link>http://community.bwbot.org/post/912</link><guid isPermaLink="true">http://community.bwbot.org/post/912</guid><dc:creator><![CDATA[weijiz]]></dc:creator><pubDate>Tue, 25 Sep 2018 01:00:00 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 debian 镜像（有opencl 和 tensorflow） on Mon, 24 Sep 2018 14:39:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.bwbot.org/uid/656">@myzhuang</a> 你测得好认真啊  厉害啊</p>
]]></description><link>http://community.bwbot.org/post/911</link><guid isPermaLink="true">http://community.bwbot.org/post/911</guid><dc:creator><![CDATA[xiaofeimo1]]></dc:creator><pubDate>Mon, 24 Sep 2018 14:39:13 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 debian 镜像（有opencl 和 tensorflow） on Mon, 24 Sep 2018 14:25:01 GMT]]></title><description><![CDATA[<p dir="auto">能提供下 ubuntu 和debian   rootfs制作流程么，感谢</p>
]]></description><link>http://community.bwbot.org/post/910</link><guid isPermaLink="true">http://community.bwbot.org/post/910</guid><dc:creator><![CDATA[xiaofeimo1]]></dc:creator><pubDate>Mon, 24 Sep 2018 14:25:01 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 debian 镜像（有opencl 和 tensorflow） on Wed, 19 Sep 2018 02:01:28 GMT]]></title><description><![CDATA[<p dir="auto">这是我按照这篇文章操作的记录，可以给大家做个参考：<br />
hikey970开发板lebian系统烧写（ubuntu下）：<br />
https://blog.csdn.net/qqqzmy/article/details/82691880<br />
hikey970开发板lebian系统空间拓展：<br />
https://blog.csdn.net/qqqzmy/article/details/82701619<br />
tensorflow环境的搭建：<br />
https://blog.csdn.net/qqqzmy/article/details/82767635</p>
]]></description><link>http://community.bwbot.org/post/875</link><guid isPermaLink="true">http://community.bwbot.org/post/875</guid><dc:creator><![CDATA[myzhuang]]></dc:creator><pubDate>Wed, 19 Sep 2018 02:01:28 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 debian 镜像（有opencl 和 tensorflow） on Tue, 18 Sep 2018 03:19:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.bwbot.org/uid/656">@myzhuang</a> scipy是一个python包可以通过下面的方式安装</p>
<pre><code># 使用 apt-get
sudo apt-get install python-scipy
# 使用 pip
sudo pip install scipy
</code></pre>
]]></description><link>http://community.bwbot.org/post/868</link><guid isPermaLink="true">http://community.bwbot.org/post/868</guid><dc:creator><![CDATA[weijiz]]></dc:creator><pubDate>Tue, 18 Sep 2018 03:19:26 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 debian 镜像（有opencl 和 tensorflow） on Mon, 17 Sep 2018 09:22:33 GMT]]></title><description><![CDATA[<p dir="auto">我想问一下这个安装scipy成功了吗？我使用sudo apt-get install scipy 安装会出错。</p>
]]></description><link>http://community.bwbot.org/post/865</link><guid isPermaLink="true">http://community.bwbot.org/post/865</guid><dc:creator><![CDATA[myzhuang]]></dc:creator><pubDate>Mon, 17 Sep 2018 09:22:33 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 debian 镜像（有opencl 和 tensorflow） on Thu, 13 Sep 2018 06:41:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.bwbot.org/uid/7">@weijiz</a> 抱歉，应该是我用错镜像了，这里下载的确实有带tf，我原先烧的那个没带，而且装好后里面的python3也没办法import tensorflow</p>
]]></description><link>http://community.bwbot.org/post/835</link><guid isPermaLink="true">http://community.bwbot.org/post/835</guid><dc:creator><![CDATA[myzhuang]]></dc:creator><pubDate>Thu, 13 Sep 2018 06:41:59 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 debian 镜像（有opencl 和 tensorflow） on Thu, 13 Sep 2018 05:25:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.bwbot.org/uid/656">@myzhuang</a> 镜像解压出的文件如下</p>
<p dir="auto"><img src="/assets/uploads/files/1536816270292-fdc762b4-90f3-4b11-9849-23cccc022b13-image-resized.png" alt="0_1536816269449_fdc762b4-90f3-4b11-9849-23cccc022b13-image.png" class=" img-responsive img-markdown" /></p>
<p dir="auto">可以看到有一个是带tf的。是不是你下载的并不是此文中提供的镜像。</p>
]]></description><link>http://community.bwbot.org/post/834</link><guid isPermaLink="true">http://community.bwbot.org/post/834</guid><dc:creator><![CDATA[weijiz]]></dc:creator><pubDate>Thu, 13 Sep 2018 05:25:22 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 debian 镜像（有opencl 和 tensorflow） on Wed, 12 Sep 2018 12:04:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.bwbot.org/uid/7">@weijiz</a> 镜像里面的文件是hikey970-lebian9.img，所以命令应该写<br />
sudo fastboot flash userdata hikey970-lebian9.img<br />
才对，没有带“tf”的</p>
]]></description><link>http://community.bwbot.org/post/828</link><guid isPermaLink="true">http://community.bwbot.org/post/828</guid><dc:creator><![CDATA[myzhuang]]></dc:creator><pubDate>Wed, 12 Sep 2018 12:04:36 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 debian 镜像（有opencl 和 tensorflow） on Wed, 12 Sep 2018 05:51:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.bwbot.org/uid/656">@myzhuang</a> hikey970-lebian9-tf.img 是原本镜像里面带的文件。补丁只是修改uefi,相当于修改后重刷一下系统。</p>
]]></description><link>http://community.bwbot.org/post/827</link><guid isPermaLink="true">http://community.bwbot.org/post/827</guid><dc:creator><![CDATA[weijiz]]></dc:creator><pubDate>Wed, 12 Sep 2018 05:51:28 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 debian 镜像（有opencl 和 tensorflow） on Wed, 12 Sep 2018 04:58:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.bwbot.org/uid/7">@weijiz</a> 重刷问题解决了，可是分区补丁的那个文件中，没有hikey970-lebian9-tf.img这个文件啊，只有boot-hikey970.uefi.2.img</p>
]]></description><link>http://community.bwbot.org/post/826</link><guid isPermaLink="true">http://community.bwbot.org/post/826</guid><dc:creator><![CDATA[myzhuang]]></dc:creator><pubDate>Wed, 12 Sep 2018 04:58:33 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 debian 镜像（有opencl 和 tensorflow） on Tue, 11 Sep 2018 12:36:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.bwbot.org/uid/656">@myzhuang</a> 在 <a href="/post/823">hikey 970 debian 镜像（有opencl 和 tensorflow）</a> 中说：</p>
<blockquote>
<p dir="auto">ERROR Read connector status timout,</p>
</blockquote>
<p dir="auto">我没有遇到过这个问题，不太清楚。你可以重刷镜像试试。</p>
]]></description><link>http://community.bwbot.org/post/824</link><guid isPermaLink="true">http://community.bwbot.org/post/824</guid><dc:creator><![CDATA[weijiz]]></dc:creator><pubDate>Tue, 11 Sep 2018 12:36:00 GMT</pubDate></item><item><title><![CDATA[Reply to hikey 970 debian 镜像（有opencl 和 tensorflow） on Tue, 11 Sep 2018 09:16:36 GMT]]></title><description><![CDATA[<p dir="auto">我按照这个教程烧写可是Debian无法启动。接通电源后会出现Debian和fastboot选择，选择Debian后串口打印部分信息就没法启动了，这是什么问题？<br />
串口打印：<br />
EFI stub: Booting Linux Kernel…<br />
EFI stub: EFI_RNG_PROTOCOL unavailable, no randomness supplied<br />
EFI stub: Using DTB from configuration table<br />
EFI stub: Exiting boot services and installing virtual address map…<br />
[    0.000000] Booting Linux on physical CPU 0x0<br />
[    0.000000] Linux version 4.9.78-147538-g244928755bbe (andy@andy-virtual-machine) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #1 SMP PREEMPT Thu May 31 10:58:02 CST 2018<br />
[    0.000000] Boot CPU: AArch64 Processor [410fd034]<br />
[    0.000000] earlycon: pl11 at MMIO 0x00000000fff32000 (options ‘115200’)<br />
[    0.000000] bootconsole [pl11] enabled<br />
[    0.000000] Ion: insert heap-name carveout_gralloc<br />
[    0.031939] /soc/interrupt-controller@0xf4000000: Unable to locate ITS domain<br />
[    0.039265] /soc/interrupt-controller@0xf4000000: unable to locate ITS domain<br />
[    0.393094] dmi: Firmware registration failed.<br />
[    0.397745] Ion: invalid heap-name in node iommu_info, please check the name<br />
[    0.404943] Ion: invalid heap-name in node linear, please check the name<br />
[    0.411752] Ion: node name [heap_sys_user], heap-name [sys_heap]<br />
[    0.417763] Ion: heap index 0 : name sys_heap base 0x0 size 0x0 id 0 type 0<br />
[    0.424726] Ion: heap sys_heap base =0, try to find dynamic area<br />
[    0.430820] Ion: name = sys_heap, table name carveout_gralloc<br />
[    0.436652] Ion: name = sys_heap, table name<br />
[    0.441091] Ion: name = sys_heap, table name<br />
[    0.445530] Ion: name = sys_heap, table name<br />
[    0.449971] Ion: name = sys_heap, table name<br />
[    0.454418] Ion: node name [heap_carveout_gralloc], heap-name [carveout_gralloc]<br />
[    0.461813] Ion: heap index 1 : name carveout_gralloc base 0x0 size 0x0 id 2 type 2<br />
[    0.469467] Ion: heap carveout_gralloc base =0, try to find dynamic area<br />
[    0.476252] Ion: name = carveout_gralloc, table name carveout_gralloc<br />
[    0.482777] Ion: have found heap name carveout_gralloc base = 0xbc800000, size 31457280<br />
[    0.490793] of_get_iova_info:start_addr 0x40000, size 0xbffc0000 align 0x8000<br />
[    0.502246] no hisilicon,hisi-pmic-irq-num1 property set<br />
[    0.507560] hisi_pmic 2-00: the platform don’t support ext-interrupt.<br />
[    0.521120] &lt;[hisi_dt_parse_ip_atf]: regulator_id=0, ppll0_clock_set_rate_flag=0&gt;<br />
[    0.528786] &lt;[hisi_dt_parse_ip_atf]: regulator_id=1, ppll0_clock_set_rate_flag=0&gt;<br />
[    0.536346] &lt;[hisi_ip_to_atf_is_enabled]:regulator_id=1&gt;<br />
[    0.541756] &lt;[hisi_dt_parse_ip_atf]: regulator_id=8, ppll0_clock_set_rate_flag=0&gt;<br />
[    0.549357] &lt;[hisi_dt_parse_ip_atf]: regulator_id=2, ppll0_clock_set_rate_flag=0&gt;<br />
[    0.556877] &lt;[hisi_ip_to_atf_is_enabled]:regulator_id=2&gt;<br />
[    0.562289] &lt;[hisi_dt_parse_ip_atf]: regulator_id=3, ppll0_clock_set_rate_flag=0&gt;<br />
[    0.569809] &lt;[hisi_ip_to_atf_is_enabled]:regulator_id=3&gt;<br />
[    0.575230] &lt;[hisi_dt_parse_ip_atf]: regulator_id=4, ppll0_clock_set_rate_flag=0&gt;<br />
[    0.582748] &lt;[hisi_ip_to_atf_is_enabled]:regulator_id=4&gt;<br />
[    0.588160] &lt;[hisi_dt_parse_ip_atf]: regulator_id=5, ppll0_clock_set_rate_flag=0&gt;<br />
[    0.595680] &lt;[hisi_ip_to_atf_is_enabled]:regulator_id=5&gt;<br />
[    0.601088] &lt;[hisi_dt_parse_ip_atf]: regulator_id=6, ppll0_clock_set_rate_flag=0&gt;<br />
[    0.608608] &lt;[hisi_ip_to_atf_is_enabled]:regulator_id=6&gt;<br />
[    0.614028] &lt;[hisi_dt_parse_ip_atf]: regulator_id=7, ppll0_clock_set_rate_flag=0&gt;<br />
[    0.621546] &lt;[hisi_ip_to_atf_is_enabled]:regulator_id=7&gt;<br />
[    0.636327] Kirin-pcie f4000000.pcie: eye_param_vboost = [0xffffffff]<br />
[    0.642791] Kirin-pcie f4000000.pcie: eye_param_iboost = [0xffffffff]<br />
[    0.649235] Kirin-pcie f4000000.pcie: eye_param_pre = [0xffffffff]<br />
[    0.655541] Kirin-pcie f4000000.pcie: eye_param_post = [0xffffffff]<br />
[    0.661808] Kirin-pcie f4000000.pcie: eye_param_main = [0xffffffff]<br />
[    0.767524] ion domain already init return domain<br />
[    0.973911] [drm:adv7511_detect.isra.7] <em>ERROR</em> Read connector status timout, time = 10<br />
[    1.095695] gpio_hub_power_on:regulator_enable</p>
]]></description><link>http://community.bwbot.org/post/823</link><guid isPermaLink="true">http://community.bwbot.org/post/823</guid><dc:creator><![CDATA[myzhuang]]></dc:creator><pubDate>Tue, 11 Sep 2018 09:16:36 GMT</pubDate></item></channel></rss>