导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    D1s使用V2.1版本 tiny SDK中的内核,设备连接w5500 spi wifi,spi通信失败

    MR Series
    2
    2
    1080
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • Y
      yd_d1s LV 2 最后由 编辑

      环境:d1s + w5500

      使用github仓库:https://github.com/Tina-Linux/linux-5.4/archive/refs/tags/1.0.0.tar.gz
      配置设备树,wifi可以正常使用,

      更新内核为 tiny SDK V2.1版本中的内核,其他不变,wifi驱动加载正常,w5500读取复位状态失败,

      if (w5100_read16(priv, rtr) != RTR_DEFAULT)
         return -ENODEV;
      

      替换drivers/spi/spi-sunxi.c drivers/spi/spi-slave-protocol.h为github版本,通信正常。

      请问,是否内核spi的驱动在新版本有问题???

      aldfaaa 1 条回复 最后回复 回复 引用 分享 0
      • aldfaaa
        whycan矿工-小叶 LV 7 @yd_d1s 最后由 编辑

        @yd_d1s 如果你能贴出spi-sunxi.c, spi-slave-protocol.h的代码差异, 真相就只有一个了

        git diff spi-sunxi_old.c spi-sunxi.c
        git diff spi-slave-protocol_old.h spi-slave-protocol.h
        
        1 条回复 最后回复 回复 引用 分享 0
        • 1 / 1
        • First post
          Last post

        Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策