SD Card partition
GPIO Mux Configuration
$ mount -t debugfs none /sys/kernel/debug$ cat /sys/kernel/debug/gpiolinks related:
Add a bus i2c2
To add i2c2 bus, we have to edit the file ../arch/arm/mach-omap2/board-omap3beagle.c
static int __init omap3_beagle_i2c_init(void){ omap3_pmic_get_config(&beagle_twldata, TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_MADC | TWL_COMMON_PDATA_AUDIO, TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2); beagle_twldata.vpll2->constraints.name = "VDVI"; /* [OGF] Added i2c2 for check i2c devices 400KHz. */ omap_register_i2c_bus(2, 400, NULL, 0); omap3_pmic_init("twl4030", &beagle_twldata); /* 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)); return 0;}Register a i2c devices:
For example, how add a tmp102 device to i2c3 bus in beagleboar XM rev.c:
In kernel you have to selecte:
Symbol: SENSORS_TMP102 [=y]Type : tristatePrompt: Texas Instruments TMP102 Defined at drivers/hwmon/Kconfig:1101 Depends on: HWMON [=y] && I2C [=y] && EXPERIMENTAL [=y]Location: -> Device Drivers -> Hardware Monitoring support (HWMON [=y])In builroot you have to select: lm-sensors pakage.
Add a new i2c device:
# echo tmp102 0x48 > /sys/class/i2c-adapter/i2c-0/new_device# sensorstmp102-i2c-0-48Adapter: bcm2708_i2c.0temp1: +21.6°C (high = +160.0°C, hyst = +150.0°C)Read temperature from the raspberry pi:
# vcgencmd measure_temptemp=41.9'CHow To: Managing services with update-rc.d
For remove a service:
# update-rc.d -f name_service remove
Now, if you want to re-add this service to be started on boot up, you can simply use:
# update-rc.d name_serivce defaults