Skip to content

Commit 2552e16

Browse files
authored
Merge pull request #62 from hifiberry/development
Revert to buildroot 2019.08.3
2 parents 35023f8 + 30e2c91 commit 2552e16

28 files changed

+430
-580
lines changed

build-config

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ echo "Building in $BRDIR"
1717
echo $VERSION > $BRDIR/.piversion
1818
echo $VERSION > buildroot/PIVERSION
1919

20-
SRC=configs/hifiberryos
20+
if [[ "$2" == "" || "$2" == "release" ]]; then
21+
TEMPLATE=hifiberryos
22+
else
23+
TEMPLATE=$2
24+
fi
25+
SRC=configs/$TEMPLATE
2126
#SRC=configs/hifiberryos-gui
2227
TMP=./tmpfile.$$
2328
DST=./config.$$
@@ -28,8 +33,13 @@ if [ ! -f $PLATFORM ]; then
2833
exit 1
2934
fi
3035

36+
if [ ! -f $SRC ]; then
37+
echo "template $SRC does not exist, aborting..."
38+
exit 1
39+
fi
3140
cp $SRC $TMP
3241

42+
3343
# These settings differ at at different Pi types
3444
for i in BR2_ARCH_NEEDS_GCC_AT_LEAST_4_8 BR2_ARCH_NEEDS_GCC_AT_LEAST_4_9 BR2_ARCH_NEEDS_GCC_AT_LEAST_5 BR2_GCC_TARGET_CPU BR2_GCC_TARGET_FPU BR2_cortex_a53 BR2_cortex_a72 BR2_DEFCONFIG BR2_ROOTFS_POST_BUILD_SCRIPT BR2_ROOTFS_POST_IMAGE_SCRIPT BR2_LINUX_KERNEL_DEFCONFIG BR2_LINUX_KERNEL_INTREE_DTS_NAME BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4 BR2_ARM_CPU_HAS_NEON BR2_ARM_CPU_HAS_VFPV3 BR2_ARM_CPU_HAS_VFPV4 BR2_ARM_CPU_HAS_FP_ARMV8 BR2_ARM_CPU_HAS_THUMB BR2_ARM_CPU_ARMV6 BR2_arm1176jzf_s BR2_ARM_FPU_VFPV2 BR2_ARM_FPU_VFPV3 BR2_ARM_FPU_VFPV3D16 BR2_ARM_FPU_VFPV4 BR2_ARM_FPU_VFPV4D16 BR2_ARM_FPU_NEON BR2_ARM_FPU_FP_ARMV8 BR2_ARM_FPU_NEON_FP_ARMV8 BR2_SYSTEM_DHCP BR2_PACKAGE_BAYER2RGB_NEON BR2_PACKAGE_JPEG_SIMD_SUPPORT BR2_PACKAGE_NE10 BR2_PACKAGE_OPENBLAS BR2_PACKAGE_OPENBLAS_DEFAULT_TARGET BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4 BR2_ARM_INSTRUCTIONS_THUMB2 BR2_ARM_ENABLE_VFP BR2_ARM_CPU_ARMV7A BR2_cortex_a7; do
3545
cat $TMP | grep -v $i > $DST

