i2c-2 of expansion header is not detected

when i do i2cdetect only i2c1, i2c3 recognizes but no i2c-2. how to enable i2c2 plz

That depends... Which Board? Which kernel version? etc..

Regards,

beagleboard xm rev c, kernel version - 3.2.0-23

That's trivial, apply this patch and rebuild..

http://paste.debian.net/74830/

Regards,

Thanks For the Prompt reply

How to apply the patch. I am trying with the following command diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 4a71cb7…2148f35 100644 — a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c @@ -385,6 +385,7 @@ static int __init omap3_beagle_i2c_init(void) beagle_twldata.vpll2->constraints.name = “VDVI”; omap3_pmic_init(“twl4030”, &beagle_twldata); + omap_register_i2c_bus(2, 400, NULL, 0); /* Bus 3 is attached to the DVI port where devices like the pico DLP * projector don’t work reliably with 400kHz */ omap_register_i2c_bus(3, 100, beagle_i2c_eeprom, ARRAY_SIZE(beagle_i2c_eeprom));

I also tried the git diff commands but terminal shows error
So, finally how to enable the I2c2 iam also thinking of recompiling the kernel from git clone.

git am .patch

not a git repository… what to do ?? plz help

1: Find out who the "authors" of the image you are using.
2: contact them for the kernel source that matches your build
3: download source/patch/build
4: reboot
5: xyz
6: profit

Regards,

btw: if you don't want to do that.. just use an image that has it
enabled by default:

http://elinux.org/BeagleBoardUbuntu#Demo_Image

use the "--dtb dt-beagle-xm" option..

i2cdetect -l
i2c-0 i2c OMAP I2C adapter I2C adapter
i2c-1 i2c OMAP I2C adapter I2C adapter
i2c-2 i2c OMAP I2C adapter I2C adapter

Regards,

I have downloaded the demo image as indicated in your comment to Harshit , After this I entered the following command in terminal
sudo ./setup_sdcard.sh --mmc /dev/sdx --uboot beagle_xm. After I enter the data in sdcard and boot the beagle it does not boot .
Please Help!

Yet, you didn't seem to read the message thou..

"use the "--dtb dt-beagle-xm" option..."

Regards,

I have downloaded the demo image as indicated by you in your comment. I entered the following command in the terminal
sudo ./setup_sdcard.sh --mmc --dtb dt-beagle-xm
and put the image in the sdcard but the sdcard does not boot.

I have downloaded the demo image as indicated by you in your comment. I
entered the following command in the terminal
sudo ./setup_sdcard.sh --mmc --dtb dt-beagle-xm

"--mmc" specify the device...

and put the image in the sdcard but the sdcard does not boot.

pastebin.com your terminal output when you ran the script..

Regards,

srry i have specified the device /dev/sdb in terminal. the sd-card boot up as normal but it is taking time and monitor doesn’t show anything .

What kind of monitor? It should auto-detect it..

if it doesn't edit the line that says kms_override in /boot/uboot/uEnv.txt

Regards,

monitor is the display connected through hdmi to xm… can u tell me how much time its take for first boot …plz help. i really want to do the i2c work today only…
thanks

monitor is the display connected through hdmi to xm.. can u tell me how much
time its take for first boot ..plz help.

could you please be more 'vague'...

btw: also try upgrading, fixed alot of graphics bugs...

saucy:

wget http://rcn-ee.net/deb/saucy-armhf/v3.13.0-rc7-armv7-x7/install-me.sh
sudo /bin/bash install-me.sh

i really want to do the i2c work
today only...

okay.. it's not my fault you started with an image that didn't work..

thanks

Regards,

nothing happens … i connect my laptop to xm with putty which signifies that os has booted successfully for the first time . i have enter the caommand as u have said earlier but nothing happens .

"nothing happens" please explain..

It doesn't download the image from the server/etc??

Regards,

it downloads the image . Than i reboot ,the os boots but the monitor doesn,t display anything