Changes

Jump to: navigation, search

Orange Pi RK3399

5,679 bytes added, 18:10, 23 June 2022
no edit summary
libssl1.0.0 libssl-dev
</div>
<br>
=== '''Compilation of SDK Source Code''' ===
<br>
* '''Compilation with auto-building shell scripts'''
<br>
We can make use of the RKTool/make.sh script in the SDK root directory for automatic compilation, using the following methods(Please ensure that it runs in the root directory):<br>
U-boot Compilation:
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
./RKTools/make.sh -u -j4
</div>
Kernel Compilation:
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
./RKTools/make.sh -k -j4
</div>
Android Compilation:
./RKTools/make.sh -a -j4
</div>
Compile u-boot、Kernel、Android in the same time:
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
cd SDK_ROOT/<br>
./RKTools/make.sh -j4
</div>
<br>
* '''Manual Compilation with Different Module '''
<br>
U-boot Compilation:
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
cd u-boot<br>
make rk3399_defconfig<br>
make ARCHV=aarch64 -j4
</div>
Kernel Compilation:
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
cd kernel<br>
make ARCH=arm64 orangepi_defconfig<br>
make ARCH=arm64 rk3399-orangepi.img -j4
</div>
Android Compilation:
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
source build/envsetup.sh<br>
lunch rk3399_mid-userdebug<br>
make -j4
</div>
<br>
=== '''Generated Firmware''' ===
<br>
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
./mkimages.sh
</div>
After execute ./mkimages.sh, it will generate a full firmware package on the directory of rockdev/Image-rk3399_mid.<br>
<br>
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
rockdev/Image-xxx/<br>
├── boot.img<br>
├── kernel.img<br>
├── misc.img<br>
├── parameter.txt<br>
├── recovery.img<br>
├── resource.img<br>
├── RK3399MiniLoaderAll_V1.05.bin<br>
├── system.img<br>
├── trust.img<br>
└── uboot.img
</div>
Except the above method, the unity image(update.img) could also be generated via Linux_Pack_Firmware.
== '''Android Firmware Flashing''' ==
<br>
Relevant keys and connectors for firmware flashing of Orange Pi RK3399 :
<div>[[文件:Orange-pi-rk3399-img6.png|800px|]]</div>
<br>
'''There are two types of Firmware file:'''
* Multi-partition images: generated uboot.img, recovery.img, trust.img, kernel.img, resource.img, system.img, usually used for debug.
* One image: generated into update.img with packing tool from several partition image files, usually used for Firmware release.
(The official has already made Android image, also you could try to compile you own image with reference of our manual.)<br>
<br>
'''Supporting OS of PC:'''
* Windows XP (32/64bit)
* Windows 7 (32/64bit)
* Windows 8 (32/64bit)
* Linux (32/64bit)
<br>
We use AndroidTool on Windows <br>
Download path: AndroidTool<br>
We use upgrade_tool on Linux:<br>
Download path: upgrade_tool<br>
Please select the corresponding tool according to your PC environment.。<br>
<br>
=== '''Flashing image on Windows''' ===
<br>
The tool we should use on Windows is AndroidTool, you could use it for multi-partition image flashing or one image file: update.img.<br>
Before image writing, we need to first install RK USB driver on Windows.<br>
<br>
'''1)Install RK USB Driver'''
<br>
Download path: DriverAssitant<br>
Run this after unzip: DriverInstall.exe<br>
In order to use the latest driver of all device, please first click Drive unload and then click Drive install:<br>
<div style="padding-left:200px;">[[文件:Orange-pi-rk3399-img7.png|400px|]]</div>
<br>
Connect with Type-C data cable and PC with Orange Pi RK3399 after installed USB driver, there would be show the status of USB driver on lower right corner like the following:<br>
<br>
<div style="padding-left:200px;">[[文件:Orange-pi-rk3399-img8.png|300px|]]</div>
<br>
'''2)Enter into Flashing Mode'''
<br>
* Type-A Connect to PC
* Press on Recovery key of Orange Pi RK3399
* Type-C Connect to Orange Pi RK3399, there should be notice on the following :
<div style="padding-left:200px;">[[文件:Orange-pi-rk3399-img9.png|400px|]]</div>
<br>
There would be log information if you connect debug pin.<br>
<br>
<div style="padding-left:200px;">[[文件:Orange-pi-rk3399-img10.png|400px|]]</div>
<br>
If there is no Loader device, then you need to flash image with short connect like the following:<br>
When short connect EMMC Clk and GND, insert DC power supply, enter into Maskrom mode. And insert Type-C cable to connect both PC and RK3399.<br>
Location of EMMC Clk is show on the following:
<div style="padding-left:200px;">[[文件:Orange-pi-rk3399-img11.png|800px|]]</div>
<br>
<div style="padding-left:200px;">[[文件:Orange-pi-rk3399-img12.png|800px|]]</div>
<br>
* Insert DC power supply<br>
Since OrangePi RK3399 supports powered by TypeC, power voltage on USB of PC is enough for flashing image. However, it may not enough to support Orange Pi booting. In that case, we need to insert DC power supply to make sure the Orange Pi could boot successfully after flashed image.
* If need to flash every partition image(*.img) separately, right click Download Image then click corresponding firmware path. After that click Run, and the right side would show the status of running.
<div style="padding-left:200px;">[[文件:Orange-pi-rk3399-img13.png|800px|]]</div>
<br>
* If need to flash unity firmware(update.img), click Firmware on Upgrade Firmware, select path of update.img. After it recognized LOADER device, click Upgrade and it will begin to upgrade. The right side would show the status of flashing.
<div style="padding-left:200px;">[[文件:Orange-pi-rk3399-img14.png|800px|]]</div>
<br>

Navigation menu