i2c2 file is not present in the sys/bus/ and i need to use i2c2 how to bring it to the system .
This is one of those things that should be documented a little better.
Assuming you are using ubuntu or debian, here is the command.
echo BB-I2C1 > /sys/devices/bone_capemgr.*/slots
That should do it.