I2C and SPI on beagle board

Hi,

I want to write my own driver for SPI and I2C. Can anyone help me? I have BB xm A3 in which EEPROM is connected to I2C line . I want to write driver for EEPROM which is connected to I2C but I am bit worried. Why ? bcoz I dont know whether BB is using this EEPROM for storing data or not ? so if i erase EEPROM then my board may not be boot up or some thing wrong will happen.

Please guide me

Regards
vishal