Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

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

    MR Series
    2
    2
    1033
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      yd_d1s LV 2 last edited by

      环境: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 Reply Last reply Reply Quote Share 0
      • aldfaaa
        whycan矿工-小叶 LV 7 @yd_d1s last edited by

        @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 Reply Last reply Reply Quote Share 0
        • 1 / 1
        • First post
          Last post

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

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