8,367
edits
Changes
no edit summary
After the system running card is prepared, the file system rootfs partition should be expanded immediately. This will greatly improve the system performance and avoid various tedious problems caused by insufficient space.<br>
We can use the built-in script resize_rootfs.sh to expand the capacity after entering the system.
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
<div style="font-weight:700;">
The amount of free space in the system before expansion
</div>
root@OrangePi:~# df -h
<table>
<tr>
<td>Filesystem</td>
<td>Size</td>
<td>Used </td>
<td>Avail </td>
<td>Use%</td>
<td>Mounted on</td>
</tr>
<tr style="font-weight:700;">
<td>/dev/mmcblk1p2</td>
<td>1.1G</td>
<td>981M</td>
<td>28M</td>
<td>98%</td>
<td>/</td>
</tr>
<tr>
<td>devtmpfs</td>
<td>985M</td>
<td>0</td>
<td>985M </td>
<td>0%</td>
<td>/dev</td>
</tr>
<tr>
<td>tmpfs </td>
<td>994M</td>
<td>0</td>
<td>994M</td>
<td>0%</td>
<td>/dev/shm</td>
</tr>
<tr>
<td>tmpfs </td>
<td>994M</td>
<td>8.9M</td>
<td>985M </td>
<td>1%</td>
<td>/run</td>
</tr>
<tr>
<td>tmpfs </td>
<td>5.0M</td>
<td>4.0K</td>
<td>5.0M</td>
<td>1%</td>
<td>/run/lock</td>
</tr>
<tr>
<td>tmpfs</td>
<td>994M</td>
<td>0</td>
<td>994M</td>
<td>0%</td>
<td>/sys/fs/cgroup</td>
</tr>
<tr>
<td>/dev/mmcblk1p1</td>
<td>50M</td>
<td>15M</td>
<td>36M </td>
<td>30%</td>
<td>/boot</td>
</tr>
<tr>
<td>tmpfs</td>
<td>199M</td>
<td>0</td>
<td>199M</td>
<td>0%</td>
<td>/run/user/0</td>
</tr>
</table>
root@OrangePi:~#<br>
<br>
<div style="font-weight:700;">
Run the built-in expansion script
</div>
root@OrangePi:~# resize_rootfs.sh<br>
<br>
<div style="font-weight:700;">
The amount of space available in the system after the expansion
</div>
root@OrangePi:~# df -h<br>
<br>
<table>
<tr>
<td>Filesystem</td>
<td>Size</td>
<td>Used </td>
<td>Avail </td>
<td>Use%</td>
<td>Mounted on</td>
</tr>
<tr style="font-weight:700;">
<td>/dev/mmcblk1p2</td>
<td>15G</td>
<td>982M</td>
<td>13G</td>
<td>7%</td>
<td>/</td>
</tr>
<tr>
<td>devtmpfs</td>
<td>985M</td>
<td>0</td>
<td>985M </td>
<td>0%</td>
<td>/dev</td>
</tr>
<tr>
<td>tmpfs </td>
<td>994M</td>
<td>0</td>
<td>994M</td>
<td>0%</td>
<td>/dev/shm</td>
</tr>
<tr>
<td>tmpfs </td>
<td>994M</td>
<td>8.9M</td>
<td>985M </td>
<td>1%</td>
<td>/run</td>
</tr>
<tr>
<td>tmpfs </td>
<td>5.0M</td>
<td>4.0K</td>
<td>5.0M</td>
<td>1%</td>
<td>/run/lock</td>
</tr>
<tr>
<td>tmpfs</td>
<td>994M</td>
<td>0</td>
<td>994M</td>
<td>0%</td>
<td>/sys/fs/cgroup</td>
</tr>
<tr>
<td>/dev/mmcblk1p1</td>
<td>50M</td>
<td>15M</td>
<td>36M </td>
<td>30%</td>
<td>/boot</td>
</tr>
<tr>
<td>tmpfs</td>
<td>199M</td>
<td>0</td>
<td>199M</td>
<td>0%</td>
<td>/run/user/0</td>
</tr>
</table>
</div>
<br>
=== '''Recording playback test method''' ===
<br>
Note: The Audio Codec audio driver for the mainline kernel is not yet available<br>
<br>
* Test recording function
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
root@orangepi3:~# arecord -d 10 -f cd -D hw:1,0 -t wav Test.wav Recording<br>
WAVE 'Test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz,<br>
Stereo<br>
root@orangepi3:~#
</div>
<br>
* Test the HDMI playback function, just use the aplay command to play
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
root@orangepi3:~# aplay Test.wav
</div>
<br>
* Test headset playback
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
root@orangepi3:~# aplay -D hw:1,0 Test.wav
</div>
<br>
<br>
<br>
=== '''WIFI configuration method''' ===
<br>
Add the following configuration to / etc / network / interface and restart<br>
<br>
<div style="border:1px solid #dddddd;background:#f1f1f1;padding:5px;">
auto wlan0<br>
iface wlan0 inet dhcp<br>
wpa-ssid orangepi //Fill in the WIFI account here(orangepi)<br>
wpa-psk orangepi //Fill in the WIFI password here(orangepi)<br>
</div>
<br>
=== '''Test method of PCIE interface''' ===
<br>
When using the PCIE interface, it should be noted that if the PCIE interface is used, the USB2.0 interface cannot be used. If used at the same time, it will cause a system error.<br>
Currently, only the rtl8822be PCIE driver is integrated in the linux3.10 kernel. The drivers for other PCIE devices have not been adapted for the time being, and other versions of the kernel cannot currently use the PCIE function. If you need to test the function of the PCIE interface, please use the Linux 3.10 image or the Android image.<br>
<br>
<div>[[文件:Orange-pi-3-img26.png|800px]]</div>
Insert the RTL8822BE wireless network card module according to the method shown in the figure below and start the system. The system will automatically identify and load the 88x2be.ko kernel module.
<div style="padding-left:200px;">[[文件:Orange-pi-3-img27.png|800px]]</div>
The lsmod command can be used to check whether the driver is successfully loaded.
The ifconfig command can be used to check the network node corresponding to the PCIE wireless network card.<br>
<br>
<div style="border:1px solid #ddd;padding:5px;background:#f1f1f1;">
root@OrangePi:~# lsmod<br>
<table>
<tr>
<td>Module</td>
<td>Size</td>
<td>Used by </td>
</tr>
<tr style="font-weight:700;">
<td>88x2be</td>
<td>2116402 </td>
<td>0 </td>
</tr>
</table>
<br>
root@OrangePi:~# ifconfig <span style="font-weight:700;">wlp1s0</span><br>
<span style="font-weight:700;">wlp1s0 Link encap:Ethernet HWaddr f8:da:0c:5a:00:6f UP</span> <br>
<p style="font-weight:700;padding-left:54px;">
BROADCAST MULTICAST MTU:1500 Metric:1<br>
RX packets:0 errors:0 dropped:6 overruns:0 frame:0 TX<br>
packets:0 errors:0 dropped:0 overruns:0 carrier:0 <br>
collisions:0 txqueuelen:1000<br>
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
</p>
</div>
<br>
== '''Introduction to serial debugging tools''' ==
<br>
First you need to prepare a USB to TTL serial cable similar to the picture below:<br>
<div style="padding-left:200px;">[[文件:Orange-pi-3-img28.png|800px]]</div>
Connect the serial cable as shown in the figure below. The functions of the cables of different colors are as follows:<br>
* Black——GND
* Green-RX
* White-TX
<div style="padding-left:200px;">[[文件:Orange-pi-3-img29.png|800px]]</div>
<br>
=== '''Use on Windows platform''' ===
<br>
In the process of using OrangePi for project development, in order to obtain more debugging information, OrangePi supports serial port information debugging by default. For developers, they only need to prepare the materials mentioned above to get serial debugging information. The serial debugging tools used by different host computers are similar. Basically, you can refer to the methods below to deploy. There are many tools for serial debugging on the Windows platform. The commonly used tool is putty. This section uses putty as an example to explain deployment.<br>
<br>
* '''Install USB driver'''
Download the latest driver PL2303_Prolific_DriverInstaller_v130.zip, download and unzip.<br>
<div>[[文件:Orange-pi-3-img30.png|800px]]</div>
Select application installation as administrator<br>
<div style="padding-left:200px;">[[文件:Orange-pi-3-img31.png|800px]]</div>
Wait for the installation to complete
<div style="padding-left:200px;">[[文件:Orange-pi-3-img32.png|800px]]</div>
* '''Download and install Putty'''
Putty can be downloaded from the following address, please choose the version suitable for your development environment.<br>
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
<p>Double-click the downloaded putty.exe directly to open putty. The software interface
is shown in the figure below.</p>
* '''Acquisition of equipment information'''
<br>
In Windows 7, we can check whether the serial port connection is normal and the device number of the serial port through the device manager. If the device is not recognized properly, please check if the driver is successfully installed. If there is a problem with the driver installation, you can try to scan and install the driver using 360 Driver Master.
<div>[[文件:Orange-pi-3-img33.png|800px]]</div>
<br>
* '''Putty configuration'''
<br>
Set the serial port to the corresponding port number (COM4), disable flow control, and set the speed to 115200
<div>[[文件:Orange-pi-3-img34.png|800px]]</div>
* Start debugging serial output
OrangePi is powered on and putty will automatically print serial port log information<br>
<br>
=== '''Use on Linux platform''' ===
<br>
There is not much difference between using putty on the Linux platform and the Windows platform. The following mainly describes the operation steps where there are differences. All operations are based on Ubuntu 14.04 system.<br>
<br>
* '''Install and start Putty'''
<div style="background:#f1f1f1;border:1px solid #ddd;padding:5px;">
$ sudo apt-get install putty<br>
$ sudo putty
</div>
<br>
* '''Configure Putty'''
The serial number can be viewed through ls / dev / ttyUSB *<br>
Baud rate needs to be set to 115200<br>
And turn off flow control
<div>[[文件:Orange-pi-3-img35.png|800px]]</div>
== '''History''' ==
<br>
<table cellspacing='0' cellpadding='0' border='1' bordercolor='#d8d8d8' style="width:800px;text-align:center;">
<tr style="background:#b7b7b7;">
<td>Ver</td><td>Data</td><td>Author</td><td>Brief</td><td>Publish</td><td>Memo</td>
</tr>
<tr>
<td>1.0</td><td>2019-01-24</td><td>Leeboby</td><td>Create document</td><td></td><td></td>
</tr>
<tr>
<td>1.0</td><td>2019-7-10</td><td>Leeboby</td><td>Update audio instructions</td><td></td><td></td>
</tr>
<tr>
<td>1.0</td><td>2019-12-16</td><td>Leeboby</td><td></td><td></td><td></td>
</tr>
<tr>
<td></td><td></td><td></td><td></td><td></td><td></td>
</tr>
<tr>
<td></td><td></td><td></td><td></td><td></td><td></td>
</tr>
<tr>
<td></td><td></td><td></td><td></td><td></td><td></td>
</tr>
<tr>
<td></td><td></td><td></td><td></td><td></td><td></td>
</tr>
<tr>
<td></td><td></td><td></td><td></td><td></td><td></td>
</tr>
</table>
<br>
For more information on using the Orange Pi 3, please see the [http://localhost:8080/index.php?title=%E6%96%87%E4%BB%B6:Orange_Pi_3.docx <span style="color:red;">Orange Pi 3 User Manual</span>]. (Click to download)