Latest ModemManager for OpenWRT

Jose, Shijo Shijo.Jose at hughes.com
Fri Sep 1 02:56:16 UTC 2017


Hello,

>>> I had installed ModemManager on OpenWRT following your steps provided 
>>> in https://bitbucket.org/aleksander0m/modemmanager-openwrt
>>>
>>> However, I need the latest changes made to ModemManager source 
>>> specifically to include updates for the Telit LTE modem plugin (e.g.
>>> from
>>> https://github.com/linux-mobile-broadband/ModemManager)
>>>
>>> Can you please help provide some tips on how to get these latest 
>>> changes for OpenWRT?
>>>

>> Edit modemmanager-openwrt/modemmanager/Makefile and you'll see:
>> PKG_NAME:=modemmanager
>> PKG_VERSION:=1.7.0-20161212
>> PKG_RELEASE:=1
>> PKG_SOURCE_PROTO:=git
>>  
>> PKG_SOURCE_URL:=https://anongit.freedesktop.org/git/ModemManager/Modem
>> Manager.git
>>  PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
>>  PKG_SOURCE_VERSION:=0bf4db6561de9be61028eb6bc1792a3b7cc410b5
>>  PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz

>> Change PKG_VERSION and PKG_SOURCE_VERSION as you wish, e.g. like:
>> PKG_VERSION:=1.7.0-20170830
>> PKG_SOURCE_VERSION:=5014cf39767a24109de945d99c6b9f4bb1b07274
>>
>> (that would be the id of the last commit in git master today)
>>
>> And that should be it.
>>
>> --
>> Aleksander
>> https://aleksander.es


>Thanks. That worked.
>However, with the latest version, I see MM crash on openwrt (Log snippets below).
>Would you recommend going back a few revisions? If so, how do I associate the package version with the source version to make Makefile changes?

When  I revert back to the older version and update the feed (./scripts/feeds update modemmanager) followed by installing the packages from the feed (./scripts/feeds install -p modemmanager -a) and do a clean openwrt build, I still get the crash. Can you please help provide some direction if you are familiar with this?

Crash Log- 

root at OpenWrt:/# ModemManager --debug
[3805]: <info>  [1501025527.699471] [main.c:159] main(): ModemManager (version 1.7.0) starting in system bus...
[3805]: <debug> [1501025527.706056] [main.c:83] bus_acquired_cb(): Bus acquired, creating manager...
[3805]: <debug> [1501025527.707091] [mm-plugin-manager.c:1559] load_plugins(): [plugin manager] looking for plugins in '/usr/lib/ModemManager'
[3805]: <debug> [1501025527.708921] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'Novatel'
[3805]: <debug> [15010[  593.026587] ModemManager[3805]: unhandled level 2 translation fault (11) at 0x00000010, esr 0x92000006
25527.710150] [mm-plugin-manager[  593.039077] pgd = ffffffc0393b0000
.c:1584] load_plugins(): [plugin m[  593.045654] [00000010] *pgd=00000000386d5003anager] loaded plugin 'Iridium', *pud=00000000386d5003
[3805]: <debug> [1501025527.711, *pmd=0000000000000000746] [mm-plugin-manager.c:1584] l
oad_plugins(): [plugin manager][  593.065641]
 loaded plugin 'AnyDATA'
[3805][  593.070114] CPU: 0 PID: 3805 Comm: ModemManager Not tainted 4.4.8 #45
: <debug> [1501025527.71324[  593.079159] Hardware name: Marvell Armada 3720 Community Board (DT)
1] [mm-plugin-manager.c:1584] [  593.088316] task: ffffffc038754200 ti: ffffffc03968c000 task.ti: ffffffc03968c000
load_plugins(): [plugin manager][  593.098918] PC is at 0x7f90f2a194
 loaded plugin 'u-blox'
[3805]:[  593.105181] LR is at 0x7f90f2b2dc
 <debug> [1501025527.714374] [mm-[  593.111553] pc : [<0000007f90f2a194>] lr : [<0000007f90f2b2dc>] pstate: 80000000
plugin-manager.c:1584] load_plug[  593.122079] sp : 0000007ffc33e0c0
ins(): [plugin manager] loa[  593.127899] x29: 0000007ffc33e0c0 ded plugin 'MTK'
[3805]: <debug>x28: 0000000000000000  [1501025527.715836] [mm-pl
ugin-manager.c:1584] load_plugi[  593.141505] x27: 0000000000000000 ns(): [plugin manager] loaded plux26: 0000007f90b27070 gin 'Ericsson MBM'
[3805]:
 <debug> [1501025527.717370] [m[  593.155157] x25: 0000007ffc33e1d8 m-plugin-manager.c:1584] lox24: 0000007ffc33e218 ad_plugins(): [plugin mana
ger] loaded plugin 'Altair LTE'[  593.168163] x23: 0000000000000000
[3805]: <debug> [1501025527.718x22: 0000000000000000 214] [mm-plugin-manager.c:
1584] load_plugins(): [plugin m[  593.181715] x21: 0000000000000000 anager] loaded plugin 'Siex20: 0000007ffc33e218 rra'
[3805]: <debug> [150
1025527.719377] [mm-plugin-mana[  593.194640] x19: 0000007ffc33e218 ger.c:1584] load_plugins():x18: 0000000000000000  [plugin manager] loaded plugin '
Wavecom'
[3805]: <debug> [1501[  593.208283] x17: 0000007f913795d8 025527.720430] [mm-plugin-managerx16: 0000007f90f158a0 .c:1584] load_plugins(): [plugin
manager] loaded plugin 'Via CBP[  593.222479] x15: 002c21d870000000 7'
[3805]: <debug> [150102x14: 0000000000000000 5527.722197] [mm-plugin-ma
nager.c:1584] load_plugins(): [[  593.235487] x13: 0000000000000000 plugin manager] loaded plugix12: 00000000ffffff80 n 'Samsung'
[3805]: <debu
g> [1501025527.723244] [mm-plug[  593.248583] x11: 0000007ffc33ddb0 in-manager.c:1584] load_plugins()x10: 0000007f90f01a70 : [plugin manager] loaded
plugin 'Pantech'
[3805]: <debu[  593.262142] x9 : 000000000000000a g> [1501025527.724609] [mm-x8 : 0000000000000042 plugin-manager.c:1584] load
_plugins(): [plugin manager] lo[  593.275242] x7 : 0000000000000090 aded plugin 'Cinterion'
[x6 : 0000007f913ca9e0 3805]: <debug> [1501025527
.726070] [mm-plugin-manager.c:1[  593.288158] x5 : 0000007f913ca000 584] load_plugins(): [plugin manax4 : 0000000000000000 ger] loaded plugin 'Telit'

[3805]: <debug> [1501025527.7[  593.301710] x3 : 0000000000000001 27987] [mm-plugin-manager.c:x2 : 0000000000000000 1584] load_plugins(): [plug
in manager] loaded plugin 'Huaw[  593.314905] x1 : 0000007ffc33e218 ei'
[3805]: <debug> [1501025527.x0 : 0000000000000000 729214] [mm-plugin-manager.
c:1584] load_plugins(): [plugin[  593.328550]
 manager] loaded plugin 'SimTech'
[3805]: <debug> [1501025527.730563] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'Novatel LTE'
[3805]: <debug> [1501025527.732295] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'Nokia (Icera)'
[3805]: <debug> [1501025527.734377] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'Sierra (legacy)'
[3805]: <debug> [1501025527.735954] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'Option High-Speed'
[3805]: <debug> [1501025527.737127] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'Nokia'
[3805]: <debug> [1501025527.738036] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'Generic'
[3805]: <debug> [1501025527.739276] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'Option'
[3805]: <debug> [1501025527.740381] [mm-plugin-manager.c:1584] load_plugins(): [plugin manager] loaded plugin 'Linktop'

(ModemManager:3805): GLib-GObject-WARNING **: cannot register existing type 'MMPluginNovatelLte'

(ModemManager:3805): GLib-GObject-WARNING **: cannot retrieve class for invalid (unclassed) type '<invalid>'

(ModemManager:3805): GLib-GObject-CRITICAL **: g_object_new_valist: object class '(NULL)' has no property named 'name'
Segmentation fault

Thanks.
-Shijo


More information about the ModemManager-devel mailing list