Latest ModemManager for OpenWRT

Jose, Shijo Shijo.Jose at hughes.com
Wed Aug 30 21:07:59 UTC 2017


>> 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/ModemManager.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?

Console logs -

[   22.359350] ModemManager[3627]: unhandled level 2 translation fault (11) at 0x00000010, esr 0x92000006
[   22.368700] pgd = ffffffc038e0a000
[   22.372518] [00000010] *pgd=0000000038699003, *pud=0000000038699003, *pmd=0000000000000000
[   22.380890]
[   22.382514] CPU: 0 PID: 3627 Comm: ModemManager Not tainted 4.4.8 #33
[   22.388807] Hardware name: Marvell Armada 3720 Community Board (DT)
[   22.395320] task: ffffffc0394ac200 ti: ffffffc0386dc000 task.ti: ffffffc0386dc000
[   22.403757] PC is at 0x7f94683194
[   22.408902] LR is at 0x7f946842dc
[   22.414937] pc : [<0000007f94683194>] lr : [<0000007f946842dc>] pstate: 80000000
[   22.430861] sp : 0000007fc25d5090
[   22.434203] x29: 0000007fc25d5090 x28: 0000000000000000
[   22.444053] x27: 0000000000000000 x26: 0000007f94277070
[   22.458594] x25: 0000007fc25d51a8 x24: 0000007fc25d51e8
[   22.465704] x23: 0000000000000000 x22: 0000000000000000
[   22.471211] x21: 0000000000000000 x20: 0000007fc25d51e8
[   22.476755] x19: 0000007fc25d51e8 x18: 0000000000000000
[   22.482237] x17: 0000007f94ad25d8 x16: 0000007f9466e8a0
[   22.487727] x15: 003b9aca00000000 x14: 003a01cb80000000
[   22.493257] x13: ffffffffa6882d44 x12: 00000000ffffff80
[   22.498740] x11: 0000007fc25d4d80 x10: 0000007f9465aa70
[   22.504222] x9 : 000000000000000a x8 : 0000000000000042
[   22.509705] x7 : 0000000000000000 x6 : 0000007f94b239e0
[   22.515196] x5 : 0000007f94b23000 x4 : 0000000000000000
[   22.520677] x3 : 0000000000000001 x2 : 0000000000000000
[   22.526210] x1 : 0000007fc25d51e8 x0 : 0000000000000000


When trying to restart MM from the console, I get the following error -

root at OpenWrt:/# ModemManager --debug
[3695]: <info>  [1501026319.886991] ModemManager (version 1.7.0) starting in system bus...
[3695]: <debug> [1501026319.893435] Bus acquired, creating manager...
[3695]: <debug> [1501026319.894462] [plugin manager] looking for plugins in '/usr/lib/ModemManager'
[3695]: <debug> [1501026319.896444] [plugin manager] loaded plugin 'Novatel'
[3695]: <debug> [1501026319.897564] [plugin manager] loaded plugin 'Iridium'
[ 1364.992888] ModemManager[3695]: unhandled level 2 translation fault (11) at 0x00000010, esr 0x92000006

