<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.banana-pi.org/index.php?action=history&amp;feed=atom&amp;title=%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B_%E9%A6%99%E8%95%89%E6%B4%BE_BPI-M2%2B</id>
		<title>快速上手 香蕉派 BPI-M2+ - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.banana-pi.org/index.php?action=history&amp;feed=atom&amp;title=%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B_%E9%A6%99%E8%95%89%E6%B4%BE_BPI-M2%2B"/>
		<link rel="alternate" type="text/html" href="https://wiki.banana-pi.org/index.php?title=%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B_%E9%A6%99%E8%95%89%E6%B4%BE_BPI-M2%2B&amp;action=history"/>
		<updated>2026-04-30T16:16:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.banana-pi.org/index.php?title=%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B_%E9%A6%99%E8%95%89%E6%B4%BE_BPI-M2%2B&amp;diff=5296&amp;oldid=prev</id>
		<title>Sinovoip: Created page with &quot;en:Getting_Started_with_M2P =介绍=  Overview: BPI-M2+ Ubuntu linux Overview:BPI-M2+ Debian linux File:Rasbia...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.banana-pi.org/index.php?title=%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B_%E9%A6%99%E8%95%89%E6%B4%BE_BPI-M2%2B&amp;diff=5296&amp;oldid=prev"/>
				<updated>2018-10-27T05:47:50Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;Getting_Started_with_M2P&quot; class=&quot;extiw&quot; title=&quot;en:Getting Started with M2P&quot;&gt;en:Getting_Started_with_M2P&lt;/a&gt; =介绍=  &lt;a href=&quot;/File:M2p_ubunu.jpg&quot; title=&quot;File:M2p ubunu.jpg&quot;&gt;thumb|Overview: BPI-M2+ Ubuntu linux&lt;/a&gt; &lt;a href=&quot;/File:M2p_debian.jpg&quot; title=&quot;File:M2p debian.jpg&quot;&gt;thumb|Overview:BPI-M2+ Debian linux&lt;/a&gt; File:Rasbia...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[en:Getting_Started_with_M2P]]&lt;br /&gt;
=介绍=&lt;br /&gt;
&lt;br /&gt;
[[File:M2p_ubunu.jpg|thumb|Overview: BPI-M2+ Ubuntu linux]]&lt;br /&gt;
[[File:M2p_debian.jpg|thumb|Overview:BPI-M2+ Debian linux]]&lt;br /&gt;
[[File:Rasbian.jpg|thumb|Overview:BPI-M2+ Rasbian linux]]&lt;br /&gt;
&lt;br /&gt;
香蕉派M2+是一种微型的开发板, 在超便携的形状特性中提供了巨大的计算性能. M2+只有65mm*65mm的大小, 搭配Allwinner H系列芯片, 它具有不同的版本，但共享相同的接口.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*关于更多 : [[Banana Pi BPI-M2+]]&lt;br /&gt;
*烧录镜像  : [[Quick Start Banana pi SBC]]&lt;br /&gt;
&lt;br /&gt;
==BPI-M2+ H3==&lt;br /&gt;
===Key Features===&lt;br /&gt;
* Quad-core 1.2GHz Cortex-A7 H3&lt;br /&gt;
* 1GB DDR3&lt;br /&gt;
* 8GB eMMC onboard&lt;br /&gt;
* WiFi and BlueTooth onboard&lt;br /&gt;
* 10/100/1000Mbps Ethernet Port&lt;br /&gt;
&lt;br /&gt;
=Development For Android=&lt;br /&gt;
===Load your first image on M2P===&lt;br /&gt;
  1.You could download latest image from our forum.&lt;br /&gt;
  Ex: http://forum.banana-pi.org/t/bananapi-bpi-m2p-h3-new-image-android7-0-release-2018-6-30/6147&lt;br /&gt;
  &lt;br /&gt;
  2.Put your TF card into a TF-USB adapter, and then plug adapter in your Windows PC usb interface.&lt;br /&gt;
  &lt;br /&gt;
  3.Prepare your image, and download image burning tools PhoenixCard.exe.&lt;br /&gt;
  &lt;br /&gt;
  4.Use &amp;quot;PhoenixCard.exe&amp;quot; to burn android image to TF card.&lt;br /&gt;
&lt;br /&gt;
  * Here is the example of M3&lt;br /&gt;
  &lt;br /&gt;
  [[Image:M3_Android_Burning.png]]&lt;br /&gt;
