刚刚接触树莓派,的确很适合用来学习,资料多而且很规范,开发者多,平台统一,很多问题别人都已经解决。

1. 执行 sudo raspi-config 开启i2c的时候:

There was an erro running option A6 I2C

2.终端中:

FATAL: Module i2c-dev not found.

3.lsmod命令显示:

只有i2c_bcm2708

没有i2c-dev

----

最终的问题是这块带3.5屏的内核中没有将相关i2c模块加进去,通过跟新内核,就可以解决问题,跟新了1个小时。没有尝试直接将相关模块添加进去行不行。不过更新过之后确实i2c可以使用,但3.5寸白屏了。

最终解决问题用到的网页:https://www.raspberrypi.org/forums/viewtopic.php?t=157458&p=1025165

Run sudo rpi-update to get the 4.4.17 kernel and replace your missing modules.

You'll need to reinstall your screen drivers.

http://www.kedei.net/raspberry/raspberry.html

--------

一些比较好的网站:

http://www.cnblogs.com/hangxin1940/archive/2013/04/03/2997094.html  树莓派搭建python i2c开发环境

http://www.landzo.cn/thread-12826-1-1.html

http://www.cnblogs.com/hangxin1940/archive/2013/04/02/2997077.html 树莓派启用i2c设备

http://www.raspberrypi-spy.co.uk/2014/11/enabling-the-i2c-interface-on-the-raspberry-pi/

http://blog.csdn.net/xukai871105/article/details/18234075

http://blog.csdn.net/ki1381/article/details/52425565

http://blog.csdn.net/xdw1985829/article/details/39580401  树莓派GPIO控制

---------

网上的一些说法:

1.首先是raspi-config配置

2./boot/config.txt 文件中开启

dtparam=i2c_arm=on

(enable the hardware interface)

3. /etc/modprobe.d/raspi-blacklist.conf配置文件里注释掉:

bladklist i2c-bcm2708

4./etc/modules-load.d/modules.comf

在此配置文件中添加:

i2c-dev

这样在开机的时候,内核引导启动的时候就会加载这个驱动模块:( kernel modules to load at boot time)

5.或者临时添加:

sudo modprobe i2c-dev

一些相关的网页:

https://www.zhihu.com/question/29328394

http://blog.csdn.net/xukai871105/article/details/15029843

http://blog.csdn.net/fly_qj/article/details/44204661

