Difference between revisions of "快速上手 M1"
JackZengWiki (talk | contribs) (→Introduction) |
JackZengWiki (talk | contribs) (→Development For Android) |
||
Line 15: | Line 15: | ||
* Mali-400 MP2 和 Open GL ES 2.0/1.1 | * Mali-400 MP2 和 Open GL ES 2.0/1.1 | ||
− | = | + | =开发Android= |
− | === | + | ===烧录第一个镜像到M1=== |
− | 1. | + | 1.首先从论坛上下载最近的镜像. |
− | Ex: | + | Ex:http://forum.banana-pi.org/t/bananapi-m1-m1p-r1-new-image-android-and-ubuntu-sever-release-2018-07-28/6357 |
− | 2. | + | 2.准备一张容量不低于8Gb的TF卡, 然后插到你PC上的USB接口中. |
− | 3. | + | 3.下载烧录工具 PhoenixCard.exe. |
− | + | * Download PhoenixCard: https://pan.baidu.com/s/18Fo_JhYY02gmxtFw2Ps3rQ | |
− | 4. | + | |
+ | 4.使用 "PhoenixCard.exe" 来烧录Android镜像到TF卡上. | ||
[[Image:M3_Android_Burning.png | 600px]] | [[Image:M3_Android_Burning.png | 600px]] | ||
− | + | ===如何编译 M1 Bsp 代码=== | |
− | + | * 准备一台运行Ubuntu系统的电脑 | |
− | === | + | * 安装 Docker-ce 在你的电脑上, https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce |
− | * | + | * 安装完成后执行命令 "docker pull sinovoip/bpi-build-android:a20_01", 下载docker镜像 |
− | * | + | * 下载完docker镜像后, 运行命令启动docker镜像 "docker run --privileged -d -p 2223:22 -v /media:/media sinovoip/bpi-build-android:a20_01" |
− | * | + | * 运行命令"ssh -p 2223 [email protected]"进入到docker镜像中, 默认密码是root |
− | * | + | * 进入到docker镜像后, 运行命令 "git clone https://github.com/BPI-SINOVOIP/BPI-M1-bsp.git"下载M1的Bsp代码 |
− | * "ssh -p 2223 [email protected] | + | * 运行命令 "./build.sh" 编译M1代码 |
− | * | + | * 编译完成后,可以运行代码 "docker cp xxxxx(your container id):xxxxx(your project path) xxxxx(your pc path)" 来拷贝结果到容器外的Ubuntu系统中 |
− | * | ||
− | * | ||
[[Image:docker_operate.png]] | [[Image:docker_operate.png]] |
Revision as of 22:35, 11 October 2018
Contents
介绍
BPI-M1
香蕉派M1是我们的第一个产品,我们的目标是创建一个开源开发板社区。使用香蕉派,我们希望你去探索和体验DIY项目和便携式计算的世界。我们欢迎社区里所有的公司、DIY爱好者和热爱科技的人!我们可以一起改变,我们可以发现我们的激情,激励他人,并建立一个切实可行的项目。
- 关于更多 : Banana Pi BPI-M1
关键特性
- 4核 1.0GHz CPU
- 1 GB DDR3 内存
- Mali-400 MP2 和 Open GL ES 2.0/1.1
开发Android
烧录第一个镜像到M1
1.首先从论坛上下载最近的镜像. Ex:http://forum.banana-pi.org/t/bananapi-m1-m1p-r1-new-image-android-and-ubuntu-sever-release-2018-07-28/6357 2.准备一张容量不低于8Gb的TF卡, 然后插到你PC上的USB接口中. 3.下载烧录工具 PhoenixCard.exe.
- Download PhoenixCard: https://pan.baidu.com/s/18Fo_JhYY02gmxtFw2Ps3rQ
4.使用 "PhoenixCard.exe" 来烧录Android镜像到TF卡上.
如何编译 M1 Bsp 代码
* 准备一台运行Ubuntu系统的电脑 * 安装 Docker-ce 在你的电脑上, https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce * 安装完成后执行命令 "docker pull sinovoip/bpi-build-android:a20_01", 下载docker镜像 * 下载完docker镜像后, 运行命令启动docker镜像 "docker run --privileged -d -p 2223:22 -v /media:/media sinovoip/bpi-build-android:a20_01" * 运行命令"ssh -p 2223 [email protected]"进入到docker镜像中, 默认密码是root * 进入到docker镜像后, 运行命令 "git clone https://github.com/BPI-SINOVOIP/BPI-M1-bsp.git"下载M1的Bsp代码 * 运行命令 "./build.sh" 编译M1代码 * 编译完成后,可以运行代码 "docker cp xxxxx(your container id):xxxxx(your project path) xxxxx(your pc path)" 来拷贝结果到容器外的Ubuntu系统中
Development For Linux
Let's get start to develop on BPI-M1, see amazing things happen.
Basic Development
Prepare to develop
* Prepare 8G/above TF card, USB-Serial interface, PC with Ubuntu System * Using your USB-Serial Connect debug console on M1
Load your first image on M1
1.You could download latest image from our forum * Here is the example link: 2.Install bpi-tools on your system * apt-get install pv * curl -sL https://github.com/BPI-SINOVOIP/bpi-tools/raw/master/bpi-tools | sudo -E bash 3.After you download the image, insert your TF card into your Ubuntu * Execute "bpi-copy xxx.img /dev/sdx" to install image on your TF card. 4.After step 3, then you can insert your TF card into M1, and press power button setup M1
Update your image
* execute “bpi-tools”, to update your bpi tools; * execute “bpi-update -c bpi-m1.conf”, to download new driver to update your image * execute “file *.tgz”, to check download files’ type is compressed data * execute “bpi-bootsel”, you will see the bootloader path, “/usr/lib/u-boot/bananapi/u-boot-2018.01/u-boot-2018.01-bpi-m1-8k.img.gz” * execute “bpi-bootsel /usr/lib/u-boot/bananapi/u-boot-2018.01/u-boot-2018.01-bpi-m1-8k.img.gz”, to update your bootloader * reboot