Oops: Unable to determine board revision from /proc/cpuinfo



  • can you help me for solving this problem?
    " Oops: Unable to determine board revision from /proc/cpuinfo "
    after i run my qt application, this error apear.


  • Lifetime Qt Champion

    Hi,

    Where does it come from ?
    What device are you using ?
    What does /dev/cpuinfo return ?
    What distribution are you running ?



  • @SGaist
    I intend to turn on and off a led(or a blinking led) using raspberry pi3 and i also want to firstly do this in qtcreator in ubuntu enviroment and then cross compile it on raspberry pi,
    But when i run the code on qtcreator, this error apear.


  • Lifetime Qt Champion

    What are you using that tries to access /dev/cpuinfo ?



  • and what happens when you cat /proc/cpuinfo from the command shell?



  • I used wiringPi library in my code, and now i found out this library installed with problem. i installed this library from bellow link :
    http://wiringpi.com/download-and-install/
    and when i use "gpio -v" command bellow error apear again :
    Oops: Unable to determine board revision from /proc/cpuinfo
    -> No "Hardware" line
    -> You'd best google the error to find out why.

    unfortunatly, i cann't install wiringPi successfully and i think that my problem relevant to it.


  • Qt Champions 2018

    @Momeneh Where do you call gpio? On your RaspberryPi?
    As @Kent-Dorfman asked - what does "cat /proc/cpuinfo" on your RaspberryPi output?



  • i used "gpio -v" command on terminal in ubuntu , becauce qtcreator installed in ubuntu, i want cross compile my code on raspberry pi after it run on qtcreator in ubuntu sucessfully.
    i don't check "cat /proc/cpuinfo" command. let me to check it.



  • you can see the result of "cat /proc/cpuinfo" command on raspberry pi :
    pi@raspberrypi:~ $ cat /proc/cpuinfo
    processor : 0
    model name : ARMv7 Processor rev 4 (v7l)
    BogoMIPS : 38.40
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x0
    CPU part : 0xd03
    CPU revision : 4

    processor : 1
    model name : ARMv7 Processor rev 4 (v7l)
    BogoMIPS : 38.40
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x0
    CPU part : 0xd03
    CPU revision : 4

    processor : 2
    model name : ARMv7 Processor rev 4 (v7l)
    BogoMIPS : 38.40
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x0
    CPU part : 0xd03
    CPU revision : 4

    processor : 3
    model name : ARMv7 Processor rev 4 (v7l)
    BogoMIPS : 38.40
    Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant : 0x0
    CPU part : 0xd03
    CPU revision : 4

    Hardware : BCM2835
    Revision : a22082
    Serial : 00000000d6fbcaf1


  • Qt Champions 2018

    @Momeneh Shouldn't you use gpio on your RaspberryPi and not Ubuntu machine?


  • Lifetime Qt Champion

    Just in case, there's an issue opened on the WiringPI-python project about that error.



  • @jsulm
    Yes, i checked it on raspberry pi, i installed wiringPi on raspberry pi successfully and output of "gpio -v" command was true. Now i want to compile and run my code on raspberry pi. But i connect to raspberry pi with ssh from ubuntu and control it remotely. Now i copied my files to raspberry pi and i want to compile it with qmake but qmake don't install on raspberry pi and i don't know why.


  • Qt Champions 2018

    @Momeneh You can use Qt packages provided by Raspbian if you don't need latest Qt version. This would be the easiest way.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.