HomeDefectsLIN1024-825
Acknowledged

LIN1024-825 : /usr/bin/mbim-network returns code 64

Created: May 9, 2024    Updated: Aug 21, 2024
Found In Version: 10.24.33.1
Severity: Standard
Applicable for: Wind River Linux LTS 24
Component/s: Userspace

Description

$ mbim-network /dev/cdc-wdm0 start
Loading profile at /etc/mbim-network.conf...
APN: <APNAME>
APN auth protocol: unset
APN user: unset
APN password: unset
mbim-proxy: yes
Querying subscriber ready status 'mbimcli -d /dev/cdc-wdm0 --query-subscriber-ready-status --device-open-proxy'...
[/dev/cdc-wdm0] Subscriber ready status retrieved: Ready state: 'initialized' Subscriber ID: '<Subscriber ID>' SIM ICCID: '<SIM ICCID>' Ready info: 'none' Telephone numbers: (1) '<Phone Number>'
Querying registration state 'mbimcli -d /dev/cdc-wdm0 --query-registration-state --device-open-proxy'...
[/dev/cdc-wdm0] Registration status: Network error: 'none' Register state: 'home' Register mode: 'automatic' Available data classes: 'lte' Current cellular class: 'gsm' Provider ID: '<Provider ID>' Provider name: '<Provider Name>' Roaming text: 'unknown' Registration flags: 'packet-service-automatic-attach'
Attaching to packet service with 'mbimcli -d /dev/cdc-wdm0 --attach-packet-service --device-open-proxy'...
[/dev/cdc-wdm0] Successfully attached to packet service [/dev/cdc-wdm0] Packet service status: Network error: 'none' Packet service state: 'attached' Available data classes: 'lte' Uplink speed: '50000000 bps' Downlink speed: '100000000 bps'
Starting network with 'mbimcli -d /dev/cdc-wdm0 --connect=apn='<APNMAE>' --device-open-proxy'...
warning: key 'apn' is deprecated, use 'access-string' instead
Network started successfully


$ mbim-network /dev/cdc-wdm0 status
Loading profile at /etc/mbim-network.conf...
APN: <APNMAE>
APN auth protocol: unset
APN user: unset
APN password: unset
mbim-proxy: yes
Getting status with 'mbimcli -d /dev/cdc-wdm0 --query-connection-state --device-open-proxy'...
Status: activated

$ echo $?
64

The command mbim-network works correctly except for the return value.

Steps to Reproduce

8. Steps To Reproduce
****************************
1. build
$ /lpg-build/cdc/fast_prod/WRLINUX_MASTER_WR/MASTER_WR_GIT/wrlinux-10/setup.sh --machine intel-x86-64 --dl-layers=1 --distros wrlinux --templates feature/xfce feature/mbim --dl-layers=1 --accept-eula=yes
$ . ./environment-setup-x86_64-wrlinuxsdk-linux
$ . ./oe-init-build-env
 
2. Build
$ bitbake wrlinux-image-std
 
3. Boot up target and run following steps
root@intel-x86-64:~# cat > /etc/mbim-network.conf << EOF
> APN=3gnet
> # 3gnet is for ChinaUnicom, cmnet is for ChinaMobile
> PROXY=yes
> EOF
root@intel-x86-64:~# mbim-network /dev/cdc-wdm0 start
root@intel-x86-64:~# mbim-network /dev/cdc-wdm0 status
root@intel-x86-64:~# echo $?