Hi, currently I'm trying to setting modemmanager interface which failed to setting up interface.
logread show me this:
Command failed: ubus call network.interface notify_proto { "action": 0, "ifname": "qmapmux0.0", "link-up": true, "keep": true, "ipaddr": [ { "ipaddr": "10.121.40.121", "mask": "255.255.255.252" } ], "routes": [ { "target": "0.0.0.0", "netmask": "0", "gateway": "10.121.40.122", "source": "10.121.40.121" } ], "dns": [ "112.215.203.246", "112.215.203.247" ], "interface": "lte" } (Unknown error)
Also trying send command directly show unknown error:
root@OpenWrt:~# ubus call network.interface notify_proto '{ "action": 0, "ifname": "qmapmux0.0", "link-up": true, "keep"
: true, "ipaddr": [ { "ipaddr": "10.121.40.121", "mask": "255.255.255.252" } ], "routes": [ { "target": "0.0.0.0", "netm
ask": "0", "gateway": "10.121.40.122", "source": "10.121.40.121" } ], "dns": [ "112.215.203.246", "112.215.203.247" ], "
interface": "lte" }'
Command failed: Unknown error
How to debug if Unknown error ?
I'm have try setup interface manually with this command and has no problem:
ip link set "qmapmux0.0" up
ip addr add "10.121.40.121/30" dev "qmapmux0.0"
ip route add default via "10.121.40.122" dev "qmapmux0.0"
DGdodo
May 30, 2025, 10:11am
2
lexavey,
'How to debug if Unknown error ?'
What does dmesg say?
Try the command with option -v (More verbose output)
As the ubus command you are using is quiet long with a lot of quotes.
What device and version OpenWrt are you using? (ubus call system board )
Regards, DGdodo.
DGdodo:
What does dmesg say?
dmesg dont show nothing, ubus -v also wont help, my device is verry custom and not officialy supported (redmi4x)
Now my problem fixed by creating new interface named as qmapmux0
New interface does nothing but solved my problem, I dont know why.
qmapmux0.0
is auto generated by modemmanager as vlan with parent interface rmnet_ipa0
So my unknwon error mean ubus can't configure interface because expecting parent qmapmux0.0
interface is qmapmux0
, not rmnet_ipa0
.
I wonder other ubus error message rather than "Unknown error" to save more time while investigate unknown error.
lexavey,
'not officialy supported (redmi4x)'
?? OpenWrt on a mobile phone? (root@OpenWrt)
Why not give the output of: ubus call system board ?
Then i can not help you any further with this weird 'Unknown error' on unsupported device.
Maybe uci show network on working device shows the culprit.
Regards, DGdodo.
DGdodo:
ubus call system board
{
"kernel": "6.12.6-MagicBox",
"hostname": "OpenWrt",
"system": "ARMv8 Processor rev 4",
"model": "Xiaomi Redmi 4X",
"board_name": "xiaomi,santoni",
"rootfs_type": "ext4",
"release": {
"distribution": "MagicBox_OpenWrt",
"version": "v1.1",
"revision": "r24106-10cc5fcd00",
"target": "armsr/armv8",
"description": "MagicBox_OpenWrt v1.1 r24106-10cc5fcd00"
}
}
root@OpenWrt:~/# uci show network
network.loopback=interface
network.loopback.device='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd26:663b:f89f::/48'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='usb0' 'eth0'
network.@device[0].macaddr='8a:a7:75:c8:76:b2'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.ipaddr='192.168.100.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.lte=interface
network.lte.proto='modemmanager'
network.lte.device='qcom-soc'
network.lte.apn='internet'
network.lte.auth='none'
network.lte.iptype='ipv4v6'
network.lte.loglevel='ERR'
network.@device[1]=device
network.@device[1].name='usb0'
network.@device[1].macaddr='8a:a7:75:c8:76:b2'
I'm not build this openwrt image, got this openwrt image from random people at telegram, my unknown error has resolved by adding new interface name, but still dont know why.
lexavey,
Magixbox unsupported since 2019. (https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=fa0275bd90ce913de57330c9abbe594703d589c6 )
You should ask the 'random people at telegram' why you get that 'Unknown error'.
I have no clue. And be aware that unsupported firmware could host stuff you do not want to be running (anywhere).
Additional: ubus -v list network.interface
Should give all possible options for your command, if you specify others, i presume you get Unknown errors.
Within the ubus command, shouldn't you first "add_device":{"name":"String","link-ext":"Boolean","vlan":"Array"} , instead of "notify_proto":{}
I am not that familiar with the ubus command.
Regards, DGdodo.