I have an Element 14 BB Black.
I have the sensor connected up for i2c (as opposed to spi).
It works OK when I flash the eMMC
with bone-debian-8.3-lxqt-4gb-armhf-2016-01-24-4gb.img. Meaning that I can
find the temperature and pressure files provided in the driver.
The problem there is with that particular image... SSH over USB does not
work. As a workaround I have to use serial which isn't as nice as a SSH
shell.
So I flash the eMMC with bone-debian-8.2-osd3358-2015-12-07-2gb.img. SSH
over USB works great, but I can't seem to load any drivers for the bmp280.
in fact, when I CD to /sys/bus/i2c/drivers I do not see the bmp280 listed
there. And the cat command as listed below fails with "file not found".
For reference the commands I'm using are:
#add the driver
echo bmp280 0x77 > /sys/class/i2c-adapter/i2c-2/new_device
#Verify that the driver loaded.
dmesg | grep bmp
[ 552.045158] i2c i2c-2: new_device: Instantiated device bmp280 at 0x77
Get the pressure reading:
cat /sys/bus/i2c/drivers/bmp280/2-0077/iio\:device0/in_pressure_input
on the debian 8.2 flashed image as referenced above.
root@beaglebone:/sys/bus/i2c# i2cdetect -r 2
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-2 using read byte commands.
I will probe address range 0x03-0x77.
Continue? [Y/n] Y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- UU UU UU UU -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- 77
Can someone please help me to understand what it is I'm doing wrong? I just
want to be able to SSH into the board over USB as well as load up the
driver and get readings from the sensor.
Thanks in advance,
Mike
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.