8,367
edits
Changes
→Compile OpenWRT source code
<li><p>First install the following dependent packages (currently only tested on Ubuntu 20.04 to compile the following dependent packages, if you compile on other versions of the system, please install the dependent packages by yourself according to the error message)</p>
<ol style="list-style-type: lower-alpha;">
<li>Method 1: The command to install dependent packages using a > script is as follows:</li></ol></li></ol>
{| class="wikitable" style="width:800px;"
|-
|
test@test:~/openwrt$ '''sudo ./install_dep.sh'''
|}
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Method 2: Install the dependency package directly using the following command</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
test@test:~/openwrt$ '''sudo apt update'''
'''vim wget xmlto xxd zlib1g-dev'''
|}</ol></li></ol>
<ol start="2" style="list-style-type: decimal;">
<li>Then execute '''./scripts/feeds update -a''' and '''./scripts/feeds install -a''' to download dependent packages</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
test@test:~/openwrt$ '''./scripts/feeds update -a'''
test@test:~/openwrt$ '''./scripts/feeds install -a'''
|}</ol>
<ol start="3" style="list-style-type: decimal;">
<li><p>Then choose to use the configuration file of OrangePi 5 Plus</p>
<ol style="list-style-type: lower-alpha;">
<li>Compile the image that supports TF card, eMMC, and NVMe startup, > and select the following configuration</li></ol></li></ol>{| class="wikitable" style="width:800px;" |-|
test@test:~/openwrt$ '''cp configs/orangepi-5-plus-rk3588_defconfig .config'''
|}</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Compile the image that supports SPIFlash startup, and select the > following configuration</li></ol>{| class="wikitable" style="width:800px;" |-|
test@test:~/openwrt$ '''cp configs/orangepi-5-plus-rk3588-spi_defconfig .config'''
|}</ol></li></ol>
<ol start="4" style="list-style-type: decimal;">
<li>Then execute the following command to make the configuration take effect</li></ol>{| class="wikitable" style="width:800px;" |-|
test@test:~/openwrt$ '''make defconfig'''
|}</ol>
<ol start="5" style="list-style-type: decimal;">
<li>Execute the following command to start compiling the openwrt source code</li></ol>{| class="wikitable" style="width:800px;" |-|
test@test:~/openwrt$ '''make V=s'''
|}</ol>
<ol start="6" style="list-style-type: decimal;">
<li>After the compilation is complete, the path where the image is generated is:</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
test@test:~/openwrt$ '''tree -L 1 bin/targets/rockchip/armv8/'''
└── version.buildinfo
1 directory, 9 files
|}</ol>
<span id="instructions-for-using-the-android-12-system"></span>