Page 2 of 3

Re: telldus-core 2.1.1 running on OpenWRT

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
uzivatel wrote:tdtool work
How do you mean? It should print "Error connecting to Telldus Service" if telldusd is not loaded.

Re: telldus-core 2.1.1 running on OpenWRT

Posted: Fri Mar 17, 2023 9:45 am
by uzivatel
hello,

i tested unload ftdi_sio and set chmod 777 /etc/tellstick.conf, but the same problem, i cannot start telldusd with error segmentation fault.

dmesg

usb 2-1.2: USB disconnect, address 5
usb 2-1.2: new full speed USB device using ohci_hcd and address 6
usb 2-1.2: configuration #1 chosen from 1 choice

about tdtool
it print "Error connecting to Telldus Service" ofcourse. I mean that working with command --help

rfcmd working, but not support my kappa dimmer, i post my build log, thanks for every help

Re: telldus-core 2.1.1 running on OpenWRT

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
What about /var/state/telldus-core.conf?

Re: telldus-core 2.1.1 running on OpenWRT

Posted: Fri Mar 17, 2023 9:45 am
by uzivatel
micke.prag wrote:What about /var/state/telldus-core.conf?

when i try cd /var/state it jump to /tmp/state which not contain file telldus-core.conf...what can i do?

Re: telldus-core 2.1.1 running on OpenWRT

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
Create it?

Code: Select all

$ touch /var/state/telldus-core.conf && chmod 777 /var/state/telldus-core.conf

Re: telldus-core 2.1.1 running on OpenWRT

Posted: Fri Mar 17, 2023 9:45 am
by uzivatel
micke.prag wrote:Create it?

Code: Select all

$ touch /var/state/telldus-core.conf && chmod 777 /var/state/telldus-core.conf

micke thank you for your help, but not solved my problem, i will try load other firmware to my router and test..post later

Re: telldus-core 2.1.1 running on OpenWRT

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
If it is possible to compile a debug build and get a "coredump" it might help find where is segfaults.

Re: telldus-core 2.1.1 running on OpenWRT

Posted: Fri Mar 17, 2023 9:45 am
by uzivatel
now i try compile package for backfire 10.03 kernel 2.4 which is recomended for my router with full support wifi card, compile stop with result
make[5]: Entering directory `/home/telldus/openwrt/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/telldus-core-2.1.1'
[ 2%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Event.cpp.o
cc1plus: error: unrecognized command line option "-fvisibility=hidden"
make[5]: *** [common/CMakeFiles/TelldusCommon.dir/Event.cpp.o] Error 1
make[5]: Leaving directory `/home/telldus/openwrt/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/telldus-core-2.1.1'
make[4]: *** [common/CMakeFiles/TelldusCommon.dir/all] Error 2
make[4]: Leaving directory `/home/telldus/openwrt/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/telldus-core-2.1.1'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/telldus/openwrt/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/telldus-core-2.1.1'
make[2]: *** [/home/telldus/openwrt/backfire/build_dir/target-mipsel_uClibc-0.9.30.1/telldus-core-2.1.1/.built] Error 2
make[2]: Leaving directory `/home/telldus/openwrt/backfire/package/telldus-core'
make[1]: *** [package/telldus-core/compile] Error 2
make[1]: Leaving directory `/home/telldus/openwrt/backfire'
make: *** [package/telldus-core/compile] Error 2
it look like my gcc(3.4.6) is old version and not support command -fvisibility=hidden how i can install toolchain with gcc version for example 4.3.3 or is command -fvisibility=hidden important for compile? if not where i can remove it? thx

Re: telldus-core 2.1.1 running on OpenWRT

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
If you only compile the library for yourself you can probably remove that option. If you want to redistribute the binaries it is an important option.

You can change toolchain version under "Advanced configuration options (for developers) >> Toolchain Options >> GCC compiler Version"

Re: telldus-core 2.1.1 running on OpenWRT

Posted: Fri Mar 17, 2023 9:45 am
by uzivatel
micke.prag wrote:If you only compile the library for yourself you can probably remove that option. If you want to redistribute the binaries it is an important option.

You can change toolchain version under "Advanced configuration options (for developers) >> Toolchain Options >> GCC compiler Version"
I need compile library for yourself, i have to select only 3.4.6 version in "Advanced configuration options (for developers) >> Toolchain Options >> GCC compiler Version" any other idea?

Re: telldus-core 2.1.1 running on OpenWRT

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
Why do you have to use version 3.4.6 of gcc?

Re: telldus-core 2.1.1 running on OpenWRT

Posted: Fri Mar 17, 2023 9:45 am
by uzivatel
micke.prag wrote:Why do you have to use version 3.4.6 of gcc?

it is installed automatically by make toolchain/install for kernel 2.4 but i need higher version for support command fvisibility

Re: telldus-core 2.1.1 running on OpenWRT

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
Your board doesn't suport kernel 2.6?
What kind of hardware do you have?

Re: telldus-core 2.1.1 running on OpenWRT

Posted: Fri Mar 17, 2023 9:45 am
by uzivatel
micke.prag wrote:Your board doesn't suport kernel 2.6?
What kind of hardware do you have?

support with limited wirelles functions, i have router ASUS WL-500g Premium V2
The WL-500gP is supported by two targets:

brcm-2.4
Uses an older 2.4 kernel
Uses the binary only broadcom driver, which supports the wireless in the v2.
Recommended for v2
brcm47xx
Uses a current 2.6 kernel, it is faster and has more features
Uses the open source b43 wireless driver, which currently does not work with the wireless in the v2
Recommended for v1
i compiled telldus-core for kernel 2.6 but telldusd not work(segmentation fault) now i want try compile for reccomended firmware with 2.4 kernel


can you recommend some router which had support driver and tellstick work without problems?except Dovado which is expensive.Why telldus donot have solution for normal low cost router with usb port?

Re: telldus-core 2.1.1 running on OpenWRT

Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
We have never tried telldus-core on kernel 2.4 so I am not sure if it is possible.
uzivatel wrote:can you recommend some router which had support driver and tellstick work without problems?except Dovado which is expensive.Why telldus donot have solution for normal low cost router with usb port?
The Dovado routers are the only ones with support for TellStick out of the box.

TellStick Net works with any router.