【米尔边缘AI计算盒FZ5测评】Ubuntu系统的移植(一)——硬件平台的搭建
<div class='showpostmsg'><p style="text-indent:24.0pt; text-align:justify"><span style="font-size:12pt"><span style="line-height:150%"><span style="font-family:"Times New Roman",serif"><span style="font-family:宋体">本次将尝试对开发板进行二次开发,首先将开发板上移植</span>Ubuntu<span style="font-family:宋体">系统。首先将创建一个</span>PS<span style="font-family:宋体">侧可以正常工作的最小系统。实际上可以使用米尔电子官方提供的</span>tcl<span style="font-family:宋体">脚本直接创建工程,但是为了学习配置过程,这里将具体过程记录下来,创建过程如下所示</span>:</span></span></span></p><p style="text-indent:24.0pt; text-align:justify"><span style="font-size:12pt"><span style="line-height:150%"><span style="font-family:"Times New Roman",serif"><span style="font-family:宋体">首先配置存储类接口:</span></span></span></span></p>
<p style="text-indent:24.0pt; text-align:justify"></p>
<p style="text-indent:24.0pt; text-align:justify"><span style="font-size:12pt"><span style="line-height:150%"><span style="font-family:"Times New Roman",serif"><span style="font-family:宋体">打开</span>QSPI<span style="font-family:宋体">和</span>EMMC<span style="font-family:宋体">和</span>SD<span style="font-family:宋体">卡,然后配置其他接口:</span></span></span></span></p>
<p style="text-indent:24.0pt; text-align:justify"></p>
<p style="text-indent:24.0pt; text-align:justify"><span style="font-size:12pt"><span style="line-height:150%"><span style="font-family:"Times New Roman",serif"><span style="font-family:宋体">这里仅打开了</span>uart0<span style="font-family:宋体">串口,这个是</span>Linux<span style="font-family:宋体">启动的打印串口是必须的,官方的文档中还打开了</span>CAN,I2C<span style="font-family:宋体">等接口,这里仅演示移植过程,并不打开这些接口,开发者可以根据项目需要,定向配置这些接口。下面配置系统的调试类接口:</span></span></span></span></p>
<p style="text-indent:24.0pt; text-align:justify"></p>
<p style="text-indent:24.0pt; text-align:justify"><span style="font-size:12pt"><span style="line-height:150%"><span style="font-family:"Times New Roman",serif"><span style="font-family:宋体">然后配置高速接口:</span></span></span></span></p>
<p align="center" style="text-align:center; text-indent:24.0pt"></p>
<p style="text-indent:24.0pt; text-align:justify"><span style="font-size:12pt"><span style="line-height:150%"><span style="font-family:"Times New Roman",serif"><span style="font-family:宋体">打开了以太网、</span>USB2.0<span style="font-family:宋体">、</span>USB3.0<span style="font-family:宋体">和</span>DP<span style="font-family:宋体">接口。然后配置输入时钟:</span></span></span></span></p>
<p align="center" style="text-align:center; text-indent:24.0pt"></p>
<p style="text-indent:24.0pt; text-align:justify"><span style="font-size:12pt"><span style="line-height:150%"><span style="font-family:"Times New Roman",serif"><span style="font-family:宋体">输出时钟,大部分按默认配置,需要改变个别器件的时钟源,然后配置</span>DDR:</span></span></span></p>
<p style="text-indent:24.0pt; text-align:justify"></p>
<p style="text-indent:24.0pt; text-align:justify"><span style="font-size:12pt"><span style="line-height:150%"><span style="font-family:"Times New Roman",serif">PS<span style="font-family:宋体">和</span>PL<span style="font-family:宋体">接口部分对</span>ubuntu<span style="font-family:宋体">的移植并没有影响,可以接可以不接。完成</span>PS<span style="font-family:宋体">端的配置,然后生成一下顶层工程:</span></span></span></span></p>
<p align="center" style="text-align:center; text-indent:24.0pt"></p>
<p style="text-indent:24.0pt; text-align:justify"><span style="font-size:12pt"><span style="line-height:150%"><span style="font-family:"Times New Roman",serif"><span style="font-family:宋体">生成顶层工程后,由于没有用到其他引脚,所以不需要写物理约束,等待工程综合得到</span>bit<span style="font-family:宋体">文件,然后导出</span>hdf<span style="font-family:宋体">文件,笔者用的</span>vivado<span style="font-family:宋体">版本为</span>2018.3<span style="font-family:宋体">,新版本的</span>vivado<span style="font-family:宋体">对生成的硬件文件有所不同。导出过程为:</span></span></span></span></p>
<p align="center" style="text-align:center; text-indent:24.0pt"></p>
<p style="text-indent:24.0pt; text-align:justify"><span style="font-size:12pt"><span style="line-height:150%"><span style="font-family:"Times New Roman",serif"><span style="font-family:宋体">得到</span>hdf<span style="font-family:宋体">文件后,硬件工程的搭建就此完成,后面将通过该文件进行</span>Linux<span style="font-family:宋体">的移植,米尔电子提供了传统的</span>Linux<span style="font-family:宋体">移植方法和使用官方</span>petalinux<span style="font-family:宋体">工具进行移植两种方法,笔者选择了使用</span>petalinux<span style="font-family:宋体">工具进行移植的方法。本期测评到此结束,下期测评将使用</span>petalinux<span style="font-family:宋体">工具移植</span>ubuntu<span style="font-family:宋体">系统。</span></span></span></span></p>
<p style="text-indent:24.0pt; text-align:justify"> </p>
<p style="text-indent:24.0pt; text-align:justify"> </p>
</div><script> var loginstr = '<div class="locked">查看本帖全部内容,请<a href="javascript:;" style="color:#e60000" class="loginf">登录</a>或者<a href="https://bbs.eeworld.com.cn/member.php?mod=register_eeworld.php&action=wechat" style="color:#e60000" target="_blank">注册</a></div>';
if(parseInt(discuz_uid)==0){
(function($){
var postHeight = getTextHeight(400);
$(".showpostmsg").html($(".showpostmsg").html());
$(".showpostmsg").after(loginstr);
$(".showpostmsg").css({height:postHeight,overflow:"hidden"});
})(jQuery);
} </script><script type="text/javascript">(function(d,c){var a=d.createElement("script"),m=d.getElementsByTagName("script"),eewurl="//counter.eeworld.com.cn/pv/count/";a.src=eewurl+c;m.parentNode.insertBefore(a,m)})(document,523)</script> <p>用官方petalinux工具移植的两种方法 ,哪个有难度</p>
<p>输出时钟配置中,个别器件的时钟源 为什要单独设置呢</p>
<p> </p>
<p>谢谢分享,跟着学习!</p>
这文章可以,直接移植UBUNTU系统,谢谢分享,期待更新
页:
[1]