gpt4 book ai didi

c++ - 交叉编译 Linux 3.15.3 for mips(el) vu solo2 Vlan 模块支持 (8021q)

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:07:04 27 4
gpt4 key购买 nike

我已经可以使用我从这里获得的工具链 mipsel-tuxbox-linux-gnu 为 mipsel vusolo2、ob ubuntu 14.04 32 位成功交叉编译一些二进制文件 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 模块或内核并将其复制到 que box。我所做的是下载 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 

不确定我是否必须选择 make all 或 make modules,找不到我的工具链。

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。在此先感谢,请风

PS:嗨,我可以编译所有东西,首先我得到了一个 8021q.ko,我已经将它复制到 vusolo 2 MIPS BCM 7356 处理器,(lib/modules/linux-3.15.3)。在 Menuconfig 中,我选择的 BCM7356、Texas instruments 和选项 little endian 没有选项。制成 :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 , 未剥离

似乎是正确的格式,但是当我尝试开始在 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

编译文件时是否必须使用其他选项?

谢谢文托

最佳答案

你弄错了交叉编译工具的后缀:

CROSS_COMPILE=/opt/cross/mipsel-tuxbox-linux-gnu/bin/mipsel-tuxbox-linux-gnu-

将扩展为mipsel-tuxbox-linux-gnu-gccmipsel-tuxbox-linux-gnu-ld

关于c++ - 交叉编译 Linux 3.15.3 for mips(el) vu solo2 Vlan 模块支持 (8021q),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37898604/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com