• Recent
    • Docs
    • Github
    • 百度网盘
    • Onedrive
    • Official
    • Shop
    • Register
    • Login

    linux header找不到

    Scheduled Pinned Locked Moved Pi CM5
    3 Posts 2 Posters 217 Views
    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.
    • J
      jugg
      last edited by jugg

      make[1]: *** /lib/modules/5.10.110/build: 没有那个文件或目录。 停止。
      make: *** [Makefile:16:clean] 错误 2
      我编译一个驱动 提示找不到build
      尝试sudo apt-get install kernel-headers 也没有

      1 Reply Last reply Reply Quote 0
      • J
        jugg
        last edited by

        找到了
        https://cool-pi.com/topic/378/cm5如何安装网卡驱动/9?page=1

        G 1 Reply Last reply Reply Quote 0
        • G
          george @jugg
          last edited by

          @jugg
          如下命令就会生成头文件目录,拷贝到系统usr/src/linux-headers-5.10.110目录即可

          make ARCH=arm64 headers_install INSTALL_HDR_PATH=out_headers/usr/src/linux-headers-5.10.110
          
          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post