balena-os / balena-raspberrypi

Balena support for RaspberryPI boards
https://www.balena.io/os/
Apache License 2.0
194 stars 76 forks source link

Broken i2c on Raspberry Pi 5 #1146

Open majorz opened 4 months ago

majorz commented 4 months ago

A customer is running into the issue described here (Zendesk 3607): https://github.com/raspberrypi/linux/issues/6043

The kernel on the balena device is:

Linux 59f3c40 6.6.22-v8 #1 SMP PREEMPT Tue Mar 19 17:41:59 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux

Kernel logs:

[81900.707649] i2c_designware 1f00078000.i2c: i2c_dw_handle_tx_abort: lost arbitration
[81901.714440] i2c_designware 1f00078000.i2c: controller timed out
[81902.834436] i2c_designware 1f00078000.i2c: controller timed out
[81903.954453] i2c_designware 1f00078000.i2c: controller timed out
[81905.074427] i2c_designware 1f00078000.i2c: controller timed out
[81906.194447] i2c_designware 1f00078000.i2c: controller timed out
[81909.842410] i2c_designware 1f00078000.i2c: controller timed out
[81910.866405] i2c_designware 1f00078000.i2c: controller timed out

The PR that fixes the issue is: https://github.com/raspberrypi/linux/pull/6050

YinonLensor commented 2 months ago

Hey @majorz, do you guys have any update on this?

alexgg commented 2 months ago

hi @YinonLensor did you try a balenaOS release above v5.3.21+rev4? It contains a v6.6.22 kernel that has already been patched for the problem above.

alexgg commented 2 months ago

btw @YinonLensor we don't have a policy of monitoring github issues, so it's better if you contact us through our support channels.