Hi,
I am looking for porting EM7595 drivers into Linux 2.6 Kernel. Can you please let me know what changes are required.
Hi,
I am looking for porting EM7595 drivers into Linux 2.6 Kernel. Can you please let me know what changes are required.
does this help?
Hi,
My linux kernel is 2.6. So looking forward to backport the qmi and qcserial drivers in 2.6 kernel. Any inputs on it?
can you see the USB enumeration after adding VID/PID in your qcserial driver?
We were able to add vid/pid in qcserial. Below are the logs. We backported some patches in to 2.6 kernel to make the driver works. we are not sure all the necessary changes are there to make a connection. How do we make a connection now? Can we use the sample application under MBPL (lite-qmi-connection-manager) ? which binary works with mips64 arm architecture?
sb 1-1.1: new high speed USB device using ehci_hcd and address 5
usb 1-1.1: config 1 has an invalid interface number: 8 but max is 3
usb 1-1.1: config 1 has no interface number 1
usb 1-1.1: New USB device found, idVendor=1199, idProduct=c081
usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.1: Product: Sierra Wireless EM7595 Mobile Broadband Adapter
usb 1-1.1: Manufacturer: Sierra Wireless, Incorporated
usb 1-1.1: SerialNumber: 357277610030309
usb 1-1.1: configuration #1 chosen from 1 choice
qmi_wwan_bind() bind probe: vid=1199 pid=c081 ifnum=0 class=ff subclass=ff proto=30 endpoints=2
qmi_wwan_bind() found vid
qmi_wwan_bind() found pid
qmi_wwan_bind() bInterfaceNumber != 0
qmi_wwan_bind() bind probe: vid=1199 pid=c081 ifnum=2 class=ff subclass=ff proto=60 endpoints=3
qmi_wwan_bind() found vid
qmi_wwan_bind() found pid
qmi_wwan_bind() bInterfaceNumber != 0
qmi_wwan_bind() bind probe: vid=1199 pid=c081 ifnum=3 class=ff subclass=ff proto=40 endpoints=3
qmi_wwan_bind() found vid
qmi_wwan_bind() found pid
qmi_wwan_bind() bInterfaceNumber != 0
qmi_wwan_bind() bind probe: vid=1199 pid=c081 ifnum=8 class=ff subclass=ff proto=50 endpoints=3
qmi_wwan_bind() found vid
qmi_wwan_bind() found pid
qmi_wwan_bind() vid/pid ok
qmi_wwan: EM7595 combined mode: control=data=if2
qmi_wwan qmi_wwan_bind() if=8 class=ff subclass=ff proto=50 endpoints=3
qmi_wwan: qmi_wwan_bind() if=8 ep[0] addr=0x86 attr=0x03 max=8 interval=9
qmi_wwan: qmi_wwan_bind() if=8 ep[1] addr=0x8e attr=0x02 max=512 interval=0
qmi_wwan: qmi_wwan_bind() if=8 ep[2] addr=0x0f attr=0x02 max=512 interval=0
cdc_wdm wdm_create() intf=8 ep=a80000000501e480 bufsize=4096
cdc_wdm wdm_create() status ep addr=0x86 attr=0x03 max=8 interval=9
cdc_wdm wdm_create() validity=a8000000051ec180 response=a80000003e8ea980 command=a80000003afd7080
cdc_wdm wdm_create() ubuf=a800000003acc000 sbuf=a8000000038b74e0 inbuf=a800000003a46000 outbuf=(null)
qmi_wwan 1-1.1:1.8: cdc-wdm0: USB WDM device
qmi_wwan_bind status=0
qmi_wann: qmi_wwan_bind() calling qmi_wwan_manage_power()
qmi_wann: qmi_wwan_bind() calling usb_control_msg()
qmi_wann: qmi_wwan_bind() EM7595 DTR asserted (rc=0 bInterfaceNumber=8)
usb0: register ‘qmi_wwan’ at usb-0000:00:02.2-1.1, WWAN/QMI device, e6:f2:73:4b:cb:44
USB Serial support registered for Qualcomm USB modem
qcserial 1-1.1:1.0: Qualcomm USB modem converter detected
usb 1-1.1: Qualcomm USB modem converter now attached to ttyUSB4
qcserial 1-1.1:1.2: Qualcomm USB modem converter detected
usb 1-1.1: Qualcomm USB modem converter now attached to ttyUSB5
qcserial 1-1.1:1.3: Qualcomm USB modem converter detected
usb 1-1.1: Qualcomm USB modem converter now attached to ttyUSB6
usbcore: registered new interface driver qcserial
i2c-octeon i2c-octeon.0: broken irq connection detected, switching to polling mode.
root@wglng-8203:~# picocom /dev/ttyUSB6
picocom v1.4
port is : /dev/ttyUSB6
flowcontrol : none
baudrate is : 9600
parity is : none
databits are : 8
escape is : C-a
noinit is : no
noreset is : no
send_cmd is : ascii_xfr -s -v -l10
receive_cmd is : rz -vv
Terminal ready
at
OK
at!usbcomp?
Config Index: 1
Config Type: 3 (Legacy-Generic)
Interface bitmask: 0000010D (diag,nmea,modem,rmnet0)
OK
Regards
Simon
First of all, the MBPL officially only supports linux kernel equal to or larger than 4.4.
So I would suggest you to use some tool directly coming from linux.
If you are using RMNET port in AT!USBCOMP, you can first try qmi-network tool to see if it can establish data connection:
owner@ubuntu:~/QMI/MBPL/MBPL_SDK_R30_ENG6-lite.src/MBPL_SDK_R30_ENG6-lite.src/SampleApps/lite-qmi-connection-manager$ cat /etc/qmi-network.conf
APN=CMHK
APN_USER=
APN_PASS=
PROXY=no
owner@ubuntu:~/QMI/MBPL/MBPL_SDK_R30_ENG6-lite.src/MBPL_SDK_R30_ENG6-lite.src/SampleApps/lite-qmi-connection-manager$ sudo qmi-network /dev/cdc-wdm0 start
Loading profile at /etc/qmi-network.conf...
APN: CMHK
APN user: unset
APN password: unset
qmi-proxy: no
Checking data format with 'qmicli -d /dev/cdc-wdm0 --wda-get-data-format '...
Device link layer protocol retrieved: raw-ip
Getting expected data format with 'qmicli -d /dev/cdc-wdm0 --get-expected-data-format'...
Expected link layer protocol retrieved: 802-3
Updating kernel link layer protocol with 'qmicli -d /dev/cdc-wdm0 --set-expected-data-format=raw-ip'...
Kernel link layer protocol updated
Starting network with 'qmicli -d /dev/cdc-wdm0 --wds-start-network=apn='CMHK' --client-no-release-cid '...
Saving state at /tmp/qmi-network-state-cdc-wdm0... (CID: 3)
Saving state at /tmp/qmi-network-state-cdc-wdm0... (PDH: 2248177728)
Network started successfully
owner@ubuntu:~/QMI/MBPL/MBPL_SDK_R30_ENG6-lite.src/MBPL_SDK_R30_ENG6-lite.src/SampleApps/lite-qmi-connection-manager$ ping 8.8.8.8 -I wwan0
connect: Network is unreachable
owner@ubuntu:~/QMI/MBPL/MBPL_SDK_R30_ENG6-lite.src/MBPL_SDK_R30_ENG6-lite.src/SampleApps/lite-qmi-connection-manager$ sudo udhcpc -i wwan0
udhcpc: started, v1.27.2
udhcpc: sending discover
udhcpc: sending select for 10.98.52.161
udhcpc: lease of 10.98.52.161 obtained, lease time 7200
owner@ubuntu:~/QMI/MBPL/MBPL_SDK_R30_ENG6-lite.src/MBPL_SDK_R30_ENG6-lite.src/SampleApps/lite-qmi-connection-manager$ ping 8.8.8.8 -I wwan0
PING 8.8.8.8 (8.8.8.8) from 10.98.52.161 wwan0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=117 time=99.4 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=117 time=35.6 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=117 time=29.6 ms
On the other hand,. EM7595 has MBIM interface which is from Linux generic MBIM driver.
You can try the following:
AT!ENTERCND=“A710”
AT!USBCOMP=1,1,100D
AT!RESET
owner@CNHKG-EX-001367:~$ cat /etc/mbim-network.conf
APN=CMHK
APN_USER=
APN_PASS=
APN_AUTH=
PROXY=yes
Thank you so much. Where is this files and binary available?
/QMI/MBPL/MBPL_SDK_R30_ENG6-lite.src/MBPL_SDK_R30_ENG6-lite.src/SampleApps/lite-qmi-connection-manager$ cat /etc/qmi-network.conf
owner@ubuntu:~/QMI/MBPL/MBPL_SDK_R30_ENG6-lite.src/MBPL_SDK_R30_ENG6-lite.src/SampleApps/lite-qmi-connection-manager$ sudo qmi-network /dev/cdc-wdm0 start
Regards
Simon
You need to first install
libqmi-utils and libmbim-utils
Here is the o/p from qmi-network . Not sure it is success. Could not see any interface.
root@wglng-8203:~# /opt/libqmi-stack/bin/qmi-network /dev/cdc-wdm0 start
Loading profile at /etc/qmi-network.conf…
APN: broadband
APN user: unset
APN password: unset
qmi-proxy: no
Checking data format with '/opt/libqmi-stack/bin/qmicli -d /dev/cdc-wdm0 --wda-get-data-format '…
[21 Jul 2025, 05:54:17] -Warning ** [/dev/cdc-wdm0] requested auto mode but no MBIM QMUX support available
cdc-wdm wdm_open() submit validity rv=0
cdc_wdm: wdm_write() count=16
cdc_wdm: wdm_write() submit OUT urb rv=0 len=16
cdc_wdm: write callback len=16(start)
cdc_wdm: write callback len=16(finished)
cdc_wdm: wdm_write() TX URB has been submitted index=2048 rv=0 len=16
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=12
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=12
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=12
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=12
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=12
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=12
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=12
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=12
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=12
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=12
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=12
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=12
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=12
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=12
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=12
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=12
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=24
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=24
cdc_wdm: wdm_write() count=13
cdc_wdm: wdm_write() submit OUT urb rv=0 len=13
cdc_wdm: write callback len=13(start)
cdc_wdm: write callback len=13(finished)
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=91
cdc_wdm: wdm_write() TX URB has been submitted index=2048 rv=0 len=13
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=91
cdc_wdm: wdm_write() count=17
cdc_wdm: wdm_write() submit OUT urb rv=0 len=17
cdc_wdm: write callback len=17(start)
cdc_wdm: write callback len=17(finished)
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=24
cdc_wdm: wdm_write() TX URB has been submitted index=2048 rv=0 len=17
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=24
cdc_wdm: interrupt callback status=-2
Device link layer protocol retrieved: raw-ip
Getting expected data format with ‘/opt/libqmi-stack/bin/qmicli -d /dev/cdc-wdm0 --get-expected-data-format’…
[21 Jul 2025, 05:54:18] -Warning ** [/dev/cdc-wdm0] requested auto mode but no MBIM QMUX support available
cdc-wdm wdm_open() submit validity rv=0
error: cannot get expected data format: Expected data format not retrieved properly: Failed to open file ‘/sys/class/net/usb0/qmi/raw_ip’: No such file or directory
cdc_wdm: interrupt callback status=-2
Expected link layer protocol not retrieved: kernel unsupported
Updating device link layer protocol with '/opt/libqmi-stack/bin/qmicli -d /dev/cdc-wdm0 --wda-set-data-format=802-3 '…
[21 Jul 2025, 05:54:18] -Warning ** [/dev/cdc-wdm0] requested auto mode but no MBIM QMUX support available
cdc-wdm wdm_open() submit validity rv=0
cdc_wdm: wdm_write() count=16
cdc_wdm: wdm_write() submit OUT urb rv=0 len=16
cdc_wdm: write callback len=16(start)
cdc_wdm: write callback len=16(finished)
cdc_wdm: wdm_write() TX URB has been submitted index=2048 rv=0 len=16
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=24
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=24
cdc_wdm: wdm_write() count=20
cdc_wdm: wdm_write() submit OUT urb rv=0 len=20
cdc_wdm: write callback len=20(start)
cdc_wdm: write callback len=20(finished)
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=91
cdc_wdm: wdm_write() TX URB has been submitted index=2048 rv=0 len=20
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=91
cdc_wdm: wdm_write() count=17
cdc_wdm: wdm_write() submit OUT urb rv=0 len=17
cdc_wdm: write callback len=17(start)
cdc_wdm: write callback len=17(finished)
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=24
cdc_wdm: wdm_write() TX URB has been submitted index=2048 rv=0 len=17
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=24
cdc_wdm: interrupt callback status=-2
New device link layer protocol retrieved: raw-ip
Starting network with '/opt/libqmi-stack/bin/qmicli -d /dev/cdc-wdm0 --wds-start-network=apn=‘broadband’ --client-no-release-cid '…
[21 Jul 2025, 05:54:18] -Warning ** [/dev/cdc-wdm0] requested auto mode but no MBIM QMUX support available
cdc-wdm wdm_open() submit validity rv=0
cdc_wdm: wdm_write() count=16
cdc_wdm: wdm_write() submit OUT urb rv=0 len=16
cdc_wdm: write callback len=16(start)
cdc_wdm: write callback len=16(finished)
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=24
cdc_wdm: wdm_write() TX URB has been submitted index=2048 rv=0 len=16
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=24
cdc_wdm: wdm_write() count=29
cdc_wdm: wdm_write() submit OUT urb rv=0 len=29
cdc_wdm: write callback len=29(start)
cdc_wdm: write callback len=29(finished)
cdc_wdm: wdm_write() TX URB has been submitted index=2048 rv=0 len=29
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=27
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=27
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=35
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=35
cdc_wdm: interrupt callback status=-2
Saving state at /tmp/qmi-network-state-cdc-wdm0… (CID: 30)
Saving state at /tmp/qmi-network-state-cdc-wdm0… (PDH: 1935231216)
Network started successfully
Looks like no raw ip support for 2.6 kernel with qmi. Do we have a patch to support raw IP in 2.6 kernel ?
latest logs. Seems like error not supporting raw IP.
error: cannot get expected data format: Expected data format not retrieved properly: Failed to open file ‘/sys/class/net/usb0/qmi/raw_ip’: No such file or directory
cdc_wdm: interrupt callback status=-2
Expected link layer protocol not retrieved: kernel unsupported
Checking data format with '/opt/libqmi-stack/bin/qmicli -d /dev/cdc-wdm0 --device-open-qmi --wda-get-data-format '…
cdc-wdm wdm_open() submit validity rv=0
cdc_wdm: wdm_write() count=16
cdc_wdm: wdm_write() submit OUT urb rv=0 len=16
cdc_wdm: write callback len=16(start)
cdc_wdm: write callback len=16(finished)
cdc_wdm: wdm_write() TX URB has been submitted index=2048 rv=0 len=16
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=24
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=24
cdc_wdm: wdm_write() count=13
cdc_wdm: wdm_write() submit OUT urb rv=0 len=13
cdc_wdm: write callback len=13(start)
cdc_wdm: write callback len=13(finished)
cdc_wdm: wdm_write() TX URB has been submitted index=2048 rv=0 len=13
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=91
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=91
cdc_wdm: wdm_write() count=17
cdc_wdm: wdm_write() submit OUT urb rv=0 len=17
cdc_wdm: write callback len=17(start)
cdc_wdm: write callback len=17(finished)
cdc_wdm: wdm_write() TX URB has been submitted index=2048 rv=0 len=17
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=24
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=24
cdc_wdm: interrupt callback status=-2
Device link layer protocol retrieved: raw-ip
Getting expected data format with ‘/opt/libqmi-stack/bin/qmicli -d /dev/cdc-wdm0 --device-open-qmi --get-expected-data-format’…
cdc-wdm wdm_open() submit validity rv=0
error: cannot get expected data format: Expected data format not retrieved properly: Failed to open file ‘/sys/class/net/usb0/qmi/raw_ip’: No such file or directory
cdc_wdm: interrupt callback status=-2
Expected link layer protocol not retrieved: kernel unsupported
Updating device link layer protocol with '/opt/libqmi-stack/bin/qmicli -d /dev/cdc-wdm0 --device-open-qmi --wda-set-data-format=802-3 '…
cdc-wdm wdm_open() submit validity rv=0
cdc_wdm: wdm_write() count=16
cdc_wdm: wdm_write() submit OUT urb rv=0 len=16
cdc_wdm: wdm_write() TX URB has been submitted index=2048 rv=0 len=16
cdc_wdm: write callback len=16(start)
cdc_wdm: write callback len=16(finished)
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=24
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=24
cdc_wdm: wdm_write() count=20
cdc_wdm: wdm_write() submit OUT urb rv=0 len=20
cdc_wdm: write callback len=20(start)
cdc_wdm: write callback len=20(finished)
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=91
cdc_wdm: wdm_write() TX URB has been submitted index=2048 rv=0 len=20
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=91
cdc_wdm: wdm_write() count=17
cdc_wdm: wdm_write() submit OUT urb rv=0 len=17
cdc_wdm: wdm_write() TX URB has been submitted index=2048 rv=0 len=17
cdc_wdm: write callback len=17(start)
cdc_wdm: write callback len=17(finished)
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=24
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=24
cdc_wdm: interrupt callback status=-2
New device link layer protocol retrieved: raw-ip
Starting network with '/opt/libqmi-stack/bin/qmicli -d /dev/cdc-wdm0 --device-open-qmi --wds-start-network=apn=‘broadband’ --client-no-release-cid '…
cdc-wdm wdm_open() submit validity rv=0
cdc_wdm: wdm_write() count=16
cdc_wdm: wdm_write() submit OUT urb rv=0 len=16
cdc_wdm: write callback len=16(start)
cdc_wdm: write callback len=16(finished)
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=24
cdc_wdm: wdm_write() TX URB has been submitted index=2048 rv=0 len=16
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=24
cdc_wdm: wdm_write() count=29
cdc_wdm: wdm_write() submit OUT urb rv=0 len=29
cdc_wdm: write callback len=29(start)
cdc_wdm: write callback len=29(finished)
cdc_wdm: wdm_write() TX URB has been submitted index=2048 rv=0 len=29
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=27
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=27
cdc_wdm: interrupt callback status=0
cdc_wdm: read callback len=35
cdc_wdm: wdm_read() count=2048
cdc_wdm: wdm_read() rv=0
cdc_wdm: wdm_read() read has reslength=35
cdc_wdm: interrupt callback status=-2
Saving state at /tmp/qmi-network-state-cdc-wdm0… (CID: 30)
Saving state at /tmp/qmi-network-state-cdc-wdm0… (PDH: 3214076576)
Network started successfully
I can see “Network started successfully”
Can you ping 8.8.8.8 via the wwan0 interface?
Did you try MBIM mode by the following?
AT!ENTERCND=“A710”
AT!USBCOMP=1,1,100D
AT!RESET
owner@CNHKG-EX-001367:~$ cat /etc/mbim-network.conf
APN=CMHK
APN_USER=
APN_PASS=
APN_AUTH=
PROXY=yes
No, I am running only with qmi mode. I dont have the mbim driver port to 2.6 kernel yet to try mbim.
Below is the error log when running in qmi mode.
Device link layer protocol retrieved: raw-ip
Getting expected data format with ‘/opt/libqmi-stack/bin/qmicli -d /dev/cdc-wdm0 --device-open-qmi --get-expected-data-format’…
cdc-wdm wdm_open() submit validity rv=0
error: cannot get expected data format: Expected data format not retrieved properly: Failed to open file ‘/sys/class/net/usb0/qmi/raw_ip’: No such file or directory
The usb0 interface is created but no ip address is getting and the interface is down.
Regards
simon
can you create the raw_ip there by yourself?
I am not sure ppp dial up is supported, but you can have a try and see if there is any luck
I dont see the file /sys/class/net/usb0/qmi/raw_ip created. Probably needs a kernel patch to support raw ip?
Regards
Simon
See if this helps
FYI, I just tried on ubuntu 11.04 with kernel 2.6.38, I can do ppp dial up with EM7595 on AT command port with firmware 03.01.00.10:
owner@ubuntu:~/QMI/SierraLinuxQMIdriversS2.25N2.36/S2.25N2.36/GobiSerial$ sudo pppd call gsm
Starting Sierra Wireless GSM connect script...
Setting the abort string
Initializing modem
Setting APN
Dialing...
Script /usr/sbin/chat -v -t6 -f /etc/ppp/peers/gsm_chat finished (pid 15397), status = 0x0
Serial connection established.
using channel 2
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB2
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2356e9bb> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0xdb8dd917> <pcomp> <accomp>]
sent [LCP ConfNak id=0x0 <auth pap>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x2356e9bb> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0xdb8dd917> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth pap> <magic 0xdb8dd917> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0x2356e9bb]
sent [PAP AuthReq id=0x1 user="ubuntu" password=<hidden>]
rcvd [LCP DiscReq id=0x2 magic=0xdb8dd917]
rcvd [LCP EchoRep id=0x0 magic=0xdb8dd917 23 56 e9 bb]
rcvd [PAP AuthAck id=0x1 ""]
PAP authentication succeeded
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [LCP ProtRej id=0x3 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
rcvd [IPCP ConfReq id=0x0]
sent [IPCP ConfNak id=0x0 <addr 0.0.0.0>]
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1]
sent [IPCP ConfAck id=0x1]
rcvd [IPCP ConfNak id=0x2 <addr 10.149.68.120> <ms-dns1 10.30.25.133> <ms-dns2 10.30.23.133>]
sent [IPCP ConfReq id=0x3 <addr 10.149.68.120> <ms-dns1 10.30.25.133> <ms-dns2 10.30.23.133>]
rcvd [IPCP ConfAck id=0x3 <addr 10.149.68.120> <ms-dns1 10.30.25.133> <ms-dns2 10.30.23.133>]
Could not determine remote IP address: defaulting to 10.64.64.64
not replacing existing default route via 192.168.159.2
local IP address 10.149.68.120
remote IP address 10.64.64.64
primary DNS address 10.30.25.133
secondary DNS address 10.30.23.133
Script /etc/ppp/ip-up started (pid 15402)
Script /etc/ppp/ip-up finished (pid 15402), status = 0x0
owner@ubuntu:~$ ip r
10.64.64.64 dev ppp0 proto kernel scope link src 10.149.68.120
192.168.159.0/24 dev eth0 proto kernel scope link src 192.168.159.135 metric 1
default via 192.168.159.2 dev eth0 proto static
owner@ubuntu:~$ sudo ifconfig ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.149.68.120 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:26 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1826 (1.8 KB) TX bytes:2285 (2.2 KB)
owner@ubuntu:~$ sudo ifconfig ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.149.68.120 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:26 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1826 (1.8 KB) TX bytes:2285 (2.2 KB)
owner@ubuntu:~$ sudo ip route del default via 10.149.68.120
RTNETLINK answers: No such process
owner@ubuntu:~$ sudo ip route del default
owner@ubuntu:~$ sudo ip route add default via 10.149.68.120 dev ppp0
owner@ubuntu:~$ ping 8.8.8.8 -I ppp0
PING 8.8.8.8 (8.8.8.8) from 10.149.68.120 ppp0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=117 time=178 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=117 time=46.2 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=117 time=34.7 ms
64 bytes from 8.8.8.8: icmp_req=4 ttl=117 time=52.7 ms
64 bytes from 8.8.8.8: icmp_req=5 ttl=117 time=111 ms
^C
--- 8.8.8.8 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4007ms
rtt min/avg/max/mdev = 34.768/84.634/178.159/53.737 ms
owner@ubuntu:~$ uname -r
2.6.38-8-generic