标签: openwrt

OpenWRT - 重新编译时打包缺少依赖项

如果有人可以帮助我,我会非常感激,因为它让我疯了.

当我从头开始编译包含我的包的OpenWRT图像时,通常一切正常.

否则,当我尝试重新编译时,我不断错过依赖错误.

我找到的唯一解决方案是将我的包放入一个完全干净的OpenWRT环境中并再次编译所有内容.考虑到编译整个OpenWRT图像需要一个多小时,这没有用.

这是我的错误:

michael@michael-VirtualBox:~/Documents/openwrt/openwrt$ make package/amldmonitor/compile V=99
^Tmake[1]: Entering directory `/home/michael/Documents/openwrt/openwrt'
make[2]: Entering directory `/home/michael/Documents/openwrt/openwrt/package/kernel/linux'
/home/michael/Documents/openwrt/openwrt/target/linux/imx23/modules.mk:65: warning: overriding commands for target `/home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/stamp/.kmod-usb-mxs-phy_installed'
modules/usb.mk:1079: warning: ignoring old commands for target `/home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/root-x86/stamp/.kmod-usb-mxs-phy_installed'
/home/michael/Documents/openwrt/openwrt/target/linux/imx23/modules.mk:65: warning: overriding commands for target `/home/michael/Documents/openwrt/openwrt/bin/x86/packages/kmod-usb-mxs-phy_3.8.13-1_x86.ipk'
modules/usb.mk:1079: warning: ignoring old commands for target `/home/michael/Documents/openwrt/openwrt/bin/x86/packages/kmod-usb-mxs-phy_3.8.13-1_x86.ipk'
/home/michael/Documents/openwrt/openwrt/target/linux/imx23/modules.mk:65: warning: overriding commands for target `kmod-usb-mxs-phy-clean'
modules/usb.mk:1079: warning: ignoring old commands for target `kmod-usb-mxs-phy-clean'
if [ -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean ]; then rm -f /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install.clean; fi; echo "kernel" >> /home/michael/Documents/openwrt/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/pkginfo/linux.default.install
WARNING: skipping kmod-ata-core …
Run Code Online (Sandbox Code Playgroud)

dependencies openwrt cross-compiling package

8
推荐指数
1
解决办法
2万
查看次数

自动上传到FTPS

如何使用FTPES将OpenWRT路由器上的文件上传到某个地方?

我用谷歌搜索卷曲,因为它足够小,可以安装:

opkg update opkg install curl

并且可以处理FTPES连接:http: //curl.haxx.se/docs/comparison-table.html

好.但继承人的问题是:我无法猜出,我怎么能上传文件.

有人能指点我工作,好的方法

curl openwrt

7
推荐指数
1
解决办法
7947
查看次数

如何在OpenWRT buildroot中选择目标和其他功能?

我已经从subversion存储库成功克隆了OpenWRT buildroot,我一直用它来构建我在Qemu上运行的图像.我可以在Qemu中运行图像就好了.

现在我试图为路由器构建一个图像 - 一个Linksys WRT54GL - 但我在文档中找不到我应该如何选择目标.

这些是正确的选择:

  • 我选择了Broadcom BCM947xx/953xx

  • 在"目标图像"中,我选择了jffs2和squashfs

然后,编译完成后,我去了目录bin/brcm47xx,发现了大量的图片:

