0

我正在使用 Eclipse Juno,Ubuntu 操作系统 64 位。我尝试在 Eclipse 中为 ARM 平台构建 Linux 模块。编译器:ARM 的 Sourcery CodeBench。Eclipse for ARM 插件已安装。

当我在具有 root 权限的终端中运行 make 命令时,一切正常。但是当我尝试在 Eclipse 中构建时,make 目标:“make uImage”成功但“make modules”和“make modules_install”失败。以下是我运行“make modules”时遇到的错误。我尝试以 root 权限运行 Eclipse(在终端运行:sudo ./eclipse),但仍然发生错误。这里出了什么问题?谢谢

make -j2 modules
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC scripts/mod/devicetable-offsets.s
CALL scripts/checksyscalls.sh
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
Building modules, stage 2.
MODPOST 11 modules
/home/thangle/git/linux-stable/scripts/Makefile.fwinst:45: target `/home/thangle/modules_install/lib/firmware/acenic/tg1.bin' doesn't match the target pattern
/home/thangle/git/linux-stable/scripts/Makefile.fwinst:45: target `/home/thangle/modules_install/lib/firmware/acenic/tg2.bin' doesn't match the target pattern
/home/thangle/git/linux-stable/scripts/Makefile.fwinst:45: target `/home/thangle/modules_install/lib/firmware/adaptec/starfire_rx.bin' doesn't match the target pattern
/home/thangle/git/linux-stable/scripts/Makefile.fwinst:45: target `/home/thangle/modules_install/lib/firmware/adaptec/starfire_tx.bin' doesn't match the target pattern
/home/thangle/git/linux-stable/scripts/Makefile.fwinst:45: target `/home/thangle/modules_install/lib/firmware/dsp56k/bootstrap.bin' doesn't match the target pattern
/home/thangle/git/linux-stable/scripts/Makefile.fwinst:45: target `/home/thangle/modules_install/lib/firmware/atmsar11.fw' doesn't match the target pattern
/home/thangle/git/linux-stable/scripts/Makefile.fwinst:45: target `/home/thangle/modules_install/lib/firmware/bnx2x/bnx2x-e1-6.2.9.0.fw' doesn't match the target pattern
/home/thangle/git/linux-stable/scripts/Makefile.fwinst:45: target `/home/thangle/modules_install/lib/firmware/bnx2x/bnx2x-e1h-6.2.9.0.fw' doesn't match the target pattern
/home/thangle/git/linux-stable/scripts/Makefile.fwinst:45: target `/home/thangle/modules_install/lib/firmware/bnx2x/bnx2x-e2-6.2.9.0.fw' doesn't match the target pattern
/home/thangle/git/linux-stable/scripts/Makefile.fwinst:45: target `/home/thangle/modules_install/lib/firmware/bnx2/bnx2-mips-09-6.2.1a.fw' doesn't match the target pattern
/home/thangle/git/linux-stable/scripts/Makefile.fwinst:45: target `/home/thangle/modules_install/lib/firmware/bnx2/bnx2-rv2p-09-6.0.17.fw' doesn't match the target pattern
/home/thangle/git/linux-stable/scripts/Makefile.fwinst:45: target `/home/thangle/modules_install/lib/firmware/bnx2/bnx2-rv2p-09ax-6.0.17.fw' doesn't match the target pattern
/home/thangle/git/linux-stable/scripts/Makefile.fwinst:45: target `/home/thangle/modules_install/lib/firmware/bnx2/bnx2-mips-06-6.2.1.fw' doesn't match the target pattern
/home/thangle/git/linux-stable/scripts/Makefile.fwinst:45: target `/home/thangle/modules_install/lib/firmware/bnx2/bnx2-rv2p-06-6.0.15.fw' doesn't match the target pattern
/home/thangle/git/linux-stable/scripts/Makefile.fwinst:45: target `/home/thangle/modules_install/lib/firmware/sun/cassini.bin' doesn't match the target pattern
/home/thangle/git/linux-stable/scripts/Makefile.fwinst:45: target `/home/thangle/modules_install/lib/firmware/cxgb3/t3b_psram-1.1.0.bin' doesn't match the target pattern
/home/thangle/git/linux-stable/scripts/Makefile.fwinst:45: target `/home/thangle/modules_install/lib/firmware/cxgb3/t3c_psram-1.1.0.bin' doesn't match the target pattern
/home/thangle/git/linux-stable/scripts/Makefile.fwinst:45: target `/home/thangle/modules_install/lib/firmware/cxgb3/ael2005_opt_edc.bin' doesn't match the target pattern
/home/thangle/git/linux-stable/scripts/Makefile.fwinst:45: target `/home/thangle/modules_install/lib/firmware/cxgb3/ael2005_twx_edc.bin' doesn't match the target pattern
/home/thangle/git/linux-stable/scripts/Makefile.fwinst:45: target `/home/thangle/modules_install/lib/firmware/cxgb3/ael2020_twx_edc.bin' doesn't match the target pattern

