I don’t know since when, but it looks like the currently installed wiringPi library can’t handle the required Baud rate:-(
pi@dexter ~/src/wiringPi/wiringPi $ ls -l /usr/local/lib/libwiringPi* lrwxrwxrwx 1 root staff 21 Jul 29 04:35 /usr/local/lib/libwiringPiDev.so -> libwiringPiDev.so.2.0 -rwxr-xr-x 1 root staff 23229 Jul 29 04:35 /usr/local/lib/libwiringPiDev.so.2.0 lrwxrwxrwx 1 root staff 18 Jul 29 04:35 /usr/local/lib/libwiringPi.so -> libwiringPi.so.2.0 -rwxr-xr-x 1 root staff 48107 Jul 29 04:35 /usr/local/lib/libwiringPi.so.2.0
When I try to do a BrickPiSetup(), everything seems fine, but the call to serialOpen() actually returns -2!! The BrickPiSetup() code only checks for -1, so it claims success:-(
The current code of serialOpen() (wiringPi/wiringSerial.c) shows clearly that it will return a
-2 when it does not understand the Baud rate:-(
So, the question is, did you have a different wiringPi library at some point?
I’ll probably hack the lib source and see how far I get.