• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root CM10 RIL / Baseband discussion

hroark13

Android Expert
Recognized Developer
The only version of the Baseband that I was able to get to work with CM10 is the version C baseband, that is why it is flashed during the CM10 install.

Version C Baseband works somewhat with the RIL Libraries and Binaries that are in 985hPaKicK CM10, but on our ROM the 4G does not work

I am not sure where 985hPaKicK got his RIL files from, but I do not think they are from the Optimus LTE 2, they might be, but I am not sure

If we try to use the RIL libraries / binaries from any of the Motion ROMS, it just does not work, there is no communication with the Radio

I have tried using RIL libraries / binaries from a lot of different phones, only a few of them had any communication with the radio

One was from an HTC phone, I do not remember the model, it was a while ago when I tried it. It does not work good at all, but it does communicate with the Radio

some_HTC_RIL.zip

The LG P930 has many variants, read this link for more details.
http://forum.xda-developers.com/showthread.php?t=1419940

A lot of the P930 RIL libraries/binaries communicate with our Radio

The L-01D RIL seems to communicate with the Radio the best, I just tested it tonight, but since my Motion is not active I can not really test it.
L-01D_ril.zip

The su640 RIL communicates with the Radio
su640_ril.zip

The RIL files from the CM10 P930 ROM communicates with the Radio
cm_p930ril.zip

The I_BELL RIL files does not communicate with the Radio, but it seems like it should work the best out of the 4, based on the specs, so I am confused
I_BELL_ril.zip









SO HOW IN THE HECK DO YOU TEST RIL FILES ?


Well the first step is to make sure you have all the required libraries, the best way to do this is to open adb shell and type "rild", if you dont get any errors your probably have them all, but if you see something like this, you do not have all the libraries

[HIGH]hroark13@dev1a:~/lgcm$ adb shell
root@android:/ # rild
dlopen failed: Cannot load library: reloc_library[1331]: 4846 cannot locate 'imsp_get_service_object_internal_v01'...

255|root@android:/ # [/HIGH]if you get an error like that you have to grep the other files in the source rom and find which binaries contain that code
[HIGH]

hroark13@dev1a:~/lgcm$
hroark13@dev1a:~/lgcm$ grep -r "imsp_get_service_object_internal_v01" /home/hroark13/MS77010d_BASE_ROM > imsp_get_service_object_internal_v01.txt
hroark13@dev1a:~/lgcm$ [/HIGH]then you open your imsp_get_service_object_internal_v01.txt and you will see


Binary file /home/hroark13/MS77010d_BASE_ROM/system/bin/qmiproxy matches
Binary file /home/hroark13/MS77010d_BASE_ROM/system/lib/libqmiservices.so matches
Binary file /home/hroark13/MS77010d_BASE_ROM/system/lib/libril-qc-qmi-1.so matches


so obviously you need those files too

[HIGH]adb push /home/hroark13/MS77010d_BASE_ROM/system/bin/qmiproxy /system/bin
adb shell "chmod 777 /system/bin/qmiproxy"
adb push /home/hroark13/MS77010d_BASE_ROM/system/lib/libqmiservices.so /system/lib
adb push /home/hroark13/MS77010d_BASE_ROM/system/lib/libril-qc-qmi-1.so /system/lib
[/HIGH]you need to keep doing this until you get no errors when you type rild

and you should reboot after each push, it is probably best if you push the files while in CWM

Once you have all of your RIL libraries and binaries then you can test with

[HIGH]adb shell logcat -b radio > radiolog.txt[/HIGH]open your radiolog.txt and look for errors and such

try changing your RIL build prop settings and see if it makes a difference


I can not test my Motion radio, my motion is not activated, and I just do not have the time for this stuff anymore

I hope this thread helps you, I will probably be banned, and this thread will be deleted, so copy text and links while you can



hK
 
Yeah, i havent tried cm10 yet
But can tell you did alot of work to make this information available for everyone here.
May make it easier for others to get started on that project.
 
I have reason to believe ccid_daemon is a file we need look into it caught my eye because ccid in linux would be a daemon for reading smart cards and I am pretty sure uicc cards are a form of smart cards I also decided to try running the file on cm10 and I got this
root@android:/ # ccid_daemon
ccid_daemon
INFO: Baseband property value read: msm
INFO: QMI port found for modem: rmnet1
ERROR: Error for QMI_UIM_EVENT_REG_REQ_V01, qmi_err_code: 0xffffffd1
ERROR: ccid_uim_qmi_register_events failed !
INFO: ccid_uim_cleanup, signal received: 0xf
INFO: ccid_uim_cleanup, Issuing QMI deinit ...
[1] + Stopped (signal) ccid_daemon
root@android:/ #
 
