Build armbian image for BPI-M2+


(BlinkQ) #1

from @tkaiser i found the github https://github.com/igorpecovnik/lib and try to build it

my system is Ubuntu 16.04x64

Linux MikuQ 4.4.0-24-generic #43-Ubuntu SMP Wed Jun 8 19:27:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Follow README.md

cd bpi git clone https://github.com/igorpecovnik/lib --depth 1 cp lib/compile.sh . ./compile.sh

return and return, select BPI-M2+, about 81min it complete i get the image ‘Armbian_5.14_Bananapim2plus_Ubuntu_xenial_3.4.112.raw’ at ‘output/images’ then i dd it to tf card

cd output/images sudo dd if=Armbian_5.14_Bananapim2plus_Ubuntu_xenial_3.4.112.raw of=/dev/sdb bs=10MB sudo eject /dev/sdb

it runs well on BPI-M2+, root’s default password is 1234, we can change it to bananapi, and create a new user pi with the same password.

thanks to armbian


#2

Just a few notes:

  1. 81 minutes is quite long but a few other Armbian devs did a great job to reduce that on subsequent runs. I just let a Jessie desktop image rebuild for BPi M2+ (we add now Wi-Fi/BT firmware as Debian package so that it can be easily upgraded later using apt-get update|upgrade):

    [ o.k. ] Copying image file [ Armbian_5.14_Bananapim2plus_Debian_jessie_3.4.112_desktop.raw ] [ o.k. ] Done building [ /var/git/Armbian/output/images/Armbian_5.14_Bananapim2plus_Debian_jessie_3.4.112_desktop.raw ] [ o.k. ] Runtime [ 7 min ]

This is 7 minutes including rebuilding the whole kernel and creating a complete OS image from scratch including desktop environment (server images run below 3 minutes). Now Bluetooth should work on BPi M2+

  1. For testing purposes we support FEL boot (see documentation) on all supported sunxi devices. So no need to burn an SD card at all if you just want to test something out. Simply choose the FEL option, let an image build, connect your Board and it will boot via USB/NFS.

  2. Our build system does not only support BPi M2+ but also M1, M1+, M2 and Lamobo R1 (except of M2 both with legacy and vanilla/mainline kernel)

  3. For desktop images with full HW acceleration we currently only support Jessie due to dependency hell (will be extended to Xenial soon)

  4. We tried many times to convince ‘Team BPi’ that they should start to adopt our build system (instead of creating crappy OS images by taking just Armbian rootfs) since quality of the OS images would automagically improve. To no avail as usual…


#3

Also nice: I just wanted BPi M2+ as MacBook powered USB-Ethernet device. Took me 5 minutes with Armbian build system to throw in the necessary patch and let new kernel packages build: http://forum.armbian.com/index.php/topic/1417-testers-wanted-g-ether-driver-h3-device-as-ethernet-dongle/page-0


(BlinkQ) #4

As a beginner, I try to understand part of what you said. Armbian developers do a lot of great work. I compile slow for many reasons, such as virtual machines, download the dependent packages, etc., my network environment is not very good. This is just the first attempt, the future will continue to focus on Armbian.


#5

That’s the reason our build system is caching almost everything (compile cache, apt cache, cached rootfs) and that’s why a first run might take 80 minutes but subsequent runs when you choose same distro and kernel variant might then run less than 5 minutes for the same task :slight_smile:


(BlinkQ) #6

Could you tell me how to use BLE on BPI-M2+? My friend asked me, and I don’t know how to use it scan BLE devices with armbian.

Thanks!


How to find Small Hand Rice Phone via Bluetooth
#7

Unfortunately not since I won’t touch this device anytime soon (wasted too much time with it already and just another hour to no avail)

Ask in Armbian forum, jernej got BT working on his OpenELEC port for M2+ so it has to work in a normal Linux installation too.


(BlinkQ) #8

thanks and I will write it next day


(bpi team) #9

mikey at allwinner , and maybe fixed this issue, driver all include at before image version, just for application layer have some issue, we need to let it work fine .:slight_smile:


(BlinkQ) #10

download from https://github.com/BPI-SINOVOIP/BPI_WiFi_Firmware hcitool scan can find my Small Hand Rice Phone:slight_smile: