Changes

Jump to: navigation, search

Orange Pi Zero Plus

1,694 bytes removed, 20:12, 30 June 2022
no edit summary
|}
<br>
<div style="display:flex;padding-left:200px ;">
<div style="text-align:center;">
[[File:Orange-pi-pc2-img9.png|200px200px|]]<br>
</div>
<br>
<div style="display:flex;padding-left:200px ;">
<div style="text-align:center;">
[[File:Orange-pi-r1-img-4.png|100px|]]<br>
</div>
c.Download the operating system image file from the download page, the page address is as following:<br>
http://www.orangepi.org/downloadresourceshtml/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Zero-Plus.html<br>
d.Unzip the downloaded file (in addition to the Android system, this method can be used to burn to write, the Android system need another burn, the following will introduce)<br>
e.Right click to download the file, select "Unzip file" to write image to TF card
<br>
c.Download the OS image from download page <br>
http://www.orangepi.org/`downloadresourceshtml/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Zero-Plus.html<br>
<br>
d.Unzip and right click the downloaded file, select " Unzip file"<br>
https://drive.google.com/file/d/0B_VynIqhAcB7NTg2UkRDdHRWX2s/edit?usp=sharing<br>
Download Android OS image from here: <br>
http://www.orangepi.org/downloadresourceshtml/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Zero-Plus.html<br>
b.Format the TF card<br>
<div style="padding-left:200px ;">[[File:Orange-pi-pc2-img15.png|400px|]]</div>
<br>
c.Please make sure the inserted TF card is in accordance with the chosen TF card, click "format to normal" button for TF card formatting.<br>
<br>
<div style="padding-left:200px ;">[[File:Orange-pi-pc2-img16.png|600px|]]</div>
<br>
d.Click "OK" button after successfully formatted the TF card to normal.<br>
e.Burn the Android OS image into your TF card. Please pay attention to the following with red marks.<br>
<br>
<div style="padding-left:200px ;">[[File:Orange-pi-pc2-img17.png|600px|]]</div>
<br>
f.Click "Burn" button for writing to TF card and wait for it finish<br>
<br>
<div style="padding-left:200px ;">[[File:Orange-pi-pc2-img18.png|600px|]]</div>
<br>
g.Click "Exit" button after burn Android image to TF card successfully.<br>
<br>
<br>
<div style="padding-left:200px ;">[[File:Orange-pi-pc2-img19.png|400px|]]</div>
<br>
ii. Select the image file path that has been unzipped<br>
<br>
<div style="padding-left:200px ;">[[File:Orange-pi-pc2-img20.png|600px|]]</div>
<br>
iii. Click "start" button and wait for the image to write.<br>
<div style="padding-left:200px ;">[[File:Orange-pi-pc2-img21.png|600px|]]</div>
<br>
<br>
=== '''Step 3: Boot your Orange Pi''' ===
<br>
'''1)Hardware Connection Sketch Map'''<br>
<br>
<div style="padding-left:200px;">[[File:Orange-pi-prime-img5.png|400px|]]<br></div><br><div style="padding-left:200px ;">
[[File:Orange-pi-plus-2e-img10.png|400px|]]<br>
<div style="width:400px;text-align:center;">Orange Pi Prime Zero Plus runs on Android 5.1 system</div>
</div>
<br>
<div style="padding-left:200px ;">
[[File:Orange-pi-plus-2e-img11.png|400px|]]<br>
<div style="width:400px;text-align:center;">Orange Pi Prime Zero Plus runs on Debian system</div>
</div>
<br>
<div style="padding-left:200px ;">[[File:Orange-pi-primeplus-img62e-img12.png|400px|]]<br><div style="width:400px;text-align:center;">Orange Pi Zero Plus runs on Ubuntu system</div>
</div>
<br>
b.You could use HDMI cable to connect your Orange Pi to HDMI TV or monitor.<br>
<br>
You could also use DVI AV interface and audio interface to connect TV. If you don’t have both HDMI outputvideo and DVI port, then you could use MIPS audio to connect LCDanalog TV or display.<br>
<br>
c.Insert USB keyboard There is 13pin on board which you could connect to expansion board. For expansion board, 2USB ports, mic and mouse into USB portsIR receiver are available.<br>d.It is the network port in the middle of 3USB interfacesmodule on board, which you can access Orange Pi to the wired network.<br>e.It is the You could connect to a power input interface adapter on the right side for connecting mic USB OTG with a 5V and at least 2A power adapter up to or bigger than 5V/2A power adapter. Avoid using smaller power GSM mobile phone charger, it is unable not able to output 2A even if it marked "5V/2A 5V".<br>
<br>
The Orange Pi will boot in a few minutes If the above steps are successful. There will be graphical interface in he monitor. It may take a long time to start the first time, please wait patiently. The next time will boot very fast.<br>
'''1)Connect to the wired network'''<br>
<br>
If Orange pi has already connected to wire cable before powered on, then * Method 1:a.Enter the system would get following in the IP address automaticallycommand line:<br>$ ifconfig<br>To check whether there is (wlan*)<br>b. If it has not connected to wire cable or other problem of networkno, then it will fail load the corresponding module corresponding to get the IP addresswlan model<br>$ insmod 8189fs. The system would take some time ko<br>For example: For RTL8189 FTV is corresponding to load but it has no influence for the board running8189fs.ko<br>It c.Enter command ifconfig, you should be green LED light on and yellow LED flashsee wlan0(hypothesis it is wlan0)<br>d. You Configure wireless network, first you need to make sure know ssid and psk(account and password), enter corresponding wlan*, ssid, psk<br>$ sudo nano /etc/network/interfaces (add the image you wrote is accordingly to following contents) <br>auto wlan0<br>iface wlan0 inet dhcp <br>wpa-ssid xxxx<br>wpa-psk xxxx<br>e.Reboot the board you use, since there are some board that is Megabit computer and some are Gigabit which could not be used mixed the wired network will work.<br>Megabit is using internal phy, here is $ sudo reboot<br>* Method 2:a.Build wifi hotspot configuration file of wpa_supplication.conf for on/etc/network/ directory and add the configurationfollowing: <br>2 indicates internal phynetwork={<br>ssid="wifi hot spot name" <div stylebr>psk="padding-left:200px;wifi hot spot password"<br>[[File:Orange-pi-pc2-img26.png|600px|]]priority=1</divbr>}<br>Gigabit is using external phyb.Connect wifi, here is the configurationcommand: <br>1 indicates external phyifconfig wlan0 up<div style="padding-left:200px;"br>[[File:Orangesudo wpa_supplicant -pii wlan0 -pc2-img27c /etc/network/wpa_supplication.png|600px|]]conf & dhcpcd wlan0 &</divbr>c.Test the condition of wifi connection<br>It is defaulted configuredUse iwconfig command, you could take that as referencewill find the related information of wlan0, use ping command to test.<br>
<br>
'''2)Login via vnc and ssh'''<br>
* Modify ssh configuration file /etc/ssh/sshd_config
<br>
<div style="padding-left:200px ;">
[[File:Orange-pi-pc2-img28.png|400px|]]
</div>
* Check the IP with ifconfig, login via ssh of root user
<br>
<div style="padding-left:200px ;">
[[File:Orange-pi-pc2-img29.png|600px|]]
</div>
<br>
'''3)HDMI or 3.5mm Sound Output(3.5mm sound output would require using an expansion board)'''<br>
<br>
a.The sound was default to output via HDMI on image, it could check and change via alsamixer.<br>
<br>
The default log in account is orangepi. In order to secure, it is recommended to modify the default orangepi accounts to your own account, for example Zhangsan. Steps are as follows:<br>
a.Use root account to login Orange Pi(please note that do not login with the account of orangepi)<br>
b.$ usermod -l zhangsan orangepi Change orangepi account into Zhangsan
<div style="padding-left:100px; ">
[[File:Orange-pi-pc2-img30.png|400px|]]
</div>
c.$ groupmod -n zhangsan orangepi Change group
<div style="padding-left:100px; ">
[[File:Orange-pi-pc2-img31.png|400px|]]
</div>
http://luyou.xunlei.com/thread-12545-1-1.html. <br>
Download Xware1.0.31_cubieboard zip file.
<div style="padding-left:200px ;">[[File:Orange-pi-pc2-img38.png|800px|]]</div>
<br>
Note: If you want to try the latest version, you can download the latest test version: http://luyou.xunlei.com/thread-15167-1-1.htm.<br>
i $ cd /xxx/xunlei The xxx is the directory of installation file of xunlei<br>
ii $ sudo nano thunder_mounts.cfg Modify the download path
<div style="padding-left:200px ;">[[File:Orange-pi-pc2-img42.png|400px|]]</div>
<br>
iii chmod +x etm_monitor<br>
<br>
Enter into the system and extend via shell Before partition
<div style="padding-left:200px ;">[[File:Orange-pi-pc2-img43.png|400px|]]</div>
<br>
Eneter into system and expend via resize_rootfs.sh
<div style="padding-left:200px ;">[[File:Orange-pi-pc2-img44.png|400px|]]</div>
<br>
Enter resize_rootfs.sh on command line, the system will expending automatically,
Reboot the system and use df -lh to check whether expending is successful
<div style="padding-left:200px ;">[[File:Orange-pi-pc2-img45.png|400px|]]</div>
<br>
a.Expand file system<br>
The above illustration is using fdisk and resize2fs to modify partition and file system, you could also use gparted. Gparted has graphical interface and it could help you to re-size file system at the same time of re-sizing partition. Goarted is much easier to use and reduce the change to make mistake. For now our offial Lubuntu and Raspbian could not use it.<br>
<br>
'''8)How to use gc2035 on Linux'''<br>a.Use find command to find the location of the following files, and load it according to the specified order<br>insmod videobuf-core.ko <br>insmod videobuf-dma-contig.ko <br>insmod uvcvideo.ko<br>insmod cci.ko <br>insmod vfe_os.ko<br>insmod vfe_subdev.ko <br>insmod gc2035.ko <br>insmod vfe_v4l2.ko<br>There should be generated video0 on /dev/ after loaded. After low-level driver install, then the Andoird could be used directory.<br>b. Use camera in Linux<br>i Load up driver<br>sudo modprobe gc2035 <br>sudo modprobe vfe_v4l2<br>ii. Install motion<br>sudo apt-get install motion<br>iii. Modify configuration <br>sudo nano /etc/motion/motion.conf <br>stream_localhost off<br>iv. Create folder for images saving <br>mkdir ~/motion<br>v. Modify permission <br>chmod 777 motion<br>vi. Continue modifying configuration <br>sudo nano /etc/default/motion <br>start_motion_daemon=yes<br>vii. Boot the server <br>Sudo /etc/init.d/motion start<br>Enter the following in browser: localhost:8081 <br>You could check image output from camera.<br>Besides, you could also refer to this link:<br>http://www.cnx-software.com/2015/09/26/how-to-use-orange-pi-camera-in-linux-with-motion/<br><br>'''9)eth0 and wlan0 static mac address setting'''
<br>
a.If the system do not use systemd, you could modify rc.local directory and add the following:<br>
Modify mac address of eth0 is same as modifying wlan0’s, just need to replace wlan0 into eth0.<br>
<br>
'''109)Orange Pi Android root'''
<br>
There is defaulted with root permission on Android pre-installed, but lacking authorization management software. The following is how to add authorization management software.<br>
This manual describes how to use the binary file to speed up the development of the project.<br>
Hardware: Orange Pi development board*1, Card reader*1, TF card*1, power supply*1
<div style="padding-left:200px ;">[[File:Orange-pi-primezero-img7plus-img4.png|800px|]]</div><br>Note: In the following sections, * indicates wild-cards, you need to fill in the actual values according to their file storage path.<br>
<br>
=== '''Download Linux Source Code''' ===
<br>
You could download the source code from the official website(Source code for AH5 chip are the same), and you could find the tools of lichee and android for file compilation.:<br>http://www.orangepi.org/downloadresourceshtml/<div style="paddinghardWare/computerAndMicrocontrollers/service-and-left:200px;">[[File:support/Orange-piPi-primeZero-img8Plus.png|400px|]]</div>html<br>
Subsection and compress the file, then unzip it after finish downloaded:
<div style="padding-left:200px ;">[[File:Orange-pi-pc2r1-img-img499.png|600px|]]</div>
<br>
buildroot: Project compilation script<br>
* If there is .buildconfig after commanded ll –a, delete it<br>
$ rm –rf .buildconfig
<div>[[File:Orange-pi-primepc2-img9img50.png|800px|]]</div>
<br>
* Use the following command to compile the entire project<br>
<br>
At this point the system will prompt the choice of the chip, as shown below, for OrangePi, select sun50iw2p1<br>
At this point, the system will be prompted to select the platform, as shown belowchoice of the board, for the OrangePi, select Androiddragonboard,dolphin and dolphin-p2<br><div style="padding-left:200px ;">[[File:Orange-pi-primezero-plus-img10img6.png|400px|]]</div>
<br>
Appear this interface indicates waiting for the compiler.
<div style="padding-left:200px ;">[[File:Orange-pi-primepc2-img11img53.png|400px|]]</div>
<br>
Wait fifteen minutes or so, compile complete.
<div style="padding-left:200px ;">[[File:Orange-pi-primepc2-img12img54.png|400px|]]</div>
<br>
libs: lichee/out/sun50iw2p1/android/common/lib/modules/3.10.65 <br>
Download image from official website:<br>
http://www.orangepi.org/downloadresourceshtml/hardWare/computerAndMicrocontrollers/service-and-support/<div>[[File:Orange-piPi-primeZero-img13Plus.png|800px|]]html</divbr>
<br>
* Write the image:<br>
$ sudo dd bs=4M if=*.img of=/dev/sdb<br>
<br>
<div>[[File:Orange-pi-plus-2e-img16.png|800px|]]</div>
<br>
* Pull out the card reader, and then insert it again.<br>
At this time, the SD card is inserted into PC, view the SD card mount point (if you don't know how to get a mount point for the SD card, please refer to the diagram below).
<br>
The first boot partition
<div>[[File:Orange-pi-prime-img14.png|800px|]]</div>
<br>
The second rootfs partition
<div>[[File:Orange-pi-pc2-img59.png|800px|]]</div>
<br>
Copy the kernel image file generated by the compiler to the first partition (boot partition)<br>
Copy the lib library which generated after compilation to the second partition (rootfs partition)<br>
uboot uboot source code<br>
<br>
Execute./build.sh enter into graphical interface and select PrimeZero plus2, the interface for Zero Plus is same as Zero plus2<div style="padding-left:200px ;">[[File:Orange-pi-pc2zero-plus-img61img8.png|600px|]]</div>
<br>
Enter password of root
<div style="padding-left:200px ;">[[File:Orange-pi-pc2-img62.png|600px|]]</div>
<br>
Update Kernel directory and module
<div style="padding-left:200px ;">[[File:Orange-pi-pc2-img63.png|600px|]]</div>
<br>
Select corresponding file directory and update uImage and modules
<div style="padding-left:200px ;">[[File:Orange-pi-pc2-img64.png|600px|]]</div>
<br>
<br>
Hardware: Orange Pi development board*1, Card reader*1, TF card*1, power supply*1
<div style="padding-left:200px ;">[[File:Orange-pi-primezero-plus-img15img4.png|800px|]]</div>
<br>
Software<br>
Version 3.81-3.82 of GNU Make; <br>
Version 1.7 or higher version of Git.<br>
Version 1.7 of Java<br>
<br>
=== '''Install JDK''' ===
<div>[[File:Orange-pi-pc2-img68.png|800px|]]</div>
<br>
* Command line input Jav and press tab to see whether it can auto completion (Java), which indicates it can successfully installed version 1version1.76.<br>
<br>
=== '''Download Android Source Package''' ===
<br>
Download website(source code is same for all boards of H3 chip): <br>http://www.orangepi.org/downloadresourceshtml/ hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Zero-Plus.html<br><br>Unzip the download file Then you will obtain the following directories:<br><div style="padding-left:200px ;">[[File:Orange-pi-pc2-img69.png|300px|]]</div>
<br>
<br>
$ pack #Packaged into firmware
<div>[[File:Orange-pi-plus-2e-img24.png|600px|]]</div>
<br>
$ cd */lichee/tools/pack/
<div>[[File:Orange-pi-plus-2e-img25.png|600px|]]</div>
<br>
$ cd ./lichee<br>
$ cp ./tools/pack/chips/sun50iw2p1/configs/dolphin-p1/sys_config.fex ./ <br>
You could personalized configuration of sys_config.fex according to
sysconfig1.fex_manul_linux_BSP_v0.4.doc.
Direcotory of sysconfig1.fex_manul_linux_BSP_v0.4.doc is
/lichee/buildroot/docs.
<br>
<br>
Hardware: Orange Pi development board*1, Card reader*1, TF card*1, power supply*1
<div style="padding-left:200px ;">[[File:Orange-pi-primezero-plus-img15img4.png|600px]]</div>
<br>
=== '''Device driver and application programming''' ===
=== '''Compile device driver''' ===
<br>
Copy the OrangePi_misc.c to the directory of :<br><nowiki>*/lichee/linux-3.10/driver/misc</nowiki>directory:<br>
<div>[[File:Orange-pi-pc2-img83.png|800px]]</div>
<br>
Enter to */lichee/linux-3.10/drivers/misc/, and modify makefile<br>
<div>[[File:Orange-pi-pc2-img84.png|800px]]</div>
<br>
Modify Makefile on currently file, shown as following:
<div>[[File:Orange-pi-i96-img53.png|800px]]</div>
<div>[[File:Orange-pi-prime-img16.png|400px]]</div>
<br>
There will be is a .ko file module which generated after compiled of OrangePi_misc.c on the directory of:<br>*/lichee/linux-3.10/output/lib/modules/3.10.65/<br>It is generated after OrangePi_misc.c compilation<div>[[File:Orange-pi-pc2-img88.png|800px]]</div><br>IInsert Insert U disk (please note the SD card should have been written image) if the SD card system is mounted to the directory / dev/ sdb, SD card will have two sub mount points, respectively are / dev / sdb1 and /dev/sdb2. Two partition of SD card will automatically mount to the PC /media/ directory, the first partition is the boot partition and the second partition is the rootfs partition.
<div>[[File:Orange-pi-i96-img55.png|800px]]</div>
<br>
<br>
Hardware: Orange Pi development board*1, Card reader*1, TF card*1, power supply*1
<div style="padding-left:200px ;">[[File:Orange-pi-primezero-plus-img15img4.png|800px]]</div>
<br>
'''TTL to USB cable'''
<div style="padding-left:200px ;">[[File:Orange-pi-i96-img67.png|800px]]</div>
<br>
=== '''Operations on Windows''' ===
* Open it after installed, shown as below:
<br>
<div style="padding-left:200px ;">[[File:Orange-pi-i96-img73.png|600px]]</div>
<br>
'''3)Connect method'''<br>
<br>
* Select control panel on Start menu
<div style="padding-left:200px ;">[[File:Orange-pi-i96-img75.png|400px]]</div>
<br>
<div style="padding-left:200px ;">[[File:Orange-pi-i96-img76.png|600px]]</div>
<br>
* Click on the device manager to check the port number
<div style="padding-left:200px ;">[[File:Orange-pi-i96-img77.png|400px]]</div><div style="padding-left:200px ;">[[File:Orange-pi-i96-img78.png|400px]]</div>
<br>
'''5)Putty configuration'''
<div style="padding-left:200px ;">[[File:Orange-pi-i96-img79.png|400px]]</div>
<br>
Serial port should set to the corresponding port number (COM5), the speed should set to 115200<br>
'''6)Start debug'''<br>
Power Orange Pi on and boot it, the serial port will automatic print out debug log.
<div style="padding-left:100px; ">[[File:Orange-pi-i96-img80.png|600px]]</div>
<br>
set window 5
</div>
<div style="padding-left:200px ;">[[File:Orange-pi-i96-img83.png|600px]]</div>
<br>
'''2)Connect method for debug'''
<br>
$ ls /dev/ (Input command in the PC terminal to check the device number of TTL to the serial cable)
<div style="padding-left:100px; ">[[File:Orange-pi-i96-img85.png|800px]]</div>
<br>
* It can be seen from the figure that TTL to the serial port cable is identified as ttyUSB0, configure the /ect/kermit/kermitc file, update the serial port information.<br>
 $ sudo vi /etc/kermit/kermitc
* Set the value of setline into /dev/ttyUSB0
<div style="padding-left:100px; ">[[File:Orange-pi-i96-img86.png|800px]]</div>
<br>
'''4)Start debug'''
* Input command in the host computer terminal, enter the Kermit mode:
 $ sudo kermit –c
<div style="padding-left:100px; ">[[File:Orange-pi-i96-img87.png|800px]]</div>
<br>
* Power on and boot OrangePi, the serial port will print debug log automatically
<div style="padding-left:100px;">[[File:Orange-pi-i96-img88.png|800px]]</div>
<br>
== '''Download the Orange Pi Zero Plus User Manual''' ==<br>For more information on using the Orange Pi PrimeZero Plus, please see the [https://drive.google.com/open?id=1bfnUh1yQYXn4IQTU9xEh3Lmxu2AsxEJ0 <span style="color:red;">Orange Pi Prime Zero Plus User Manual</span>]. (Click to download)

Navigation menu