Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building on OpenWRT #14

Open
MarkoPaasila opened this issue Mar 21, 2023 · 1 comment
Open

Building on OpenWRT #14

MarkoPaasila opened this issue Mar 21, 2023 · 1 comment

Comments

@MarkoPaasila
Copy link

Fails. Gives the following output:

root@APU3D4:~/gcfflasher# ./build_posix.sh 
Package libgpiod was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgpiod.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgpiod' found
libgpiod-dev not found, building without
gcc -Wall -DPL_LINUX -O2 -DNDEBUG

Looking for libbpiod:

root@APU3D4:~/gcfflasher# locate libgpiod
/root/gcfflasher/linux_libgpiod_reset.c
/usr/lib/libgpiod.so.2
/usr/lib/libgpiod.so.2.2.2
/usr/lib/opkg/info/libgpiod.control
/usr/lib/opkg/info/libgpiod.list
/usr/lib/opkg/info/libgpiod.postinst
/usr/lib/opkg/info/libgpiod.prerm
@manup
Copy link
Member

manup commented Apr 2, 2023

Interesting, there seems to be only the release libriaries but not the required headers and pkg-config files. I don't have experience how these can be installed on OpenWRT.

https://openwrt.org/packages/pkgdata/libgpiod
https://github.com/openwrt/packages/tree/master/libs/libgpiod

Note the binary is still be compiled as GCFFlasher it's only without optional gpiod support. Which is used for ConBee I and RaspBee I/II to trigger the reset. If the device has a recent firmware this is also done via serial command reset, not requiring gpiod. Another way to fake the hard reset is to start with parameter -t 60 and unplug the unit, wait a few seconds and attach again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants