# BPI-R2 source code on github

**Banana pi BPI-R2 source code open on github**

![](https://2026254418-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2HWtQhonJaM_KJIa7S%2F-M2HWugLnEYPO4HWj-RM%2F-M2HXJzLI02lhHuZIbnb%2Fcode%20on%20github.jpg?generation=1584080204191418\&alt=media)

Banana pi BPI-R2 BSP

**Overview**

This project is for banana-pi R2 board, including U-boot and Linux Kernel 4.4.x.

**Getting started**

* Downloading Ubuntu 16.04 image for R2 board from [http://www.banana-pi.org](http://www.banana-pi.org)
* Running below command to burn this image to SD card which must be larger than 8GB dd if= of=/dev/mmcblk0
* Install this SD to R2 board
* Press power button a few seconds to activate this board The default baud rate of serial port is 115200, the default username/password are root/bananapi

\
**How to build both U-boot and Linux kernel**  \


To build this project, the following package is required: gcc-arm-linux-gnueabihf

* Clone this code to a host PC on which the Ubuntu 16.04 is installed
* Run script build.sh ./build.sh
* Select 1 to build both uboot and kernel
* Both new uboot and kernel will be generated in folder SD when it completes

\
**How to update both u-boot and Linux kernel**  \


* Install SD card to this host PC, please ensure Ubuntu 16.04 R2 image is installed on this SD card
* Enter folder SD which is generated after building
* Run below command to update u-boot and Linux kernel bpi-update -c bpi-r2.conf
*   After it completes, move SD to R2 board

    Press power button to activate this board

[https://github.com/BPI-SINOVOIP/BPI-R2-bsp](https://github.com/BPI-SINOVOIP/BPI-R2-bsp)
