BPI-M3 BSP Cross Compile teach

thank 陳鈞 share it.we just transfer to english.

BLOG:http://blog.jim60105.com/2016/03/bananapi-m3-cross-compile.html

use system message:

1 Compile BPI-M3 BSP

create a dir for BPI-M3 and get source code from gitgub

2, run this segment if you use 64 bits platform

the official kit was compiled on 32 bit platform ,so you must support 32bit execution in your 64 bits ubuntu.

3,install necessary tools:(skip this if you have executed the two instructions in the segment of the 64 bits)

4,begin to Compile

for me, i need use LCD on BPI-M3, so i choose is:3

now choose menu:

please waitting , it need long time to compile,it takes a while and depends on the performance of your computer

Note: if compile success ,will have ../bananapi/BPI-M3-BSP dir.if it does not show up, any other "build success" screen are deceptive.

5 burn image to SD card:

take a new SD card , and install official image to SD card.

official image : http://www.banana-pi.org/download.html

the next step, be sure to choose the correct device.

clean

please use "d" clean partition.And then dropped the device completely clear

dd if=/dev/zero of=/dev/sdf bs=4M

buru official image to SD card .please do not Android and Berryboot image.

example: ArchLinux

image name: 015-12-09-ArchLinuxARM-lite-bpi-m3-sd-emmc.img.zip

waiting still dd finish.

check partition

change /dev/sdf2 to ext2,and change size

Write the first compiled data: next step will clean partition table, so we must transcribe it at first

go to we just compiled things stored folder

all file will such as this below:

Empty memory card 1m before space (and clears the partition table)

in order to write compiled file

recovery partition table,and increase the capacity to the memory card is the largest,also change to /dev/sdf2.

all is finish. just use this SD card to boot your banana pi.

Last updated

Was this helpful?