交叉编译Linux 3.15.3 for mips(el)vu solo2 Vlan模块支持(8021q) [英] Crosscompile Linux 3.15.3 for mips(el) vu solo2 Vlan module support (8021q)
问题描述
我已经可以成功地交叉编译mipsel vusolo2,ob ubuntu 14.04 32位与我从这里得到的工具链mipsel-tuxbox-linux-gnu的一些二进制文件 http://shivanet.ro/tmp/mipsel-tuxbox-linux-gnu.tar.bz2 。
我没有安装拷贝工具链到目录/ opt / cross / mipsel-tuxbox-linux-gnu。
Vusolo2 sat接收器运行linux 3.15.3内核,现在我需要vlan支持(模块8021q)。想法是交叉编译vlan模块或内核如果必要和复制它到队列框。我做的是下载源的linux 3.15.3然后:
i could already successfully crosscompile some binarys for mipsel vusolo2, ob ubuntu 14.04 32 bits with the toolchain mipsel-tuxbox-linux-gnu that i got from here http://shivanet.ro/tmp/mipsel-tuxbox-linux-gnu.tar.bz2. I did install copy the toolchain to the directory /opt/cross/mipsel-tuxbox-linux-gnu. Vusolo2 sat receiver runs linux 3.15.3 kernel, now i need vlan support (module 8021q). The idea ist to crosscompile the vlan module or the kernel if necessary and copy it to que box. What i did was download the sources for linux 3.15.3 then :
make ARCH=mips defconfig
make ARCH=mips menuconfig
选择vlan支持(8021q)
然后我发出带有路径的命令我的工具链:
Selected vlan support (8021q) Then i issued the command with the path to my toolchain:
ARCH=mips CROSS_COMPILE=/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-gcc make all
不确定如果我必须选择make all或make modules,我的工具链找不到。
not certain if i have to select make all or make modules, my toolchain is not found.
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我的工具链?我注意到make正在寻找mipsel-tuxbox-linux-gnu-gccgcc,而不是mipsel-tuxbox-linux-gnu-gcc。
提前感谢,
Vento
What ist the right way to inform make where my toolchain is? I noticed that make is looking for mipsel-tuxbox-linux-gnu-gccgcc instead of mipsel-tuxbox-linux-gnu-gcc. Thanks in advance, kindly Vento
PS:只是可以编译一切,首先我有一个8021q.ko,我已经复制到vusolo 2 MIPS BCM 7356处理器,(lib / modules / linux-3.15.3)。在Menuconfig,没有选择一个BCM7356我选择了,德州仪器和选项小端。
root @ BM2LTSR66MSvex:/opt/linux-3.13.5/net/8021q# file 8021q.ko 8021q.ko:ELF 32位LSB可重定位,MIPS,MIPS32版本1 SYSV),BuildID [sha1] = 5be101e941197b08a4e3c2b1554e5fb002ca6ed7,未剥离
PS : Hi, just could compile everything, first i got a 8021q.ko that i have copied to the vusolo 2 MIPS BCM 7356 processor, (lib/modules/linux-3.15.3). In Menuconfig, was no option for a BCM7356 i have selected, Texas instruments and the option little endian. Made :
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:
Seems to be the right format but when i try to start load it on the 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
在编译文件时,我必须使用其他选项吗?
Do i have to use other options when compiling the file?
感谢Vento
推荐答案
错误的交叉编译工具后缀:
You've got wrong cross-compiling tools suffix:
CROSS_COMPILE=/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-
它将扩展到 mipsel-tuxbox-linux-gnu- gcc
, mipsel-tuxbox-linux-gnu-ld
等。
这篇关于交叉编译Linux 3.15.3 for mips(el)vu solo2 Vlan模块支持(8021q)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!