From 63ae76affe24efae693cc4f8ca57029e46438980 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 28 Feb 2016 01:55:02 +0100 Subject: [PATCH 1/7] linux: bluez needs /etc/firmware/ Signed-off-by: Stephan Raue --- packages/linux/package.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/linux/package.mk b/packages/linux/package.mk index cd46737319..9d31885ac7 100644 --- a/packages/linux/package.mk +++ b/packages/linux/package.mk @@ -198,4 +198,7 @@ makeinstall_init() { post_install() { mkdir -p $INSTALL/lib/firmware/ ln -sf /storage/.config/firmware/ $INSTALL/lib/firmware/updates + + # bluez looks in /etc/firmware/ + ln -sf /lib/firmware/ $INSTALL/etc/firmware } From 812cee0a4a83eb078f8034c57261988ce9431fd3 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 28 Feb 2016 01:55:59 +0100 Subject: [PATCH 2/7] brcmfmac_sdio-firmware-imx: fix systemd unit file Signed-off-by: Stephan Raue --- ...mac_sdio-firmware$.service => brcmfmac_sdio-firmware@.service} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename packages/linux-firmware/brcmfmac_sdio-firmware-imx/system.d/{brcmfmac_sdio-firmware$.service => brcmfmac_sdio-firmware@.service} (100%) diff --git a/packages/linux-firmware/brcmfmac_sdio-firmware-imx/system.d/brcmfmac_sdio-firmware$.service b/packages/linux-firmware/brcmfmac_sdio-firmware-imx/system.d/brcmfmac_sdio-firmware@.service similarity index 100% rename from packages/linux-firmware/brcmfmac_sdio-firmware-imx/system.d/brcmfmac_sdio-firmware$.service rename to packages/linux-firmware/brcmfmac_sdio-firmware-imx/system.d/brcmfmac_sdio-firmware@.service From e03091c669d6af1c562983cbb7d5c6d528edc6c2 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 28 Feb 2016 14:48:07 +0100 Subject: [PATCH 3/7] OpenELEC-settings: update to OpenELEC-settings-0.6.12 Signed-off-by: Stephan Raue --- packages/mediacenter/OpenELEC-settings/package.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mediacenter/OpenELEC-settings/package.mk b/packages/mediacenter/OpenELEC-settings/package.mk index 38038a7173..4b7937bb60 100644 --- a/packages/mediacenter/OpenELEC-settings/package.mk +++ b/packages/mediacenter/OpenELEC-settings/package.mk @@ -17,7 +17,7 @@ ################################################################################ PKG_NAME="OpenELEC-settings" -PKG_VERSION="0.6.11" +PKG_VERSION="0.6.12" PKG_REV="1" PKG_ARCH="any" PKG_LICENSE="prop." From 735c1f83c7f74f8f12404a6b3ea90767b8a9fa96 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 28 Feb 2016 18:15:23 +0100 Subject: [PATCH 4/7] libcec: fix build for iMX Signed-off-by: Stephan Raue --- packages/devel/libcec/package.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/devel/libcec/package.mk b/packages/devel/libcec/package.mk index 0306c667f5..2e3327581d 100644 --- a/packages/devel/libcec/package.mk +++ b/packages/devel/libcec/package.mk @@ -38,15 +38,15 @@ if [ "$KODIPLAYER_DRIVER" = "bcm2835-driver" ]; then fi if [ "$KODIPLAYER_DRIVER" = "libfslvpuwrap" ]; then - EXTRA_CMAKE_OPTS="-DHAVE_IMX_API=1" + EXTRA_CMAKE_OPTS="$EXTRA_CMAKE_OPTS -DHAVE_IMX_API=1" else - EXTRA_CMAKE_OPTS="-DHAVE_IMX_API=0" + EXTRA_CMAKE_OPTS="$EXTRA_CMAKE_OPTS -DHAVE_IMX_API=0" fi if [ "$KODIPLAYER_DRIVER" = "libamcodec" ]; then - EXTRA_CMAKE_OPTS="-DHAVE_AMLOGIC_API=1" + EXTRA_CMAKE_OPTS="$EXTRA_CMAKE_OPTS -DHAVE_AMLOGIC_API=1" else - EXTRA_CMAKE_OPTS="-DHAVE_AMLOGIC_API=0" + EXTRA_CMAKE_OPTS="$EXTRA_CMAKE_OPTS -DHAVE_AMLOGIC_API=0" fi configure_target() { From c2dad7aa24101eaea59cfb29b4c172fe50458afd Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 28 Feb 2016 01:58:11 +0100 Subject: [PATCH 5/7] 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 5bf79bf1ce..df1ecbda0d 100644 --- a/projects/RPi2/options +++ b/projects/RPi2/options @@ -118,7 +118,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" From 85bd8eae3295e86b5f8e7bf21800706514c1af1b Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 1 Mar 2016 07:36:31 +0100 Subject: [PATCH 6/7] projects/RPi2/options: update NOOBS supported models for RPi3 Signed-off-by: Stephan Raue --- projects/RPi2/options | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/RPi2/options b/projects/RPi2/options index df1ecbda0d..aa68b89558 100644 --- a/projects/RPi2/options +++ b/projects/RPi2/options @@ -60,7 +60,7 @@ LINUX="default" # NOOBS supported hex versions - NOOBS_HEX="1040,1041" + NOOBS_HEX="1040,1041,2082" ################################################################################ # setup build defaults From 7f77d0df5bcb10a8b89a1ace8e3cc0e801a702a5 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 1 Mar 2016 07:49:27 +0100 Subject: [PATCH 7/7] NOOBS: add support for NOOBS-1.8 Signed-off-by: Stephan Raue --- config/noobs/os.json | 1 + projects/RPi/options | 5 ++++- projects/RPi2/options | 5 ++++- scripts/image | 1 + 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/config/noobs/os.json b/config/noobs/os.json index 5f085aaccb..321969778e 100644 --- a/config/noobs/os.json +++ b/config/noobs/os.json @@ -6,5 +6,6 @@ "description": "@DESCRIPTION@", "username": "root", "password": "@ROOT_PASSWORD@", + "supported_models": [@NOOBS_SUPPORTED_MODELS@], "supported_hex_revisions": "@NOOBS_HEX@" } diff --git a/projects/RPi/options b/projects/RPi/options index 68a2044a47..1a5a5680ba 100644 --- a/projects/RPi/options +++ b/projects/RPi/options @@ -59,9 +59,12 @@ # default: default mainline kernel LINUX="default" - # NOOBS supported hex versions + # NOOBS supported hex versions (legacy) NOOBS_HEX="2,3,4,5,6,7,8,9,d,e,f,10,11,12,14,19" + # NOOBS supported model versions + NOOBS_SUPPORTED_MODELS="'Pi Model','Pi Zero'" + ################################################################################ # setup build defaults ################################################################################ diff --git a/projects/RPi2/options b/projects/RPi2/options index aa68b89558..e26dbdd3d2 100644 --- a/projects/RPi2/options +++ b/projects/RPi2/options @@ -59,9 +59,12 @@ # default: default mainline kernel LINUX="default" - # NOOBS supported hex versions + # NOOBS supported hex versions (legacy) NOOBS_HEX="1040,1041,2082" + # NOOBS supported model versions + NOOBS_SUPPORTED_MODELS="'Pi 2','Pi 3'" + ################################################################################ # setup build defaults ################################################################################ diff --git a/scripts/image b/scripts/image index 59505e3555..5d1d185f42 100755 --- a/scripts/image +++ b/scripts/image @@ -447,6 +447,7 @@ fi -e "s%@KERNEL_VERSION@%$(kernel_version)%g" \ -e "s%@DESCRIPTION@%$DESCRIPTION%g" \ -e "s%@ROOT_PASSWORD@%$ROOT_PASSWORD%g" \ + -e "s%@NOOBS_SUPPORTED_MODELS@%$NOOBS_SUPPORTED_MODELS%g" \ -e "s%@NOOBS_HEX@%$NOOBS_HEX%g" \ -i $RELEASE_DIR/${DISTRONAME}_${PROJECT}/os.json