您尚未登录。

楼主 #1 2020-03-25 17:27:32

qiushan
会员
注册时间: 2020-01-16
已发帖子: 26
积分: 26

v3s使用ubuntu根文件系统,加载驱动模块出现问题

root@licheepi_zero:~# depmod
depmod: WARNING: could not open /lib/modules/4.12.0-rc1-g19e52b79/modules.order: No such file or directory
depmod: WARNING: could not open /lib/modules/4.12.0-rc1-g19e52b79/modules.builtin: No such file or directory

手动建这两个文件也不行

最近编辑记录 qiushan (2020-03-25 17:28:22)

离线

楼主 #3 2020-03-25 17:41:56

qiushan
会员
注册时间: 2020-01-16
已发帖子: 26
积分: 26

Re: v3s使用ubuntu根文件系统,加载驱动模块出现问题

拉轰的脚踏车 说:

参考: https://whycan.cn/t_2996.html#p24793


ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make modules_install INSTALL_MOD_PATH=/opt/buildroot-2018.08.2/output/target/

我没想把它们打包,就是打算放在根文件系统里,然后加载一下这个驱动

离线

楼主 #5 2020-03-25 18:01:05

qiushan
会员
注册时间: 2020-01-16
已发帖子: 26
积分: 26

Re: v3s使用ubuntu根文件系统,加载驱动模块出现问题

有梦的地方 说:

没错,按二楼的做就可以了。

我用nfs挂载的系统,不是应该把.ko文件放在/lib/modules/xxx文件下么

离线

楼主 #7 2020-03-25 19:05:55

qiushan
会员
注册时间: 2020-01-16
已发帖子: 26
积分: 26

Re: v3s使用ubuntu根文件系统,加载驱动模块出现问题

qiushan@ubuntu:~/linux/licheepi_zero/licheepi_zero_linux_ethernet$ arm-linux-gnueabihf-gcc -v

使用内建 specs。
COLLECT_GCC=arm-linux-gnueabihf-gcc
COLLECT_LTO_WRAPPER=/usr/local/arm/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin/../libexec/gcc/arm-linux-gnueabihf/6.3.1/lto-wrapper
目标:arm-linux-gnueabihf
配置为:/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/snapshots/gcc-linaro-6.3-2017.02/configure SHELL=/bin/bash --with-mpc=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu --with-mpfr=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gmp=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gnu-as --with-gnu-ld --disable-libmudflap --enable-lto --enable-objc-gc --enable-shared --without-included-gettext --enable-nls --disable-sjlj-exceptions --enable-gnu-unique-object --enable-linker-build-id --disable-libstdcxx-pch --enable-c99 --enable-clocale=gnu --enable-libstdcxx-debug --enable-long-long --with-cloog=no --with-ppl=no --with-isl=no --disable-multilib --with-float=hard --with-mode=thumb --with-tune=cortex-a9 --with-arch=armv7-a --with-fpu=vfpv3-d16 --enable-threads=posix --enable-multiarch --enable-libstdcxx-time=yes --enable-gnu-indirect-function --with-build-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/sysroots/arm-linux-gnueabihf --with-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu/arm-linux-gnueabihf/libc --enable-checking=release --disable-bootstrap --enable-languages=c,c++,fortran,lto --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=arm-linux-gnueabihf --prefix=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu
线程模型:posix
gcc 版本 6.3.1 20170109 (Linaro GCC 6.3-2017.02) 

qiushan@ubuntu:~/linux/licheepi_zero/licheepi_zero_linux_ethernet$ sudo make modules_install NSTALL_MOD_PATH=/lib/modules/4.12.0-rc1-g19e52b79

./scripts/gcc-version.sh: 行 25: arm-linux-gnueabihf-gcc:未找到命令
./scripts/gcc-version.sh: 行 26: arm-linux-gnueabihf-gcc:未找到命令
make: arm-linux-gnueabihf-gcc: Command not found
make: arm-linux-gnueabihf-gcc: Command not found
  INSTALL crypto/drbg.ko
  INSTALL crypto/echainiv.ko
  INSTALL crypto/hmac.ko
  INSTALL crypto/jitterentropy_rng.ko
  INSTALL crypto/sha256_generic.ko
make: arm-linux-gnueabihf-gcc: Command not found
  DEPMOD  4.12.0-rc1-g19e52b79-dirty

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn