Navigation

    全志在线开发者论坛

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

    T113-S3 Longan SDK怎么加驱动?

    MR Series
    6
    14
    4985
    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.
    • how0723
      how0723 LV 5 last edited by

      Longan SDK怎么加驱动?
      我把RTL8189FS放进去了,放在了 kernel/linux-5.4/drivers/net/wireless/rtl8189fs/
      kernel/linux-5.4/drivers/net/wireless/Kconfig里面加了
      99ba01ed-dcd3-4e28-9469-a78b4899e245-image.png 5f0c89f7-67f3-45b9-9c88-0538dcc55199-image.png
      Makefile里面加了
      9ba8257a-179f-4358-af52-27f2eff4551b-image.png ed3fb42f-eccb-49c8-92ff-2e5cde566765-image.png
      device/config/chips/t113/configs/evb1_auto/linux-5.4/config-5.4里面加了
      9512cbde-f0e4-4d0d-b19e-af053fbf9c69-image.png

      但是还是不编译这个模块 !

      whycan 1 Reply Last reply Reply Quote Share 0
      • whycan
        whycan晕哥 LV 9 @how0723 last edited by

        @how0723
        make kernel_menuconfig 看下有没有选中?

        how0723 1 Reply Last reply Reply Quote Share 0
        • how0723
          how0723 LV 5 @whycan last edited by

          @whycan 这是longan不是tina,没有make kernel_menuconfig只有make menuconfig

          T BedRock 4 Replies Last reply Reply Quote Share 0
          • T
            TEVET LV 7 @how0723 last edited by

            @how0723
            大佬,longan添加WIFI驱动还有另一种模块集成方式,
            你扔驱动文件夹到
            platform/framework/auto/kernel 下面
            然后模仿xr829 来一波,你会明白的。

            当然你放进去内核里也是可以的,但是你要修改Makefile的include 路径声明,有几个地方要改的,就很烦。

            how0723 2 Replies Last reply Reply Quote Share 0
            • BedRock
              BedRock LV 6 @how0723 last edited by

              在Kernel目录中 make menuconfig

              或者查看一下编译脚本,看看调用的是哪一个config文件:
              文件路径在:linux-4.9/arch/arm64/configs
              或者:linux-4.9/arch/arm/configs

              或者从 build.sh 按照脚本流程走一下

              1 Reply Last reply Reply Quote Share 0
              • T
                TEVET LV 7 @how0723 last edited by

                @how0723
                项目的配置文件在 (看你的config是什么项目了,路径是这个路径,defconfig根据你配的走)
                kernel/linux-5.4/arch/arm/configs/sun8iw20p1smp_t113_auto_defconfig

                how0723 1 Reply Last reply Reply Quote Share 0
                • T
                  TEVET LV 7 @how0723 last edited by

                  @how0723
                  更多详细信息看下 BSP根目录下 的 ./.buildconfig

                  1 Reply Last reply Reply Quote Share 0
                  • how0723
                    how0723 LV 5 @TEVET last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote Share 0
                    • how0723
                      how0723 LV 5 @TEVET last edited by

                      @tevet 按照你这个方法还是不行

                      1 Reply Last reply Reply Quote Share 0
                      • how0723
                        how0723 LV 5 @TEVET last edited by

                        @tevet 49412a6f-cdc3-4bcb-83ea-81d7aa54a3bd-image.png
                        我看了一下是交叉编译器设置不对,它设置成android的交叉编译器了
                        请问这里面应该怎么设置。第一次调内核驱动,不太懂

                        T 1 Reply Last reply Reply Quote Share 0
                        • BedRock
                          BedRock LV 6 last edited by

                          看一下文档中如何单独编译Kernel章节,你就知道了

                          1 Reply Last reply Reply Quote Share 0
                          • mangogeek
                            mangogeek LV 8 last edited by

                            longan问题太多,尽量用tina: https://github.com/mangopi-sbc/Tina-Linux

                            M 1 Reply Last reply Reply Quote Share 0
                            • M
                              msh410278586 LV 5 @mangogeek last edited by

                              @mangogeek 大佬,新的sdk支持CAN了吗

                              1 Reply Last reply Reply Quote Share 0
                              • T
                                TEVET LV 7 @how0723 last edited by

                                @how0723
                                大佬啊,你不模仿下xr829的编译么, 为啥直接用内核路径指定编译呢, 没必要。
                                你要这样编译就放到内核里编译。

                                1 Reply Last reply Reply Quote Share 0
                                • 1 / 1
                                • First post
                                  Last post

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

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