Ok so I had reflashed cm10 to get the RIL that is currently in the rom back (I had been trying some other stuff) anyway when I tried ccid_daemon on this now I get
root@android:/external_sd/ril # ccid_daemon
ccid_daemon
INFO: Baseband property value read: msm
INFO: QMI port found for modem: rmnet1
INFO: ccid_uim.card_info.card_state: 0x1
INFO: Read config string: CONFIGURED

INFO: usb_state: 0x2
INFO: Found USB event: 0x2
INFO: card_info[card_index].card_state: 0x1, sap_state: 0x0
ERROR: Could not open CCID_UIM_TTY_DEVNODE_STR_BULK !
ERROR: Could not open device nodes!
INFO: Received (0x2d1) bytes on USB event socket
INFO: Read config string: change@/devices/platform/msm_ssbi.0/pm8921-core/pm892
1-charger/power_supply/battery , length: 0x2d1
INFO: Ignoring event

There is more but the important part is the error we need to find out how to fix that
 
Ok so I had reflashed cm10 to get the RIL that is currently in the rom back (I had been trying some other stuff) anyway when I tried ccid_daemon on this now I get

There is more but the important part is the error we need to find out how to fix that


is this file on the stock rom ?
 
This is a great thread with some great info...thanks HK :thumbup:
I believe that part of the problem is that this phone seem to want to be a GSM phone and not a CDMA...check out my radio log :confused:


Hi Bob,

Which rom is that from, and which RIL files

have you tried the L-01D ril files at all

what is you build.prop settings for

ro.ril.def.preferred.network=
ro.telephony.default_network=
 
I haven't tried any other RIL's yet...hopefully this weekend.
I have those network setting at 0, which is what stock is set at.
 
Developers have 4g working on metropcs sgs3 if that ril file would work for our phone then y'all should try that. jus a thought and try a help thanks
 
Developers have 4g working on metropcs sgs3 if that ril file would work for our phone then y'all should try that. jus a thought and try a help thanks

unfortunately that wouldnt work due to manufacturer differences :).

the SGS3 is also a much more supported device, our variant alone has at least 8 roms (CM/AOKP/BlackBean/KingKang/ParanoidAndroid/PACman/Carbon/Liquidsmooth/Metropolis/Numbah2) those are the ones MADE for our phone, plenty more ported from other variants. we have an unlocked bootloader and very common hardware so support is easy. the lg motion is an amazing phone for the price, but it is only on metropcs which is not known for overly huge dev support, and the locked bootloader puts a damper on all things LG :/.
 
yea I kno da boot loader was locked but I was going by the ril files they was using so I thought I would put that out there but thanks to keep my up dated
 
Developers have 4g working on metropcs sgs3 if that ril file would work for our phone then y'all should try that. jus a thought and try a help thanks


usually what I do when I am trying RIL files from other phones, I try to find the closest match

Same Brand "LG" - Same CPU "Qualcom MSM8960" - Same carrier "Metro"
Same Brand "LG" - Similar Qualcom CPU - Same carrier "Metro"
Same Brand "LG" - Same CPU "Qualcom MSM8960" - different carrier
Same Brand "LG" - Similar Qualcom CPU" - different carrier

Then if I have no luck with that I will start trying other brands, and that has never worked for me
 
can someone who has cm10 on their motion test this ?


L-01D_RIL_VER_B_Modem.zip

it will delete your data and cache, so you may want to do a backup

