Open main menu

Wiki-Orange Pi β

Changes

Orange Pi 5 Plus

816 bytes added, 14:27, 7 June 2023
The method of compiling the kernel source code separately in the linux system of the development board
<ol style="list-style-type: decimal;">
<li><p>First download the Linux kernel source code of the development board</p>
{| class="wikitable" style="width:800px;" |-|<p>'''orangepi@orangepi:~$ git clone --depth=1 -b orange-pi-5.10-rk3588 https://github.com/orangepi-xunlong/linux-orangepi'''</p></li></ol>|}
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''If you have problems downloading the code from github, you can go to the official tool of the development board to download the compressed kernel source code package, then upload it to the linux system of the development board, and then decompress it.'''</big>
[[File:media/image554.png|223x86px]] [[File:media/image555.png|305x87px]]
<big>'''The command to decompress the compressed kernel source code package is:'''</big>
orangepi@orangepi:~$ '''tar zxf orange-pi-5.10-rk3588.tar.gz'''
orangepi@orangepi:~$ '''mv orange-pi-5.10-rk3588 linux-orangepi'''
<big>'''After decompression, please execute the following command to synchronize the source code with github to ensure that the source code is in the latest state:'''</big>
orangepi@orangepi:~$ '''cd linux-orangepi'''
orangepi@orangepi:~/linux-orangepi$ '''git pull'''
|}</li></ol>
<ol start="2" style="list-style-type: decimal;">
<li><p>Then configure the default kernel configuration</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''cd linux-orangepi'''</p>
<p>orangepi@orangepi:~/linux-orangepi$ '''make rockchip_linux_defconfig'''</p>|}{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| </libig></ol> '''The path of <span class="mark">rockchip_linux_defconfig</span> in the kernel source code is arch/arm64/configs/'''</big>|}</li></ol>
<ol start="3" style="list-style-type: decimal;">
<li><p>Then compile the kernel source code</p>
{| class="wikitable" style="width:800px;" |-|<p>orangepi@orangepi:~/linux-orangepi$ '''make -j10'''</p>|}</li>
<li><p>Then install the kernel module</p>
{| class="wikitable" style="width:800px;" |-|<p>orangepi@orangepi:~/linux-orangepi$ '''sudo make modules_install'''</p>|}{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| </li></olbig> '''The installation path of the kernel module is:/lib/modules'''
'''After executing the sudo make modules_install command, you can see that there will be an additional kernel module folder under /lib/modules/:'''</big>
orangepi@orangepi5plus:~$ '''ls /lib/modules'''
'''<span style="color:#FF0000">5.10.110+</span>''' 5.10.110-rockchip-rk3588|}</li></ol>
<ol start="5" style="list-style-type: decimal;">
<li><p>Then install the kernel image and uInitrd</p>
{| class="wikitable" style="width:800px;" |-|<p>orangepi@orangepi:~/linux-orangepi$ '''sudo make install'''</p></li></ol>|}
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''The installation path of the kernel image and uInitrd is:/boot/'''
'''After executing the sudo make install command, you can see that there will be one more kernel file under /boot/:'''</big>
orangepi@orangepi5plus:~/orange-pi-5.10-rk3588$ '''ls /boot/vmlinuz*'''
'''<span style="color:#FF0000">/boot/vmlinuz-5.10.110+</span>''' /boot/vmlinuz-5.10.110-rockchip-rk3588<br />
<br />
<big>'''The file /boot/Image is actually loaded when the system starts, and Image is a copy of the vmlinuz file'''</big>|}</li></ol>
<ol start="6" style="list-style-type: decimal;">
<li><p>Then install the dtb file into '''/boot/dtb'''</p>
{| class="wikitable" style="width:800px;" |-|<p>orangepi@orangepi:~/linux-orangepi$ '''sudo make dtbs_install INSTALL_DTBS_PATH=/boot/dtb/'''</p>|}</li>
<li><p>Then restart the Linux system and the newly compiled kernel will be loaded</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''uname -r'''</p>
<p>'''5.10.110+'''</p>|}</li></ol>
<span id="openwrt-system-instructions"></span>