8,460
个编辑
更改
无编辑摘要
# 首先准备一张16GB或更大容量的TF卡,TF卡的传输速度必须为'''class10'''级或'''class10'''级以上,建议使用闪迪等品牌的TF卡
# 然后使用读卡器把TF卡插入电脑
# 从[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''Orange Pi的资料下载页面''']下载想要烧录的Linux操作系统镜像文件压缩包,然后使用解压软件解压,解压后的文件中,以”'''.img'''”结尾的文件就是操作系统的镜像文件,大小一般都在2GB以上。
# 然后下载Linux镜像的烧录软件——'''balenaEtcher''',下载地址为:
</div></li>
<li><p>还需要准备一张16GB或更大容量的TF卡,TF卡的传输速度必须为'''class10'''级或'''class10'''级以上,建议使用闪迪等品牌的TF卡</p></li>
<li><p>然后从[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''Orange Pi的资料下载页面''']下载瑞芯微驱动'''DriverAssitant_v5.12.zip'''和'''MiniLoader'''以及烧录工具'''RKDevTool_Release_v3.15.zip'''</p>
<ol style="list-style-type: lower-alpha;">
<li><p>在[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''Orange > Pi的资料下载页面''']首先选择'''官方工具''',然后进入下面的文件夹中</p>
<p>[[File:media/image32.png|267x56px]]</p></li>
<li><p>然后下载下面的所有文件</p>
<p>'''注意,“MiniLoader-烧录Linux镜像才需要用到的东西”文件夹下文简称为MiniLoader文件夹。'''</p></li></ol>
</li>
<li><p>然后从[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''Orange Pi的资料下载页面''']下载想要烧录的Linux操作系统镜像文件压缩包,然后使用解压软件解压,解压后的文件中,以”'''.img'''”结尾的文件就是操作系统的镜像文件,大小一般都在2GB以上</p></li>
<li><p>然后用解压软件解压'''DriverAssitant_v5.12.zip''',再在解压后的文件夹中找到'''DriverInstall.exe'''可执行文件并打开即可</p>
<p>[[File:media/image34.png|464x136px]]</p></li>
<!-- -->
<ol start="4" style="list-style-type: decimal;">
<li><p>从[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''Orange Pi的资料下载页面''']下载想要烧录的Linux操作系统镜像文件压缩包,然后使用解压软件解压,解压后的文件中,以”'''.img'''”结尾的文件就是操作系统的镜像文件,大小一般都在2GB以上</p></li>
<li><p>使用'''Win32Diskimager'''烧录Linux镜像到TF卡</p>
<ol style="list-style-type: lower-alpha;">
== 基于Ubuntu PC将Linux镜像烧写到TF卡的方法 ==
'''注意,这里说的Linux镜像具体指的是从[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html Orange Pi资料下载页面]下载的Debian、Ubuntu和OPi OS Arch这样的Linux发行版镜像,Ubuntu PC指的是安装了Ubuntu系统的个人电脑。'''
# 首先准备一张16GB或更大容量的TF卡,TF卡的传输速度必须为'''class10'''级或'''class10'''级以上,建议使用闪迪等品牌的TF卡
<li><p>然后选择下载Linux版本的软件即可</p>
<p>[[File:media/image59.png|430x163px]]</p></li>
<li><p>从[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''Orange Pi的资料下载页面''']下载想要烧录的Linux操作系统镜像文件压缩包,然后使用解压软件解压,解压后的文件中,以”'''.img'''”结尾的文件就是操作系统的镜像文件,大小一般都在2GB以上</p>
<p>7z结尾的压缩包的解压命令如下所示</p>
<p>test@test:~$ '''7z x Orangepicm4_1.0.0_debian_bullseye_desktop_xfce_linux5.10.160.7z'''</p>
'''注意,下面所有的操作都是在Windows电脑中进行的。'''
'''注意,这里说的Linux镜像具体指的是从[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html Orange Pi资料下载页面]下载的Debian、Ubuntu和OPi OS Arch这样的Linux发行版镜像。'''
<ol style="list-style-type: decimal;">
</div></li>
<li><p>然后从[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''Orange Pi的资料下载页面''']下载瑞芯微驱动'''DriverAssitant_v5.12.zip'''和'''MiniLoader'''以及烧录工具'''RKDevTool_Release_v3.15.zip'''</p>
<ol style="list-style-type: lower-alpha;">
<li><p>在[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''Orange > Pi的资料下载页面''']首先选择官方工具,然后进入下面的文件夹中</p>
<p>[[File:media/image32.png|366x77px]]</p></li>
<li><p>然后下载下面的所有文件</p>
<p>'''注意,“MiniLoader-烧录Linux镜像才需要用到的东西”文件夹下文简称为MiniLoader文件夹。'''</p></li></ol>
</li>
<li><p>然后从[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''Orange Pi的资料下载页面''']下载想要烧录的Linux操作系统镜像文件压缩包,然后使用解压软件解压,解压后的文件中,以”'''.img'''”结尾的文件就是操作系统的镜像文件,大小一般都在2GB以上</p></li>
<li><p>然后用解压软件解压'''DriverAssitant_v5.12.zip''',再在解压后的文件夹中找到'''DriverInstall.exe'''可执行文件并打开即可</p>
<p>[[File:media/image34.png|496x146px]]</p></li>
=== 使用dd命令烧录Linux镜像到eMMC中的方法 ===
'''注意,这里说的Linux镜像具体指的是从[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html Orange Pi资料下载页面]下载的Debian、Ubuntu或者OPi OS Arch这样的Linux发行版镜像。'''
<ol style="list-style-type: decimal;">
</div></li>
<li><p>然后从[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''Orange Pi的资料下载页面''']下载瑞芯微驱动'''DriverAssitant_v5.12.zip'''和'''MiniLoader'''以及烧录工具'''RKDevTool_Release_v3.15.zip'''</p>
<ol style="list-style-type: lower-alpha;">
<li><p>在[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''Orange > Pi的资料下载页面''']首先选择'''官方工具''',然后进入下面的文件夹中</p>
<p>[[File:media/image32.png|294x61px]]</p></li>
<li><p>然后下载下面的所有文件</p>
<p>'''注意,“MiniLoader-烧录Linux镜像才需要用到的东西”文件夹下文简称为MiniLoader文件夹。'''</p></li></ol>
</li>
<li><p>然后从[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''Orange Pi的资料下载页面''']下载想要烧录的Linux操作系统镜像文件压缩包,然后使用解压软件解压,解压后的文件中,以”'''.img'''”结尾的文件就是操作系统的镜像文件,大小一般都在2GB以上</p></li>
<li><p>然后用解压软件解压'''DriverAssitant_v5.12.zip''',再在解压后的文件夹中找到'''DriverInstall.exe'''可执行文件并打开即可</p>
<p>[[File:media/image34.png|446x131px]]</p></li>
</div></li>
<li><p>然后从[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''Orange Pi的资料下载页面''']下载瑞芯微驱动'''DriverAssitant_v5.12.zip'''和烧录工具'''RKDevTool_Release_v3.15.zip'''</p>
<ol style="list-style-type: lower-alpha;">
<li><p>在[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''Orange > Pi的资料下载页面''']首先选择'''官方工具''',然后进入下面的文件夹中</p>
<p>[[File:media/image32.png|294x61px]]</p></li>
<li><p>然后下载下面的所有文件</p>
<p>[[File:media/image33.png|244x97px]]</p></li></ol>
</li>
<li><p>然后从[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''Orange Pi的资料下载页面''']下载Android的镜像。</p>
<ol style="list-style-type: lower-alpha;">
<li><p>打开安卓镜像的下载链接后可以看到下面两种类型的安卓镜像,请选择'''TF卡和eMMC启动镜像'''文件夹中的镜像进行下载</p>
</div></li>
<li><p>然后从[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''Orange Pi的资料下载页面''']下载瑞芯微驱动'''DriverAssitant_v5.12.zip'''和烧录工具'''RKDevTool_Release_v3.15.zip'''</p></li><li><p>然后从[http://www.orangepi.cn/html/serviceAndSupporthardWare/computerAndMicrocontrollers/indexservice-and-support/Orange-Pi-CM4-1.html '''Orange Pi的资料下载页面''']下载Android的镜像。</p>
<ol style="list-style-type: lower-alpha;">
<li><p>打开安卓镜像的下载链接后可以看到下面两种类型的安卓镜像,请选择'''TF卡和eMMC启动镜像'''文件夹中的镜像进行下载</p>
<li><p>还需要准备一张8GB或更大容量的TF卡,TF卡的传输速度必须为'''class10'''或以上,建议使用闪迪等品牌的TF卡</p></li>
<li><p>然后使用读卡器把TF卡插入电脑</p></li>
<li><p>然后从[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''Orange Pi的资料下载页面''']下载SDDiskTool烧写工具,'''请确保SDDiskTool工具的版本为最新的v1.72'''</p></li><li><p>然后从[http://www.orangepi.cn/html/serviceAndSupporthardWare/computerAndMicrocontrollers/indexservice-and-support/Orange-Pi-CM4-1.html '''Orange Pi的资料下载页面''']下载Android的镜像</p>
<ol style="list-style-type: lower-alpha;">
<li><p>打开安卓镜像的下载链接后可以看到下面两种类型的安卓镜像,请选择'''TF卡和eMMC启动镜像'''文件夹中的镜像进行下载</p>
</div></li>
<li><p>然后从[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''Orange Pi的资料下载页面''']下载瑞芯微驱动'''DriverAssitant_v5.12.zip'''和烧录工具'''RKDevTool_Release_v3.15.zip'''</p></li>
<li><p>然后下载Android11的镜像</p>
<ol style="list-style-type: lower-alpha;">
</div></li>
<li><p>然后从[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''Orange Pi的资料下载页面''']下载瑞芯微驱动'''DriverAssitant_v5.12.zip'''和'''MiniLoader'''以及烧录工具'''RKDevTool_Release_v3.15.zip'''</p>
<ol style="list-style-type: lower-alpha;">
<li><p>在[http://www.orangepi.cn/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange > Pi的资料下载页面''']首先选择'''官方工具''',然后进入下面的文件夹中</p>
</div></li>
<li><p>然后从[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''Orange Pi的资料下载页面''']下载瑞芯微驱动'''DriverAssitant_v5.12.zip'''和'''MiniLoader'''以及烧录工具'''RKDevTool_Release_v3.15.zip'''</p>
<ol style="list-style-type: lower-alpha;">
<li><p>在[http://www.orangepi.cn/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-3B.html '''Orange > Pi的资料下载页面''']首先选择'''官方工具''',然后进入下面的文件夹中</p>
<p>endif</p></li>
<li><p>然后使用make命令编译hello内核模块,编译过程的输出如下所示:</p>
<p>'''如果自己复制的代码这里编译如果有问题,请去[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html 官方工具]中下载源码然后上传到开发板的Linux系统中测试。'''</p>
<p>[[File:media/image362.png|253x41px]]</p>
<p>orangepi@orangepi:~$ '''make'''</p>
在Ubuntu20.04、Ubuntu22.04和Debian11系统中,zfs是无法通过apt直接安装的,这是因为默认的apt源中zfs版本低于2.1.6,存在和rk Linux5.10内核不兼容的问题,这个问题在zfs的2.1.6及以后的版本中得到了修复。
为了解决这个问题,我们提供了能正常安装的zfs的deb包,可以从开发板的[http://www.orangepi.cn/html/serviceAndSupporthardWare/indexcomputerAndMicrocontrollers/service-and-support/Orange-Pi-CM4-1.html '''官方工具''']中下载到。打开'''官方工具''',然后进入'''Ubuntu和Debian系统使用的zfs相关的deb包'''文件夹后,可以看到Ubuntu20.04、Ubuntu22.04和Debian11三种类型的deb包,请下载需要的版本。
[[File:media/image384.png|232x136px]]