/**********************************************************************
* /dev/i2c-*不见了
* 说明:
* 能在他的系统中没找到/dev/i2c-*设备,发现是内核中没有打开对应的驱动。
*
* 2018-5-8 深圳 宝安西乡 曾剑锋
*********************************************************************/
一、参考文档:
1. No /dev/i2c-0 entry after insmod i2c-dev
https://www.linuxquestions.org/questions/linux-newbie-8/no-dev-i2c-0-entry-after-insmod-i2c-dev-896482/
二、解决方法:
──────────────────────────────────────────────────────────────────────────────
┌────────────────────────────── I2C support ──────────────────────────────┐
│ Arrow keys navigate the menu. <Enter> selects submenus --->. │
│ Highlighted letters are hotkeys. Pressing <Y> includes, <N> excludes, │
│ <M> modularizes features. Press <Esc><Esc> to exit, <?> for Help, </> │
│ for Search. Legend: [*] built-in [ ] excluded <M> module < > │
│ ┌─────────────────────────────────────────────────────────────────────┐ │
│ │ --- I2C support │ │
│ │ [*] Enable compatibility bits for old user-space │ │
│ │ <*> I2C device interface <---------select it │ │
│ │ < > I2C bus multiplexing support │ │
│ │ [*] Autoselect pertinent helper modules │ │
│ │ I2C Hardware Bus support ---> │ │
│ │ [ ] I2C Core debugging messages │ │
│ │ [ ] I2C Algorithm debugging messages │ │
│ │ [ ] I2C Bus debugging messages │ │
│ └─────────────────────────────────────────────────────────────────────┘ │
├─────────────────────────────────────────────────────────────────────────┤
│ <Select> < Exit > < Help > │
└─────────────────────────────────────────────────────────────────────────┘