Tell me more ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

I need to use kernel drivers for some I2C peripherals, so I need kernel I2C support. As already discussed in a previous question, the current 3.1.9 kernel doesn't provide support for the SoC's I2C hardware. I was hoping that the new Debian image would include a 3.2 kernel (so that I can use Chris Boot's driver directly), but 2012-08-08-wheezy-armel.zip has still the old version. I don't want to backport the driver myself, I just don't have the time.

  1. Are my above assumptions right, and there is still no I2C support in the "main" kernel?
  2. Are there any plans to move to 3.2 or newer for the official images?
  3. What is the best way to get I2C support inside the kernel?

edit 1: I need to use a distro compiled with softfp ABI

share|improve this question

3 Answers

up vote 5 down vote accepted

Questions 1 to 3 are answered the same:

Current kernel at github is already 3.2. It includes I2C and SPI drivers in the source tree. You just have to activate it in the configuration and compile your own kernel.

share|improve this answer
By enable you mean compile-time? – XTL Sep 10 '12 at 5:46
Ah, thanks, wasn't aware that the github repo was updated to 3.2... I should have looked more closely... – Scolytus Sep 10 '12 at 11:06

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer: please explain why you're recommending it as a solution. Answers that don't explain anything will be deleted. See Good Subjective, Bad Subjective for more information.

I can not answer parts 1 and 2 of your question, but one simple way to get I2C support is to switch to adafruit's distro Occidentalis

It includes:

  • I2C and hardware SPI support
  • I2C/SPI modules initialized on bootAdafruit's distro Occidentalis

The link above contains more details including installation instructions.

share|improve this answer
Ok, I forgot to mention that I need the softfp ABI, so Raspbian and friends are not an option. – Scolytus Sep 7 '12 at 15:56

You can compile your own kernel. You need to configure it to use softfp and compile in the I2C drivers.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.