Lamobo R1

Be aware that the board manufacturer is neither cooperative nor supplies necessary hardware details for the board.

This board shares the majority of hardware with the original Banana Pi. Main exceptions: A different board layout allows directly attaching a 2.5" disk (unlike other SATA capable Bananas here powered through the AXP209 PMU), a VLAN-capable Broadcom BCM53125 switch interconnecting SoC and the 5 GBit Ethernet ports and onboard 802.11 b/g/n Wi-Fi. Since the Lamobo R1 features exactly the same 26 pin GPIO connector as Banana Pi and the ported WiringPi library also works here all hardware Add-Ons utilising GPIO will also work.

Due to SATA and the GPIO stuff it makes not only a nice home automation hub or a NAS but with its on-board VLAN-capable switch, this should make a nice router board as well.

= Identification =

The Device is also marketed as Banana Pi Router or BPi-R1.

The PCB has the following silkscreened on it: Lamobo R1-SD_V3

In android, under Settings->About Tablet, you will find:
 * Model Number: 
 * Build Number: 

= Sunxi support =

Current status
No support in sunxi 3.4.

OpenWrt support using kernel 3.18 is currently awaiting upstream. Gigabit Ethernet needs some tickling from U-Boot to properly setup the TX clock delay, the on-board switch works nicely with OpenWrt's b53-mdio driver but there seem to be performance issues when data is transferred between CPU and the outside (traffic bridged by the BCM53125 between switch ports is not affected). The rtl8192cu mac80211 WiFi driver seems to be buggy/not work well with hostapd, however, client and ad-hoc mode works just fine.

Apart from the on-board switch, the board is very similar to the Banana Pi (M1) - thus any OS capable of running on the Banana Pi should work on the R1 as well.

Images
None yet.

Manual build

 * A working .fex file for kernel 3.4 including fixed SATA power definition can be found here:  lamobo-r1.fex
 * For building u-boot it is recommended to rely on u-boot 2015.4 or above and use the Lamobo_R1_defconfig target. As long as it's not included in mainline u-boot you find a patch here

To get older kernels booted by recent u-boot versions you have to apply this hack to u-boot sources:

echo -e "CONFIG_ARMV7_BOOT_SEC_DEFAULT=y\nCONFIG_OLD_SUNXI_KERNEL_COMPAT=y" >> .config echo -e "CONFIG_ARMV7_BOOT_SEC_DEFAULT=y\nCONFIG_OLD_SUNXI_KERNEL_COMPAT=y" >> spl/.config

Everything else is the same as the manual build howto.

Mainline U-Boot
For building mainline u-boot, use the Lamobo_R1_defconfig target. As long as it's not included in mainline u-boot you find a working version including correct CONFIG_GMAC_TX_DELAY and SATA power config here

Mainline kernel
Use the sun7i-a20-lamobo-r1.dts device-tree file for the mainline kernel. As long as it's not included in mainline you can find it here

To make the switch working, apply the patches from. For 4.0 or above better use these patches including a more recent version of the driver from here (some stuff has to be deleted before as outlined in

A working .config for kernel 3.19.5 can be found at. Since this config doesn't contain CONFIG_FHANDLE=y (necessary for systemd) and some other tweaks another alternative is (ready for 4.0 and above)

= Tips, Tricks, Caveats =

FEL mode
There seems to be no button to enter FEL mode. If no SD card is present, the A20 will automatically fall back to FEL mode (as this device has no other means of booting, like e.g. onboard NAND flash). So if you want to enforce FEL mode, you may simply remove the SD card and connect to the Lamobo R1 via the OTG micro USB (the one next to the USB type A port). This also supplies power to the board at the same time that might not be sufficient to power a SATA disk. So you might have to disconnect a SATA drive to use FEL mode.

Powering the board
The Lamobo R1 powers the SATA disk through the AXP209 PMU unlike other SATA capable Banana Pi variants (a reverse engineered power scheme is available: ). Therefore the whole board consumption in A can be read out using I2C/sysfs (currently works only with 3.4 kernel but not with mainline):

awk '{printf ("%0.2f",$1/1000000); }' </sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/ac/current_now

Since powering the board through the Micro-USB power-in connector is often somewhat unreliable (due to voltage drops between PSU and board and a failed power design of the board) which can lead to all sorts of strange symptoms a different way to power the board is to use the LiPo Battery connector next to the J12/J13 expansion headers. The AXP209's charger will disable itself when the voltage on this connector exceeds 4.2V so you can inject here up to 6.5V and exceed the 5V/1.8A limitation of the Micro-USB port (polarity of the JST XH 2.5mm header: 5V inwards, GND near the edge – see gallery below). If you power the board this way consumption in A can be read out using (kernel 3.4 only):

awk '{printf ("%0.2f",$1/1000000); }' </sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/battery/current_now

Available enclosures and thermal issues
When Wi-Fi and a SATA disk is used the temperature of the AXP209 PMU will increase even more compared to other Banana Pi variants. The BCM53125 switch IC that is also on the bottom side of the PCB gets hot as well. Since a SATA disk on the top side of the PCB will be directly above the BCM53125 operating the board horizontally is no good idea. Especially when an enclosure is used that doesn't provide any airflow around AXP209/BCM53125. An example for an enclosure with good thermal design (vertical orientation and use of convection -- unfortunately only available in Taiwan) can be found in the gallery below.

GPIO header
The Lamobo R1 uses the very same 26 pin GPIO connector with identical pin mappings like the original Banana Pi. In case you plan to use Add-on boards be aware that due to the orientation of the connector Add-ons will project over the board in the opposite direction than intended. See the gallery below for an example.

Network performance
Some of the available OS images for the Lamobo R1 suffer from missing CONFIG_GMAC_TX_DELAY adjustments in u-boot (4 seems to be the best value). This results in bad performance when network packets are transferred between A20 SoC and the outside. Even with correctly set GMAC TX delay settings the network throughput is bad compared to the combination GMAC+RTL8211E (with optimised TCP/IP stack tuning noone achieved more than 370/460 Mbits/sec TX/RX using iperf with 100% CPU utilisation -- maybe due to problems with the b53 driver used?).

Locating the UART
Connect your UART adapter here:


 * UART0-RX: J13-P01
 * UART0-TX: J13-P02
 * GND:     J12-P08

= Pictures =

= Also known as =


 * Banana Pi R1
 * BPi-R1
 * Banana Pi Router

= See also =


 * Forum at bananapi.com
 * Dead Lamobo forum with some documentation links available
 * Bananian -- Debian Wheezy based OS image that also fully supports Lamobo R1
 * Armbian -- Debian Wheezy/Jessie and Ubuntu Trusty based OS images for a variety of sunxi boards with full support for BPi-R1

Manufacturer images

 * Android and openwrt images
 * 'Official' OpenWRT sources for R1