I take a look into the code. R2 is not supported and is not in the list. The program goes back to the raspberry pi mode and complaining it is not RPI board.
I tried to add supporting for R2 board. The code is not tested but you may still take a look.
They are in the pull request in the BPI-WiringPi2 repo, or https://github.com/batsiot/BPI-WiringPi2