更改

跳转至: 导航搜索

Orange Pi 5 Plus

添加99字节, 2023年5月31日 (三) 15:30
编译u-boot
<li><p>orangepi-bulid编译系统编译u-boot源码时首先会将u-boot的源码和github服务器的u-boot源码进行同步,所以如果想修改u-boot的源码,首先需要关闭源码的下载更新功能('''需要完整编译过一次u-boot后才能关闭这个功能,否则会提示找不到u-boot的源码,如果是从百度云盘下载的源码压缩包,则没有这个问题,因为u-boot的源码都已缓存好了'''),否则所作的修改都会被还原,方法如下:</p>
<p>设置userpatches/config-default.conf中的IGNORE_UPDATES变量为”yes”</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>test@test:~/orangepi-build$ '''vim userpatches/config-default.conf'''</p>
<p>IGNORE_UPDATES=&quot;'''<span style="color:#FF0000">yes</span>'''&quot;</p>|}</li>
<li><p>调试u-boot代码时,可以使用下面的方法来更新linux镜像中的u-boot进行测试</p>
<ol style="list-style-type: lower-alpha;">
<li><p>将编译好的u-boot的deb包上传到开发板的linux系统中</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>test@test:~/orangepi-build$ '''cd output/debs/u-boot'''</p>
<p>test@test:~/orangepi_build/output/debs/u-boot$ '''scp \'''</p>
<p>'''linux-u-boot-legacy-orangepi5plus_1.0.0_arm64.deb [mailto:root@192.168.1.xxx:/root root@192.168.1.xxx:/root]'''</p>|}</li>
<li><p>然后登录到开发板,卸载已安装的u-boot的deb包</p>
{| class="wikitable" style="width:800px;" |-|<p>root@orangepi:~# '''apt purge -y linux-u-boot-orangepi5plus-legacy'''</p>|}</li>
<li><p>再安装刚才上传的新的u-boot的deb包</p>
{| class="wikitable" style="width:800px;" |-|<p>root@orangepi:~# '''dpkg -i''' '''linux-u-boot-legacy-orangepi5plus_1.0.0_arm64.deb'''</p>|}</li>
<li><p>然后运行 nand-sata-install脚本</p>
{| class="wikitable" style="width:800px;" |-|<p>root@orangepi:~# '''nand-sata-install'''</p>|}</li>
<li><p>然后选择'''5 Install/Update the bootloader on SD/eMM'''来更新TF卡中的u-boot或者'''7 Install/Update the bootloader on SPI Flash'''来更新SPI Flash中的u-boot</p>
<p>[[File:media/image529.png|317x154px]]</p></li>
<ol style="list-style-type: lower-alpha;">
<li><p>u-boot 2017.09源码中,开发板使用的defconfig配置文件为</p></li>
<li><p>[https{| class="wikitable" style="width://github.com/orangepi-xunlong/u-boot800px;" |-orangepi/blob/v2017.09-rk3588/configs/orangepi_5_plus_defconfig |'''orangepi-build/u-boot/v2017.09-rk3588/configs/orangepi_5_plus_defconfig''']|}<li><p>u-boot &gt; 2017.09源码中,开发板使用dts文件为</p></li>{| class="wikitable" style="width:800px;" |-|'''orangepi-build/u-boot/v2017.09-rk3588/arch/arm/dts/rk3588-orangepi-5-plus.dts'''|}</ol>
</li></ol>
<span id="orangepi-buildu-bootv2017.09-rk3588archarmdtsrk3588-orangepi-5-plus.dts编译linux内核编译linux内核"></span>[https://github.com/orangepi-xunlong/u-boot-orangepi/blob/v2017.09-rk3588/arch/arm/dts/rk3588-orangepi-5-plus.dts '''orangepi-build/u-boot/v2017.09-rk3588/arch/arm/dts/rk3588-orangepi-5-plus.dts''']
== 编译linux内核 ==
8,460
个编辑

导航菜单