openwrt-brcm47xx-jffs2-128k.trx
openwrt-brcm47xx-jffs2-64k.trx
openwrt-brcm47xx-squashfs.trx
.
.
.
openwrt-wrt54g3g-em-jffs2.bin
openwrt-wrt54g3g-em-squashfs.bin
openwrt-wrt54g3g-jffs2.bin
openwrt-wrt54g3g-squashfs.bin
openwrt-wrt54g3gv2-vf-jffs2.bin
openwrt-wrt54g3gv2-vf-jffs2.noheader.bin
openwrt-wrt54g3gv2-vf-squashfs.bin
openwrt-wrt54g3gv2-vf-squashfs.noheader.bin
openwrt-wrt54g-jffs2.bin
openwrt-wrt54gs-jffs2.bin
openwrt-wrt54g-squashfs.bin
openwrt-wrt54gs-squashfs.bin
openwrt-wrt54gs_v4-jffs2.bin
openwrt-wrt54gs_v4-squashfs.bin
openwrt-wrt610n_v1-jffs2.bin
openwrt-wrt610n_v1-squashfs.bin
openwrt-wrtsl54gs-jffs2.bin
openwrt-wrtsl54gs-squashfs.bin
Run Code Online (Sandbox Code Playgroud)

所以我的问题是:

  • 我怎么知道该怎么选择target systemtarget images

  • 从生成的所有图像中,我如何知道应该使用哪一个(例如,WRT54GL不在上面的列表中;如何判断是否可以使用" openwrt-wrt54g-jffs2.bin"?

  • 我可以使用什么标准来决定是否使用jffs或squashfs图像?

谢谢!

openwrt

7
推荐指数
1
解决办法
8040
查看次数

OpenWRT git clone致命:无法找到'http'的远程助手

我正在尝试将LINC-Switch安装到OpenWRT并坚持以下问题:

git clone https://github.com/FlowForwarding/LINC-Switch.git
Run Code Online (Sandbox Code Playgroud)

并得到一个错误:

git fatal: Unable to find remote helper for 'https'
Run Code Online (Sandbox Code Playgroud)

根据这个链接,我在Makefile中编译了没有NO_CURL标志的git包.我甚至重新编译dist试图解决问题.

有任何想法吗?

git openwrt

7
推荐指数
2
解决办法
6894
查看次数

ELF文件存在于/ usr/bin中,但结果是"-ash:file:not found"

我正在尝试使用opkg在openwrt下安装一些新的软件包,并且安装成功了,我们可以看到二进制文件确实存在于/ usr/bin中,并且我已经查看了lld,但结果是相同的.如下:

root@OpenWrt /usr/bin [#]# opkg files cfdisk
Package cfdisk (2.25.2-4) is installed on root and has the following files:
/usr/sbin/cfdisk
root@OpenWrt /usr/bin [#]# ls /usr/sbin/
adjtimex                arping                  ethtool                 iptables-save           mkfs.ext3               pppd                    telnetd
airbase-ng              besside-ng              fdisk                   iw                      mkfs.ext4               rate.awk                uhttpd
aireplay-ng             brctl                   hostapd                 iwconfig                modinfo                 rmmod                   wpa_supplicant
airmon-ng               cfdisk                  insmod                  iwlist                  modprobe                samba_multicall         wpad
airmon-zc               chroot                  ip6tables               iwpriv                  nmbd                    smbd                    xtables-multi
airodump-ng             crond                   ip6tables-restore       lsmod                   ntpclient               smbpasswd
airodump-ng-oui-update  dnsmasq                 ip6tables-save          miniupnpd               ntpd                    swapoff
airserv-ng              dropbear                iptables                mke2fs                  odhcp6c                 swapon
airtun-ng …
Run Code Online (Sandbox Code Playgroud)

linux ubuntu openwrt opkg

7
推荐指数
1
解决办法
5403
查看次数

使用linux使用AES进行文件加密/解密

我正在使用openwrt linux发行版,我想使用AES加密文件.我怎样才能快速轻松地做到这一点,我怎么能 - 或其他人 - 再次解密呢?

linux encryption openwrt aes

7
推荐指数
1
解决办法
1万
查看次数

OSX 上 MIPS MT7688 OpenWRT 的交叉编译 (mipsel-unknown-linux-musl)

当我尝试使用 rustc 1.32.0-nightly 在 OSX 上为小端 MIPS(运行 OpenWRT 的 MT7688 处理器)交叉编译 Cargo starter main.rs 文件时,出现以下错误:

cargo build --target=mipsel-unknown-linux-musl
   Compiling led v0.1.0 (/Users/petrus/Projects/led)
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-Wl,--eh-frame-hdr" "-L" "/Users/petrus/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/mipsel-unknown-linux-musl/lib" "/Users/petrus/Projects/led/target/mipsel-unknown-linux-musl/debug/deps/led-fb2a88ec64854daf.2kthj4han7xcr84g.rcgu.o" "/Users/petrus/Projects/led/target/mipsel-unknown-linux-musl/debug/deps/led-fb2a88ec64854daf.440j3fk0cam0b0pu.rcgu.o" "/Users/petrus/Projects/led/target/mipsel-unknown-linux-musl/debug/deps/led-fb2a88ec64854daf.482rers61msj2848.rcgu.o" "/Users/petrus/Projects/led/target/mipsel-unknown-linux-musl/debug/deps/led-fb2a88ec64854daf.498udk2wtgjsw4ib.rcgu.o" "/Users/petrus/Projects/led/target/mipsel-unknown-linux-musl/debug/deps/led-fb2a88ec64854daf.4uh6jdaux45o6bh1.rcgu.o" "/Users/petrus/Projects/led/target/mipsel-unknown-linux-musl/debug/deps/led-fb2a88ec64854daf.5fq5qqfqkwjepod2.rcgu.o" "-o" "/Users/petrus/Projects/led/target/mipsel-unknown-linux-musl/debug/deps/led-fb2a88ec64854daf" "/Users/petrus/Projects/led/target/mipsel-unknown-linux-musl/debug/deps/led-fb2a88ec64854daf.49n6u1xnbbs66t12.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/Users/petrus/Projects/led/target/mipsel-unknown-linux-musl/debug/deps" "-L" "/Users/petrus/Projects/led/target/debug/deps" "-L" "/Users/petrus/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/mipsel-unknown-linux-musl/lib" "-Wl,--start-group" "-Wl,-Bstatic" "/Users/petrus/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/mipsel-unknown-linux-musl/lib/libstd-27a0dffe96f2ad3e.rlib" "/Users/petrus/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/mipsel-unknown-linux-musl/lib/libpanic_unwind-fe8b80af161a561e.rlib" "/var/folders/rl/b7dvjss14wj6415t0v4f7z3m0000gn/T/rustcFd840X/libunwind-ecc019d8c6cb3f8a.rlib" "/var/folders/rl/b7dvjss14wj6415t0v4f7z3m0000gn/T/rustcFd840X/liblibc-5d68beb2e4661bda.rlib" "/Users/petrus/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/mipsel-unknown-linux-musl/lib/liballoc-de565f8c0b8e0971.rlib" "/Users/petrus/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/mipsel-unknown-linux-musl/lib/librustc_std_workspace_core-0a55bee6cc97e346.rlib" "/Users/petrus/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/mipsel-unknown-linux-musl/lib/libcore-4075eb2b0854a330.rlib" "-Wl,--end-group" "/Users/petrus/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/mipsel-unknown-linux-musl/lib/libcompiler_builtins-ecf284221505c8a3.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lc"
  = note: clang: warning: argument unused during …
Run Code Online (Sandbox Code Playgroud)

macos openwrt mips cross-compiling rust

7
推荐指数
1
解决办法
2630
查看次数

DD-WRT嵌入式路由器上的Python脚本

我编写了两个Python(2.x)脚本来执行以下操作:

  1. 自定义代理服务器(导入optparse,ConfigParser,TLDextract,SocketServer ......)
  2. 代理的Web管理员(进口烧瓶,ConfigParser,netifaces ......)

这些目前都在Raspberry pi(Raspian)上运行,但我正在寻求一些关于如何在DDWRT路由器(v24)上运行这些选项的建议.

我的想法是:

  1. 在DDWRT上安装python和必需的库.虽然我发现一些证据表明python可以通过ipkg安装(在USB存储器上)但我不清楚如何安装所需的导入库?

  2. 创建一个独立于python的二进制文件(例如PyInstaller)以在DDWRT上运行.我有犹豫不决,因为我想我需要在运行Python的DDWRT上执行任务(即回到思想1),以及它如何处理导入的库?

  3. 与第1点类似:编译包含所有必需Python包的自定义OpenWRT映像.这似乎是一项复杂的工作.

感谢您的任何建议.

python openwrt pyinstaller dd-wrt

6
推荐指数
1
解决办法
8838
查看次数

C++编译器不支持C++11(例如std::unique_ptr)构建OpenWrt

我使用此处此处的说明在Ubuntu中构建OpenWrt,但我得到:

make[4]: Entering directory '~/openwrt/build_dir/host/cmake-3.11.1/Bootstrap.cmk'
make[4]: 'cmake' is up to date.
make[4]: Leaving directory '~/openwrt/build_dir/host/cmake-3.11.1/Bootstrap.cmk'
loading initial cache file ~/openwrt/build_dir/host/cmake-3.11.1/Bootstrap.cmk/InitialCacheFlags.cmake
CMake Error at CMakeLists.txt:92 (message):
  The C++ compiler does not support C++11 (e.g.  std::unique_ptr).


-- Configuring incomplete, errors occurred!
Run Code Online (Sandbox Code Playgroud)

这里有一个类似问题的解决方案。但是,我不清楚哪个CMakeLists.txt文件是我的情况下的“根”。我在 OpenWrt 论坛(或一般搜索引擎)上没有看到太多关于此失败的信息。

我得到的印象是 CMake 安装是由 OpenWrt 构建器本身下载的,因为我没有安装 CMake 并且安装 CMake 没有解决任何问题。

尝试查看最新的 OpenWrt v18.06.2。当构建失败时,我删除了克隆的目录并尝试了 v18.06.0-rc2。没有任何改善。

我也尝试过

export CMAKE_CXX_STANDARD=11
Run Code Online (Sandbox Code Playgroud)

在运行“make”之前,但它没有解决问题。

我的 g++ 安装状态:

g++ -v
Run Code Online (Sandbox Code Playgroud)

输出:

Using built-in specs.
COLLECT_GCC=g++ …
Run Code Online (Sandbox Code Playgroud)

c++ openwrt g++ cmake

6
推荐指数
1
解决办法
1万
查看次数

为 linux-musl-arm 编译 dotnet core 应用程序

我尝试使用以下命令在ARM Cortex A7上为OpenWRT编译一个简单的.NET Core hello world 应用程序:linux-musl-arm

dotnet publish --configuration Release --runtime linux-musl-arm --self-contained
Run Code Online (Sandbox Code Playgroud)

但是当我尝试执行它时出现以下错误:

root@Routeur:~/RutxApp# ./RutxApp
Error relocating ./RutxApp: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev: symbol not found
Error relocating ./RutxApp: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERjj: symbol not found
Error relocating ./RutxApp: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_: symbol not found
Error relocating ./RutxApp: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEjjPKcj: symbol not found
Error relocating ./RutxApp: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_mutateEjjPKcj: symbol not found
Error relocating ./RutxApp: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcj: symbol not found
Error relocating ./RutxApp: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5rfindEPKcjj: symbol not found
Error relocating ./RutxApp: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5rfindEcj: symbol not found
Error relocating …
Run Code Online (Sandbox Code Playgroud)

c# arm openwrt musl .net-core

6
推荐指数
1
解决办法
1770
查看次数

标签 统计

openwrt ×10

cross-compiling ×2

linux ×2

.net-core ×1

aes ×1

arm ×1

c# ×1

c++ ×1

cmake ×1

curl ×1

dd-wrt ×1

dependencies ×1

encryption ×1

g++ ×1

git ×1

macos ×1

mips ×1

musl ×1

opkg ×1

package ×1

pyinstaller ×1

python ×1

rust ×1

ubuntu ×1