I'm currently building my own Linux System based on Yocto and trying to incorporate some kunbus-specifics for the RevPi.
My test-device is a RevPi Connect SE and, while I'm a newcomer with Yocto, I actually managed to build a working image with most of the tools working fine!
One step at a time, now I am trying to get piSerial to work correctly.
I used all your correct device overlays, i2c is enabled and I also can generate a serial output, however the messages are a bit buggy with CRC failing and I do not know why.
Code: Select all
root@raspberrypi4-64:~# piSerial
DEBUG: Can't write (atecc508a_simple_wa()) to the I2C device: Input/output error
DEBUG: write: WA:0x03, LEN:0x07, CMD:0x02, ZONE:0x00, ADDR:0x0000, CRC:0x1e2d = 8
DEBUG: recv.crc: 0xf791, crc: 0xf791
DEBUG: write: WA:0x03, LEN:0x07, CMD:0x02, ZONE:0x00, ADDR:0x0200, CRC:0x18ad = 8
DEBUG: recv.crc: 0xdc68, crc: 0xdc68
0123[redacted]2D f[redacted]z
As you can see, the serial number and the web password are both printed out fine! (I redacted some of it) But I'm not an I2C expert and do not understand why the errors are happening.
Here's the kernel I'm using:
Code: Select all
Linux raspberrypi4-64 6.1.46-rt13-v8 #1 SMP PREEMPT_RT Wed Jan 31 11:22:39 UTC 2024 aarch64 GNU/Linux
Code: Select all
root@raspberrypi4-64:~# lsmod |grep i2c
i2c_brcmstb 16384 0
i2c_dev 20480 0
Code: Select all
root@raspberrypi4-64:~# i2cdetect -l
i2c-1 i2c bcm2835 (i2c@7e804000) I2C adapter
i2c-11 i2c fef04500.i2c I2C adapter
Code: Select all
root@raspberrypi4-64:~# dmesg |grep i2c
[ 1.707334] rtc-pcf2127-i2c 1-0051: registered as rtc0
[ 1.708439] rtc-pcf2127-i2c 1-0051: setting system clock to 2024-05-06T10:57:36 UTC (1714993056)
[ 2.982636] i2c_dev: i2c /dev entries driver
[ 5.375703] brcmstb-i2c fef04500.i2c: @97500hz registered in polling mode
Code: Select all
004320.690: brfs: File read: 3913 bytes
004325.566: brfs: File read: /mfs/sd/overlays/revpi-connect-se.dtbo
004398.016: Loaded overlay 'revpi-connect-se'
004783.335: brfs: File read: 5816 bytes
004802.426: brfs: File read: /mfs/sd/overlays/revpi-dt-blob.dtbo
004999.673: Loaded overlay 'revpi-dt-blob'
005070.578: brfs: File read: 68542 bytes
005084.211: brfs: File read: /mfs/sd/overlays/revpi-connect-se-dt-blob.dtbo
005213.492: Loaded overlay 'revpi-connect-se-dt-blob'
005260.180: brfs: File read: 44810 bytes
005264.174: brfs: File read: /mfs/sd/overlays/dwc2.dtbo
005279.755: Loaded overlay 'dwc2'
Kind regards