RIL 8.1.2 does not create the /dev/qcqmix node on Android-x86 platform

Hello Team,

I have integrated the RIL source 8.1.2 into my Android source based on the Android-x86 platform. But I am not able to boot my tablet, it stuck while booting. Somehow I got it booted from the debug mode, although the cellular network doesn’t come.

Below are my observations:
1). The tablet is not booting, maybe because of GobiNet or usbnet drivers, because I am not seeing /dev/qcqmi* node(Checked by booting into the debug mode).
2). All the serial USB node is created(/dev/ttyUSB*), so usbserial and sierra driver seems ok.
3). Even booting from the debug mode, I am not able to bring the cellular network up.

Please guide me where I am making a mistake, any help would be appreciated.

Thanks,
Hardik

Team,

Forgot to inform you that we are using EM7455 Sierra modem. Let me know If I can provide any logs.

Thanks in advance,
Hardik

What is "at!usbcomp? "returned?
Did lsmod show gobinet driver?

Hello,

Thanks for your prompt response.

I don’t know how to send an AT command, can you please let me know if there is any inbuilt binary I can run and test?

Also, below are my observations that may help you to understand in detail:

Sierra kernel log:

x86_64:/ # dmesg | grep -i sierra
[ 3.688185] usb 1-2.1: Product: Sierra Wireless EM7455 Qualcomm\xc2\xae Snapdragon\xe2\x84\xa2 X7 LTE-A
[ 3.688311] usb 1-2.1: Manufacturer: Sierra Wireless, Incorporated
[ 23.698043] usbcore: registered new interface driver sierra
[ 23.698158] usbserial: USB Serial support registered for Sierra USB modem
[ 23.698306] sierra 1-2.1:1.0: Sierra USB modem converter detected
[ 23.698576] usb 1-2.1: Sierra USB modem converter now attached to ttyUSB0
[ 23.698741] sierra 1-2.1:1.2: Sierra USB modem converter detected
[ 23.699007] usb 1-2.1: Sierra USB modem converter now attached to ttyUSB1
[ 23.699163] sierra 1-2.1:1.3: Sierra USB modem converter detected
[ 23.699420] usb 1-2.1: Sierra USB modem converter now attached to ttyUSB2
[ 23.699602] sierra: v.1.7.44_android_generic_2:USB Driver for Sierra Wireless USB modems

Gobi kernel log:

x86_64:/ # dmesg | grep -i gobi
[ 27.233657] GobiNet: 2018-04-18/SWI_2.47 Android
[ 27.233842] usbcore: registered new interface driver GobiNet

Loaded module details:

x86_64:/ # lsmod | grep sierra
sierra 32768 0
usbserial 45056 2 ftdi_sio,sierra

x86_64:/ # lsmod | grep Gobi
GobiNet 114688 0
usbnet 45056 3 GobiNet,asix,qmi_wwan

x86_64:/ # lsmod | grep usbnet
usbnet 45056 3 GobiNet,asix,qmi_wwan
mii 16384 2 asix,usbnet

RIL property detail:

x86_64:/ # getprop | grep -i ril
[init.svc.ril-daemon-qmi]: [running]
[persist.sys.ril.type]: [QMI]
[ro.boottime.ril-daemon-qmi]: [29028396251]
[ro.radio.noril]: [no]
[ro.ril.gprsclass]: [10]
[ro.ril.hsxpa]: [1]

So yes, the gobinet driver is loaded but the probe function is not called, that is why qcqmi0 node is not created.

Thanks,
Hardik

you can try to send AT command in console like this:

cat /dev/ttyUSB2 &
echo -ne “AT\r\n” > /dev/ttyUSB2

Hi @jyijyi,

Thanks for sharing this, now I am able to send the AT commands. It shows me an error If I apply the command you asked before:

Command : AT!USBCOMP

Response: ERROR

Regards,
Hardik

you need to send the following:

at!entercnd=“A710”
OK
at!usbcomp?
Config Index: 1
Config Type: 1 (Generic)
Interface bitmask: 0000010F (diag,adb,nmea,modem,rmnet0)

