Comment 1 for bug 1902177

Revision history for this message
Brian Warner (batycoon) wrote :

It could be evaluating `/proc/device-tree/soc/ranges` incorrectly, but it looks good on line 86 in c_gpio.c from rpi.gpio_0.6.5 from example (https://www.iot-programmer.com/index.php/books/22-raspberry-pi-and-the-iot-in-c/chapters-raspberry-pi-and-the-iot-in-c/59-raspberry-pi-and-the-iot-in-c-memory-mapped-gpio?start=1).

I note that your `$ cat /proc/cpuinfo` shows the expected hardware `Hardware : BCM2835` as per line 100 of c_gpio.c of rpi.gpio_0.6.5 (https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/rpi.gpio/0.6.5-1ubuntu0.18.04.1/rpi.gpio_0.6.5.orig.tar.gz)... suggesting ARM1176JZF-S is on board.

What I notice of as mentioned line 100 is it expects a tab between "Hardware" and the semicolon. Did you doctor your cat output in any way? Maybe the whitespace separator unexpectedly changed and it could not get the value from "/proc/device-tree/soc/ranges"?