但是,如果我使用命令在终端中构建:make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-modules

没关系。

CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CC      kernel/bounds.s
  GEN     include/generated/bounds.h
  CC      arch/arm/kernel/asm-offsets.s
  GEN     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CC      scripts/mod/empty.o
  MKELF   scripts/mod/elfconfig.h
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  CC [M]  crypto/rng.o
  CC [M]  crypto/krng.o
  CC [M]  crypto/ansi_cprng.o
  CC [M]  drivers/usb/gadget/f_loopback.o
  CC [M]  drivers/usb/gadget/f_sourcesink.o
  CC [M]  drivers/usb/gadget/mass_storage.o
  CC [M]  drivers/usb/gadget/serial.o
  CC [M]  drivers/usb/gadget/zero.o
  CC [M]  drivers/usb/gadget/inode.o
  CC [M]  drivers/usb/gadget/usbstring.o
  CC [M]  drivers/usb/gadget/config.o
  CC [M]  drivers/usb/gadget/epautoconf.o
  CC [M]  drivers/usb/gadget/composite.o
  CC [M]  drivers/usb/gadget/functions.o
  LD [M]  drivers/usb/gadget/libcomposite.o
  CC [M]  drivers/usb/gadget/f_acm.o
  LD [M]  drivers/usb/gadget/f_ss_lb.o
  CC [M]  drivers/usb/gadget/u_serial.o
  LD [M]  drivers/usb/gadget/g_zero.o
  LD [M]  drivers/usb/gadget/gadgetfs.o
  LD [M]  drivers/usb/gadget/g_mass_storage.o
  LD [M]  drivers/usb/gadget/g_serial.o
  Building modules, stage 2.
  MODPOST 11 modules
  CC      crypto/ansi_cprng.mod.o
  LD [M]  crypto/ansi_cprng.ko
  CC      crypto/krng.mod.o
  LD [M]  crypto/krng.ko
  CC      crypto/rng.mod.o
  LD [M]  crypto/rng.ko
  CC      drivers/usb/gadget/f_acm.mod.o
  LD [M]  drivers/usb/gadget/f_acm.ko
  CC      drivers/usb/gadget/f_ss_lb.mod.o
  LD [M]  drivers/usb/gadget/f_ss_lb.ko
  CC      drivers/usb/gadget/g_mass_storage.mod.o
  LD [M]  drivers/usb/gadget/g_mass_storage.ko
  CC      drivers/usb/gadget/g_serial.mod.o
  LD [M]  drivers/usb/gadget/g_serial.ko
  CC      drivers/usb/gadget/g_zero.mod.o
  LD [M]  drivers/usb/gadget/g_zero.ko
  CC      drivers/usb/gadget/gadgetfs.mod.o
  LD [M]  drivers/usb/gadget/gadgetfs.ko
  CC      drivers/usb/gadget/libcomposite.mod.o
  LD [M]  drivers/usb/gadget/libcomposite.ko
  CC      drivers/usb/gadget/u_serial.mod.o
  LD [M]  drivers/usb/gadget/u_serial.ko

问候

4

0 回答 0