我已经可以成功地将一些二进制文件用于Mipsel Vusolo2,Ob Ubuntu 14.04 32 lift the Tool Chain Mipsel-tuxbox-linux-gnu我从这里获得的http://shivanet.ro//tmp/mipsel-tuxbox-linux-gnu.tar.bz2。我确实安装了将工具链复制到目录/opt/opt/cross/mipsel-tuxbox-linux-gnu。Vusolo2 SAT接收器运行Linux 3.15.3内核,现在我需要VLAN支持(模块8021Q)。如有必要,可以将VLAN模块或内核交叉的想法复制到Que框。我所做的是下载linux 3.15.3的来源:
make ARCH=mips defconfig
make ARCH=mips menuconfig
选定的VLAN支持(8021Q)然后,我发出了通往工具链的路径的命令:
ARCH=mips CROSS_COMPILE=/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc make all
不确定我是否必须选择全部制造或制造模块,找不到我的工具链。
root@BM2LTSR66MSvex:/opt/linux-3.13.5# ARCH=mips CROSS_COMPILE=/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc make all
/bin/sh: 1: /opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gccgcc: not found
/bin/sh: 1: /opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gccgcc: not found
make: /opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gccgcc: Befehl nicht gefunden
/bin/sh: 1: /opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gccgcc: not found
/bin/sh: 1: /opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gccgcc: not found
scripts/kconfig/conf --silentoldconfig Kconfig
/bin/sh: 1: /opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gccgcc: not found
/bin/sh: 1: /opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gccgcc: not found
/bin/sh: 1: /opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gccgcc: not found
/bin/sh: 1: /opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gccgcc: not found
make: /opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gccgcc: Befehl nicht gefunden
CHK include/config/kernel.release
UPD include/config/kernel.release
WRAP arch/mips/include/generated/asm/cputime.h
WRAP arch/mips/include/generated/asm/current.h
WRAP arch/mips/include/generated/asm/emergency-restart.h
WRAP arch/mips/include/generated/asm/local64.h
WRAP arch/mips/include/generated/asm/mutex.h
WRAP arch/mips/include/generated/asm/parport.h
WRAP arch/mips/include/generated/asm/percpu.h
WRAP arch/mips/include/generated/asm/scatterlist.h
WRAP arch/mips/include/generated/asm/sections.h
WRAP arch/mips/include/generated/asm/segment.h
WRAP arch/mips/include/generated/asm/serial.h
WRAP arch/mips/include/generated/asm/trace_clock.h
WRAP arch/mips/include/generated/asm/preempt.h
WRAP arch/mips/include/generated/asm/ucontext.h
WRAP arch/mips/include/generated/asm/xor.h
WRAP arch/mips/include/generated/uapi/asm/auxvec.h
WRAP arch/mips/include/generated/uapi/asm/ipcbuf.h
CHK include/generated/uapi/linux/version.h
UPD include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
CC kernel/bounds.s
/bin/sh: 1: /opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gccgcc: not found
make[1]: *** [kernel/bounds.s] Fehler 127
make: *** [prepare0] Fehler 2
是什么正确的方法可以告知我的工具链在哪里?我注意到Make正在寻找MIPSEL-TUXBOX-LINUX-GNU-GCCGCC,而不是Mipsel-Tuxbox-Linux-gnu-GCC。谢谢,请提前Vento
ps:嗨,只能编译所有内容,首先,我得到了8021q.ko,我已将其复制到Vusolo 2 MIPS BCM 7356处理器(lib/模块/linux-3.15.3)。在Menuconfig中,我选择了Texas Instruments和Little Endian选项的BCM7356。制成 : root@BM2LTSR66MSvex:/opt/linux-3.13.5/net/8021q# file 8021q.ko 8021q.ko: ELF 32-bit LSB relocatable, MIPS, MIPS32 version 1 (SYSV),BuildID[sha1]=5be101e941197b08a4e3c2b1554e5fb002ca6ed7, not stripped
似乎是正确的格式,但是当我尝试在vuplus solo2上加载它时
root@vusolo2:/lib/modules/3.13.5# lsmod | grep 8021q
root@vusolo2:/lib/modules/3.13.5# modprobe 8021q
modprobe: ERROR: could not insert '8021q': Exec format error
编译文件时我必须使用其他选项吗?
谢谢Vento
您的交叉编译工具后缀:
CROSS_COMPILE=/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-
它将扩展到mipsel-tuxbox-linux-gnu-gcc
,mipsel-tuxbox-linux-gnu-ld
等。
我使用此步骤:
导出路径=/opt/cross/mipsel-tuxbox-linux-gnu/bin:$ path
make arch = mips cross_compile = mipsel-tuxbox-linux-gnu-全部