&lt;br /&gt;
===Load your image on M2P EMMC===&lt;br /&gt;
  1.The only different with sd card burning is the image burning mode item choice&lt;br /&gt;
&lt;br /&gt;
  * Here is the example of M3&lt;br /&gt;
  &lt;br /&gt;
  [[Image:M3_Android_Emmc_Burning.png]]&lt;br /&gt;
  &lt;br /&gt;
  2.After succeed to burn image to SD, then plug SD card in your M2P&lt;br /&gt;
  &lt;br /&gt;
  3.Press power button, device will copy image to EMMC automatically&lt;br /&gt;
&lt;br /&gt;
  * Download PhoenixCard: https://pan.baidu.com/s/18Fo_JhYY02gmxtFw2Ps3rQ&lt;br /&gt;
&lt;br /&gt;
=Development For Linux=&lt;br /&gt;
==Basic Development==&lt;br /&gt;
===Prepare to develop===&lt;br /&gt;
  * Prepare 8G/above TF card, USB-Serial interface, PC with Ubuntu System&lt;br /&gt;
  * Using your USB-Serial Connect debug console on M2P&lt;br /&gt;
&lt;br /&gt;
===Load your first image on M2P===&lt;br /&gt;
  1.You could download latest image from our forum&lt;br /&gt;
  * Here is the example forum thread link: http://forum.banana-pi.org/t/banana-pi-bpi-m2p-new-image-release-ubuntu-16-04-v1-1/5719&lt;br /&gt;
  &lt;br /&gt;
  2.Install bpi-tools on your Ubuntu&lt;br /&gt;
  * apt-get install pv&lt;br /&gt;
  * curl -sL https://github.com/BPI-SINOVOIP/bpi-tools/raw/master/bpi-tools | sudo -E bash&lt;br /&gt;
  &lt;br /&gt;
  3.After you download the image, insert your TF card into your Ubuntu&lt;br /&gt;
  * Execute &amp;quot;bpi-copy xxx.img /dev/sdx&amp;quot; to install image on your TF card.&lt;br /&gt;
  &lt;br /&gt;
  4.After step 3, then you can insert your TF card into M2P, and press power button setup M2P.&lt;br /&gt;
&lt;br /&gt;
===Load your first image on M2P EMMC===&lt;br /&gt;
  * Run your M2P with TF card&lt;br /&gt;
  * Copy &amp;quot;xxx-sd-emmc-xxx.img.zip / xxx-sd-emmc-xxx.img&amp;quot; to your USB disk&lt;br /&gt;
  * Plug your USB disk in M2P&lt;br /&gt;
  * After M2P recognise USB disk, execute &amp;quot;bpi-copy xxx-sd-emmc-xxx.img.zip / xxx-sd-emmc-xxx.img&amp;quot; to install image on EMMC&lt;br /&gt;
  * Then power off M2P, take TF card out, power on M2P with EMMC&lt;br /&gt;