So I am trying it right now making and receiving calls works data isn't working but it looks like it is trying to receiving text works
sending texts doesn't when I try logcat says
D/RILJ ( 1146): [0243]> RIL_REQUEST_CDMA_SEND_SMS
D/RILJ ( 1146): [UNSL]< UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED
D/RILJ ( 1146): [0244]> OPERATOR
D/RILJ ( 1146): [0245]> VOICE_REGISTRATION_STATE
D/CDMA ( 1146): [CdmaLteSST] pollState: network mode here is = 7
D/RILJ ( 1146): [0246]> DATA_REGISTRATION_STATE
D/RILJ ( 1146): [0244]< OPERATOR {NAM1, , 1023127}
D/RILJ ( 1146): [0245]< VOICE_REGISTRATION_STATE {1, null, null, 6, 967, 0, 0
, 0, 5007, 1, 1, 1, null, 0, 0}
D/RILJ ( 1146): [0246]< DATA_REGISTRATION_STATE {1, null, null, 6, 0, 20}
D/CDMA ( 1146): [CdmaLteSST] handleMessage EVENT_POLL_STATE_GPRS
D/CDMA ( 1146): [CdmaLteSST] handlePollStateResultMessage: EVENT_POLL_STATE_G
PRS
D/CDMA ( 1146): [CdmaLteSST] Set CDMA Roaming Indicator to: 1. mCdmaRoaming =
false, isPrlLoaded = true. namMatch = false , mIsInPrl = true, mRoamingIndicato
r = 1, mDefaultRoamingIndicator= 0
D/CDMA ( 1146): [CdmaLteSST] pollStateDone LTE/eHRPD STATE_IN_SERVICE mNewRil
RadioTechnology = 6
D/CDMA ( 1146): [CdmaLteSST] pollStateDone: oldSS=[0 home LG U+ 1023127 1xR
TT CSS not supported 1 5007 RoamInd=1 DefRoamInd=0 EmergOnly=false] newSS=[0 hom
e null 1023127 1xRTT CSS not supported 1 5007 RoamInd=1 DefRoamInd=0 EmergOnly
=false]
D/CDMA ( 1146): [CdmaLteSST] pollStateDone: hasRegistered=false hasDeegistere
d=false hasCdmaDataConnectionAttached=false hasCdmaDataConnectionDetached=false
hasCdmaDataConnectionChanged=false hasRadioTechnologyChanged = false hasChanged=
true hasRoamingOn=false hasRoamingOff=false hasLocationChanged=true has4gHandoff
= false hasMultiApnSupport=false hasLostMultiApnSupport=true
D/CDMA ( 1146): [CdmaLteSST] shouldFixTimeZoneNow: retVal=false iccCard=com.a
ndroid.internal.telephony.IccCard@420dc288 iccCard.state=UNKNOWN iccCardExist=fa
lse operatorNumeric=1023127 mcc=102 prevOperatorNumeric=1023127 prevMcc=102 need
ToFixTimeZone=false ltod=04-03 23:43:50.135
D/RILJ ( 1146): [0243]< RIL_REQUEST_CDMA_SEND_SMS { messageRef = 6, errorCode
= -1, ackPdu = null}
 
I tryed it on the phone and data doesn't work. I didn't try any thing else. I installed lte on off and changed the network type and no data, it don't even go to lte or evdo under setting it jus show 1xRTT
 
I had a little time to test a few today:
I_BELL: Booted, but could not get a radio log...seemed similar to stock in that nothing RIL related worked.
L-01D: radio log here, calls work(minus sound), text work, No MMS or Internet.
L-01D ver B: radio log here, same as L-01D...calls work(minus sound), text work, No MMS or Internet.
SU640: radio log here, same as L-01D...calls work(minus sound), text work, No MMS or Internet.
All tests where done with my CM10 build(thanks to HK)
 
So I noticed this when I flashed back to stock after playing with some rils and network settings on cm10
 

Attachments

  • 1365276600119.jpg
    1365276600119.jpg
    12.5 KB · Views: 154
I had a little time to test a few today:
I_BELL: Booted, but could not get a radio log...seemed similar to stock in that nothing RIL related worked.
L-01D: radio log here, calls work(minus sound), text work, No MMS or Internet.
L-01D ver B: radio log here, same as L-01D...calls work(minus sound), text work, No MMS or Internet.
SU640: radio log here, same as L-01D...calls work(minus sound), text work, No MMS or Internet.
All tests where done with my CM10 build(thanks to HK)


Hi Bob

which tree did you use, and did you use any of the stuff from here

https://github.com/985hPaKicK/Modified_d1lu/

You will at least want this one file
ShutdownThread.java

that changes the reboot recovery / power button menu option to boot into second init recovery
 
our rill class is LGEQualcommRIL

which is an extension of QualcommSharedRIL

we should also be trying to change

ro.telephony.ril_class=LGEQualcommRIL

to

ro.telephony.ril_class=LGEQualcommUiccRIL

in our build prop to see if it makes a difference


and also

ro.telephony.ril_class=QualcommSharedRIL
 
Back
Top Bottom