Giter VIP home page Giter VIP logo

Comments (6)

duhow avatar duhow commented on May 27, 2024 1

I've managed to build hcidump from "deprecated" bluez tools.
Still, there's plenty of work to do... e38f0f7

from xiaoai-patch.

hillbicks avatar hillbicks commented on May 27, 2024

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.

from xiaoai-patch.

duhow avatar duhow commented on May 27, 2024

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.

from xiaoai-patch.

hillbicks avatar hillbicks commented on May 27, 2024

Sounds good, will have a look once I finished the music implementation via squeezelite.

from xiaoai-patch.

hillbicks avatar hillbicks commented on May 27, 2024

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

from xiaoai-patch.

hillbicks avatar hillbicks commented on May 27, 2024

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.

from xiaoai-patch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.