Open main menu

Wiki-Orange Pi β

Changes

Orange Pi RK3399

98 bytes removed, 11:16, 27 June 2022
no edit summary
|}
<br>
<div>[[文件File:Orange-pi-rk3399-img1.png|800px|]]</div>
<br>
<div>[[文件File:Orange-pi-rk3399-img2.png|800px|]]</div>
<br>
=== '''GPIO Specifications''' ===
<br>
The following is GPIO definition of Orange Pi RK3399:
<div>[[文件File:Orange-pi-rk3399-img3.png|800px|]]</div>
<br>
<table style=" min-width: 800px;text-align: center;" border="1" bordercolor="#d8d8d8" cellspacing="0"
<br>
Relevant keys and connectors for firmware flashing of Orange Pi RK3399 :
<div>[[文件File:Orange-pi-rk3399-img6.png|800px|]]</div>
<br>
'''There are two types of Firmware file:'''
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;">[[文件File: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;">[[文件File:Orange-pi-rk3399-img8.png|300px|]]</div>
<br>
'''2)Enter into Flashing Mode'''
* 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;">[[文件File: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;">[[文件File: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;">[[文件File:Orange-pi-rk3399-img11.png|800px|]]</div>
<br>
<div style="padding-left:200px;">[[文件File: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;">[[文件File: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;">[[文件File:Orange-pi-rk3399-img14.png|800px|]]</div>
<br>
=== '''Flashing image on Linux''' ===
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.<br>
There would be log information if you connect debug pin.
<div style="padding-left:200px;">[[文件File: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:
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>[[文件File:Orange-pi-rk3399-img11.png|800px|]]</div>
<br>
<div>[[文件File:Orange-pi-rk3399-img12.png|800px|]]</div>
<br>
Run upgrade_tool on terminal of Linux:
</div>
The help menu is displayed when you enter, and the Rockusb> prompt appears
<div>[[文件File:Orange-pi-rk3399-img18.png|600px|]]</div>
<br>
* It could be operated by entering the corresponding instructions after the Rockusb> prompt. No distinguish between capital and lowercase.<br>
TD Command: used to test whether the device status is normal
<div>[[文件File:Orange-pi-rk3399-img19.png|600px|]]</div>
<br>
DI Command: used for flashing separate partitions *.img :<br>
Rockusb>di -k ./kernel.img<br>
Rockusb>di kernel ./kernel.img
<div>[[文件File:Orange-pi-rk3399-img20.png|600px|]]</div>
<br>
UF Command: used for unity flashed image update.img<br>
Then the command should be:<br>
Rockusb>uf RK3399_IMAGE/Image_Android6.0_20171228.img
<div>[[文件File:Orange-pi-rk3399-img21.png|600px|]]</div>
<br>
After flashed, there would show the following information and the Orange Pi would reboot. (UF command would reboot, but not DI command.)
<div>[[文件File:Orange-pi-rk3399-img22.png|600px|]]</div>
<br>
'''2)Write Scripts to Implement User-Defined Flash'''
6. Device should enter MASKROM mode<br>
<br>
<div>[[文件File:Orange-pi-rk3399-img11.png|600px|]]</div>
<br>
<div>[[文件File:Orange-pi-rk3399-img12.png|600px|]]</div>
<br>
It would show the following with AndroidTools on Windows:
<div>[[文件File:Orange-pi-rk3399-img25.png|600px|]]</div>
<br>
After this could flash the image in the normal way.<br>
<br>
It would show the following if use upgrade_tool on Linux:
<div>[[文件File:Orange-pi-rk3399-img26.png|600px|]]</div>
<br>
It would be re-flash the image with uf command.<br>
Enter the root password and press Enter<br>
<br>
<div>[[文件File:Orange-pi-rk3399-img27.png|600px|]]</div>
<br>
Select 0 Build system with kernel/uboot/rootfs, enter the development board model selection interface.<br>
<br>
<div>[[文件File:Orange-pi-rk3399-img28.png|600px|]]</div>
<br>
Select 20 orangepi RK3399 and press Enter to start downloading the Linux source code for Orange Pi RK3399<br>
<br>
<div>[[文件File:Orange-pi-rk3399-img29.png|600px|]]</div>
<br>
The downloaded source code will be stored in the same directory of OrangePi_Build<br>
Select Enter<br>
<br>
<div>[[文件File:Orange-pi-rk3399-img30.png|600px|]]</div>
<br>
Enter the root password and press Enter, then select the function needed to be executed<br>
<br>
<div>[[文件File:Orange-pi-rk3399-img31.png|600px|]]</div>
<br>
The functions of each option are as follows:<br>
1 EMMC Update the uboot of Linux in EMMC
<br>
<div>[[文件File:Orange-pi-rk3399-img32.png|600px|]]</div>
<br>
After compiling u-boot and kernel source code,the final generated file will be stored in the output directory<br>
1.Connect the DC power supply while short-connecting the Clk and GND of the EMMC. Enter the Maskrom mode. EMMC Clk is on the lower left corner of the miniPCIe on the back of the board shown as following picture<br>
<br>
<div>[[文件File:Orange-pi-rk3399-img11.png|600px|]]</div>
<br>
<div>[[文件File:Orange-pi-rk3399-img12.png|600px|]]</div>
<br>
2.Connect the TypeC line<br>
1.Short circuit connecting with Clk and GND of EMMC, connect DC power supply, enter into Maskrom mode.<br>
EMMC Clk is like the following shows:
<div>[[文件File:Orange-pi-rk3399-img11.png|600px|]]</div>
<br>
<div>[[文件File:Orange-pi-rk3399-img12.png|600px|]]</div>
<br>
2.Connect TypeC cable with PC and RK3399<br>
'''1) Install USB driver on Windows'''<br>
* Download and unzip the latest version of driver PL2303_Prolific_DriverInstaller_v130.zip
<div>[[文件File:Orange-pi-rk3399-img33.png|600px|]]</div>
<br>
* Choose application installation as Administrator
<div>[[文件File:Orange-pi-rk3399-img34.png|600px|]]</div>
<br>
* Wait for completing installation
<div>[[文件File:Orange-pi-rk3399-img35.png|600px|]]</div>
<br>
'''2)Secure CRT Usage on Windows'''
Use TTL to USB cable to connect RK3399 and PC, you could download securecrs_33lc tool of RK3399 from official website on the download section.<br>
Click SecureCRTPortable after unzip the package, it would show like the following:
<div>[[文件File:Orange-pi-rk3399-img36.png|600px|]]</div>
<br>
Select serial on Protocol, select corresponding port of your PC on port(you could use device manager to check the port number). On my PC it is COM6, input baud rate of 1500000, not click RTS/CTS.
<div>[[文件File:Orange-pi-rk3399-img37.png|600px|]]</div>
<br>
Click connect and boot the board, there will print the debug log:
<div>[[文件File:Orange-pi-rk3399-img38.png|600px|]]</div>
<br>
=== '''Operation Steps on Linux''' ===
Device node of serial port:<br>
ls /dev/ttyUSB*
<div>[[文件File:Orange-pi-rk3399-img39.png|300px|]]</div>
<br>
Device node is ttyUSB0<br>
sudo apt-get install minicom<br>
After installation, configure minicom, input sudo minicom -s on the terminal
<div>[[文件File:Orange-pi-rk3399-img40.png|400px|]]</div>
<br>
Select Serial port setup and press Enter, it will show like the following:
<div>[[文件File:Orange-pi-rk3399-img41.png|600px|]]</div>
<br>
Press a to configure Serial Device as serial port device node, what I am working at is ttyUSB0, then press Enter. Press f to not click RTS/CTS. Press e will show the configure window like the following:
<div>[[文件File:Orange-pi-rk3399-img42.png|600px|]]</div>
<br>
<div>[[文件File:Orange-pi-rk3399-img43.png|600px|]]</div>
<br>
Select Save setup as dfl, press Enter and save it, then press ESC to exit.
<div>[[文件File:Orange-pi-rk3399-img44.png|600px|]]</div>
<br>
Boot RK3399 it will print the log:
<div>[[文件File:Orange-pi-rk3399-img45.png|600px|]]</div>
<br>
== '''Linux Using Method''' ==
The camera1 interface can use the ov13850 camera, you need to disable the hdmi in configuration in the .config file<br>
<br>
<div>[[文件File:Orange-pi-rk3399-img46.png|600px|]]</div>
<br>
Recompile and replace the kernel<br>
</div>
<br>
<div>[[文件File:Orange-pi-rk3399-img47.png|800px|]]</div>
<br>
== '''History''' ==