OpenWRT is a Linux-based firmware program for embedded devices such as residential gateways and routers. It is very modular and feature-rich, but not all chipsets are supported.
Questions tagged [openwrt]
966 questions
8
votes
1 answer
How to choose target and other features in OpenWRT buildroot?
I have successfully cloned the OpenWRT buildroot from the subversion repository and I've been using it to build images that I run on Qemu. I can run the images in Qemu just fine.
Now I have tried to build an image for a router -- a Linksys WRT54GL…

Jay
- 9,585
- 6
- 49
- 72
7
votes
2 answers
Tcpdump on openwrt
I'm looking for a tcpdump binary that runs on openwrt. The website only shows source code that must be built. Anybody point me to a location that contains a prebuild binary? Thanks.

Arun
- 1,599
- 5
- 19
- 33
7
votes
1 answer
Cross-compile for MIPS MT7688 OpenWRT on OSX (mipsel-unknown-linux-musl)
When I try to cross-compile a Cargo starter main.rs file for little-endian MIPS (MT7688 processor running OpenWRT) on OSX using rustc 1.32.0-nightly, I get the following error:
cargo build --target=mipsel-unknown-linux-musl
Compiling led v0.1.0…

Petrus Theron
- 27,855
- 36
- 153
- 287
7
votes
1 answer
Installing "opkg"?
I'm trying to install a package to my OpenWrt SDK. To do that you have to use OPKG package manager by typing:
opkg update
opkg install
However, in my case, OPKG is not installed and as a result I can't proceed.
Could anybody tell me how…

Jesse James
- 1,203
- 5
- 22
- 39
6
votes
1 answer
How to upgrade openwrt without losing the configuration?
I need to make a script to upgrade my router without losing the configuration files and packages installed on the router.
I tried to repeat the same behavior of the interface in my script (I used the command sysupgrade) but I lost the…

developer
- 4,744
- 7
- 40
- 55
6
votes
1 answer
Compiling dotnet core app for linux-musl-arm
I tried compiling a simple .NET Core hello world app for OpenWRT on ARM Cortex A7 using linux-musl-arm with the following command:
dotnet publish --configuration Release --runtime linux-musl-arm --self-contained
But i get the following error when i…

Ludovic Feltz
- 11,416
- 4
- 47
- 63
6
votes
5 answers
The C++ compiler does not support C++11 (e.g. std::unique_ptr) building OpenWrt
I am using instructions here and here to build OpenWrt in Ubuntu, but I am getting:
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…

user515655
- 989
- 2
- 10
- 24
6
votes
2 answers
OpenWRT: Cant install packages - memory issue
I switched from default firmware to OpenWrt for my: TP-Link TL-WR1043N/ND v1 and have the problem that I am not able to install any new packages.
What I did:
Flash OpenWrt
Installed Luci (no problem there)
And than when I try to install anything…

Oliver Goossens
- 1,903
- 3
- 20
- 26
6
votes
2 answers
How to specify the device name for uart in device tree(.dts) file?
I was compiling the OpenWrt (A wireless router based on Linux), i added a board to the OpenWrt source, my board has two uart ports, i can declare and enable the two uart ports, the two uart ports are named 'uartfull' and 'uartlite'.
The 'uartlite'…

Jiapeng
- 126
- 1
- 5
6
votes
3 answers
Is there an OpenWRT feature for tracking internet data usage per user?
Is there an OpenWRT feature or package I can install that would allow me to track internet data usage per user? I'm thinking of a system that requires all devices to login with a username and password so their internet data usage can be tracked…

parsley72
- 8,449
- 8
- 65
- 98
6
votes
2 answers
Python scripts on DD-WRT embedded router
I've written two Python (2.x) scripts to perform the following:
Custom Proxy server (imports optparse, ConfigParser, TLDextract, SocketServer...)
Web admin for proxy (imports flask, ConfigParser, netifaces...)
These are both currently running on a…

MrDB
- 659
- 3
- 7
- 15
6
votes
3 answers
How to find out if the eth0 mode is static or dhcp?
I want to use a C program to get if the ip of the network interface is set manually or via dhcp.
I've tried to use the following code and it has worked in Debian, but it hasn't worked in OpenWrt. I want to know how to write a C program doing this in…

stephen
- 86
- 1
- 5
6
votes
1 answer
Cscope build fails with error message "could not read symbols: File in wrong format"
I am cross-compiling cscope, but suprised to be failed. However, I succeed to build ctags without error, so why does the cscope build fail?
The error message is as follows:
`sh cflags "optimize='-O2'" doop.o` doop.c
CCCMD = cc…

thinke365
- 1,305
- 3
- 14
- 22
5
votes
1 answer
Overlayfs: restore removed or changed file from "lower"
OpenWrt uses overlayfs
# mount | grep overlay
/dev/ubi0_2 on /overlay type ubifs (rw,noatime)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
Somehow real lowerdir is /rom
# mount | grep…

kyb
- 7,233
- 5
- 52
- 105
5
votes
5 answers
Executable says "line 1: ELF: not found" when starts
I try to build a simple hello, world ELF for my router Xiaomi Router 3g with cmake. It runs
Linux OpenWrt 4.14.95 #0 SMP Wed Jan 30 12:21:02 2019 mips GNU/Linux
I use the sdk for ramips platform (my router's platform).
The idea is to use…

neshkeev
- 6,280
- 3
- 26
- 47