[3695]: <debug> [1501026319.900[ 1365.005353] pgd = ffffffc038de7000
583] [plugin manager] loaded plugi[ 1365.011918] [00000010] *pgd=0000000038c13003n 'u-blox'
[3695]: <debug> [150, *pud=0000000038c130031026319.901694] [plugin manager] , *pmd=0000000000000000loaded plugin 'MTK'
[3695]: <de
bug> [1501026319.903263] [plugi[ 1365.031904]
n manager] loaded plugin 'Erics[ 1365.036285] CPU: 0 PID: 3695 Comm: ModemManager Not tainted 4.4.8 #33
son MBM'
[3695]: <debug> [[ 1365.045328] Hardware name: Marvell Armada 3720 Community Board (DT)
1501026319.904655] [plugin man[ 1365.054484] task: ffffffc0397cb700 ti: ffffffc038c18000 task.ti: ffffffc038c18000
ager] loaded plugin 'Altair LTE[ 1365.064994] PC is at 0x7fa3510194
'
[3695]: <debug> [150102[ 1365.070720] LR is at 0x7fa35112dc
6319.905478] [plugin manag[ 1365.076463] pc : [<0000007fa3510194>] lr : [<0000007fa35112dc>] pstate: 80000000
er] loaded plugin 'Sierra'
[3695[ 1365.087069] sp : 0000007ff65cdfa0
]: <debug> [1501026319.906628] [p[ 1365.093443] x29: 0000007ff65cdfa0 lugin manager] loaded plugin 'Wavx28: 0000000000000000 ecom'
[3695]: <debug> [150102631
9.907735] [plugin manager] load[ 1365.107610] x27: 0000000000000000 ed plugin 'Via CBP7'
[369x26: 0000007fa3104070 5]: <debug> [1501026319.909
371] [plugin manager] loaded pl[ 1365.120621] x25: 0000007ff65ce0b8 ugin 'Samsung'
[3695]: <dex24: 0000007ff65ce0f8 bug> [1501026319.910367] [plugin
 manager] loaded plugin 'Pantec[ 1365.134161] x23: 0000000000000000 h'
[3695]: <debug> [1501026319.9x22: 0000000000000000 11961] [plugin manager] loa
ded plugin 'Cinterion'
[3695]:[ 1365.147814] x21: 0000000000000000  <debug> [1501026319.91343x20: 0000007ff65ce0f8 9] [plugin manager] loaded plugi
n 'Telit'
[3695]: <debug> [150[ 1365.161272] x19: 0000007ff65ce0f8 1026319.915391] [plugin manx18: 0000000000000000 ager] loaded plugin 'Huawei'
[36
95]: <debug> [1501026319.916545[ 1365.174916] x17: 0000007fa395f5d8 ] [plugin manager] loaded plugin x16: 0000007fa34fb8a0 'SimTech'
[3695]: <debug>
 [1501026319.917859] [plugin ma[ 1365.188474] x15: 0037491a60000000 nager] loaded plugin 'Novatx14: 0000000000000000 el LTE'
[3695]: <debug> [1
501026319.919625] [plugin manag[ 1365.201572] x13: 0000000000000000 er] loaded plugin 'Nokia (x12: 00000000ffffff80 Icera)'
[3695]: <debug> [1501026
319.921560] [plugin manager] lo[ 1365.215126] x11: 0000007ff65cdc90 aded plugin 'Sierra (legacx10: 0000007fa34e7a70 y)'
[3695]: <debug> [15010
26319.923156] [plugin manager] [ 1365.228135] x9 : 000000000000000a loaded plugin 'Option High-x8 : 0000000000000042 Speed'
[3695]: <debug> [1
x6 : 0000007fa39b09e0 gin manag[ 1365.241145] x7 : 0000000000000080 er] loaded plugin 'Nokia'
[3695]: <debug> [1501026319.9251
71] [plugin manager] loaded plu[ 1365.254694] x5 : 0000007fa39b0000 gin 'Generic'
[3695]: <debx4 : 0000000000000000 ug> [1501026319.926387] [p
lugin manager] loaded plugin 'O[ 1365.267707] x3 : 0000000000000001 ption'
[3695]: <debug> [15x2 : 0000000000000000 01026319.927521] [plugin ma
[ 1365.280804] x1 : 0000007ff65ce0f8

(ModemManager:3695): GLix0 : 0000000000000000 b-GObject-WARNING **:
cannot register existing type '[ 1365.294443]
MMPluginNovatelLte'

(ModemManager:3695): GLib-GObject-WARNING **: cannot retrieve class for invalid (unclassed) type '<inv[ 1365.308182] random: nonblocking pool is initialized
alid>'

(ModemManager:3695): 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