OK

The response of the above-mentioned command is as below:

Config Index: 1
Config Type: 1 (Generic)
Interface bitmask: 0000010D (diag,nmea,modem,rmnet0)

Rmnet is already enabled.
Can you remove the driver qmi_wwan and see if it works?

I have tried by disabling the qmi_wwan driver, but that didn’t work.

Does kernel log give hints on why gobinet is not run?
Can you also put the module to dev kit and linux pc and see if it works?

logcat_25Sept.txt (84.2 KB)

dmesg_debugMode_nonworking.txt (92.2 KB)

I have attached the kernel and radio logs for the reference, please check.

[ 23.368020] qmi_wwan 1-2.1:1.8: cdc-wdm0: USB WDM device
[ 23.368735] qmi_wwan 1-2.1:1.8 wwan0: register ‘qmi_wwan’ at usb-0000:00:14.0-2.1, WWAN/QMI device, 5a:fd:55:7a:ac:00

Probably the qmi_wwan is affecting.

dmesg_qmiWwanDisabled.txt (89.3 KB)

Hello,

Previously, we have disabled the qmi_wwan and we had the same observation. Attached the kernel log for the same.

Is there any other thing in the kernel which is affecting?

Thanks,
Hardik

why this one you don’t even have the ttyUSB0-2 for USB serial port?
Previously, you have the following:
[ 23.314269] usbcore: registered new interface driver sierra
[ 23.314448] usbserial: USB Serial support registered for Sierra USB modem
[ 23.314603] sierra 1-2.1:1.0: Sierra USB modem converter detected
[ 23.314708] usb 1-2.1: APM supported, enabling autosuspend.
[ 23.314978] usb 1-2.1: Sierra USB modem converter now attached to ttyUSB0
[ 23.315234] sierra 1-2.1:1.2: Sierra USB modem converter detected
[ 23.315337] usb 1-2.1: APM supported, enabling autosuspend.
[ 23.315627] usb 1-2.1: Sierra USB modem converter now attached to ttyUSB1
[ 23.315879] sierra 1-2.1:1.3: Sierra USB modem converter detected
[ 23.315985] usb 1-2.1: APM supported, enabling autosuspend.
[ 23.316248] usb 1-2.1: Sierra USB modem converter now attached to ttyUSB2
[ 23.316552] sierra: v.1.7.44_android_generic_2:USB Driver for Sierra Wireless USB modems

logcat_Oct3.txt (103.8 KB)

dmesg_Oct3.txt (94.4 KB)

Hello,

I have backported the kernel and now my tablet is booting fine, everything looks good but I am not able to see the cellular network in the GUI. I have attached the radio and kernel logs for the reference.

Any suggestions would be most welcome.

Thanks,
Hardik

the time the GobiNEt is working fine and /dev/qcqmi0 port is created.
From the logcat, it seems the module is not registered to network.
AT+COPS? is always returning “+COPS: 0”.
Can you stop the RIL and check AT!GSTATUS? and AT+CFUN?

Hello @jyijyi,

The output of these AT commands are as below:

AT+CFUN?:

+CFUN: 1

AT!GSTATUS?:

!GSTATUS:
Current Time: 199 Temperature: 30
Reset Counter: 1 Mode: ONLINE
System mode: WCDMA PS state: Not attached
WCDMA band: WCDMA 2100
WCDMA channel: 10807
GMM (PS) state:DEREGISTERED LIMITED SERVICE
MM (CS) state: IDLE LIMITED SERVICE

WCDMA L1 state:L1M_PCH_SLEEP LAC: 1839 (6201)
RRC state: DISCONNECTED Cell ID: 001B30C1 (1781953)
RxM RSSI C0: -96 RxD RSSI C0: —
RxM RSSI C1: — RxD RSSI C1: —

Regards,
Hardik

But If I apply the AT command manually, I am able to detect the SIM and getting the proper signal strength, correct me If I am wrong. Below is the output.

+CPIN: READY
OK
+CSQ: 10,99
OK

“System mode: WCDMA PS state: Not attached” means your module cannot register network!