BBBAndroid-BlueZ

This is a temporary fork of Andrew Henderson's excellent BBBAndroid

Adds the following features

  • BlueZ for Bluetooth support, notably USB BT dongles
  • USB Wifi Support
  • Generic GPS support, USB and UART
  • PowerCape Support for RTC
  • Brightness Support for 4DCAPE_43
  • Patch to add a property to enable "No battery" support, shows powered icon.
  • Busybox
  • Beaglebone Green


Download

Download a pre built image here. You may need to adjust the kernel modules for your BT or Wifi USB dongle.


Build instructions


The build steps are identical to BBBAndroid except for the repo location, so you may want to look there for more detailed information.

Initialize your ASOP build environment, per Google

Install repo tool:

$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo

Create a directory to build BBBAndroid in. This will be the "root" of the build:

$ mkdir bbbandroid-bluez

Change into the root and clone the modified BBBAndroid source code:

$ cd bbbandroid-bluez
$ repo init -u http://github.com/kconger/bbbandroid-manifest
$ repo sync -c 

Apply patches

$ ./patch.sh

It is time to begin building BBBAndroid. Setup the environment of your shell for building and then configure the build to use the BeagleBone Black device files:

$ . build/envsetup.sh
$ lunch beagleboneblack-eng

Then, begin the build with make. 

$ make -j2
Towards the end of the build process, the kernel will begin building and request some input:

* Restart config...
*
*
* USB Gadget Support
*
USB Gadget Support (USB_GADGET) [Y/n/m/?] y
  Debugging messages (DEVELOPMENT) (USB_GADGET_DEBUG) [N/y/?] n
  Debugging information files (DEVELOPMENT) (USB_GADGET_DEBUG_FILES) [Y/n/?] y
  Debugging information files in debugfs (DEVELOPMENT) (USB_GADGET_DEBUG_FS) [Y/n/?] y
  Maximum VBUS Power usage (2-500 mA) (USB_GADGET_VBUS_DRAW) [2] 2
  Number of storage pipeline buffers (USB_GADGET_STORAGE_NUM_BUFFERS) [2] 2
  USB Gadget Drivers [M/y/?] (NEW)

Type "y" and then hit enter. This menu will pop up:

USB Gadget Drivers
    1. Gadget Zero (DEVELOPMENT) (USB_ZERO)
    2. Audio Gadget (USB_AUDIO)
    3. Ethernet Gadget (with CDC Ethernet support) (USB_ETH)
    4. Network Control Model (NCM) support (USB_G_NCM)
    5. Gadget Filesystem (USB_GADGETFS)
  > 6. Function Filesystem (USB_FUNCTIONFS)
    7. Mass Storage Gadget (USB_MASS_STORAGE)
    8. Serial Gadget (with CDC ACM and CDC OBEX support) (USB_G_SERIAL)
    9. MIDI Gadget (USB_MIDI_GADGET)
    10. Printer Gadget (USB_G_PRINTER)
    11. CDC Composite Device (Ethernet and ACM) (USB_CDC_COMPOSITE)
    12. Nokia composite gadget (USB_G_NOKIA)
    13. CDC Composite Device (ACM and mass storage) (USB_G_ACM_MS)
    14. Multifunction Composite Gadget (USB_G_MULTI)
    15. HID Gadget (USB_G_HID)
    16. EHCI Debug Device Gadget (USB_G_DBGP)
    17. USB Webcam Gadget (USB_G_WEBCAM)
  choice[1-17?]: 

Just hit enter. The build will continue on. 

Build a SD card image:

$ make sdcard_build

Write image to SD card, requires at least a 16GB card:

$ cd out/target/product/beagleboneblack/beagleboneblack/
$ sudo ./mkmmc-android.sh [YOUR DEVICE FILE FOR THE MICROSD CARD (i.e. /dev/sdb)]