Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
0 answers
65 views

Policy-based routing not working on OpenWrt with WAN and WireGuard interfaces [closed]

I'm trying to set up policy-based routing on my OpenWrt router to direct traffic for specific domains through different network interfaces. Here's my current setup: Hardware: Router: Xiaomi Mi Router ...
Александр Каширин's user avatar
0 votes
0 answers
70 views

need setting up libreswan l2tp/ipsec vpn client on openwrt

i need some help settingup and initiating an LT2P/IPSEC vpn connection from my openwrt router. I am trying to connect to my work VPN in order to: use some IP phones with my work extensions i have ...
Kofikoduah's user avatar
0 votes
2 answers
266 views

Failed to Download Package Lists from OpenWRT Repository on IPQ50xx Router

I am encountering an issue while trying to update the package lists on my OpenWRT router (openwrt-ipq50xx-redmi_ax3000). Downloaded here. The opkg update command consistently fails with the following ...
Tim's user avatar
  • 11
0 votes
0 answers
9 views

How do set up cross compiling environment with openwrt?

I want to set up a cross-compilation environment for OpenWRT on Ubuntu 20.04. So I followed these steps: get install gcc g++ binutils patch bzip2 flex bison make autoconf gettext texinfo unzip ...
codingpiglet's user avatar
0 votes
0 answers
15 views

owrt - preprocess the package source files

I'm dealing with an OWRT project containing a custom package. My need is to get the preprocessed files of the package's source code files instead of the compiled ones. I read the overriding build ...
MFrancone's user avatar
  • 161
0 votes
0 answers
36 views

CFLAFGS filtering out -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1

I have the CFLAGS as mentioned below with MAKE_VARS CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -mfloat-abi=soft -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,...
navaneeth reddy l's user avatar
0 votes
1 answer
85 views

Struggling making built-in modules

I am designing two modules - one is class and second is device driver. My problem is both .ko modules at the end are not built-in and not called for probing the device in the device tree - when I ...
Anonymous's user avatar
  • 639
3 votes
2 answers
111 views

sed can’t handle emojis

#!/bin/sh emoji="\U1f300-\U1f5ff\U1f900-\U1f9ff\U1f600-\U1f64f\U1f680-\U1f6ff\U2600-\U26ff\U2700-\U27bf\U1f1e6-\U1f1ff\U1f191-\U1f251\U1f004\U1f0cf\U1f170-\U1f171\U1f17e-\U1f17f\U1f18e\U3030\...
ac169's user avatar
  • 49
0 votes
0 answers
34 views

error with config gcc for setting up atheross csi tool openwrt

I am currently trying to setup openwrt on ubuntu virtual box but there is an error with config the file the gcc, verison is the latest and its installed, when i run make menuconfig command this is the ...
sevinc's user avatar
  • 1
0 votes
1 answer
92 views

Serial COM interface on OpenWRT

I'm trying to write a program for serial communication on TRB246 from Teltonika (BusyBox v1.34.1). Incoming data is raw, in hex bytes, coming every seconds. Three solutions: Use microcom in a shell ...
SFrancis's user avatar
1 vote
1 answer
146 views

Golang program crashes (segmentation fault) when running on ARMv7 rev 5 (v7l) OpenWRT router

I am trying to compiler a cross-platform in Golang to run on OpenWRT Router (GDock). The target system is: Linux OpenWrt 5.15.118 #0 SMP Wed Jul 5 20:20:32 2023 armv7l GNU/Linux model name : ...
Cons's user avatar
  • 21
0 votes
0 answers
24 views

How to disconnect a user from coova-chilli as a system administrator?

I have a captive portal that works with coova-chilli. I also have an admin panel that can create user, edit, delete. It should also be able to disconnect the active user user. I'm using the ...
Pavel Kulikov's user avatar
0 votes
0 answers
29 views

Unstable read on /dev/rs485 serial port of router

