• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
glibc 2.24 / kernel 4.8.x breaks things on raspberry pi?
#1
Hi,

*edit*
after updating kernel and glibc on my raspberry pi 2 pilight no longer works.

log says:
Code:
ERROR: config device setting #2 "id" of "xtestx", invalid

config:
Code:
{
    "devices": {
        "xtestx": {
            "protocol": [ "elro_800_switch" ],
            "id": [{
                "systemcode": 24,
                "unitcode": 1
            }],
            "state": "off"
        },
....

The config didn't change and I can't see why it doesn't work anymore.
The only thing that changed is a newer toolchain for cross-compiling.

*update*
After some research I found out the json parser reads "null" for all numeric values.

*update 2*
Obviously strtod (inside parse_number in json.c) always returns "-nan".
Replacing it with sscanf works!

*update 3*
There are still some other issues. They're caused by updating my LibreELEC alpha from v7.90.007 to v7.90.009.
Kernel changed from 4.7.x to 4.8.x and glibc changed from 2.23 to 2.24 there. Any Ideas?

*update 4*
Pro tip: use hardfp when compiling Wink
If you don't:
- strtod() always returns -nan
- round() always returns 0

Don't ask me why I compiled with software floating point before. Angel
I don't know why the behavior changed with the kernel / glibc upgrade but this causes all the trouble.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Odroid C2 support on Kernel 4.14 Jojo 5 698 06-01-2018, 03:19 PM
Last Post: curlymo
  433 mhz receiver working on Raspberry pi with a hack knex 3 1,879 01-21-2018, 06:28 PM
Last Post: curlymo
  AdHoc network with 2 Raspberry and 2 GPIO transmitter not working webdandy 29 6,505 09-06-2017, 02:39 PM
Last Post: wseifert
  Cannot move configuration from old to new raspberry koos147 6 2,421 03-07-2016, 08:10 PM
Last Post: curlymo
  Raspberry Pi 2 darkday 26 14,149 05-07-2015, 11:18 AM
Last Post: curlymo
  Kernel Fault - Raspberry Pi 2 simonsmart99 7 5,033 05-04-2015, 05:52 PM
Last Post: wo_rasp
  Raspberry Pi Temperature Sensor Nelus82 3 2,342 03-22-2014, 11:48 PM
Last Post: creamers

Forum Jump:


Browsing: 1 Guest(s)