Changes

Jump to: navigation, search

Orange Pi RK3399

3,464 bytes added, 20:10, 23 June 2022
no edit summary
exit
</div>
<br>
=== '''Make Rootfs Image''' ===
<br>
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
<nowiki># Generate spare image file</nowiki><br>
dd if=/dev/zero of=ubuntu-desktop.img bs=1M count=2048<br>
<br>
<nowiki># Format image file into ext4 format</nowiki><br>
sudo mkfs.ext4 ubuntu-desktop.img<br>
<br>
<nowiki># Load image file to ubuntu-desktop folder</nowiki><br>
mkdir ubuntu-desktop<br>
sudo mount ubuntu-desktop.img ubuntu-desktop/<br>
<br>
<nowiki># copy the generated rootfs contents into folder which image loaded</nowiki><br>
sudo cp -rfp rootfs/* ubuntu-desktop/<br>
<br>
<nowiki># Unmount</nowiki><br>
sudo umount ubuntu-desktop/<br>
<br>
<nowiki># Check the correctness of the file system</nowiki><br>
e2fsck -p -f ubuntu-desktop.img<br>
<br>
<nowiki># Automatically adjust the size of the partition</nowiki><br>
resize2fs -M ubuntu-desktop.img
</div>
<br>
== '''Using Debug tools on OrangePi''' ==
<br>
'''Hardware: RK3399 and TTL to USB cable'''<br>
<br>
=== '''Operation Steps on Windows''' ===
<br>
'''1) Install USB driver on Windows'''<br>
* Download and unzip the latest version of driver PL2303_Prolific_DriverInstaller_v130.zip
<div>[[文件:Orange-pi-rk3399-img33.png|600px|]]</div>
<br>
* Choose application installation as Administrator
<div>[[文件:Orange-pi-rk3399-img34.png|600px|]]</div>
<br>
* Wait for completing installation
<div>[[文件: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>[[文件: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>[[文件:Orange-pi-rk3399-img37.png|600px|]]</div>
<br>
Click connect and boot the board, there will print the debug log:
<div>[[文件:Orange-pi-rk3399-img38.png|600px|]]</div>
<br>
=== '''Operation Steps on Linux''' ===
<br>
There are minicom and kermit for debug on Linux, here we will make exampleofminicom since kermit do not support baud rate at 1500000. Connect RK3399 and PC with TTL cable.
* '''Install and configure minicom '''
Device node of serial port:<br>
ls /dev/ttyUSB*
<div>[[文件:Orange-pi-rk3399-img39.png|300px|]]</div>
<br>
Device node is ttyUSB0<br>
Execute command on the terminal and install minicom<br>
sudo apt-get install minicom<br>
After installation, configure minicom, input sudo minicom -s on the terminal
<div>[[文件:Orange-pi-rk3399-img40.png|400px|]]</div>
<br>
Select Serial port setup and press Enter, it will show like the following:
<div>[[文件: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>[[文件:Orange-pi-rk3399-img42.png|600px|]]</div>
<br>
<div>[[文件:Orange-pi-rk3399-img43.png|600px|]]</div>
<br>
Select Save setup as dfl, press Enter and save it, then press ESC to exit.
<div>[[文件:Orange-pi-rk3399-img44.png|600px|]]</div>
<br>
Boot RK3399 it will print the log:
<div>[[文件:Orange-pi-rk3399-img45.png|600px|]]</div>
<br>

Navigation menu