Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eepflash.sh: Use i2c bus 10 to avoid clash on Pi 4
This script used to create a bit-bashed I2C interface in the event that I2C0 was not already enabled. Because the kernel knew of three I2C interfaces already the soft interface appeared as i2c-3. On Pi 4 the highest numbered I2C interface is i2c-6, which causes the soft interface to appear as i2c-7. Work around the issue by giving the soft interface an explicit bus number of 10, guaranteeing that it won't clash on any known system. See: #65 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
- Loading branch information
42c532fThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pelwell Just noticed this commit whilst looking for the official HAT programming instructions for a forum post.
I guess I've just broken this again on >=5.4 when I introduced i2c-10 for the camera/display I2C pinmuxing of BSC0. Sorry.
You've potentially got 3 currently "floating numbering" I2C busses on Pi4 with the parent for BSC0, and the two HDMI I2C controllers when in full KMS mode. Those shouldn't cause grief though.
42c532fThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be fixed now - bus 9 is its new home.