I am having trouble with cat /dev/rs485 on a teltonika router. Sometimes it works, sometimes not. Incomming messages are raw hx data, without \n or \r, emitted by Docklight on PC. I am in half duplex (...
francis's user avatar
  • 11
0 votes
0 answers
18 views

unstable reading on /dev/ttyS1 openwrt

I am trying to read rs485 messages (raw hex data, no \n \r what ever, 1 message/sec is sent by device). cat /dev/rs485 works on the morning, but not on the afternoon (siesta?). Are shell commands ...
francis's user avatar
  • 11
0 votes
0 answers
80 views

openwrt shell script to read incoming raw hex data on device and process it

-- Hello! I have a device sending periodically 8 bytes in hex, starting with 'AA' ending with 'BB' on rs485 lines (no carriage return, no line feed). I received it on my modem running a Openwrt os. ...
francis's user avatar
  • 11
0 votes
0 answers
42 views

error with config gcc for setting up atheros csi tool openwrt

I am currently trying to setup openwrt on ubuntu virtual box but there is an error with config the file the gcc, verison is the latest and its installed when i run make menuconfig command this is the ...
sevinc's user avatar
  • 1
0 votes
0 answers
118 views

there is an error with config gcc for setting up atheross csi tool openwrt

I am currently trying to setup openwrt on ubuntu virtual box but there is an error with config the file the gcc, verison is the latest and its installed, when i run make menuconfig command this is the ...
sevinc's user avatar
  • 1
1 vote
0 answers
1k views

Install openclash in openwrt

I am new to openwrt, i try to install openclash in fresh new openwrt with following command: opkg remove dnsmasq && opkg install dnsmasq-full wget https://github.com/vernesong/OpenClash/...
snow8261's user avatar
  • 989
0 votes
0 answers
98 views

Sniff data packages from application to serial port (/dev/ttyACM0)

I am trying to understand how an application is communicating with a Modbus RTU Master through a virtual COM (serial port over USB). The device is a Raspberry Pi 3, but unfortunately it is not running ...
Thas's user avatar
  • 1
0 votes
0 answers
38 views

Modify and recompile aes.c file in openwrt

I'm trying to modify the AES implementation in the OpenWrt firmware build, specifically the aes.c file located in the directory ./build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.15.134/...
Khan Shahzaib's user avatar
0 votes
1 answer
69 views

Rewriting Python SHA1 Digest code to Bash

On Debian machines I run the following Python code: #!/usr/bin/env python3 text_in = "abcd".encode('utf8') sha1 = hashlib.sha1() sha1.update(text_in) raw_digest = sha1.digest() text_out = ...
Tinware's user avatar
  • 39
0 votes
1 answer
162 views

OpenWrt Luci - importing an external javascript file

I am attempting to extract a variable from my Luci module plugin into its own file so I can reuse it. graph_objects.js: 'use strict'; 'require baseclass'; 'require uci'; const graph_objects = {...}; ...
kbessemer's user avatar
  • 147
0 votes
0 answers
41 views

Paramiko on OpenWRT 22.03

I seem to be having trouble getting Paramiko to run despite all the dependencies I think it needs installed. Whenever I try to import it the following traceback occurs: Python 3.10.9 (main, Sep 11 ...
Cooper's user avatar
  • 157
0 votes
0 answers
205 views

patch: **** can't create temporary file permission denied

I'm trying to build OpenWRT in a docker container. This works fine on windows host platforms and on Linux host platforms but on a MacOS host (after moving the build folder on the host to a case-...
Florian Humblot's user avatar
0 votes
0 answers
21 views

Ran make V=s command to build the toolchain for my Audiocodec Board AC494. Returns error

"make[3]: Entering directory '/home/pulkit/new_sdk/lede/feeds/packages/utils/attr' if [ -f /home/pulkit/new_sdk/lede/staging_dir/target-mipsel_mips32_uClibc-0.9.33.2/pkginfo/attr.default.install....
P.S's user avatar
  • 1
0 votes
0 answers
40 views

Algorithm HmacPBESHA256 not available in Openwrt Embedded Device

I am using a distro based on OpenWRT 21, running on an ARM Cortex A9 with NEON architecture (i.MX6). When I try to run a Java application with a .jar extension, I encounter the following error: ...
OppenheimDS's user avatar
0 votes
1 answer
277 views

How can I link to other package's object files in OpenWRT?

I have a package in OpenWRT which depends on another package. My code needs to link to an object file (.o) created by the other package. What is the general way to accomplish this? My code is in c, ...
Maxthecat's user avatar
  • 1,328
0 votes
0 answers
26 views

linking dmalloc-5.5.2 with opensource application with logging causes the application to crashin OpenWRT 21.02

collectd -C /var/run/collectd.conf configfile: wordexp (/var/run/collectd.conf) failed. Unable to read config file /var/run/collectd.conf. Error: Reading the config file failed! Read the syslog for ...
Kaaviya Ramalingam's user avatar
0 votes
0 answers
49 views

Forward all tcp packet is specific ip subnet to one destination

I want all packet to specific subnet as example 1.1.1.0/24 will redirect to one IP address 1.1.1.1. I have try with squid proxy. acl test dst 1.1.1.0/24 http_access allow test tcp_outgoing_address 1.1....
Anas's user avatar
  • 742
0 votes
3 answers
468 views

How can I get a response to an at-command using picocom?

I am using a router with OpenWrt 22.03.5 firmware and an EM7455 modem. I wrote a script using atinout to control the modem, but for some reason atinout (as well as echo+cat and socat) often sends ...
vars-cat's user avatar
0 votes
1 answer
279 views

Segmentation fault in uBus program

I am using the ubus message service provided by OpenWrt. I have written a simple ubus object in C. The object exposes a single method which does not take any parameters, and returns a response of &...
Ozone317's user avatar
0 votes
1 answer
313 views

Running 32-bit Programs in CentOS 7 Container on OpenWrt: Troubleshooting Steamcmd Issue

I'm running a CentOS 7 container inside a Docker on OpenWrt with the following kernel version: Linux iStoreOS 5.10.176 #0 SMP Tue Jul 25 05:14:16 2023 x86_64 GNU/Linux. However, no matter what I try, ...
Conc Tsai's user avatar
0 votes
0 answers
117 views

How can I change the backend handler in OpenWrt system?

Lately i am doing a project about OpenWrt.I don't know much about this Linux distrbution and it's web backend handle logic.The question is i can locate the login handler,I really need some help plz. ...
turtle-russ's user avatar
0 votes
0 answers
117 views

Getting symbol not found error after GCC address sanitization enabled

I compiled my binary with -fsanitize=address option in OpenWRT build environment with GCC version 7.5.0 to find the possible memory leaks in the application. There are no issues faced during cross ...
renga_in_stack's user avatar
-1 votes
1 answer
31 views

Make this line table more simple

im still newbie at bash/ash ,can make this sysinfo more simple # display info machine_model=$(cat /proc/device-tree/model | tr -d "\000") echo " ────────────────────────────────────────...
AjieD's user avatar
  • 1
3 votes
1 answer
453 views

Valgrind memcheck tool showing 0 leaks eventhough there are possible memleaks

I need to investigate memory leaks in my C project. But before that, i just written a sample program and cross compiled to ARM-v8-a 64bit OpenWRT linux platform. With this program, I am trying to ...
renga_in_stack's user avatar
0 votes
2 answers
136 views

running cross compiled binary on AllWinner device gives not found error

I want to cross compile a C++ application for AllWinner board runing OpenWRT. I've found the toolchain and trying to build Hello world app using CMake as described in CMake docs. So I have allwinner....
borune's user avatar
  • 568
0 votes
0 answers
302 views

lighttpd.conf support http/https at the same time

my router's captive portal login page is deployed in 192.168.1.1:6789 and router can setup http or https in web UI. I can't find a way to support both http and https at a same time. This is my ...
Juzzsmee's user avatar
0 votes
1 answer
212 views

php-extension php7-mod-* not load in OpenWrt

I got Fatal error: Uncaught Error: Call to undefined function openssl_decrypt() message in my lighttpd using php file. I already have php7-mod-openssl, but php-cli -m not showing openssl. OpenWrt ...
Juzzsmee's user avatar
3 votes
0 answers
895 views

Got error `undefined reference to `getauxval’` during Rust cross-compile to aarch64 on x86_64

I am trying to build Rust application for two OpenWRT routers. One is on ramips (mipsel) platform and another is on rockchip (aarch64) platform. I completed the cross-compilation for mipsel very well, ...
Janvier P.'s user avatar
1 vote
0 answers
238 views

Error: opcode not supported on this processor: mips1 (mips1)

when I was cross-compiling for mips-openwrt-linux,I encounter an error showing below. It seems that protobuf using an opcode which was not supported by my compiler with mips1 opcode. /tmp/cczgWQVg.s: ...
vudinhlong's user avatar
0 votes
1 answer
133 views

How to get Memory Usage for a PID in a variable using bash

This is what I've been working with but haven't been successful, if [ "$memUsage" -gt "30500" ]; then transUsage=$(pmap 3097 | tail -n 1 | awk '/[0-9]/{print $2}') ...
Saman1154's user avatar
  • 137
0 votes
1 answer
483 views

Luci openWRT UCI firewall rule update without position number

Hey all I have been trying find some code that would allow me to update my firewall rule via the UCI. The way I am currently adding the new rule is like this: uci add firewall rule uci set firewall.@...
StealthRT's user avatar
  • 10.4k
0 votes
1 answer
116 views

register_shutdown_function and ignore_user_abort are not working in PHP 7.4

I have a simple php page that streams ping results. It works fine but when the user closes the connection, the ping command keeps running in the background. I used both ignore_user_abort() and ...
lordkian's user avatar
0 votes
1 answer
735 views

cannot ping each other in same lan on openwrt with virtual port and physical port

my openwrt-x86 has been running for a while inside exsi virtual environment(it's a VM,eth0 eth1 is virtual NIC of exsi),and one day I tried to add a pass through port(eth2 physical) into this openwrt ...
Jason117's user avatar
  • 107
1 vote
1 answer
1k views

1:1 NAT with nftables on OpenWRT 22.03

I am running my OpenWrt Router as an OpenVPN Client in a VPN site-to-site setup. After Upgrading to newest OpenWrt 22.03 I have to migrate my firewall coustom rules to nftables. Can you help me ...
dex.404's user avatar
  • 21
1 vote
2 answers
580 views

I2C (OLED SSD1306) on Orange Pi R1 Plus LTS with OpenWrt

I'm new to OpenWrt but I have about a year of self-project (college final project, to be exact) experience using Linux in Raspberry Pi. Have anyone here used I2C OLED SSD1306 on Orange Pi R1 Plus LTS ...
Iqbal Fauzan's user avatar
1 vote
2 answers
59 views

Regex to extract a config section containing certain key pair value from a config file

The goal is as the title says. It felt simple at first, but I just couldn't do it by myself. Here's an example of the file: config wifi-device 'radio0' option type 'mac80211' option band '2g' config ...
braniac ba's user avatar
0 votes
0 answers
1k views

Port Forwarding on OpenWRT

Tried forwarding HTTP port to my linux desktop running lighttpd but it isn't working. Server is running perfectly, works with nginx also. I can access the page from localhost but not through my public ...
fahimscirex's user avatar
0 votes
1 answer
212 views

Convert windows timezone info to OpenWRT format

I find myself in the unfortunate position of having to set a timer on an embedded device which expects the timezone passed along with the start and end time. The correct timezone for my location is ...
John Lord's user avatar
  • 2,145

1
2 3 4 5
20