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)
离线
参考: 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/
离线
参考: 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/
我没想把它们打包,就是打算放在根文件系统里,然后加载一下这个驱动
离线
我没想把它们打包,就是打算放在根文件系统里,然后加载一下这个驱动
没错,按二楼的做就可以了。
离线
没错,按二楼的做就可以了。
我用nfs挂载的系统,不是应该把.ko文件放在/lib/modules/xxx文件下么
离线
INSTALL_MOD_PATH=armlinux根目录 make modues_install
上面朋友不是说了吗,怎么不听呢
离线
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
离线
/lib/modules/4.12.0-rc1-g19e52b79 这个目录错了, 这个是你的 x86 linux 目录.
离线