buildroot/buildroot-2019.08.3.patch

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
diff -ur buildroot-2019.08.orig/board/raspberrypi/genimage-raspberrypi0w.cfg buildroot-2019.08/board/raspberrypi/genimage-raspberrypi0w.cfg
2+
--- buildroot-2019.08.orig/board/raspberrypi/genimage-raspberrypi0w.cfg 2020-04-02 07:55:29.244072244 +0000
3+
+++ buildroot-2019.08/board/raspberrypi/genimage-raspberrypi0w.cfg 2020-04-02 07:57:28.486755936 +0000
4+
@@ -1,7 +1,7 @@
5+
image boot.vfat {
6+
vfat {
7+
files = {
8+
- "bcm2708-rpi-0-w.dtb",
9+
+ "bcm2708-rpi-zero-w.dtb",
10+
"rpi-firmware/bootcode.bin",
11+
"rpi-firmware/cmdline.txt",
12+
"rpi-firmware/config.txt",
13+
diff -ur buildroot-2019.08.orig/package/gstreamer1/gstreamer1/gstreamer1.mk buildroot-2019.08/package/gstreamer1/gstreamer1/gstreamer1.mk
14+
--- buildroot-2019.08.orig/package/gstreamer1/gstreamer1/gstreamer1.mk 2020-04-02 07:55:29.416070345 +0000
15+
+++ buildroot-2019.08/package/gstreamer1/gstreamer1/gstreamer1.mk 2020-04-02 08:04:58.981783184 +0000
16+
@@ -33,7 +33,6 @@
17+
host-pkgconf \
18+
libglib2 \
19+
$(if $(BR2_PACKAGE_LIBUNWIND),libunwind) \
20+
- $(if $(BR2_PACKAGE_VALGRIND),valgrind) \
21+
$(TARGET_NLS_DEPENDENCIES)
22+
23+
GSTREAMER1_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)
24+
diff -ur buildroot-2019.08.orig/package/rpi-firmware/rpi-firmware.hash buildroot-2019.08/package/rpi-firmware/rpi-firmware.hash
25+
--- buildroot-2019.08.orig/package/rpi-firmware/rpi-firmware.hash 2020-04-02 07:55:29.812065974 +0000
26+
+++ buildroot-2019.08/package/rpi-firmware/rpi-firmware.hash 2020-04-02 09:13:24.722110230 +0000
27+
@@ -1,3 +1,4 @@
28+
# Locally computed
29+
sha256 c82c40cf37fac36160a7f6b9c314506beb942bf113a55d30fa163c56a4f98946 rpi-firmware-bcf40b5c2b94178c7564fb451098d44968e44af5.tar.gz
30+
+sha256 31a84340be08be319570a9d1439f25c0e3513fed73065a56aa5dd61dd605d5d9 rpi-firmware-01ecfd2ba2b7cf3a2f4aa75ada895ee4a3e729f5.tar.gz
31+
sha256 ba76edfc10a248166d965b8eaf320771c44f4f432d4fce2fd31fd272e7038add boot/LICENCE.broadcom
32+
diff -ur buildroot-2019.08.orig/package/rpi-firmware/rpi-firmware.mk buildroot-2019.08/package/rpi-firmware/rpi-firmware.mk
33+
--- buildroot-2019.08.orig/package/rpi-firmware/rpi-firmware.mk 2020-04-02 07:55:29.812065974 +0000
34+
+++ buildroot-2019.08/package/rpi-firmware/rpi-firmware.mk 2020-04-02 07:56:27.951424179 +0000
35+
@@ -4,7 +4,7 @@
36+
#
37+
################################################################################
38+
39+
-RPI_FIRMWARE_VERSION = bcf40b5c2b94178c7564fb451098d44968e44af5
40+
+RPI_FIRMWARE_VERSION = 01ecfd2ba2b7cf3a2f4aa75ada895ee4a3e729f5
41+
RPI_FIRMWARE_SITE = $(call github,raspberrypi,firmware,$(RPI_FIRMWARE_VERSION))
42+
RPI_FIRMWARE_LICENSE = BSD-3-Clause
43+
RPI_FIRMWARE_LICENSE_FILES = boot/LICENCE.broadcom

buildroot/buildroot-dev.patch

Lines changed: 24 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,6 @@
1-
diff -urb buildroot-dev/package/gobject-introspection/gobject-introspection.mk brdev-working/package/gobject-introspection/gobject-introspection.mk
2-
--- buildroot-dev/package/gobject-introspection/gobject-introspection.mk 2020-03-20 07:35:48.783430050 +0000
3-
+++ brdev-working/package/gobject-introspection/gobject-introspection.mk 2020-03-20 06:56:37.731416596 +0000
4-
@@ -18,6 +18,8 @@
5-
host-gobject-introspection \
6-
host-prelink-cross \
7-
host-qemu \
8-
+ gstreamer1 \
9-
+ gst1-plugins-base \
10-
libffi \
11-
libglib2 \
12-
python3 \
13-
@@ -56,6 +58,9 @@
14-
GOBJECT_INTROSPECTION_CONF_OPTS += -Dcairo=disabled
15-
endif
16-
17-
+GOBJECT_INTROSPECTION_DEPENDENCIES += gstreamer1 gst1-plugins-base
18-
+GOBJECT_INTROSPECTION_CONF_OPTS += -Dgstreamer1=enabled
19-
+
20-
# GI_SCANNER_DISABLE_CACHE=1 prevents g-ir-scanner from writing cache data to ${HOME}
21-
GOBJECT_INTROSPECTION_CONF_ENV = \
22-
GI_SCANNER_DISABLE_CACHE=1
23-
diff -urb buildroot-dev/package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk brdev-working/package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk
24-
--- buildroot-dev/package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk 2020-03-20 07:35:48.787430009 +0000
25-
+++ brdev-working/package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk 2020-03-19 20:00:14.274281083 +0000
26-
@@ -23,7 +23,7 @@
27-
-Dwinks=disabled \
28-
-Dandroidmedia=disabled \
29-
-Dapplemedia=disabled \
30-
- -Dintrospection=disabled \
31-
+ -Dintrospection=enabled \
32-
-Dgobject-cast-checks=disabled \
33-
-Dglib-asserts=disabled \
34-
-Dglib-checks=disabled
35-
diff -urb buildroot-dev/package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk brdev-working/package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk
36-
--- buildroot-dev/package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk 2020-03-20 07:35:48.787430009 +0000
37-
+++ brdev-working/package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk 2020-03-20 06:30:57.747235646 +0000
38-
@@ -18,7 +18,7 @@
39-
-Dglib-asserts=disabled \
40-
-Dglib-checks=disabled \
41-
-Dgtk_doc=disabled \
42-
- -Dintrospection=disabled
43-
+ -Dintrospection=enabled
44-
45-
# Options which require currently unpackaged libraries
46-
GST1_PLUGINS_BASE_CONF_OPTS += \
47-
@@ -32,7 +32,10 @@
48-
GST1_PLUGINS_BASE_CONF_OPTS += -Dtools=disabled
49-
endif
50-
51-
-GST1_PLUGINS_BASE_DEPENDENCIES = gstreamer1 $(TARGET_NLS_DEPENDENCIES)
52-
+GST1_PLUGINS_BASE_DEPENDENCIES = gstreamer1 $(TARGET_NLS_DEPENDENCIES) \
53-
+ host-gstreamer1 \
54-
+ host-gobject-introspection \
55-
+ gobject-introspection
56-
57-
GST1_PLUGINS_BASE_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)
58-
59-
@@ -280,3 +283,5 @@
60-
endif
61-
62-
$(eval $(meson-package))
63-
+$(eval $(host-meson-package))
64-
+
65-
diff -urb buildroot-dev/package/gstreamer1/gstreamer1/gstreamer1.mk brdev-working/package/gstreamer1/gstreamer1/gstreamer1.mk
66-
--- buildroot-dev/package/gstreamer1/gstreamer1/gstreamer1.mk 2020-03-20 07:35:48.787430009 +0000
67-
+++ brdev-working/package/gstreamer1/gstreamer1/gstreamer1.mk 2020-03-20 07:32:26.025498231 +0000
68-
@@ -16,7 +16,7 @@
69-
-Dtests=disabled \
70-
-Dbenchmarks=disabled \
71-
-Dgtk_doc=disabled \
72-
- -Dintrospection=disabled \
73-
+ -Dintrospection=enabled \
74-
-Dglib-asserts=disabled \
75-
-Dglib-checks=disabled \
76-
-Dgobject-cast-checks=disabled \
77-
@@ -31,11 +31,12 @@
78-
host-bison \
79-
host-flex \
80-
host-pkgconf \
81-
+ host-gobject-introspection \
82-
libglib2 \
83-
$(if $(BR2_PACKAGE_LIBUNWIND),libunwind) \
84-
- $(if $(BR2_PACKAGE_VALGRIND),valgrind) \
85-
$(TARGET_NLS_DEPENDENCIES)
86-
87-
GSTREAMER1_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)
88-
89-
$(eval $(meson-package))
90-
+$(eval $(host-meson-package))
91-
diff -urb buildroot-dev/package/nodejs/nodejs.mk brdev-working/package/nodejs/nodejs.mk
92-
--- buildroot-dev/package/nodejs/nodejs.mk 2020-03-20 07:35:48.859429275 +0000
93-
+++ brdev-working/package/nodejs/nodejs.mk 2020-03-19 06:30:08.960598003 +0000
1+
diff -ru buildroot-dev/package/nodejs/nodejs.mk br-dev-april/package/nodejs/nodejs.mk
2+
--- buildroot-dev/package/nodejs/nodejs.mk 2020-03-31 12:59:18.553214135 +0000
3+
+++ br-dev-april/package/nodejs/nodejs.mk 2020-03-31 12:57:07.094946091 +0000
944
@@ -63,7 +63,6 @@
955
--shared-openssl \
966
--shared-openssl-includes=$(HOST_DIR)/include/openssl \
@@ -99,9 +9,9 @@ diff -urb buildroot-dev/package/nodejs/nodejs.mk brdev-working/package/nodejs/no
999
--no-cross-compiling \
10010
--with-intl=small-icu \
10111
)
102-
diff -urb buildroot-dev/package/python-pycairo/python-pycairo.mk brdev-working/package/python-pycairo/python-pycairo.mk
103-
--- buildroot-dev/package/python-pycairo/python-pycairo.mk 2020-03-20 07:35:48.899428867 +0000
104-
+++ brdev-working/package/python-pycairo/python-pycairo.mk 2020-03-19 06:30:08.960598003 +0000
12+
diff -ru buildroot-dev/package/python-pycairo/python-pycairo.mk br-dev-april/package/python-pycairo/python-pycairo.mk
13+
--- buildroot-dev/package/python-pycairo/python-pycairo.mk 2020-03-31 12:59:18.593213608 +0000
14+
+++ br-dev-april/package/python-pycairo/python-pycairo.mk 2020-03-31 12:57:07.094946091 +0000
10515
@@ -8,8 +8,16 @@
10616
PYTHON_PYCAIRO_SOURCE = pycairo-$(PYTHON_PYCAIRO_VERSION).tar.gz
10717
PYTHON_PYCAIRO_SITE = https://files.pythonhosted.org/packages/3c/1a/c0478ecab31baae50fda9956547788afbd0ca563adc52c9b03cab30f17eb
@@ -120,24 +30,25 @@ diff -urb buildroot-dev/package/python-pycairo/python-pycairo.mk brdev-working/p
12030
+
12131
$(eval $(python-package))
12232
+$(eval $(host-python-package))
123-
Only in brdev-working/utils: package
124-
diff -urb buildroot-dev/utils/scanpypi brdev-working/utils/scanpypi
125-
--- buildroot-dev/utils/scanpypi 2020-03-20 07:35:48.991427929 +0000
126-
+++ brdev-working/utils/scanpypi 2020-03-19 08:42:35.293726023 +0000
127-
@@ -1,4 +1,4 @@
128-
-#!/usr/bin/env python
129-
+#!/usr/bin/env python3
130-
"""
131-
132-
Utility for building Buildroot packages for existing PyPI packages
133-
--- buildroot-dev/package/rpi-firmware/rpi-firmware.mk 2020-03-30 08:34:17.762664308 +0000
134-
+++ buildroot-dev/package/rpi-firmware/rpi-firmware.mk 2020-03-30 09:07:44.410958163 +0000
33+
diff -ur buildroot-dev-unpatched/package/python-idna/python-idna.hash buildroot-dev/package/python-idna/python-idna.hash
34+
--- buildroot-dev-unpatched/package/python-idna/python-idna.hash 2020-03-31 15:45:57.312748338 +0000
35+
+++ buildroot-dev/package/python-idna/python-idna.hash 2020-03-31 15:58:25.932079207 +0000
36+
@@ -1,5 +1,6 @@
37+
# md5, sha256 from https://pypi.org/pypi/idna/json
38+
md5 870b8b80267f00f0faf1b7ba4bdbf14e idna-2.9.tar.gz
39+
sha256 7588d1c14ae4c77d74036e8c22ff447b26d0fde8f007354fd48a7814db15b7cb idna-2.9.tar.gz
40+
+sha256 c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407 idna-2.8.tar.gz
41+
# Locally computed sha256 checksums
42+
sha256 412014420d2473dba06117c3d4d9e0eecaa6dde0ca30cd951f4ec2be39426f32 LICENSE.rst
43+
diff -ur buildroot-dev-unpatched/package/python-idna/python-idna.mk buildroot-dev/package/python-idna/python-idna.mk
44+
--- buildroot-dev-unpatched/package/python-idna/python-idna.mk 2020-03-31 15:45:57.312748338 +0000
45+
+++ buildroot-dev/package/python-idna/python-idna.mk 2020-03-31 15:49:52.056995049 +0000
13546
@@ -4,7 +4,7 @@
13647
#
13748
################################################################################
13849

139-
-RPI_FIRMWARE_VERSION = 01ecfd2ba2b7cf3a2f4aa75ada895ee4a3e729f5
140-
+RPI_FIRMWARE_VERSION = 5574077183389cd4c65077ba18b59144ed6ccd6d
141-
RPI_FIRMWARE_SITE = $(call github,raspberrypi,firmware,$(RPI_FIRMWARE_VERSION))
142-
RPI_FIRMWARE_LICENSE = BSD-3-Clause
143-
RPI_FIRMWARE_LICENSE_FILES = boot/LICENCE.broadcom
50+
-PYTHON_IDNA_VERSION = 2.9
51+
+PYTHON_IDNA_VERSION = 2.8
52+
PYTHON_IDNA_SOURCE = idna-$(PYTHON_IDNA_VERSION).tar.gz
53+
PYTHON_IDNA_SITE = https://files.pythonhosted.org/packages/cb/19/57503b5de719ee45e83472f339f617b0c01ad75cba44aba1e4c97c2b0abd
54+
PYTHON_IDNA_LICENSE = BSD-3-Clause

buildroot/package/audiocontrol2/Config.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ config BR2_PACKAGE_AUDIOCONTROL2
2121
select BR2_PACKAGE_PYTHON_REQUESTS
2222
select BR2_PACKAGE_PYTHON_EXPIRINGDICT
2323
select BR2_PACKAGE_PYTHON_PYKY040
24-
select BR2_PACKAGE_PYTHON_PYGOBJECT
24+
# select BR2_PACKAGE_PYTHON_PYGOBJECT
2525

buildroot/package/beocreate/beocreate.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
BEOCREATE_VERSION = f4ee1e69e093b5685f1bb913bc410cc340777555
88
BEOCREATE_SITE = $(call github,bang-olufsen,create,$(BEOCREATE_VERSION))
99

10-
#BEOCREATE_VERSION = 5b88b723788f8cf15cace8ee67b43ce035400702
11-
#BEOCREATE_SITE = $(call github,hifiberry,create,$(BEOCREATE_VERSION))
10+
BEOCREATE_VERSION = 02d18225c029deb4688ca46721a43aa306e16338
11+
BEOCREATE_SITE = $(call github,hifiberry,create,$(BEOCREATE_VERSION))
1212

1313
define BEOCREATE_BUILD_CMDS
1414
endef
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. /etc/hifiberry.state
3+
/usr/bin/bluealsa-aplay --pcm-buffer-time=250000 00:00:00:00:00:00 --volume-control $CURRENT_MIXER_CONTROL
4+

buildroot/package/btspeaker/bluealsa-aplay.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ After=bluealsa.service sound.target btinterface.service
77
# BlueALSA takes some time to initialize
88
ExecStartPre=/opt/hifiberry/bin/bootmsg "Starting bluealsa-aplay"
99
ExecStartPre=sleep 2
10-
ExecStart=/usr/bin/bluealsa-aplay --pcm-buffer-time=250000 00:00:00:00:00:00
10+
ExecStart=/opt/btspeaker/bluealsa-aplay-start
1111
RestartSec=5
1212
Restart=always
1313

buildroot/package/btspeaker/bluealsa.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ After=a2dp-agent.service
55

66
[Service]
77
ExecStartPre=/opt/hifiberry/bin/bootmsg "Starting bluealsa"
8-
ExecStart=/usr/bin/bluealsa -i hci0 -p a2dp-sink
8+
ExecStart=/usr/bin/bluealsa -i hci0 -p a2dp-sink --a2dp-volume
99
RestartSec=5
1010
Restart=always
1111

buildroot/package/btspeaker/btspeaker.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ define BTSPEAKER_INSTALL_INIT_SYSTEMD
4848
$(TARGET_DIR)/usr/lib/systemd/system/bluealsa-aplay.service
4949
ln -fs ../../../../usr/lib/systemd/system/bluealsa-aplay.service \
5050
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/bluealsa-aplay.service
51+
$(INSTALL) -D -m 0755 $(BR2_EXTERNAL_HIFIBERRY_PATH)/package/btspeaker/bluealsa-aplay-start \
52+
$(TARGET_DIR)/opt/btspeaker/bluealsa-aplay-start
5153
endef
5254

5355
# Overwrite original Bluez5 package to make sure it doesn't install in systemd

buildroot/package/btspeaker/btuart.sh

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,46 @@
11
#!/bin/sh
22

3-
echo "Calculating Bluetooth address"
3+
FIXCONFIG=`cat /boot/config.txt | grep "miniuart-bt"`
4+
if [ "$FIXCONFIG" != "" ]; then
5+
mount -o remount,rw /boot
6+
cat /boot/config.txt | grep -v "miniuart-bt" > /tmp/config.txt
7+
cp /boot/config.txt /boot/config.txt.bak
8+
mv /tmp/config.txt /boot/config.txt
9+
sync
10+
echo "Fixing Bluetooth UART configuration" >> /tmp/reboot
11+
fi
12+
413
if grep -q "Pi 4" /proc/device-tree/model; then
5-
BDADDR=
14+
BDADDR=
15+
PI3=0
616
else
7-
SERIAL=`cat /proc/device-tree/serial-number | cut -c9-`
8-
B1=`echo $SERIAL | cut -c3-4`
9-
B2=`echo $SERIAL | cut -c5-6`
10-
B3=`echo $SERIAL | cut -c7-8`
11-
BDADDR=`printf b8:27:eb:%02x:%02x:%02x $((0x$B1 ^ 0xaa)) $((0x$B2 ^ 0xaa)) $((0x$B3 ^ 0xaa))`
17+
SERIAL=`cat /proc/device-tree/serial-number | cut -c9-`
18+
B1=`echo $SERIAL | cut -c3-4`
19+
B2=`echo $SERIAL | cut -c5-6`
20+
B3=`echo $SERIAL | cut -c7-8`
21+
BDADDR=`printf b8:27:eb:%02x:%02x:%02x $((0x$B1 ^ 0xaa)) $((0x$B2 ^ 0xaa)) $((0x$B3 ^ 0xaa))`
1222
fi
23+
echo "BT address is $BDADDR"
1324

1425
/opt/hifiberry/bin/bootmsg "Attaching Bluetooth interface"
1526

1627
uart0_pins="`wc -c /proc/device-tree/soc/gpio@7e200000/uart0_pins/brcm\,pins | cut -f 1 -d ' '`"
17-
if [ "$uart0_pins" = "16" ] ; then
18-
# This line is necessary to sort out the flow control pins
19-
stty -F /dev/ttyAMA0 115200 raw -echo
20-
/usr/bin/hciattach -n /dev/ttyAMA0 bcm43xx 3000000 flow - $BDADDR
21-
if [ "$?" != "0" ]; then
22-
echo "Failed"
23-
/opt/hifiberry/bin/bootmsg "Attaching Bluetooth interface"
24-
fi
25-
else
28+
if [ "$uart0_pins" != "16" ] ; then
29+
if [ "$PI3" != "0" ]; then
30+
PI3=1
31+
fi
32+
fi
33+
34+
if [ "$PI3" == "1" ]; then
2635
echo "Looks like an Raspberry Pi 3 without flow control, BT audio will not work reliably"
2736
/opt/hifiberry/bin/bootmsg "Bluetooth not supported on Pi3B"
2837
exit 1
2938
fi
3039

40+
# This line is necessary to sort out the flow control pins
41+
stty -F /dev/ttyAMA0 115200 raw -echo
42+
/usr/bin/hciattach -n /dev/ttyAMA0 bcm43xx 3000000 flow - $BDADDR
43+
if [ "$?" != "0" ]; then
44+
echo "Failed"
45+
/opt/hifiberry/bin/bootmsg "Attaching Bluetooth interface"
46+
fi

buildroot/package/configtxt/Config.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@ config BR2_PACKAGE_CONFIGTXT_QUIET
1010
disable all boot messages to screen
1111
depends on BR2_PACKAGE_CONFIGTXT
1212

13-
13+
config BR2_PACKAGE_CONFIGTXT_EEPROM
14+
bool "force_eeprom_read workaround"
15+
help
16+
set eeprom_foirce_read=0
17+
depends on BR2_PACKAGE_CONFIGTXT

buildroot/package/configtxt/configtxt.mk

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ define CONFIGTXT_INSTALL_TARGET_CMDS
88
echo "# Enable I2C and SPI" >> $(BINARIES_DIR)/rpi-firmware/config.txt
99
echo "dtparam=i2c=on" >> $(BINARIES_DIR)/rpi-firmware/config.txt
1010
echo "dtparam=spi=on" >> $(BINARIES_DIR)/rpi-firmware/config.txt
11+
endef
12+
13+
define CONFIGTXT_EEPROM_WORKAROUND
1114
echo "# Workaround force_eeprom_read" >> $(BINARIES_DIR)/rpi-firmware/config.txt
12-
echo "force_eeprom_read=0" >> $(BINARIES_DIR)/rpi-firmware/config.txt
15+
echo "force_eeprom_read=0" >> $(BINARIES_DIR)/rpi-firmware/config.txt
1316
endef
1417

1518
define CONFIGTXT_QUIET_INSTALL_TARGET_CMDS
@@ -30,5 +33,9 @@ else
3033
CONFIGTXT_POST_INSTALL_TARGET_HOOKS += CONFIGTXT_VERBOSE_INSTALL_TARGET_CMDS
3134
endif
3235

36+
ifeq ($(BR2_PACKAGE_CONFIGTXT_EEPROM),y)
37+
CONFIGTXT_POST_INSTALL_TARGET_HOOKS += CONFIGTXT_EEPROM_WORKAROUND
38+
endif
39+
3340
$(eval $(generic-package))
3441

buildroot/package/hifiberry-bluezalsa/hifiberry-bluezalsa.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
HIFIBERRY_BLUEZALSA_VERSION = 2.1.0
88
HIFIBERRY_BLUEZALSA_SITE = $(call github,Arkq,bluez-alsa,v$(HIFIBERRY_BLUEZALSA_VERSION))
9+
HIFIBERRY_BLUEZALSA_VERSION = c9021d932ae9464b6cdc4ca5ac240a6b8ada6e36
10+
HIFIBERRY_BLUEZALSA_SITE = $(call github,joerg-krause,bluez-alsa,$(HIFIBERRY_BLUEZALSA_VERSION))
911
HIFIBERRY_BLUEZALSA_LICENSE = MIT
1012
HIFIBERRY_BLUEZALSA_LICENSE_FILES = LICENSE
1113
HIFIBERRY_BLUEZALSA_DEPENDENCIES = alsa-lib bluez5_utils libglib2 sbc host-pkgconf

buildroot/package/hifiberry-tools/debuginfo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ cat /proc/device-tree/hat/product >> hat.txt
2727
journalctl > logs.txt
2828
/opt/hifiberry/bin/report-dump >> usage.txt
2929
cat /etc/mopidy.conf > mopidy.conf
30+
cat /boot/config.txt > config.txt
3031
# Collect some performance data
3132
top -b -n 5 > top.txt
3233
perf stat -a sleep 10

0 commit comments

Comments
 (0)