Changes

Jump to: navigation, search

Orange Pi 5 Plus

364 bytes added, 15:57, 7 June 2023
Compile the source code of Android 12
<ol style="list-style-type: decimal;">
<li><p>First install the software packages required to compile the Android12 source code</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>test@test:~$ '''sudo apt-get update'''</p>
<p>test@test:~$ '''sudo apt-get install -y git gnupg flex bison gperf build-essential \'''</p>
<p>'''lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev ccache \'''</p>
<p>'''libgl1-mesa-dev libxml2-utils xsltproc unzip'''</p>
<p>test@test:~$ '''sudo apt-get install -y u-boot-tools'''</p>|}</li>
<li><p>There is a build.sh compilation script in the source code, and the compilation parameters are as follows</p>
<p>a.-'''U''': compile uboot</p>
<ol style="list-style-type: lower-alpha;">
<li><p>The command to compile and support HDMI 8K display image (LCD &gt; off by default) is as follows:</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>test@test:~$ '''cd Android_12'''</p>
<p>test@test:~/ Android_12$ '''source build/envsetup.sh'''</p>
<p>test@test:~/ Android_12$ '''lunch rk3588_s-userdebug'''</p>
<p>test@test:~/ Android_12$ '''./build.sh -AUKu'''</p>|}</li>
<li><p>The command to compile and support LCD display image is as &gt; follows:</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>test@test:~$ '''cd Android_12'''</p>
<p>test@test:~/ Android_12$ '''export DUAL_LCD=true'''</p>
<p>test@test:~/ Android_12$ '''source build/envsetup.sh'''</p>
<p>test@test:~/ Android_12$ '''lunch rk3588_s-userdebug'''</p>
<p>test@test:~/ Android_12$ '''./build.sh -AUKu'''</p>|}</li>
<li><p>The command to compile the image of the Box version is as &gt; follows:</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>test@test:~$ '''cd Android_12'''</p>
<p>test@test:~/ Android_12$ '''export BOARD=orangepi5plus'''</p>
<p>test@test:~/ Android_12$ '''source build/envsetup.sh'''</p>
<p>test@test:~/ Android_12$ '''lunch rk3588_box-userdebug'''</p>
<p>test@test:~/ Android_12$ '''./build.sh -AUKu'''</p>|}</li></ol>
</li>
<li><p>After the compilation is complete, the following information will be printed</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>********rkImageMaker ver 2.1********</p>
<p>Generating new image, please wait...</p>
<p>New image generated successfully!</p>
<p>Making update.img OK.</p>
<p>Make update image ok!</p>|}</li>
<li><p>The final image file will be placed in the '''rockdev/Image-rk3588_s''' directory. Among them, '''update.img''' is the boot image that supports TF card and eMMC, and '''update_spi_nvme.img''' is the boot image of NVME SSD</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>[mailto:test@test:~OrangePi_4/rk3399-android-8.1$ test@test:~/Android_12$] '''cd rockdev/Image-rk3588s_s'''</p>
<p>[mailto:test@test:~OrangePi_4/rk3399-android-8.1$ test@test:~/Android_12/rockdev/Image-rk3588s_s $] '''ls update*'''</p>
<p>update.img update_spi_nvme.img</p>|}</li>
<li><p>If you compile the image of the Box version, the final generated image file will be placed in the '''rockdev/Image-rk3588_box''' directory</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>[mailto:test@test:~OrangePi_4/rk3399-android-8.1$ test@test:~/Android_12$] '''cd rockdev/Image-rk3588_box'''</p>
<p>[mailto:test@test:~OrangePi_4/rk3399-android-8.1$ test@test:~/Android_12/rockdev/Image-rk3588_box$] '''ls update*'''</p>
<p>update.img update_spi_nvme.img</p>|}</li></ol>
<span id="instructions-for-using-the-orange-pi-os-droid-system"></span>

Navigation menu