HI,
I’m trying to get a battery backed RTC chip to work with the Beaglebone. It works on 4.14 kernel but I am trying to do the same on 3.8 kernel and I can’t get it to appear as a device in /dev
So far I have the device tree mappings for BB-I2C1 installed. (Which is referenced as i2c-2 - a known issue that is fixed in kernel 4). This seems to be ok as I can see the device:
root@beaglebone:~# 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: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- 68 – -- – -- – -- –
70: – -- – -- – -- – --
I mount it with:
echo ds3232 0x68 > /sys/class/i2c-adapter/i2c-2/new_device
dmesg shows:
[ 7242.287395] i2c i2c-2: new_device: Instantiated device ds3232 at 0x68
However a new device /dev/rtc1 is not created and only the rtc built into the BBB is visable.
I’n not sure what to try next… Can anyone help?
Neil