从编译内核出错,请老师指点!!!继续讨论:
ubuntu版本为18.04 64版本
一.100ask_imx6ull-sdk/Linux-4.9.88下面的文件情况如下
arch certs CREDITS Documentation firmware include ipc Kconfig lib Makefile net REPORTING-BUGS scripts sound usr
block COPYING crypto drivers fs init Kbuild kernel MAINTAINERS mm README samples security tools virt
二.执行make 100ask_imx6ull_defconfig情况如下
book@100ask:~/100ask_imx6ull-sdk/Linux-4.9.88$ make 100ask_imx6ull_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
configuration written to .config
book@100ask:~/100ask_imx6ull-sdk/Linux-4.9.88$
三:make zImage -j4情况如下
./scripts/gcc-version.sh: line 25: arm-buildroot-linux-gnueabihf-exportgcc: command not found
./scripts/gcc-version.sh: line 26: arm-buildroot-linux-gnueabihf-exportgcc: command not found
make: arm-buildroot-linux-gnueabihf-exportgcc: Command not found
make: arm-buildroot-linux-gnueabihf-exportgcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
./scripts/gcc-version.sh: line 25: arm-buildroot-linux-gnueabihf-exportgcc: command not found
./scripts/gcc-version.sh: line 26: arm-buildroot-linux-gnueabihf-exportgcc: command not found
make: arm-buildroot-linux-gnueabihf-exportgcc: Command not found
make: arm-buildroot-linux-gnueabihf-exportgcc: Command not found
CHK include/config/kernel.release
make: arm-buildroot-linux-gnueabihf-exportgcc: Command not found
WRAP arch/arm/include/generated/asm/bitsperlong.h
WRAP arch/arm/include/generated/asm/clkdev.h
WRAP arch/arm/include/generated/asm/cputime.h
make: arm-buildroot-linux-gnueabihf-exportgcc: Command not found
WRAP arch/arm/include/generated/asm/current.h
WRAP arch/arm/include/generated/asm/early_ioremap.h
WRAP arch/arm/include/generated/asm/emergency-restart.h
CHK include/generated/uapi/linux/version.h
WRAP arch/arm/include/generated/asm/errno.h
WRAP arch/arm/include/generated/asm/exec.h
UPD include/generated/uapi/linux/version.h
WRAP arch/arm/include/generated/asm/ioctl.h
UPD include/config/kernel.release
WRAP arch/arm/include/generated/asm/ipcbuf.h
WRAP arch/arm/include/generated/asm/irq_regs.h
WRAP arch/arm/include/generated/asm/kdebug.h
WRAP arch/arm/include/generated/asm/local.h
WRAP arch/arm/include/generated/asm/mm-arch-hooks.h
WRAP arch/arm/include/generated/asm/local64.h
WRAP arch/arm/include/generated/asm/msgbuf.h
WRAP arch/arm/include/generated/asm/msi.h
WRAP arch/arm/include/generated/asm/param.h
WRAP arch/arm/include/generated/asm/parport.h
WRAP arch/arm/include/generated/asm/poll.h
WRAP arch/arm/include/generated/asm/resource.h
WRAP arch/arm/include/generated/asm/preempt.h
WRAP arch/arm/include/generated/asm/seccomp.h
WRAP arch/arm/include/generated/asm/rwsem.h
WRAP arch/arm/include/generated/asm/segment.h
WRAP arch/arm/include/generated/asm/sembuf.h
WRAP arch/arm/include/generated/asm/serial.h
make: arm-buildroot-linux-gnueabihf-exportgcc: Command not found
WRAP arch/arm/include/generated/asm/siginfo.h
WRAP arch/arm/include/generated/asm/shmbuf.h
WRAP arch/arm/include/generated/asm/simd.h
WRAP arch/arm/include/generated/asm/sizes.h
WRAP arch/arm/include/generated/asm/socket.h
WRAP arch/arm/include/generated/asm/sockios.h
WRAP arch/arm/include/generated/asm/termbits.h
WRAP arch/arm/include/generated/asm/termios.h
WRAP arch/arm/include/generated/asm/trace_clock.h
WRAP arch/arm/include/generated/asm/timex.h
HOSTCC scripts/basic/bin2c
make: arm-buildroot-linux-gnueabihf-exportgcc: Command not found
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
make: arm-buildroot-linux-gnueabihf-exportgcc: Command not found
make: arm-buildroot-linux-gnueabihf-exportgcc: Command not found
make: arm-buildroot-linux-gnueabihf-exportgcc: Command not found
GEN include/generated/mach-types.h
HOSTCC scripts/dtc/dtc.o
HOSTCC scripts/genksyms/genksyms.o
CC scripts/mod/empty.o
/bin/sh: 1: arm-buildroot-linux-gnueabihf-exportgcc: not found
scripts/Makefile.build:293: recipe for target ‘scripts/mod/empty.o’ failed
make[2]: *** [scripts/mod/empty.o] Error 127
scripts/Makefile.build:544: recipe for target ‘scripts/mod’ failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs…
HOSTCC scripts/dtc/flattree.o
SHIPPED scripts/genksyms/parse.tab.c
make: arm-buildroot-linux-gnueabihf-exportgcc: Command not found
CC kernel/bounds.s
/bin/sh: 1: arm-buildroot-linux-gnueabihf-exportgcc: not found
Kbuild:45: recipe for target ‘kernel/bounds.s’ failed
make[1]: *** [kernel/bounds.s] Error 127
Makefile:1042: recipe for target ‘prepare0’ failed
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs…
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/keywords.hash.c
SHIPPED scripts/genksyms/parse.tab.h
HOSTCC scripts/dtc/fstree.o
HOSTCC scripts/dtc/data.o
HOSTCC scripts/dtc/livetree.o
HOSTCC scripts/genksyms/parse.tab.o
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/dtc/srcpos.o
HOSTCC scripts/dtc/checks.o
HOSTCC scripts/dtc/util.o
HOSTCC scripts/genksyms/lex.lex.o
SHIPPED scripts/dtc/dtc-lexer.lex.c
SHIPPED scripts/dtc/dtc-parser.tab.h
SHIPPED scripts/dtc/dtc-parser.tab.c
HOSTCC scripts/dtc/dtc-lexer.lex.o
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTLD scripts/dtc/dtc
HOSTLD scripts/genksyms/genksyms
Makefile:557: recipe for target ‘scripts’ failed
make: *** [scripts] Error 2
四:执行arm-buildroot-linux-gnueabihf-gcc -v查看交叉编译工具情况如下
Using built-in specs.
COLLECT_GCC=/home/book/100ask_imx6ull-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/bin/arm-buildroot-linux-gnueabihf-gcc.br_real
COLLECT_LTO_WRAPPER=/home/book/100ask_imx6ull-sdk/ToolChain/arm-buildroot-linux-gnueabihf_sdk-buildroot/bin/…/libexec/gcc/arm-buildroot-linux-gnueabihf/7.5.0/lto-wrapper
Target: arm-buildroot-linux-gnueabihf
Configured with: ./configure --prefix=/home/book/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host --sysconfdir=/home/book/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/etc --enable-static --target=arm-buildroot-linux-gnueabihf --with-sysroot=/home/book/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/arm-buildroot-linux-gnueabihf/sysroot --enable-__cxa_atexit --with-gnu-ld --disable-libssp --disable-multilib --disable-decimal-float --with-gmp=/home/book/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host --with-mpc=/home/book/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host --with-mpfr=/home/book/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host --with-pkgversion=‘Buildroot 2020.02-gee85cab’ --with-bugurl=http://bugs.buildroot.net/ --disable-libquadmath --enable-tls --enable-plugins --enable-lto --enable-threads --with-isl=/home/book/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host --with-abi=aapcs-linux --with-cpu=cortex-a7 --with-fpu=neon-vfpv4 --with-float=hard --with-mode=arm --enable-languages=c,c++,fortran --with-build-time-tools=/home/book/100ask_imx6ull-sdk/Buildroot_2020.02.x/output/host/arm-buildroot-linux-gnueabihf/bin --enable-shared --enable-libgomp
Thread model: posix
gcc version 7.5.0 (Buildroot 2020.02-gee85cab)