&lt;br /&gt;
==Advanced Development==&lt;br /&gt;
&lt;br /&gt;
===How to build uboot &amp;amp; kernel===&lt;br /&gt;
====Install tools====&lt;br /&gt;
* apt-get udpate&lt;br /&gt;
* apt-get install gcc-arm-linux-gnueabihf u-boot-tools&lt;br /&gt;
* apt-get install pv&lt;br /&gt;
* curl -sL https://github.com/BPI-SINOVOIP/bpi-tools/raw/master/bpi-tools | sudo -E bash&lt;br /&gt;
====Clone code====&lt;br /&gt;
* git clone: https://github.com/BPI-SINOVOIP/BPI-M2P-bsp.git&lt;br /&gt;
* ./build.sh&lt;br /&gt;
&lt;br /&gt;
===How to create an image ===&lt;br /&gt;
* Prepare a SD card which have installed system(Ubuntu/Raspbian/..)&lt;br /&gt;
* Boot your SD card with M2P, after M2P finish starting, copy your files and config your system, then poweroff M2P. [If you don't want to config your system, you can skip this step]&lt;br /&gt;
* Plug your SD card in PC(which is running Linux), &amp;quot;cd /media&amp;quot;, then &amp;quot;ln -s &amp;lt;your account&amp;gt; pi&amp;quot;&lt;br /&gt;
* Execute &amp;quot;bpi-migrate -c bpi-m2p.conf -c ubuntu-mate-from-sd.conf -d /dev/sdx&amp;quot;&lt;br /&gt;
* Then you could get your own image now&lt;br /&gt;
&lt;br /&gt;
===GPIO Control===&lt;br /&gt;
* To access a GPIO pin you first need to export it with&lt;br /&gt;
  echo XX &amp;gt; /sys/class/gpio/export&lt;br /&gt;
* with XX being the number of the desired pin. To obtain the correct number you have to calculate it from the pin name (like PH18)&lt;br /&gt;
  (position of letter in alphabet - 1) * 32 + pin number&lt;br /&gt;
   for PH18 this would be ( 8 - 1) * 32 + 18 = 224 + 18 = 242 (since 'h' is the 8th letter)&lt;br /&gt;
* echo &amp;quot;out/in&amp;quot; &amp;gt; /sys/class/gpio/gpio*NUMBER*/direction&lt;br /&gt;
* echo &amp;quot;0/1&amp;quot; &amp;gt; /sys/class/gpio/gpio*NUMBER*/value&lt;br /&gt;
&lt;br /&gt;
===OTG===&lt;br /&gt;
1. On M2P console:&lt;br /&gt;
* Execute &amp;quot;./adbd.sh&amp;quot;, then execute &amp;quot;ps -ax | grep adbd&amp;quot; to see if adbd is set up&lt;br /&gt;
&lt;br /&gt;
2. On PC terminal:&lt;br /&gt;
* If adbd was succeed to set up, insert OTG-USB interface to M2P and PC(with Ubuntu system)&lt;br /&gt;
* Execute &amp;quot;adb devices&amp;quot; to see if PC has recognised M2P OTG&lt;br /&gt;
* If yes, we could execute &amp;quot;adb shell&amp;quot; to connect M2P by adb now&lt;br /&gt;
&lt;br /&gt;
===GMAC===&lt;br /&gt;
* Use iperf3 to test gmac&lt;br /&gt;
&lt;br /&gt;
[[Image:M2P_GMAC.png]]&lt;br /&gt;
&lt;br /&gt;
===Bluetooth===&lt;br /&gt;
* Use bluetoothctl tool to operate BT&lt;br /&gt;
* Execute &amp;quot;bluetoothctl&amp;quot;&lt;br /&gt;
* If you don't know how to use bluetoothctl, type &amp;quot;help&amp;quot;, you will see more commands&lt;br /&gt;
* Execute these commands: &lt;br /&gt;
[[Image:M2P_BT_bluetoothctl.png]]&lt;br /&gt;
&lt;br /&gt;
[[Image:M2P_BT.png]]&lt;br /&gt;
&lt;br /&gt;
===WiFi on M2P===&lt;br /&gt;
&lt;br /&gt;
Driver code:&lt;br /&gt;
&lt;br /&gt;
*https://github.com/BPI-SINOVOIP/BPI_WiFi_Firmware&lt;br /&gt;
&lt;br /&gt;
====WiFi Client====&lt;br /&gt;
'''You have two ways to setup WiFi Client'''&lt;br /&gt;
&lt;br /&gt;
1. Use commands to setup WiFi client&lt;br /&gt;
* ip link set wlan0 up&lt;br /&gt;
* iw dev wlan0 scan | grep SSID&lt;br /&gt;
* vim /etc/wpasupplicant/wpa_supplicant.conf &lt;br /&gt;
* network={    ssid=&amp;quot;ssid&amp;quot;    psk=&amp;quot;password&amp;quot;    priority=1 }&lt;br /&gt;
* wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf&lt;br /&gt;
* dhclient wlan0&lt;br /&gt;
&lt;br /&gt;
2. Use UI interface to setup WiFi Client&lt;br /&gt;
&lt;br /&gt;
===Clear boot===&lt;br /&gt;
* git clone https://github.com/BPI-SINOVOIP/BPI-files/tree/master/SD/100MB&lt;br /&gt;
* bpi-bootsel BPI-cleanboot-8k.img.gz /dev/sdX&lt;br /&gt;
&lt;br /&gt;
===Camara function===&lt;br /&gt;
We use HDF5640 camara.&lt;br /&gt;
&lt;br /&gt;
[[Image:ov5640_camara.png]]&lt;br /&gt;
====Guvcview====&lt;br /&gt;
* Use your UI interface to operate camara&lt;br /&gt;
* Applications -&amp;gt; Sound &amp;amp; Video -&amp;gt; guvcview&lt;br /&gt;
[[Image:guvcview_ov5640.png]]&lt;br /&gt;
====Shell====&lt;br /&gt;
* We also have built-in command in /usr/local/bin to test camara&lt;br /&gt;
* &amp;quot;./test_ov5640_image_mode.sh&amp;quot; to test picture taking function&lt;br /&gt;
* &amp;quot;./cameratest.sh&amp;quot; to test video recording function&lt;br /&gt;
&lt;br /&gt;
===IR function===&lt;br /&gt;
* Execute &amp;quot;getevent&amp;quot;&lt;br /&gt;
* Use your IR device to send information to M2P&lt;br /&gt;
[[Image:IR_getevent.png]]&lt;br /&gt;
&lt;br /&gt;
===BPI-Tools===&lt;br /&gt;
====Install Bpi-tools====&lt;br /&gt;
* Execute &amp;quot;curl -sL https://github.com/BPI-SINOVOIP/bpi-tools/raw/master/bpi-tools | sudo -E bash - &amp;quot;&lt;br /&gt;
&lt;br /&gt;
====Update Bpi-tools====&lt;br /&gt;
* Execute &amp;quot;bpi-tools&amp;quot;&lt;br /&gt;
[[Image: Bpi-tools.png]]&lt;br /&gt;
&lt;br /&gt;
===RPi.GPIO===&lt;br /&gt;
====Install RPi.GPIO====&lt;br /&gt;
* Execute &amp;quot;git clone https://github.com/BPI-SINOVOIP/RPi.GPIO&amp;quot;&lt;br /&gt;
* after clone the repo, cd RPi.GPIO&lt;br /&gt;
* Execute &amp;quot;sudo apt-get update&amp;quot;&lt;br /&gt;
* Execute &amp;quot;sudo apt-get install python-dev python3-dev&amp;quot;&lt;br /&gt;
* Execute &amp;quot;sudo python setup.py install&amp;quot; or &amp;quot;sudo python3 setup.py install&amp;quot; to install the module&lt;br /&gt;
&lt;br /&gt;
====Using RPi.GPIO====&lt;br /&gt;
* cd /usr/local/bin&lt;br /&gt;
* Execute &amp;quot;./bpi_test_g40.py&amp;quot; to test RPi.GPIO&lt;br /&gt;
&lt;br /&gt;
[[Image: RPi_GPIO.png]]&lt;br /&gt;
&lt;br /&gt;
===WiringPi===&lt;br /&gt;
* GitHub: https://github.com/BPI-SINOVOIP/BPI-WiringPi2.git&lt;br /&gt;
* We also have built-in test command in &amp;quot;/usr/local/bin&amp;quot;&lt;br /&gt;
&lt;br /&gt;
====How to Update WiringPi====&lt;br /&gt;
* Execute &amp;quot;bpi-update -c pkglist.conf&amp;quot;&lt;br /&gt;
[[Image: Update_Pkglist.png]]&lt;br /&gt;
&lt;br /&gt;
* Execute &amp;quot;bpi-update -c bpi-pkg-bpi-wiringpi.conf&amp;quot;&lt;br /&gt;
[[Image: Update_WringPi.png]]&lt;br /&gt;
&lt;br /&gt;
====RGB 1602 LCD====&lt;br /&gt;
* Execute &amp;quot;/usr/local/bin/bpi_test_lcd1602.sh&amp;quot;&lt;br /&gt;
[[Image: WringPi_1602_LCD.png]]&lt;br /&gt;
&lt;br /&gt;
====0.96 Inch OLED Display====&lt;br /&gt;
* Execute &amp;quot;/usr/local/bin/bpi_test_52pi.sh&amp;quot;&lt;br /&gt;
[[Image: WringPi_0.96_OLED.png]]&lt;br /&gt;
&lt;br /&gt;
====8x8 RGB LED Martix====&lt;br /&gt;
* Firstly you need a GPIO Extend Board for 8x8 LED Martix&lt;br /&gt;
[[Image: WringPi_LED_Martix_Extend_Board.png]]&lt;br /&gt;
&lt;br /&gt;
* Execute &amp;quot;/usr/local/bin/bpi_test_gpio40.sh&amp;quot;&lt;br /&gt;
[[Image: WringPi_LED_Martix.png]]&lt;br /&gt;
&lt;br /&gt;
==FAQ==&lt;br /&gt;
&lt;br /&gt;
=Reference Link=&lt;br /&gt;
&lt;br /&gt;
http://www.banana-pi.org/m2plus.html&lt;br /&gt;
&lt;br /&gt;
http://forum.banana-pi.org/&lt;/div&gt;</summary>
		<author><name>Sinovoip</name></author>	</entry>

	</feed>