-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from hifiberry/development
Revert to buildroot 2019.08.3
- Loading branch information
Showing
28 changed files
with
430 additions
and
580 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
diff -ur buildroot-2019.08.orig/board/raspberrypi/genimage-raspberrypi0w.cfg buildroot-2019.08/board/raspberrypi/genimage-raspberrypi0w.cfg | ||
--- buildroot-2019.08.orig/board/raspberrypi/genimage-raspberrypi0w.cfg 2020-04-02 07:55:29.244072244 +0000 | ||
+++ buildroot-2019.08/board/raspberrypi/genimage-raspberrypi0w.cfg 2020-04-02 07:57:28.486755936 +0000 | ||
@@ -1,7 +1,7 @@ | ||
image boot.vfat { | ||
vfat { | ||
files = { | ||
- "bcm2708-rpi-0-w.dtb", | ||
+ "bcm2708-rpi-zero-w.dtb", | ||
"rpi-firmware/bootcode.bin", | ||
"rpi-firmware/cmdline.txt", | ||
"rpi-firmware/config.txt", | ||
diff -ur buildroot-2019.08.orig/package/gstreamer1/gstreamer1/gstreamer1.mk buildroot-2019.08/package/gstreamer1/gstreamer1/gstreamer1.mk | ||
--- buildroot-2019.08.orig/package/gstreamer1/gstreamer1/gstreamer1.mk 2020-04-02 07:55:29.416070345 +0000 | ||
+++ buildroot-2019.08/package/gstreamer1/gstreamer1/gstreamer1.mk 2020-04-02 08:04:58.981783184 +0000 | ||
@@ -33,7 +33,6 @@ | ||
host-pkgconf \ | ||
libglib2 \ | ||
$(if $(BR2_PACKAGE_LIBUNWIND),libunwind) \ | ||
- $(if $(BR2_PACKAGE_VALGRIND),valgrind) \ | ||
$(TARGET_NLS_DEPENDENCIES) | ||
|
||
GSTREAMER1_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS) | ||
diff -ur buildroot-2019.08.orig/package/rpi-firmware/rpi-firmware.hash buildroot-2019.08/package/rpi-firmware/rpi-firmware.hash | ||
--- buildroot-2019.08.orig/package/rpi-firmware/rpi-firmware.hash 2020-04-02 07:55:29.812065974 +0000 | ||
+++ buildroot-2019.08/package/rpi-firmware/rpi-firmware.hash 2020-04-02 09:13:24.722110230 +0000 | ||
@@ -1,3 +1,4 @@ | ||
# Locally computed | ||
sha256 c82c40cf37fac36160a7f6b9c314506beb942bf113a55d30fa163c56a4f98946 rpi-firmware-bcf40b5c2b94178c7564fb451098d44968e44af5.tar.gz | ||
+sha256 31a84340be08be319570a9d1439f25c0e3513fed73065a56aa5dd61dd605d5d9 rpi-firmware-01ecfd2ba2b7cf3a2f4aa75ada895ee4a3e729f5.tar.gz | ||
sha256 ba76edfc10a248166d965b8eaf320771c44f4f432d4fce2fd31fd272e7038add boot/LICENCE.broadcom | ||
diff -ur buildroot-2019.08.orig/package/rpi-firmware/rpi-firmware.mk buildroot-2019.08/package/rpi-firmware/rpi-firmware.mk | ||
--- buildroot-2019.08.orig/package/rpi-firmware/rpi-firmware.mk 2020-04-02 07:55:29.812065974 +0000 | ||
+++ buildroot-2019.08/package/rpi-firmware/rpi-firmware.mk 2020-04-02 07:56:27.951424179 +0000 | ||
@@ -4,7 +4,7 @@ | ||
# | ||
################################################################################ | ||
|
||
-RPI_FIRMWARE_VERSION = bcf40b5c2b94178c7564fb451098d44968e44af5 | ||
+RPI_FIRMWARE_VERSION = 01ecfd2ba2b7cf3a2f4aa75ada895ee4a3e729f5 | ||
RPI_FIRMWARE_SITE = $(call github,raspberrypi,firmware,$(RPI_FIRMWARE_VERSION)) | ||
RPI_FIRMWARE_LICENSE = BSD-3-Clause | ||
RPI_FIRMWARE_LICENSE_FILES = boot/LICENCE.broadcom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. /etc/hifiberry.state | ||
/usr/bin/bluealsa-aplay --pcm-buffer-time=250000 00:00:00:00:00:00 --volume-control $CURRENT_MIXER_CONTROL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,46 @@ | ||
#!/bin/sh | ||
|
||
echo "Calculating Bluetooth address" | ||
FIXCONFIG=`cat /boot/config.txt | grep "miniuart-bt"` | ||
if [ "$FIXCONFIG" != "" ]; then | ||
mount -o remount,rw /boot | ||
cat /boot/config.txt | grep -v "miniuart-bt" > /tmp/config.txt | ||
cp /boot/config.txt /boot/config.txt.bak | ||
mv /tmp/config.txt /boot/config.txt | ||
sync | ||
echo "Fixing Bluetooth UART configuration" >> /tmp/reboot | ||
fi | ||
|
||
if grep -q "Pi 4" /proc/device-tree/model; then | ||
BDADDR= | ||
BDADDR= | ||
PI3=0 | ||
else | ||
SERIAL=`cat /proc/device-tree/serial-number | cut -c9-` | ||
B1=`echo $SERIAL | cut -c3-4` | ||
B2=`echo $SERIAL | cut -c5-6` | ||
B3=`echo $SERIAL | cut -c7-8` | ||
BDADDR=`printf b8:27:eb:%02x:%02x:%02x $((0x$B1 ^ 0xaa)) $((0x$B2 ^ 0xaa)) $((0x$B3 ^ 0xaa))` | ||
SERIAL=`cat /proc/device-tree/serial-number | cut -c9-` | ||
B1=`echo $SERIAL | cut -c3-4` | ||
B2=`echo $SERIAL | cut -c5-6` | ||
B3=`echo $SERIAL | cut -c7-8` | ||
BDADDR=`printf b8:27:eb:%02x:%02x:%02x $((0x$B1 ^ 0xaa)) $((0x$B2 ^ 0xaa)) $((0x$B3 ^ 0xaa))` | ||
fi | ||
echo "BT address is $BDADDR" | ||
|
||
/opt/hifiberry/bin/bootmsg "Attaching Bluetooth interface" | ||
|
||
uart0_pins="`wc -c /proc/device-tree/soc/gpio@7e200000/uart0_pins/brcm\,pins | cut -f 1 -d ' '`" | ||
if [ "$uart0_pins" = "16" ] ; then | ||
# This line is necessary to sort out the flow control pins | ||
stty -F /dev/ttyAMA0 115200 raw -echo | ||
/usr/bin/hciattach -n /dev/ttyAMA0 bcm43xx 3000000 flow - $BDADDR | ||
if [ "$?" != "0" ]; then | ||
echo "Failed" | ||
/opt/hifiberry/bin/bootmsg "Attaching Bluetooth interface" | ||
fi | ||
else | ||
if [ "$uart0_pins" != "16" ] ; then | ||
if [ "$PI3" != "0" ]; then | ||
PI3=1 | ||
fi | ||
fi | ||
|
||
if [ "$PI3" == "1" ]; then | ||
echo "Looks like an Raspberry Pi 3 without flow control, BT audio will not work reliably" | ||
/opt/hifiberry/bin/bootmsg "Bluetooth not supported on Pi3B" | ||
exit 1 | ||
fi | ||
|
||
# This line is necessary to sort out the flow control pins | ||
stty -F /dev/ttyAMA0 115200 raw -echo | ||
/usr/bin/hciattach -n /dev/ttyAMA0 bcm43xx 3000000 flow - $BDADDR | ||
if [ "$?" != "0" ]; then | ||
echo "Failed" | ||
/opt/hifiberry/bin/bootmsg "Attaching Bluetooth interface" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.