From ae77537c17d1ab70492efa0794b0b88950b17bb2 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 28 Feb 2016 01:58:11 +0100 Subject: [PATCH] new package: add package 'brcmfmac_sdio-firmware-rpi' Signed-off-by: Stephan Raue --- .../brcmfmac_sdio-firmware-rpi/package.mk | 45 +++++++++++++++++++ .../system.d/brcmfmac_sdio-firmware.service | 13 ++++++ projects/RPi2/options | 2 +- 3 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 packages/linux-firmware/brcmfmac_sdio-firmware-rpi/package.mk create mode 100644 packages/linux-firmware/brcmfmac_sdio-firmware-rpi/system.d/brcmfmac_sdio-firmware.service diff --git a/packages/linux-firmware/brcmfmac_sdio-firmware-rpi/package.mk b/packages/linux-firmware/brcmfmac_sdio-firmware-rpi/package.mk new file mode 100644 index 0000000000..e58d5bf48d --- /dev/null +++ b/packages/linux-firmware/brcmfmac_sdio-firmware-rpi/package.mk @@ -0,0 +1,45 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv) +# +# OpenELEC is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# OpenELEC is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC. If not, see . +################################################################################ + +PKG_NAME="brcmfmac_sdio-firmware-rpi" +PKG_VERSION="0.1" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="https://github.com/OpenELEC/OpenELEC.tv" +PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz" +PKG_DEPENDS_TARGET="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="firmware" +PKG_SHORTDESC="brcmfmac_sdio-firmware: firmware for brcm bluetooth chips used on RaspberryPi devices" +PKG_LONGDESC="Firmware for Broadcom Bluetooth chips used on RaspberryPi devices, and brcm-patchram-plus that downloads a patchram files in the HCD format to the Bluetooth based silicon and combo chips and other utility functions." + +PKG_IS_ADDON="no" +PKG_AUTORECONF="no" + +make_target() { + : # nothing todo +} + +makeinstall_target() { + DESTDIR=$INSTALL ./install +} + +post_install() { + enable_service brcmfmac_sdio-firmware.service +} diff --git a/packages/linux-firmware/brcmfmac_sdio-firmware-rpi/system.d/brcmfmac_sdio-firmware.service b/packages/linux-firmware/brcmfmac_sdio-firmware-rpi/system.d/brcmfmac_sdio-firmware.service new file mode 100644 index 0000000000..0c66ca357d --- /dev/null +++ b/packages/linux-firmware/brcmfmac_sdio-firmware-rpi/system.d/brcmfmac_sdio-firmware.service @@ -0,0 +1,13 @@ +[Unit] +Description=Broadcom sdio firmware update for BCM43430A1 +ConditionPathExists=/dev/ttyAMA0 +ConditionPathExists=/proc/device-tree/soc/gpio@7e200000/bt_pins +After=network.target + +[Service] +Type=simple +RemainAfterExit=yes +ExecStart=/usr/bin/hciattach /dev/ttyAMA0 bcm43xx 921600 noflow - + +[Install] +WantedBy=network.target diff --git a/projects/RPi2/options b/projects/RPi2/options index 2a67bda569..ee95858460 100644 --- a/projects/RPi2/options +++ b/projects/RPi2/options @@ -121,7 +121,7 @@ # additional Firmware to use (dvb-firmware, misc-firmware, wlan-firmware) # Space separated list is supported, # e.g. FIRMWARE="dvb-firmware misc-firmware wlan-firmware" - FIRMWARE="misc-firmware wlan-firmware dvb-firmware" + FIRMWARE="misc-firmware wlan-firmware dvb-firmware brcmfmac_sdio-firmware-rpi" # build and install ATV IR remote support (yes / no) ATVCLIENT_SUPPORT="no"