Hello to all,
I'm new here and I use a RPI for several applications.
Most of them are sensors which are connected to the i2c-port.
Now I have one problem using a LCD-display.
I do not know what drivers I need for this.
The supplier provides a image (=Linux rpizero 4.4.11 #2 Tue May 24 22:50:33 CST 2016 armv6l GNU/Linux) which works very good for the LCD display  . But...
I can not use the i2c port. 
If I run 
raspi-config 
I get the following message: 
There was an error running option A6 I2
and 
modprobe: FATAL: Module i2c-dev not found.
I think I need to add the i2c modules to the image. 
I have 2 questions:

      what i2c module do I need?
      where can i get this?
      how to add this modules ti the image?

You see I'm not an expert in making kernel.
Please can anybody give me a hint how to solve this problem?
Thanks a lot in advance!
Kurt

Raspberry Pi 3B I2C 问题的更多相关文章

  1. A new comer playing with Raspberry Pi 3B

    there are some things to do for raspberry pi 3b for the first time: 1, connect pi with monitor/KB/mo ...

  2. 如何在Raspberry Pi 3B中安装RASPBIAN

    RASPBIAN简介 RASPBIAN是树莓派官方支持的基于Debian的Linux系统.RASPBIAN预装了很多常用的组件,使用起来十分方便. 官方有RASPBIAN STRETCH WITH D ...

  3. 如何在Raspberry Pi 3B中安装Windows 10 IoT Core

    Windows 10 IoT Core简介 Windows 10 IoT是微软专门为物联网生态打造的操作系统,Windows 10 IoT Core则是Windows 10 IoT 操作系统的核心版本 ...

  4. [IOT] - Raspberry Pi 3B + Windows 10 IOT Core + .Net Core Web 部署

    硬件:Raspberry Pi 3B 系统:Windows 10 IOT Core 应用:.Net Core Web 部署流程 1. 系统安装 1.1 下载并安装 Windows 10 IoT Cor ...

  5. Vulkan Driver for VC4(Raspberry Pi 3b) base on mesa

    这是一篇关于在raspberry Pi 3b上移植实现vulkan 驱动的文章. 经过一段时间的代码搬运,终于实现了零的突破,可以在树莓派3B上运行Vulkan triangle/texture.当然 ...

  6. 树莓派(1)- Raspberry Pi 3B 安装系统并联网

    一.背景 昨天到手淘宝买的3B,既然买了就不能让它吃灰,动起来. 二.物料 名称 说明 硬件  树莓派3B 主体 树莓派电源 5V 2A sd卡 4G低速(推荐是16G class10),我手头只有这 ...

  7. Kali v2.1.2 for Raspberry Pi 3B

    最新的下载地址是: https://www.offensive-security.com/kali-linux-arm-images/ 按照官网的说法是找不到树莓派版本的SHA1SUM和SHA1SUM ...

  8. 人脸识别准备 -- 基于raspberry pi 3b + movidius

    最近准备系统地学习一下深度学习和TensorFlow,就以人脸识别作为目的. 十年前我做过一些图像处理相关的项目和研究,涉及到图像检索.记得当时使用的是SIFT特征提取,该特征算子能很好地抵抗图像旋转 ...

  9. 无外接键盘安装 raspberry pi 3B+ 安装系统

    从官网介绍看,当前raspbian和以前大家的记录略有不同,老的博客资料基本都是介绍下载raspbian,但现在raspbian已经不再维护镜像, raspbian系统开始由官方 pi foundat ...

随机推荐

  1. cube.js 学习(四)cube.js cube 说明

      cube 是cube.js data schema 的核心,里面定义了生成sql 的说明 一个比较全的schema 例子 cube(`Users`, { sql: `select * from u ...

  2. 数据结构实验之查找六:顺序查找(SDUT 3378)

    (不知道为啥开个数组就 TLE .QAQ) #include <stdio.h> #include <stdlib.h> #include <string.h> / ...

  3. 《挑战30天C++入门极限》C/C++中字符串常量的不相等性及字符串的Copy

        C/C++中字符串常量的不相等性及字符串的Copy #include <iostream>    void main(void)  {      if("test&quo ...

  4. rocketMq和kafka的架构区别

    概述 其实一直想写一篇rocketMq和kafka在架构设计上的差别,但是一直有个问题没搞明白所以迟迟没动手,今天无意中听人点播了一下似乎明白了这个问题,所以就有了这篇对比. 这篇博文主要讲清楚kaf ...

  5. HDU 6208 The Dominator of Strings ——(青岛网络赛,AC自动机)

    最长的才可能成为答案,那么除了最长的以外全部insert到自动机里,再拿最长的去match,如果match完以后cnt全被清空了,那么这个最长串就是答案.事实上方便起见这个最长串一起丢进去也无妨,而且 ...

  6. 学习DB2之Linux环境下下载

    一 下载前的注册IBM地址:https://www-01.ibm.com/marketing/iwm/iwm/web/pick.do?source=swg-db2expressc&S_PKG= ...

  7. python中字符截取[-1]、[:-1]、[::-1]、[n::-1]等使用方法的详细讲解(建议留存)

    python涉及字符截取的详细功能讲解: str = ' print("str[0:3]:"+str[0:3]) # 正向截取字符串 0~3(不包含3) 即 012 print(& ...

  8. strace命令 二

    让我们看一台高负载服务器的 top 结果: top 技巧:运行 top 时,按「1」打开 CPU 列表,按「shift+p」以 CPU 排序. 在本例中大家很容易发现 CPU 主要是被若干个 PHP ...

  9. 【json/regex】将嵌套对象生成的json文进行内部整形排序后再输出

    下载地址:https://files.cnblogs.com/files/xiandedanteng/jsonformat20191126-2.zip 注意:本文仅为draft1版本,还有待完善. 先 ...

  10. futex的设计与实现

    介绍 futex(快速用户空间互斥)是Linux的一个基础组件,可以用来构建各种更高级别的同步机制,比如锁或者信号量等等,POSIX信号量就是基于futex构建的.大多数时候编写应用程序并不需要直接使 ...