Open hillbicks opened 3 years ago
Well, let me take that back. Sort of. Apparently something got mixed up when building the image with monitor.sh. Currently rebuilding the package, will update once I've reflashed the image.
Didn't test monitor.sh fully, but this errors were kind of expected.
You may try copying the monitor.sh
folder and content to /var
since that's writable.
Sounds good, will have a look once I finished the music implementation via squeezelite.
So, I gave it another try and copied monitor.sh to /var/ Couple of things to note: 1) shebang points to /bin/bash, so this needs to be changed to /usr/bin/bash or symlinked to that place in order to keep changes in the actual script to a minimum. 2) We're missing bluez_hcidump it seems.
But with the folder on a rw partition, it already looks a lot cleaner:
./monitor.sh
./monitor.sh: line 49: git: command not found
cat: can't open '.previous_version': No such file or directory
> updated monitor.sh (v. Unknown) -> (v. 0.2.200)...
> error: required package 'hcidump' not found. please install 'bluez-hcidump' (e.g., sudo apt-get install bluez-hcidump).
> warning: Recommended package 'git' not found. please consider installing for regular updates.
> mosquitto preferences file created. please customize.
> public MAC address list file created. please customize.
> beacon MAC address list file created. please customize.
I'll have a look at bluez_hcidump
working bluez_hcidump package.mk file
PACKAGE_NAME="Bluetooth Linux"
PACKAGE_VERSION="2.5"
PACKAGE_SRC="http://www.kernel.org/pub/linux/bluetooth/bluez-hcidump-${PACKAGE_VERSION}.tar.xz"
PACKAGE_DEPENDS="kernel-headers glibc alsa-lib dbus sbc glib libical readline bluez"
configure_package() {
CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" LDFLAGS="${BUILD_LDFLAGS}" \
CXX="${BUILD_CXX}" CXXFLAGS="${BUILD_CFLAGS}" CPPFLAGS="${BUILD_CFLAGS}" \
PKG_CONFIG_LIBDIR="${BUILD_PKG_CONFIG_LIBDIR}" PKG_CONFIG_SYSROOT_DIR="${BUILD_PKG_CONFIG_SYSROOT_DIR}" \
PKG_CONFIG_PATH="${BUILD_PKG_CONFIG_LIBDIR}" \
./configure --prefix=${INSTALL_PREFIX} --build=${MACHTYPE} --host=${BUILD_TARGET}
}
make_package() {
make -j${MAKE_JOBS}
}
install_package() {
make DESTDIR=${STAGING_DIR} install
}
So, that is working. Still a lot of other errors, some related to different functionality of busybox commands (timeout, pidof), which can be "resolved" quick and dirty.
I'll try and establish a connection to my phone, so far I had no luck. Will try it on a pi to rule out that it is working with my phone.
I've managed to build hcidump
from "deprecated" bluez
tools.
Still, there's plenty of work to do... https://github.com/duhow/xiaoai-patch/commit/e38f0f789ae36bfad0a54a655f0f575e42a796e2
While going through the packages, I saw that you already build monitor.sh as one of the packages. Unfortunately, this script currently doesn't work.
1) The symlinks for /usr/bin/monitor.sh /usr/share/monitor.sh both point to /usr/share/monitor/monitor.sh, but the actual script resides in /usr/share/monitor.sh/monitor.sh. The directory is missing the .sh
I would have created a pull request for this, but even with this fix, this script needs a lot of overhaul to work. A lot of binaries missing, invalid options, errors due to ro FS
Couple of things that are obvious and can be removed immediately, but it wouldn't be compatible with upstream anymore. (not without major checks at least). I'll have a look over the weekeend and see if I make some dirty changes to get it running on my box at least, no promises though.