I2C broken in Raspberry Pi kernel 4.19.50-1

Discussion about U-Boot and the kernel.

I2C broken in Raspberry Pi kernel 4.19.50-1

Postby es30 » Mon Jun 17, 2019 3:47 pm

The following message appears in dmesg during the boot of Raspberry Pi kernel 4.19.50-1:
$this->bbcode_second_pass_code('', 'i2c-bcm2835 3f804000.i2c: Could not register clock
i2c-bcm2835: probe of 3f804000.i2c failed with error -12')
The I2C-based real-time clock is inaccessible.

The same problem, involving the same kernel commit (2f8d963db206ce596f9a9e951ec425e9c3e1b4d9), has been reported independently on the Raspberry Pi forums:
https://www.raspberrypi.org/forums/viewtopic.php?t=242856
es30
 
Posts: 3
Joined: Tue Nov 21, 2017 9:51 pm

Re: I2C broken in Raspberry Pi kernel 4.19.50-1

Postby es30 » Tue Jun 18, 2019 3:28 pm

I neglected to include a relevant fact in my original post. My config file for building 4.19.50-1 makes some changes to the stock config:
$this->bbcode_second_pass_code('', '$ diff config config.original
3c3
< # Linux/arm 4.19.50-1 Kernel Configuration
---
> # Linux/arm 4.19.49-1 Kernel Configuration
2836c2836
< CONFIG_I2C_BCM2835=y
---
> CONFIG_I2C_BCM2835=m
4945,4946c4945
< CONFIG_RTC_HCTOSYS=y
< CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
---
> # CONFIG_RTC_HCTOSYS is not set
4958c4957
< # CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
---
> CONFIG_RTC_INTF_DEV_UIE_EMUL=y
4966c4965
< CONFIG_RTC_DRV_DS1307=y
---
> CONFIG_RTC_DRV_DS1307=m
')I'm speculating that the change of CONFIG_I2C_BCM2835 from "m" to "y" (in order to build the driver in) is upsetting the expected order in which things are called.

Note that 4.19.49-1 (and previous) built with the same edited config file works properly.

UPDATE:

It has been confirmed that the problem appears when the I2C-BCM2835 driver is built-in to the kernel. Further progress may be followed at: https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=242856

UPDATE:

The problem has been resolved with the release of kernel 4.19.57-1.
es30
 
Posts: 3
Joined: Tue Nov 21, 2017 9:51 pm


Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 11 guests