GithubHelp home page GithubHelp logo

xmm7360-pci's People

Contributors

0ln avatar abrasive avatar c3r34lk1ll3r avatar derchaot avatar ecos-hj avatar fredr avatar joellinn avatar lluchs avatar malikkirchner avatar mbernasocchi avatar mixaill avatar nursoda avatar rgherta avatar so-rose avatar tgxn avatar zear avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xmm7360-pci's Issues

X1 Carbon Gen 7 -- Works with T-Mobile SIM, not Verizon (US)

Hey there,

Anybody have any ideas about this? With T-Mobile it all goes through without any errors, but a Verizon SIM spits back this APN in stdout at some point and fails (I specify the APN vzwinternet, which Verizon says is it's APN on its website, but maybe there are multiple APNs that this APN returns and this pci kernel module does not account for it?):

vzwims.mnc480.mcc311.gprs

Both SIMs work in Windows, and both SIMs work with the USB mode patch (although I have the modem-reboot problem, so I need this PCI patch)

Working on P52

Interface wwan0 is perfectly usable.
What kind of development would you need in order to make the link with ModemManager?

"Attach failed again, giving up" with password-protected APN

Not working on X1 Yoga 4th Gen (20QF) with Linux Mint 20 and password-protected APN :

My APN address is orange, username is orange and password is orange.
Is there a way to bring the modem up even with this kind of configuration ?

(Also the pin was previously unlocked via AT+CPIN command in /dev/ttyXMM1)

user@computer: ~/xmm7360-pci/rpc$ sudo python3 open_xdatachannel.py --apn orange
RPC executing UtaMsSmsInit
b'1600000002040000001602040000003011000100020400000000'
response: 0x0
RPC executing UtaMsCbsInit
b'1600000002040000001602040000002511000100020400000000'
response: 0x0
RPC executing UtaMsNetOpen
b'1600000002040000001602040000005311000100020400000000'
response: 0x0
RPC executing UtaMsCallCsInit
b'1600000002040000001602040000002411000100020400000000'
unsolicited: UtaMsNetGprsClassIndCb: 0x0, 0x2, 0x1, 0x0
response: 0x0
RPC executing UtaMsCallPsInitialize
b'1600000002040000001602040000003a11000100020400000000'
response: 0x0
RPC executing UtaMsSsInit
b'1600000002040000001602040000002611000100020400000000'
response: 0x0
RPC executing UtaMsSimOpenReq
b'1600000002040000001602040000000111000100020400000000'
response: 0x0
RPC executing CsiFccLockQueryReq
b'1c00000002040000001c02040000018e11000101020411000101020400000000'
async_ack: 0x0
response: 0x0, 0x1, 0x2
FCC lock: state 1 mode 2
RPC executing UtaModeSetReq
b'2200000002040000002202040000012f1100010002040000000002040000000f020400000001'
response: 0x0
unsolicited: UtaModeSetRspCb: 0x1, 0x0, 0xf
RPC executing UtaMsCallPsAttachApnConfigReq
b'e11300000204000013e10204000001af110001010204110001010201005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc0204000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000055140204000000140204000000000000000000000000000000000000000000000000020400000000556502040000006802040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc0204000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000055140204000000140204000000000000000000000000000000000000000000000000020400000000556502040000006802040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc020400000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020200000204000000000204000000000204000000000204000000000204000000010204000000000204000000000204000000000204000000000204000000000204000000000204000000000204000000010204000000000204000000000204000004040204000000010204000000000204000000010204000000000204000000005514020400000014020400000000000000000000000000000000000000000000000002040000000355650204000000680204000000036f72616e676500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc020400000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020200000204000000000204000000000204000000000204000000000204000000010204000000000204000000000204000000000204000000000204000000000204000000000204000000000204000000010204000000000204000000000204000004040204000000010204000000000204000000010204000000000204000000005514020400000014020400000000000000000000000000000000000000000000000002040000000355650204000000670204000000026f72616e676500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020103020400000000'
async_ack: 0x0
response: 0x0, 0x0, 0x0
RPC executing UtaMsNetAttachReq
b'4500000002040000004502040000005c110001010204110001010201000204000000000204000000000204000000000204000000000202ffff0202ffff020400000000020400000000'
async_ack: 0x0
unsolicited: UtaMsNetIsAttachAllowedIndCb: 0x0, 0x0, 0x0, 0x0
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x0, 0xffff, 0x0, 0x4b, 0x2, 0x0, 0x2, 0x2, 0x1, 0x1, 0x0, 0x0, 0x0, 0x50f1, 0x4940192, 0x0, 0x14, 0xd0, 0x0
unsolicited: UtaMsNetCellChangeIndCb: 0x0, 0xffffffff, 0x0
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x0, 0xffff, 0x0, 0x39, 0x2, 0x0, 0x2, 0x2, 0x1, 0x1, 0x0, 0x0, 0x0, 0x50f1, 0x4940192, 0x0, 0x14, 0xd0, 0x0
unsolicited: UtaMsNetCellChangeIndCb: 0x0, 0x4940192, 0x0
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x0, 0xffff, 0x0, 0x39, 0x2, 0x0, 0x2, 0x2, 0x1, 0x1, 0x0, 0x0, 0x0, 0x50f1, 0x4940192, 0x0, 0x14, 0xd0, 0x0
response: 0x0, 0xffffffff, 0x2, 0x2, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x0, 0x2, 0x1, 0x0
INFO:root:Attach failed - waiting to see if we just weren't ready
unsolicited: UtaMsNetRegistrationInfoIndCb: 0x0, 0x0, 0x0, 0x1, 0xd0, 0x0, 0x58, 0xd0, 0x0, 0xd, 0xd0, 0x0, 0x2, 0xd0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0xffff, 0xffffffff, 0xffff, 0xffff, 0x0, 0x0, 0xfe, 0xfffe, 0x0, 0xffff, 0xffff, 0xfffe, 0x0, 0xffff, 0xffff, 0x0, 0x0, 0x39, 0x2, 0x0, 0x14, 0xd0, 0x0, 0x0, 0xff, 0x1, 0x2, 0xff, 0x1, 0x2, 0x0
unsolicited: UtaMsNetIsAttachAllowedIndCb: 0x0, 0xff, 0x1, 0x0
RPC executing UtaMsNetAttachReq
b'4500000002040000004502040000005c110001010204110001010201000204000000000204000000000204000000000204000000000202ffff0202ffff020400000000020400000000'
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x0, 0xffff, 0x0, 0x39, 0x2, 0x0, 0x2, 0x2, 0x1, 0x1, 0x0, 0x0, 0x0, 0x50f1, 0x4940192, 0x0, 0x14, 0xd0, 0x0
async_ack: 0x0
unsolicited: UtaMsNetIsAttachAllowedIndCb: 0x0, 0x0, 0x0, 0x0
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x0, 0xffff, 0x0, 0x4b, 0x2, 0x0, 0x2, 0x2, 0x1, 0x1, 0x0, 0x0, 0x0, 0x50f1, 0x4940192, 0x0, 0x14, 0xd0, 0x0
unsolicited: UtaMsNetCellChangeIndCb: 0x0, 0xffffffff, 0x0
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x0, 0xffff, 0x0, 0x39, 0x2, 0x0, 0x2, 0x2, 0x1, 0x1, 0x0, 0x0, 0x0, 0x50f1, 0x4940192, 0x0, 0x14, 0xd0, 0x0
unsolicited: UtaMsNetCellChangeIndCb: 0x0, 0x4940192, 0x0
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x0, 0xffff, 0x0, 0x39, 0x2, 0x0, 0x2, 0x2, 0x1, 0x1, 0x0, 0x0, 0x0, 0x50f1, 0x4940192, 0x0, 0x14, 0xd0, 0x0
response: 0x0, 0xffffffff, 0x2, 0x2, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x0, 0x2, 0x1, 0x0
ERROR:root:Attach failed again, giving up

Any idea ?

insmod "killed" on Thinkpad X1 Yoga 4th gen

Hello,

first of all thanks a lot for the awesome work, I've been waiting for this since I got my X1Y!

Unfortunately, when I try to insmod xmm7360.ko, I just get "Killed" as response. I then cannot rmmod xmm7360, since "rmmod: ERROR: Module xmm7360 is in use". lsmod tells me: "xmm7360 28672 1", which is not very informative.

dmesg tells me that something went wrong while loading the module:

[ 451.303385] xmm7360: loading out-of-tree module taints kernel.
[ 451.303433] xmm7360: module verification failed: signature and/or required key missing - tainting kernel
[ 451.303992] xmm7360 0000:02:00.0: enabling device (0000 -> 0002)
[ 451.304301] xmm7360 0000:02:00.0: pci_alloc_irq_vectors
[ 451.304304] ------------[ cut here ]------------
[ 451.304310] WARNING: CPU: 0 PID: 4529 at kernel/workqueue.c:2911 __flush_work.cold.53+0x1f/0x29
[ 451.304310] Modules linked in: xmm7360(OE+) fuse bnep intel_rapl x86_pkg_temp_thermal intel_powerclamp nls_ascii coretemp snd_hda_codec_hdmi nls_cp437 vfat fat kvm snd_usb_audio irqbypass cdc_ether snd_usbmidi_lib usbnet snd_rawmidi crct10dif_pclmul snd_seq_device mii snd_soc_skl crc32_pclmul snd_soc_skl_ipc ghash_clmulni_intel snd_soc_sst_ipc intel_cstate snd_soc_sst_dsp joydev snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi intel_uncore snd_soc_core snd_hda_codec_realtek intel_rapl_perf snd_compress snd_hda_codec_generic efi_pstore wmi_bmof hid_multitouch serio_raw snd_hda_intel btusb btrtl tpm_crb btbcm snd_hda_codec btintel iTCO_wdt bluetooth pcspkr efivars iTCO_vendor_support iwlwifi uvcvideo snd_hda_core videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common snd_hwdep snd_pcm
[ 451.304329] videodev drbg cfg80211 ansi_cprng snd_timer media ecdh_generic ucsi_acpi typec_ucsi tpm_tis processor_thermal_device idma64 tpm_tis_core typec intel_soc_dts_iosf intel_pch_thermal mei_me tpm pcc_cpufreq mei rng_core thinkpad_acpi nvram snd soundcore ac rfkill battery int3403_thermal int340x_thermal_zone acpi_pad acpi_tad evdev int3400_thermal acpi_thermal_rel efivarfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 fscrypto ecb btrfs xor zstd_decompress zstd_compress xxhash raid6_pq libcrc32c crc32c_generic hid_microsoft hid_sensor_custom hid_sensor_hub intel_ishtp_hid wacom usbhid hid_generic i915 crc32c_intel i2c_algo_bit drm_kms_helper xhci_pci aesni_intel xhci_hcd psmouse e1000e drm aes_x86_64 nvme crypto_simd usbcore cryptd glue_helper thunderbolt i2c_i801 nvme_core i2c_hid intel_ish_ipc
[ 451.304351] hid intel_lpss_pci intel_ishtp intel_lpss usb_common thermal wmi video button
[ 451.304355] CPU: 0 PID: 4529 Comm: insmod Tainted: G OE 4.19.0-6-amd64 #1 Debian 4.19.67-2+deb10u2
[ 451.304356] Hardware name: LENOVO 20QGS01M00/20QGS01M00, BIOS N2HET37W (1.20 ) 09/11/2019
[ 451.304357] RIP: 0010:__flush_work.cold.53+0x1f/0x29
[ 451.304358] Code: e9 27 04 00 0f 0b e9 7a d3 ff ff 48 c7 c7 78 0c 84 90 e8 d6 27 04 00 0f 0b e9 71 d6 ff ff 48 c7 c7 78 0c 84 90 e8 c3 27 04 00 <0f> 0b 45 31 ed e9 5b d6 ff ff 49 8d b4 24 b0 00 00 00 48 c7 c7 28
[ 451.304359] RSP: 0018:ffffb2698536fa08 EFLAGS: 00010246
[ 451.304359] RAX: 0000000000000024 RBX: ffff8e46a4a80048 RCX: 0000000000000006
[ 451.304360] RDX: 0000000000000000 RSI: 0000000000000096 RDI: ffff8e46ac2166b0
[ 451.304360] RBP: ffff8e46a4a80048 R08: 0000000000000505 R09: 0000000000000004
[ 451.304361] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
[ 451.304361] R13: 0000000000000001 R14: ffffffff8fa98420 R15: 0000000000000000
[ 451.304362] FS: 00007f80d5a12480(0000) GS:ffff8e46ac200000(0000) knlGS:0000000000000000
[ 451.304362] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 451.304362] CR2: 000055951ddd71a8 CR3: 00000004341bc006 CR4: 00000000003606f0
[ 451.304363] Call Trace:
[ 451.304367] ? xmm7360_net_xmit+0x190/0x190 [xmm7360]
[ 451.304368] ? get_work_pool+0x40/0x40
[ 451.304369] __cancel_work_timer+0x10a/0x190
[ 451.304372] ? _dev_err+0x6c/0x90
[ 451.304373] ? xmm7360_net_xmit+0x190/0x190 [xmm7360]
[ 451.304374] xmm7360_dev_deinit+0x23/0x170 [xmm7360]
[ 451.304376] xmm7360_probe+0x234/0x340 [xmm7360]
[ 451.304378] local_pci_probe+0x41/0x90
[ 451.304379] pci_device_probe+0xf5/0x1b0
[ 451.304380] really_probe+0x23e/0x390
[ 451.304382] driver_probe_device+0xb3/0xf0
[ 451.304383] __driver_attach+0xea/0x110
[ 451.304384] ? driver_probe_device+0xf0/0xf0
[ 451.304385] bus_for_each_dev+0x77/0xc0
[ 451.304387] ? klist_add_tail+0x3b/0x70
[ 451.304388] bus_add_driver+0x152/0x230
[ 451.304390] ? xmm7360_probe+0x340/0x340 [xmm7360]
[ 451.304391] driver_register+0x6b/0xb0
[ 451.304392] ? xmm7360_probe+0x340/0x340 [xmm7360]
[ 451.304394] do_one_initcall+0x46/0x1c3
[ 451.304396] ? free_unref_page_commit+0x91/0x100
[ 451.304397] ? _cond_resched+0x15/0x30
[ 451.304398] ? kmem_cache_alloc_trace+0x155/0x1d0
[ 451.304400] do_init_module+0x5a/0x210
[ 451.304401] load_module+0x2118/0x2390
[ 451.304403] ? __do_sys_finit_module+0xad/0x110
[ 451.304404] __do_sys_finit_module+0xad/0x110
[ 451.304406] do_syscall_64+0x53/0x110
[ 451.304407] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 451.304408] RIP: 0033:0x7f80d5b2cf59
[ 451.304409] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 07 6f 0c 00 f7 d8 64 89 01 48
[ 451.304409] RSP: 002b:00007ffeb6ddaa48 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 451.304410] RAX: ffffffffffffffda RBX: 000055951ddd47a0 RCX: 00007f80d5b2cf59
[ 451.304410] RDX: 0000000000000000 RSI: 000055951cf8b3f0 RDI: 0000000000000003
[ 451.304411] RBP: 000055951cf8b3f0 R08: 0000000000000000 R09: 00007f80d5bf7000
[ 451.304411] R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000
[ 451.304411] R13: 000055951ddd4760 R14: 0000000000000000 R15: 0000000000000000
[ 451.304412] ---[ end trace c88992ef0c24071c ]---
[ 451.304418] BUG: unable to handle kernel paging request at 0000000000022b08
[ 451.304419] PGD 0 P4D 0
[ 451.304420] Oops: 0002 [#1] SMP NOPTI
[ 451.304422] CPU: 0 PID: 4529 Comm: insmod Tainted: G W OE 4.19.0-6-amd64 #1 Debian 4.19.67-2+deb10u2
[ 451.304422] Hardware name: LENOVO 20QGS01M00/20QGS01M00, BIOS N2HET37W (1.20 ) 09/11/2019
[ 451.304423] RIP: 0010:xmm7360_dev_deinit+0x14/0x170 [xmm7360]
[ 451.304424] Code: 00 00 48 8b b8 60 02 00 00 e9 48 ff ff ff 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 41 54 55 48 89 fd 48 83 c7 48 53 48 83 ec 10 87 c0 2a 02 00 ed ff ff ff e8 7d be 52 cf 48 83 bd 00 2b 02 00
[ 451.304425] RSP: 0018:ffffb2698536fad0 EFLAGS: 00010282
[ 451.304426] RAX: ffffb2698193b000 RBX: 0000000000000020 RCX: 0000000000000000
[ 451.304426] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000048
[ 451.304427] RBP: 0000000000000000 R08: 0000000000000505 R09: ffff8e46a4a9e5f8
[ 451.304427] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8e46a9aed000
[ 451.304428] R13: 0000000000000030 R14: ffffffffc056f010 R15: 0000000000000000
[ 451.304429] FS: 00007f80d5a12480(0000) GS:ffff8e46ac200000(0000) knlGS:0000000000000000
[ 451.304429] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 451.304430] CR2: 0000000000022b08 CR3: 00000004341bc006 CR4: 00000000003606f0
[ 451.304431] Call Trace:
[ 451.304432] xmm7360_remove+0x25/0x80 [xmm7360]
[ 451.304434] xmm7360_probe+0x23c/0x340 [xmm7360]
[ 451.304435] local_pci_probe+0x41/0x90
[ 451.304436] pci_device_probe+0xf5/0x1b0
[ 451.304438] really_probe+0x23e/0x390
[ 451.304439] driver_probe_device+0xb3/0xf0
[ 451.304440] __driver_attach+0xea/0x110
[ 451.304441] ? driver_probe_device+0xf0/0xf0
[ 451.304442] bus_for_each_dev+0x77/0xc0
[ 451.304443] ? klist_add_tail+0x3b/0x70
[ 451.304444] bus_add_driver+0x152/0x230
[ 451.304445] ? xmm7360_probe+0x340/0x340 [xmm7360]
[ 451.304447] driver_register+0x6b/0xb0
[ 451.304448] ? xmm7360_probe+0x340/0x340 [xmm7360]
[ 451.304449] do_one_initcall+0x46/0x1c3
[ 451.304450] ? free_unref_page_commit+0x91/0x100
[ 451.304451] ? _cond_resched+0x15/0x30
[ 451.304452] ? kmem_cache_alloc_trace+0x155/0x1d0
[ 451.304453] do_init_module+0x5a/0x210
[ 451.304454] load_module+0x2118/0x2390
[ 451.304456] ? __do_sys_finit_module+0xad/0x110
[ 451.304457] __do_sys_finit_module+0xad/0x110
[ 451.304458] do_syscall_64+0x53/0x110
[ 451.304460] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 451.304460] RIP: 0033:0x7f80d5b2cf59
[ 451.304461] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 07 6f 0c 00 f7 d8 64 89 01 48
[ 451.304462] RSP: 002b:00007ffeb6ddaa48 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 451.304463] RAX: ffffffffffffffda RBX: 000055951ddd47a0 RCX: 00007f80d5b2cf59
[ 451.304463] RDX: 0000000000000000 RSI: 000055951cf8b3f0 RDI: 0000000000000003
[ 451.304464] RBP: 000055951cf8b3f0 R08: 0000000000000000 R09: 00007f80d5bf7000
[ 451.304464] R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000
[ 451.304465] R13: 000055951ddd4760 R14: 0000000000000000 R15: 0000000000000000
[ 451.304466] Modules linked in: xmm7360(OE+) fuse bnep intel_rapl x86_pkg_temp_thermal intel_powerclamp nls_ascii coretemp snd_hda_codec_hdmi nls_cp437 vfat fat kvm snd_usb_audio irqbypass cdc_ether snd_usbmidi_lib usbnet snd_rawmidi crct10dif_pclmul snd_seq_device mii snd_soc_skl crc32_pclmul snd_soc_skl_ipc ghash_clmulni_intel snd_soc_sst_ipc intel_cstate snd_soc_sst_dsp joydev snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi intel_uncore snd_soc_core snd_hda_codec_realtek intel_rapl_perf snd_compress snd_hda_codec_generic efi_pstore wmi_bmof hid_multitouch serio_raw snd_hda_intel btusb btrtl tpm_crb btbcm snd_hda_codec btintel iTCO_wdt bluetooth pcspkr efivars iTCO_vendor_support iwlwifi uvcvideo snd_hda_core videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common snd_hwdep snd_pcm
[ 451.304478] videodev drbg cfg80211 ansi_cprng snd_timer media ecdh_generic ucsi_acpi typec_ucsi tpm_tis processor_thermal_device idma64 tpm_tis_core typec intel_soc_dts_iosf intel_pch_thermal mei_me tpm pcc_cpufreq mei rng_core thinkpad_acpi nvram snd soundcore ac rfkill battery int3403_thermal int340x_thermal_zone acpi_pad acpi_tad evdev int3400_thermal acpi_thermal_rel efivarfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 fscrypto ecb btrfs xor zstd_decompress zstd_compress xxhash raid6_pq libcrc32c crc32c_generic hid_microsoft hid_sensor_custom hid_sensor_hub intel_ishtp_hid wacom usbhid hid_generic i915 crc32c_intel i2c_algo_bit drm_kms_helper xhci_pci aesni_intel xhci_hcd psmouse e1000e drm aes_x86_64 nvme crypto_simd usbcore cryptd glue_helper thunderbolt i2c_i801 nvme_core i2c_hid intel_ish_ipc
[ 451.304493] hid intel_lpss_pci intel_ishtp intel_lpss usb_common thermal wmi video button
[ 451.304496] CR2: 0000000000022b08
[ 451.304497] ---[ end trace c88992ef0c24071d ]---

Unfortunately, this is way beyond my skill - any ideas what might have gone wrong and what I can do?

Working on HP Dragonfly, but little feature request

Hi

Thanks for the great development! It is working on my HP Elite Dragonfly 8MK79EA with the XMM7360!
However, I have two specific requests:

  1. Could you add a SIM PIN argument?
    I worked around it with the AT+CLCK=“SC”,1,“YOURPIN”,1
  2. Is there a way to turn it off?

Thanks and cheers!

Error loading module on X1 Carbon 6th Gen

Compiled per README, dmesg shows this error on module load:

[  273.450257] xmm7360 0000:03:00.0: enabling device (0000 -> 0002)
[  273.450791] xmm7360 0000:03:00.0: unknown modem status: 0xffffffff
[  273.451244] xmm7360: probe of 0000:03:00.0 failed with error -22

Kernel:

Linux travis-x1-carbon 5.4.8-1-ck-skylake #1 SMP PREEMPT Sun, 05 Jan 2020 11:27:56 +0000 x86_64 GNU/Linux

OS: Arch
Commit: 022c999

x1 carbon gen8 archlinux failed

archlinux# uname -r
5.9.2-arch1-1

make[1]: *** /lib/modules/5.9.2-arch1-1/build no file dir
so i mkdir build, but still failed
so i cp 5.9.1-XX/build subdir to 5.9.2-XX/ then it worked,but

sudo /sbin/insmod xmm7360.ko
insmod: ERROR: could not insert module xmm7360.ko: Invalid module format

Issues with Thinkpad X1 Yoga 4th Gen

Thanks for your awesome work! Unfortunately I was unable to get the modem to work on my Thinkpad X1 Yoga 4th Gen.

dmesg

[   77.671574] xmm7360: loading out-of-tree module taints kernel.
[   77.672659] xmm7360 0000:02:00.0: enabling device (0000 -> 0002)
[   77.673618] xmm7360 0000:02:00.0: modem is ready

Console Output:

~/src/xmm7360-pci(master ✗) sudo python3 rpc/open_xdatachannel.py
RPC executing UtaMsSmsInit
b'1600000002040000001602040000003011000100020400000000'
response: 0x0
RPC executing UtaMsCbsInit
b'1600000002040000001602040000002511000100020400000000'
response: 0x0
RPC executing UtaMsNetOpen
b'1600000002040000001602040000005311000100020400000000'
response: 0x0
RPC executing UtaMsCallCsInit
b'1600000002040000001602040000002411000100020400000000'
response: 0x0
RPC executing UtaMsCallPsInitialize
b'1600000002040000001602040000003a11000100020400000000'
response: 0x0
RPC executing UtaMsSsInit
b'1600000002040000001602040000002611000100020400000000'
response: 0x0
RPC executing UtaMsSimOpenReq
b'1600000002040000001602040000000111000100020400000000'
response: 0x0
RPC executing CsiFccLockQueryReq
b'1c00000002040000001c02040000018e11000101020411000101020400000000'
async_ack: 0x0
response: 0x0, 0x0, 0x2
FCC lock: state 0 mode 2
RPC executing CsiFccLockGenChallengeReq
b'1c00000002040000001c02040000019011000101020411000101020400000000'
async_ack: 0x0
response: 0x0, 0x58b728e7
RPC executing CsiFccLockVerChallengeReq
b'1c00000002040000001c02040000019211000101020411000101020441701c8f'
async_ack: 0x0
response: 0x1
RPC executing UtaModeSetReq
b'2200000002040000002202040000012f1100010002040000000002040000000f020400000001'
response: 0x0
RPC executing UtaMsCallPsAttachApnConfigReq
b'e11300000204000013e10204000001af110001010204110001010201005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc0204000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000055140204000000140204000000000000000000000000000000000000000000000000020400000000556502040000006802040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc0204000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000055140204000000140204000000000000000000000000000000000000000000000000020400000000556502040000006802040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc020400000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020200000204000000000204000000000204000000000204000000000204000000010204000000000204000000000204000000000204000000000204000000000204000000000204000000000204000000010204000000000204000000000204000004040204000000010204000000000204000000010204000000000204000000005514020400000014020400000000000000000000000000000000000000000000000002040000000355650204000000680204000000037765622e766f6461666f6e652e646500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc020400000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020200000204000000000204000000000204000000000204000000000204000000010204000000000204000000000204000000000204000000000204000000000204000000000204000000000204000000010204000000000204000000000204000004040204000000010204000000000204000000010204000000000204000000005514020400000014020400000000000000000000000000000000000000000000000002040000000355650204000000670204000000027765622e766f6461666f6e652e646500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020103020400000000'
async_ack: 0x0
response: 0x0, 0x0, 0x0
RPC executing UtaMsNetAttachReq
b'4500000002040000004502040000005c110001010204110001010201000204000000000204000000000204000000000204000000000202ffff0202ffff020400000000020400000000'
unsolicited: UtaMsSsLcsCapabilitiesIndCb: 0x0, 0x1, 0x10, 0x10, 0x10, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x0, 0x1, 0x1, 0x1, 0x1, 0x0
async_ack: 0x0
unsolicited: UtaMsNetExtBandStatusIndCb: 0x0, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x0, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x32, 0x5b, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x100, 0x3a0f18df, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x100, 0x3a0f18df, 0x32, 0x32, 0x32, 0x33, 0x32, 0x35, 0x32, 0x36, 0x32, 0x39, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x5, 0x35, 0x32, 0x35, 0x33, 0x35, 0x35, 0x35, 0x36, 0x35, 0x39, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x32, 0x4b, 0x5, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x12, 0x0, 0x0
unsolicited: UtaMsNetFdConfigIndCb: 0x0, 0x1, 0xff, 0x0, 0x0, 0x0, 0x5, 0x4, 0x0
unsolicited: UtaMsCpsSetModeIndCb: 0x0, 0x0, 0x0, 0x1, 0x0
unsolicited: UtaMsNetGprsClassIndCb: 0x0, 0x3, 0x1, 0x0
unknown: 0x1, 0x0, 0xf
unsolicited: UtaMsSimCardIndCb: 0x0, 0x15, 0xff, 0x1, 0x3, 0x0, bytearray(b';\x9e\x96\x80\x1f\xc7\x801\xe0s\xfe!\x1bf\xd0\x01\xa0t\x10\x00\xc5'), 0x0
unsolicited: UtaMsSimApplicationIndCb: 0x0, 0x40, bytearray(b'\xa0\x00\x00\x00\x87\x10\x02\xff\xff\xff\xff\x89\x00\x00\x00\x00'), 0xc, 0x0, 0x0, bytearray(b'b>\x82\x02x!\x84\x0c\xa0\x00\x00\x00\x87\x10\x02\xff\xff\xff\xff\x89\xa5\x11\x80\x01q\x81\x03\x01\n2\x82\x01\n\x83\x04\x00\x01Z\x0c\x8a\x01\x05\x8b\x03/\x06\x03\xc6\t\x90\x01\xc0\x83\x01\x01\x83\x01\x81\x81\x04\x00\x00\x0fN'), 0x0
unsolicited: UtaMsNetIsAttachAllowedIndCb: 0x0, 0x0, 0x0, 0x0
unsolicited: UtaMsSimInfoIndCb: 0x0, 0x0, 0x3, 0x0, 0x2fe2, bytearray(b'de'), bytearray(b'en'), bytearray(b'\xff\xff'), bytearray(b'\x00\x00\x00\x02'), 0xff, 0xa, 0xa, 0x3, 0x3, 0x1, 0x1, 0xff, 0x0, bytearray(b'\x98\x94\x02R\x91\x06a\x97\x95\x04'), 0x3, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x1, 0x1, 0x1, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x2, 0x1, 0x2, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x3, 0x1, 0x3, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x4, 0x1, 0x4, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x5, 0x1, 0x5, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x6, 0x1, 0x6, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x7, 0x1, 0x7, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x8, 0x1, 0x8, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x9, 0x1, 0x9, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0xa, 0x1, 0xa, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0xb, 0x1, 0xb, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0xc, 0x1, 0xc, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0xd, 0x1, 0xd, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0xe, 0x1, 0xe, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0xf, 0x1, 0xf, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x10, 0x1, 0x10, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x11, 0x1, 0x11, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x12, 0x1, 0x12, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x13, 0x1, 0x13, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x14, 0x1, 0x14, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x15, 0x1, 0x15, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x16, 0x1, 0x16, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x17, 0x1, 0x17, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x18, 0x1, 0x18, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x19, 0x1, 0x19, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x1a, 0x1, 0x1a, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x1b, 0x1, 0x1b, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x1c, 0x1, 0x1c, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x1d, 0x1, 0x1d, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x1e, 0x1, 0x1e, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x1f, 0x1, 0x1f, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x20, 0x1, 0x20, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x21, 0x1, 0x21, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x22, 0x1, 0x22, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x23, 0x1, 0x23, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x24, 0x1, 0x24, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x25, 0x1, 0x25, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x26, 0x1, 0x26, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x27, 0x1, 0x27, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x28, 0x1, 0x28, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x29, 0x1, 0x29, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x2a, 0x1, 0x2a, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x2b, 0x1, 0x2b, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x2c, 0x1, 0x2c, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x2d, 0x1, 0x2d, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x2e, 0x1, 0x2e, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x2f, 0x1, 0x2f, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0xb, 0x91, 0x30, 0x1, 0x30, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2004, 0x26, 0x10, 0x91, 0x31, 0x1, 0x31, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkProactiveCommandIndCb: 0x0, bytearray(b'\xd0\x0e\x81\x03\x01\x05\x00\x82\x02\x81\x82\x99\x03\x01\x02\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), 0x10, 0x32, 0x1, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0xff, 0x5, 0x4e, 0x91, 0x32, 0x0, 0x32, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkProactiveCommandIndCb: 0x0, bytearray(b'\xd0L\x81\x03\x01%\x00\x82\x02\x81\x82\x85\x11Vodafone Services\x8f\x10\x80SMS-Infodienste\x8f\x10\x81MMS-Infodienste\x8f\n\x82MobileFun\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), 0x4e, 0x33, 0x1, 0x0
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x0, 0xffff, 0x0, 0x32, 0x0, 0x0, 0x0, 0xff, 0x0, 0x0, 0x0, 0x0, 0x0, 0xffff, 0xffffffff, 0x0, 0xffff, 0xffff, 0x0
unsolicited: UtaMsNetCellChangeIndCb: 0x0, 0x1944e43, 0x0
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x0, 0xffff, 0x0, 0x32, 0x2, 0x0, 0x2, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0xaea0, 0x1944e43, 0x0, 0x3, 0x106, 0x0
response: 0x0, 0xffffffff, 0x5, 0x2, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x5, 0x0, 0x2, 0x1, 0x0
Attach failed - waiting to see if we just weren't ready
unsolicited: UtaMsNetGprsClassIndCb: 0x0, 0x2, 0x3, 0x0
unsolicited: UtaMsNetRegistrationInfoIndCb: 0x0, 0x0, 0x0, 0x2, 0x106, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0xffff, 0xffffffff, 0xffff, 0xffff, 0x0, 0x0, 0xfe, 0xfffe, 0x0, 0xffff, 0xffff, 0xfffe, 0x0, 0xffff, 0xffff, 0x0, 0x0, 0x32, 0x2, 0x0, 0x3, 0x106, 0x0, 0x0, 0xff, 0xc, 0x5, 0xff, 0x1, 0x2, 0x0
unsolicited: UtaMsNetIsAttachAllowedIndCb: 0x0, 0xff, 0x1, 0x0
RPC executing UtaMsNetAttachReq
b'4500000002040000004502040000005c110001010204110001010201000204000000000204000000000204000000000204000000000202ffff0202ffff020400000000020400000000'
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x0, 0xffff, 0x0, 0x32, 0x2, 0x0, 0x2, 0x1, 0x0, 0x1, 0x0, 0x0, 0x0, 0xaea0, 0x1944e43, 0x0, 0x3, 0x106, 0x0
async_ack: 0x0
unsolicited: UtaMsNetIsAttachAllowedIndCb: 0x0, 0x0, 0x0, 0x0
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x0, 0xffff, 0x0, 0x4b, 0x2, 0x0, 0x2, 0x1, 0x0, 0x1, 0x0, 0x0, 0x0, 0xaea0, 0x1944e43, 0x0, 0x3, 0x106, 0x0
unsolicited: UtaMsNetCellChangeIndCb: 0x0, 0xffffffff, 0x0
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x0, 0xffff, 0x0, 0x32, 0x2, 0x0, 0x2, 0x1, 0x0, 0x1, 0x0, 0x0, 0x0, 0xaea0, 0x1944e43, 0x0, 0x3, 0x106, 0x0
unsolicited: UtaMsNetCellChangeIndCb: 0x0, 0x1944e43, 0x0
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x0, 0xffff, 0x0, 0x32, 0x2, 0x0, 0x2, 0x1, 0x0, 0x1, 0x0, 0x0, 0x0, 0xaea0, 0x1944e43, 0x0, 0x3, 0x106, 0x0
response: 0x0, 0xffffffff, 0x2, 0x2, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x0, 0x2, 0x1, 0x0
Attach failed again, giving up

git diff

diff --git a/rpc/open_xdatachannel.py b/rpc/open_xdatachannel.py
index 9042838..0edb93f 100755
--- a/rpc/open_xdatachannel.py
+++ b/rpc/open_xdatachannel.py
@@ -22,7 +22,7 @@ rpc.do_fcc_unlock(r)
 # disable aeroplane mode if had been FCC-locked. first and second args are probably don't-cares
 r.execute('UtaModeSetReq', rpc.pack('LLL', 0, 15, 1))
 
-r.execute('UtaMsCallPsAttachApnConfigReq', rpc.pack_UtaMsCallPsAttachApnConfigReq("telstra.internet"), is_async=True)
+r.execute('UtaMsCallPsAttachApnConfigReq', rpc.pack_UtaMsCallPsAttachApnConfigReq("web.vodafone.de"), is_async=True)
 
 attach = r.execute('UtaMsNetAttachReq', rpc.pack_UtaMsNetAttachReq(), is_async=True)
 _, status = rpc.unpack('nn', attach['body'])

HP EliteBook 830 G5

Hi. Would i like to know what status of EliteBook support? Can I check my laptop for modem health and how do I do it?

Wwan0 unspec, cannot connect to network

Hi,

First: great work, thanks for sharing this.
I can run the insertion of the module and can see the modem being ready in dmesg.

sudo python3 rpc/open_xdatachannel.py --apn live.vodafone.com
Gives me (the last 4 lines)

unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0xff, 0x5, 0x0, 0x90, 0x1, 0x1, 0x1, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0xff, 0x0, 0x0, 0x0, 0x1, 0x0, 0x1, 0x1, 0x1, 0x0
unsolicited: UtaMsSimFullAccessIndCb: 0x0
unsolicited: UtaMsSmsSimMsgCacheFinishedIndCb: 0x0, 0x0

Ifconfig says

wwan0: flags=4240<POINTOPOINT,NOARP,MULTICAST>  mtu 1500
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

The unspecced wwan does not look as the required endresult. Is there a suggestion for what I can do to bring this modem online?

(sim has no pin, works on iPad, I'm on a ThinkPad x1 carbon 6th gen)

X1 Carbon 7 issue

Hi there,

first of all thanks for the work done, much appreciated.

I'm trying to run it with the following command on my new X1 Carbon 7th gen:
sudo python3 rpc/open_xdatachannel.py --apn internet
and in the output I find this line:
INFO:root:Attach failed - waiting to see if we just weren't ready

dmesg gives this output:

[  294.088147] xmm7360: module verification failed: signature and/or required key missing - tainting kernel
[  294.104187] xmm7360 0000:02:00.0: enabling device (0000 -> 0002)
[  294.105079] xmm7360 0000:02:00.0: modem is ready

ip a gives this output:

4: wwan0: <POINTOPOINT,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/none 

The link is down and if I try to add a New connection in the Advanced Network Configuration if does not recognize the wwan0 as a mobile broadband modem so I cannot associate it.
As I understand by your documentation the python command should already connect the modem and get an IP and configure the route.

Any other things I should try?

Bringing up IP does not always succeed, failing with NameError: name 'ip_addr' is not defined

Hello,

First I as the others also would like to thank for the awesome work. I just decided to check into the mobile broadband support again today, and found this.

It loads fine, when trying to run the "open_xdatachannel.py" however I get the following trace.
The interface is created and I get a link-local IPv6 address but nothing else. This may be related to the SIM card as I don't know the status of it so I will try again with a new card tomorrow. Meanwhile, if the SIM is not the issue maybe you find the trace useful anyway.

(IPv4Address('0.0.0.0'), IPv4Address('0.0.0.0'), IPv4Address('0.0.0.0'))
{'v4': [], 'v6': []}
Traceback (most recent call last):
File "rpc/open_xdatachannel.py", line 47, in
address=ip_addr)
NameError: name 'ip_addr' is not defined

Modem stuck in boot: (unknown modem status: 0xfeedb007)

My modem seems to be stuck in boot mode (0xfeedb007). Could this be an issue with the modem?

$ sudo insmod xmm7360.ko
.. a few seconds pass ..
$ dmesg | tail
...
[   57.940546] xmm7360 0000:04:00.0: enabling device (0000 -> 0002)
[   57.940799] xmm7360 0000:04:00.0: modem still booting, waiting...
[   78.685832] xmm7360 0000:04:00.0: unknown modem status: 0xfeedb007
[   78.686077] xmm7360: probe of 0000:04:00.0 failed with error -22

Initialisation errors

Hi,
I have a xmm7560 on a HP Elitebook.
I have successfully compiled the driver and loaded it.
When i launch open_xdatachannel.py with apn, i don't have IP address and uncessfull initialisation:

RPC executing UtaMsSmsInit b'1600000002040000001602040000003011000100020400000000' response: 0x0 RPC executing UtaMsCbsInit b'1600000002040000001602040000002511000100020400000000' response: 0xffffffa8 RPC executing UtaMsNetOpen b'1600000002040000001602040000005311000100020400000000' response: 0xffffffa8 RPC executing UtaMsCallCsInit b'1600000002040000001602040000002411000100020400000000' response: 0xffffffa8 RPC executing UtaMsCallPsInitialize b'1600000002040000001602040000003a11000100020400000000' response: 0xfffffff7 RPC executing UtaMsSsInit b'1600000002040000001602040000002611000100020400000000' response: 0xffffffa8 RPC executing UtaMsSimOpenReq b'1600000002040000001602040000000111000100020400000000' response: 0xffffffa8 RPC executing CsiFccLockQueryReq b'1c00000002040000001c02040000018e11000101020411000101020400000000' async_ack: 0x0
the script freeze at this point and no connexion.

What are theses error responses ?

Thank for your help

T14 AMD - got wwan0 and ip - how to proceed

Thanks a lot for taking care of things lenovo does not!!!

I finally got the module built on my brand new T14 with Ryzen. (Kubuntu 20.04 with mainline kernel 5.8.0.rc7)

I got around the problem of no wwan0 after resume with a reboot. Bringing the interface wwan0 down with "sudo ip link wwan0 down" does not work - fails with interface not found.

So I now got a wwan0 interface with an ip address, but how can I go on? Internet does not work yet. Modem Manager integration ist not there yet.

Thanks for any hint.

BR
Peter

Works for Linux Kubuntu Focal@Dell Lattitude 5411

Manage to compile, install and run for:

  • PCIe 01:00.0 Wireless controller [0d40]: Intel Corporation XMM7360 LTE Advanced Modem (rev 01)
  • Dell Lattitude 5411
  • Kubuntu Focal 20.04.1 LTS

Steps:

  1. sudo pip3 install pyroute2
  2. sudo pip3 install --user ConfigArgParse
  3. make
  4. sudo insmod ./xmm7360.ko
  5. sudo python3 rpc/open_xdatachannel.py --apn internet

Thank you.

Thinkpad X395 - Attach failed again, giving up

Hello, I am unable to get my modem working on my Thinkpad X395.

Console:

sudo python3 rpc/open_xdatachannel.py --apn internet
RPC executing UtaMsSmsInit
b'1600000002040000001602040000003011000100020400000000'
response: 0x0
RPC executing UtaMsCbsInit
b'1600000002040000001602040000002511000100020400000000'
response: 0x0
RPC executing UtaMsNetOpen
b'1600000002040000001602040000005311000100020400000000'
response: 0x0
RPC executing UtaMsCallCsInit
b'1600000002040000001602040000002411000100020400000000'
unsolicited: UtaMsNetGprsClassIndCb: 0x0, 0x2, 0x1, 0x0
response: 0x0
RPC executing UtaMsCallPsInitialize
b'1600000002040000001602040000003a11000100020400000000'
response: 0x0
RPC executing UtaMsSsInit
b'1600000002040000001602040000002611000100020400000000'
response: 0x0
RPC executing UtaMsSimOpenReq
b'1600000002040000001602040000000111000100020400000000'
response: 0x0
RPC executing CsiFccLockQueryReq
b'1c00000002040000001c02040000018e11000101020411000101020400000000'
async_ack: 0x0
response: 0x0, 0x1, 0x2
FCC lock: state 1 mode 2
RPC executing UtaModeSetReq
b'2200000002040000002202040000012f1100010002040000000002040000000f020400000001'
response: 0x0
unsolicited: UtaModeSetRspCb: 0x1, 0x0, 0xf
RPC executing UtaMsCallPsAttachApnConfigReq
b'e11300000204000013e10204000001af110001010204110001010201005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc0204000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000055140204000000140204000000000000000000000000000000000000000000000000020400000000556502040000006802040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc0204000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000055140204000000140204000000000000000000000000000000000000000000000000020400000000556502040000006802040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc02040000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002020000020400000000020400000000020400000000020400000000020400000001020400000000020400000000020400000000020400000000020400000000020400000000020400000000020400000001020400000000020400000000020400000404020400000001020400000000020400000001020400000000020400000000551402040000001402040000000000000000000000000000000000000000000000000204000000035565020400000068020400000003696e7465726e65740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc02040000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002020000020400000000020400000000020400000000020400000000020400000001020400000000020400000000020400000000020400000000020400000000020400000000020400000000020400000001020400000000020400000000020400000404020400000001020400000000020400000001020400000000020400000000551402040000001402040000000000000000000000000000000000000000000000000204000000035565020400000067020400000002696e7465726e65740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020103020400000000'
async_ack: 0x0
response: 0x0, 0x0, 0x0
RPC executing UtaMsNetAttachReq
b'4500000002040000004502040000005c110001010204110001010201000204000000000204000000000204000000000204000000000202ffff0202ffff020400000000020400000000'
async_ack: 0x0
unsolicited: UtaMsNetIsAttachAllowedIndCb: 0x0, 0x0, 0x0, 0x0
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x0, 0xffff, 0x0, 0x4b, 0x2, 0x0, 0x2, 0x1, 0x1, 0x1, 0x0, 0x0, 0x0, 0x3fe, 0x295d2c4, 0x0, 0x2, 0x106, 0x0
unsolicited: UtaMsNetCellChangeIndCb: 0x0, 0xffffffff, 0x0
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x0, 0xffff, 0x0, 0x32, 0x2, 0x0, 0x2, 0x1, 0x1, 0x1, 0x0, 0x0, 0x0, 0x3fe, 0x295d2c4, 0x0, 0x2, 0x106, 0x0
unsolicited: UtaMsNetCellChangeIndCb: 0x0, 0x295d2c4, 0x0
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x0, 0xffff, 0x0, 0x32, 0x2, 0x0, 0x2, 0x1, 0x1, 0x1, 0x0, 0x0, 0x0, 0x3fe, 0x295d2c4, 0x0, 0x2, 0x106, 0x0
response: 0x0, 0xffffffff, 0x2, 0x2, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x0, 0x2, 0x1, 0x0
INFO:root:Attach failed - waiting to see if we just weren't ready
unsolicited: UtaMsNetRegistrationInfoIndCb: 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xffff, 0xffffffff, 0xffff, 0xffff, 0x0, 0x0, 0xfe, 0xfffe, 0x0, 0xffff, 0xffff, 0xfffe, 0x0, 0xffff, 0xffff, 0x0, 0x0, 0x32, 0x2, 0x0, 0x2, 0x106, 0x0, 0x0, 0xff, 0x1, 0x2, 0xff, 0x1, 0x2, 0x0
unsolicited: UtaMsNetIsAttachAllowedIndCb: 0x0, 0xff, 0x1, 0x0
RPC executing UtaMsNetAttachReq
b'4500000002040000004502040000005c110001010204110001010201000204000000000204000000000204000000000204000000000202ffff0202ffff020400000000020400000000'
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x0, 0xffff, 0x0, 0x32, 0x2, 0x0, 0x2, 0x1, 0x1, 0x1, 0x0, 0x0, 0x0, 0x3fe, 0x295d2c4, 0x0, 0x2, 0x106, 0x0
async_ack: 0x0
unsolicited: UtaMsNetIsAttachAllowedIndCb: 0x0, 0x0, 0x0, 0x0
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x0, 0xffff, 0x0, 0x4b, 0x2, 0x0, 0x2, 0x1, 0x1, 0x1, 0x0, 0x0, 0x0, 0x3fe, 0x295d2c4, 0x0, 0x2, 0x106, 0x0
unsolicited: UtaMsNetCellChangeIndCb: 0x0, 0xffffffff, 0x0
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x0, 0xffff, 0x0, 0x32, 0x2, 0x0, 0x2, 0x1, 0x1, 0x1, 0x0, 0x0, 0x0, 0x3fe, 0x295d2c4, 0x0, 0x2, 0x106, 0x0
unsolicited: UtaMsNetCellChangeIndCb: 0x0, 0x295d2c4, 0x0
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x0, 0xffff, 0x0, 0x32, 0x2, 0x0, 0x2, 0x1, 0x1, 0x1, 0x0, 0x0, 0x0, 0x3fe, 0x295d2c4, 0x0, 0x2, 0x106, 0x0
response: 0x0, 0xffffffff, 0x2, 0x2, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x0, 0x2, 0x1, 0x0
ERROR:root:Attach failed again, giving up

dmesg:

[  328.049676] xmm7360 0000:04:00.0: enabling device (0000 -> 0002)
[  328.050065] xmm7360 0000:04:00.0: modem is ready
[  341.591523] xmm7360 0000:04:00.0: modem is ready


rpc.py:

response: 0x0, 0x16, bytearray(b'18500.5001.00.01.20.75')
Firmware version: bytearray(b'18500.5001.00.01.20.75')

Works on Lenovo T14s AMD Manjaro 20.1.2

second_try.log
fist_try.log

Managed to compile it after installing linux-headers and pyroute2. Using a Telecom SIM and disabled WLAN interface.
First execution throws a exception:

NFO:root:IP address: 0.0.0.0, 0.0.0.0, 0.0.0.0
INFO:root:DNS server(s): 
0.0.0.0
0.0.0.0
0.0.0.0
Traceback (most recent call last):
  File "rpc/open_xdatachannel.py", line 89, in <module>
    address=ip_addr)
NameError: name 'ip_addr' is not defined

but waiting a few seconds the script runs fine and i get a wwan0 interface with an ip-adress along with a working connection!

attached logs of first and second try.

Thanks for the awesome work!

System hangs on resume after suspend due to xmm7360 - workaround exists

Whenever the xmm7360 kernel module is loaded (and maybe some connection is still active) on supspend,
my Debian 10 system hangs on resume with a black screen, and I need to hard-reset it.

Here is a workaround which simply removes the module on suspend:
Add a file /usr/lib/systemd/system-sleep/re-suspend.sh containing

#!/bin/bash
if [ "$1" == "pre" ]; then
    rmmod xmm7360
fi

and use chmod u+x /usr/lib/systemd/system-sleep/pre-suspend.sh to make it executable.

Second command won't finish

Hello,

I am using a Thinkpad T480 with opensuse Tumbleweed. (tested it with arch, too)
When I run the second command,

sudo python3 rpc/open_xdatachannel.py --apn your.apn.here

I just get this wall of code and it doesnt finish. I still get the wwan0 interface, but it doesnt work.

RPC executing UtaMsSmsInit b'1600000002040000001602040000003011000100020400000000' response: 0x0 RPC executing UtaMsCbsInit b'1600000002040000001602040000002511000100020400000000' response: 0x0 RPC executing UtaMsNetOpen b'1600000002040000001602040000005311000100020400000000' response: 0x0 RPC executing UtaMsCallCsInit b'1600000002040000001602040000002411000100020400000000' response: 0x0 RPC executing UtaMsCallPsInitialize b'1600000002040000001602040000003a11000100020400000000' response: 0x0 RPC executing UtaMsSsInit b'1600000002040000001602040000002611000100020400000000' response: 0x0 RPC executing UtaMsSimOpenReq b'1600000002040000001602040000000111000100020400000000' response: 0x0 RPC executing CsiFccLockQueryReq b'1c00000002040000001c02040000018e11000101020411000101020400000000' async_ack: 0x0 response: 0x0, 0x0, 0x2 FCC lock: state 0 mode 2 RPC executing CsiFccLockGenChallengeReq b'1c00000002040000001c02040000019011000101020411000101020400000000' async_ack: 0x0 response: 0x0, 0x464dd6b2 RPC executing CsiFccLockVerChallengeReq b'1c00000002040000001c020400000192110001010204110001010204acc84c64' async_ack: 0x0 response: 0x1 RPC executing UtaModeSetReq b'2200000002040000002202040000012f1100010002040000000002040000000f020400000001' response: 0x0 unsolicited: UtaMsCpsSetModeIndCb: 0x0, 0x0, 0x0, 0x0, 0x0 unsolicited: UtaModeSetRspCb: 0x1, 0x0, 0xf RPC executing UtaMsCallPsAttachApnConfigReq b'e11300000204000013e10204000001af110001010204110001010201005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc0204000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000055140204000000140204000000000000000000000000000000000000000000000000020400000000556502040000006802040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc0204000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000055140204000000140204000000000000000000000000000000000000000000000000020400000000556502040000006802040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc02040000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002020000020400000000020400000000020400000000020400000000020400000001020400000000020400000000020400000000020400000000020400000000020400000000020400000000020400000001020400000000020400000000020400000404020400000001020400000000020400000001020400000000020400000000551402040000001402040000000000000000000000000000000000000000000000000204000000035565020400000068020400000003696e7465726e65742e74656c656b6f6d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc02040000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002020000020400000000020400000000020400000000020400000000020400000001020400000000020400000000020400000000020400000000020400000000020400000000020400000000020400000001020400000000020400000000020400000404020400000001020400000000020400000001020400000000020400000000551402040000001402040000000000000000000000000000000000000000000000000204000000035565020400000067020400000002696e7465726e65742e74656c656b6f6d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020103020400000000' async_ack: 0x0 response: 0x0, 0x0, 0x0 RPC executing UtaMsNetAttachReq b'4500000002040000004502040000005c110001010204110001010201000204000000000204000000000204000000000204000000000202ffff0202ffff020400000000020400000000' async_ack: 0x0 response: 0x0, 0xffffffff, 0x5, 0x5, 0x12, 0x0, 0x0, 0x0, 0x0, 0x0, 0x5, 0x0, 0x5, 0x12, 0x0 INFO:root:Attach failed - waiting to see if we just weren't ready unsolicited: UtaMsSimCardIndCb: 0x0, 0x16, 0xff, 0x1, 0x3, 0x0, bytearray(b';\x9f\x96\x80\x1f\xc6\x801\xe0s\xfe!\x1bf\xd0\x02!\xab\x11\x18\x01\x80'), 0x0 unsolicited: UtaMsSimApplicationIndCb: 0x0, 0x44, bytearray(b'\xa0\x00\x00\x00\x87\x10\x02\xffI\x94 \x89\x03\x10\x00\x00'), 0x10, 0x0, 0x0, bytearray(b'bB\x82\x02x!\x84\x10\xa0\x00\x00\x00\x87\x10\x02\xffI\x94 \x89\x03\x10\x00\x00\xa5\x11\x80\x01a\x81\x03\x01\n2\x82\x01\n\x83\x04\x00\x00\x9eo\x8a\x01\x05\x8b\x03/\x06\x08\xc6\t\x90\x01@\x83\x01\x01\x83\x01\x81\x81\x04\x00\x00\r\xec'), 0x0 unsolicited: UtaMsSimInfoIndCb: 0x0, 0x0, 0x1, 0x0, 0x2fe2, bytearray(b'de'), bytearray(b'en'), bytearray(b'\xff\xff'), bytearray(b'\x01\x00\x01\x02'), 0xff, 0xa, 0xa, 0x3, 0x3, 0x1, 0x2, 0xff, 0x1, bytearray(b'\x98\x94 \x00\x00Q2)es'), 0x3, 0x0 unsolicited: UtaMsSimMccMncIndCb: 0x0, 0x0, 0x1, 0x106, 0x0 unsolicited: UtaMsSimLockStatusIndCb: 0x0, 0x8, bytearray(b'\x00\x00'), 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0x1, 0x0, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0xff, 0x1, 0x0, 0x0, 0x5, 0x1, 0x0, 0x0, 0x0, 0xff, 0x1, 0x0, 0x0, 0x5, 0x2, 0x0, 0x0, 0x0, 0xff, 0x1, 0x0, 0x0, 0x5, 0x3, 0x0, 0x0, 0x0, 0xff, 0x1, 0x0, 0x0, 0x5, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x5, 0x8, 0x0, 0x0, 0x5, 0x0 unsolicited: UtaMsSimFdnStateIndCb: 0x0, 0x1, 0x1, 0x0, 0x0 unsolicited: UtaMsSimBdnStateIndCb: 0x0, 0x0, 0x1, 0x0, 0x0 unsolicited: UtaMsSimInitIndCb: 0x0, 0x0, 0x1, 0x0, 0x6f07, 0x0, 0x1, bytearray(b')&\x10\x07 \x90\x19\x00'), 0x8, 0x2, 0x0, 0x0 unsolicited: UtaMsSimTkProactiveCommandIndCb: 0x0, bytearray(b'\xd0\r\x81\x03\x01\x05\x00\x82\x02\x81\x82\x99\x02\t\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), 0xf, 0x1, 0x1, 0x0 unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0xff, 0x5, 0x6b, 0x91, 0x1, 0x0, 0x1, 0x1, 0x0, 0x0 unsolicited: UtaMsSimTkProactiveCommandIndCb: 0x0, bytearray(b'\xd0i\x81\x03\x01%\x00\x82\x02\x81\x82\x85\x07Special\x8f\x0f\x02SMS & MMS News\x8f\n\x03Downloads\x8f\x0e\x05Chat & Dating\x8f\x0f\x06Umgebungssuche\x8f\x0e\x07Kundenservice\x8f\x07\x08Extras\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), 0x6b, 0x2, 0x1, 0x0 unsolicited: UtaMsSimFullAccessIndCb: 0x0 unsolicited: UtaMsSmsSimMsgCacheFinishedIndCb: 0x0, 0x0 unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x32ff, 0x25, 0x0, 0x90, 0x2, 0x1, 0x2, 0x1, 0x3, 0x0 unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x8, 0xff, 0x26, 0xb, 0x91, 0x3, 0x1, 0x3, 0x1, 0x0, 0x0 unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x8, 0xff, 0x26, 0x9e, 0x91, 0x4, 0x1, 0x4, 0x1, 0x0, 0x0 unsolicited: UtaMsSimTkProactiveCommandIndCb: 0x0, bytearray(b'\xd0\x81\x9b\x81\x03\x01\x13\x00\x82\x02\x81\x83\x05\x00\x86\x07\x91\x94q\x01g\x10\x99\x8b\x81\x84\x01\xff\x05\x81\x00\x10\xf9\x00\xf4z\x053\x82\x82\x81\xff\xff\x81\x81\x81\x81\x81\x81\x81\x81\x81\xff\xff\xff\xff\xff\x01\xff\x01\x01\x01\x01\xff\xff\xff\xff\xff\x01\x01\x81\x81\x81\x01\x81\x01\x01\x01\xff\xff\xff\x81\xff\xff\xff\xff\xff\x05\xff\x08\x01H\x07\x02\x15\x01$\n\xff\xff\x7f\x9d\xff\xbf\x1f\xe2\xc3\xeeb\t\x03Q\x81\x04P\x86U\x11\xf8\x01\n\x98\x94 \x00\x00Q2)es\x02\n\x01\xe2A\x01\x00\x01\x00\xc4\x01\xa1\x04\x02\x15\xff\n\t\x08)&\x10\x07 \x90\x19\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), 0x9e, 0x5, 0x1, 0x0 unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2026, 0x13, 0x0, 0x90, 0x5, 0x1, 0x5, 0x1, 0x0, 0x0 unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x8, 0xff, 0x26, 0xb, 0x91, 0x6, 0x1, 0x6, 0x1, 0x0, 0x0 unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x8, 0xff, 0x26, 0x9e, 0x91, 0x7, 0x1, 0x7, 0x1, 0x0, 0x0 unsolicited: UtaMsSimTkProactiveCommandIndCb: 0x0, bytearray(b'\xd0\x81\x9b\x81\x03\x01\x13\x00\x82\x02\x81\x83\x05\x00\x86\x07\x91\x94q\x01g\x10\x99\x8b\x81\x84\x01\xff\x05\x81\x00\x10\xf9\x00\xf4z\x053\x82\x82\x81\xff\xff\x81\x81\x81\x81\x81\x81\x81\x81\x81\xff\xff\xff\xff\xff\x01\xff\x01\x01\x01\x01\xff\xff\xff\xff\xff\x01\x01\x81\x81\x81\x01\x81\x01\x01\x01\xff\xff\xff\x81\xff\xff\xff\xff\xff\x05\xff\x08\x01H\x07\x02\x15\x01$\n\xff\xff\x7f\x9d\xff\xbf\x1f\xe2\xc3\xeeb\t\x03Q\x81\x04P\x86U\x11\xf8\x01\n\x98\x94 \x00\x00Q2)es\x02\n\x01\xe2A\x01\x00\x01\x00\xc4\x01\xa1\x04\x02\x15\xff\n\t\x08)&\x10\x07 \x90\x19\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), 0x9e, 0x8, 0x1, 0x0 unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2026, 0x13, 0x0, 0x90, 0x8, 0x1, 0x8, 0x1, 0x0, 0x0 unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x8, 0xff, 0x26, 0xb, 0x91, 0x9, 0x1, 0x9, 0x1, 0x0, 0x0 unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x8, 0xff, 0x26, 0x9e, 0x91, 0xa, 0x1, 0xa, 0x1, 0x0, 0x0 unsolicited: UtaMsSimTkProactiveCommandIndCb: 0x0, bytearray(b'\xd0\x81\x9b\x81\x03\x01\x13\x00\x82\x02\x81\x83\x05\x00\x86\x07\x91\x94q\x01g\x10\x99\x8b\x81\x84\x01\xff\x05\x81\x00\x10\xf9\x00\xf4z\x053\x82\x82\x81\xff\xff\x81\x81\x81\x81\x81\x81\x81\x81\x81\xff\xff\xff\xff\xff\x01\xff\x01\x01\x01\x01\xff\xff\xff\xff\xff\x01\x01\x81\x81\x81\x01\x81\x01\x01\x01\xff\xff\xff\x81\xff\xff\xff\xff\xff\x05\xff\x08\x01H\x07\x02\x15\x01$\n\xff\xff\x7f\x9d\xff\xbf\x1f\xe2\xc3\xeeb\t\x03Q\x81\x04P\x86U\x11\xf8\x01\n\x98\x94 \x00\x00Q2)es\x02\n\x01\xe2A\x01\x00\x01\x00\xc4\x01\xa1\x04\x02\x15\xff\n\t\x08)&\x10\x07 \x90\x19\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), 0x9e, 0xb, 0x1, 0x0 unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0x2026, 0x13, 0x0, 0x90, 0xb, 0x1, 0xb, 0x1, 0x0, 0x0

Works with Lenovo ThinkPad X390 under Debian 10 - except automatic DNS setup

Thanks @abrasive for this new solution - very cool!
It works much better for me than https://github.com/xmm7360/xmm7360-usb-modeswitch
Praying before running sudo python3 rpc/open_xdatachannel.py the first time apparently did help :-)

As already mentioned by another user in #7, I also need to set up DNS manually.
I do get some direct routing - ip route yields

default dev wwan0 proto static

From two of the many lines of output of the Python script (in my case for web.vodafone.de):

(IPv4Address('0.0.0.82'), IPv4Address('31.213.168.1'), IPv4Address('100.98.7.178'))
{'v4': [IPv4Address('139.7.30.125'), IPv4Address('139.7.30.126'), IPv4Address('139.7.30.125')], 'v6': [IPv6Address('2a01:860:0:300::fffe:53'), IPv6Address('2a01:860:0:300::ffff:53')]}

I can copy and use one of the DNS server IP addresses. For instance:

echo 'nameserver 139.7.30.126' > /etc/resolv.conf

but I wonder why this is not done somehow automatically?

"No such file or directory: /dev/xmm0/rpc" after setting the interface down.

➜ sudo python3 rpc/open_xdatachannel.py --apn h2g2
Traceback (most recent call last):
  File "rpc/open_xdatachannel.py", line 30, in <module>
    r = rpc.XMMRPC()
  File "/home/sudoforge/code/src/github.com/xmm7360/xmm7360-pci/rpc/rpc.py", line 18, in __init__
    self.fp = os.open(path, os.O_RDWR | os.O_SYNC)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/xmm0/rpc'

Offical Linux Support

First: Nice Work!!!

I have not been successfull running this fix but anyway...

Has anyone news about the official driver support? Or the ModemManager Integration?

Can't connect to wwan0: Device class NMDeviceGeneric had no complete_connection method

Hello!

Network interface wwan0 is successfully created with IP assigned:

        inet 100.64.21.213  netmask 0.0.0.0  destination 100.64.21.213
        inet6 fe80::3c9d:27bb:f56d:6301  prefixlen 64  scopeid 0x20<link>
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

I then followed this instruction on how to connect to wwan0 interface. But unfortunately when I execute command to connect sudo nmcli device connect wwan0 I get the following error:

Error: Failed to add/activate new connection: Device class NMDeviceGeneric had no complete_connection method

I'm not sure what I'm doing wrong. Thank you for your help.

How to cleanly shut down and reopen the modem connection?

How is one supposed to close and re-open the modem connection via device wwan0?
When I use

sudo ip link set wwan0 down

the device disappers form the output of ifconfig
but the next connection attempt fails with

Traceback (most recent call last):
  File "rpc/open_xdatachannel.py", line 64, in <module>
    address=ip_addr)
  File "/usr/local/lib/python3.7/dist-packages/pyroute2/iproute/linux.py", line 1448, in addr
    terminate=lambda x: x['header']['type'] ==
  File "/usr/local/lib/python3.7/dist-packages/pyroute2/netlink/nlsocket.py", line 373, in nlm_request
    return tuple(self._genlm_request(*argv, **kwarg))
  File "/usr/local/lib/python3.7/dist-packages/pyroute2/netlink/nlsocket.py", line 870, in nlm_request
    callback=callback):
  File "/usr/local/lib/python3.7/dist-packages/pyroute2/netlink/nlsocket.py", line 376, in get
    return tuple(self._genlm_get(*argv, **kwarg))
  File "/usr/local/lib/python3.7/dist-packages/pyroute2/netlink/nlsocket.py", line 707, in get
    raise msg['header']['error']
pyroute2.netlink.exceptions.NetlinkError: (17, 'File exists')

It appears more clean to use rmmod xmm7360.

Yet then the Python script gives errors unless one manually re-inserts the kernel module, e.g.,

sudo insmod xmm7360.ko

Lenovo T590 issues (ERROR:root:Attach failed again, giving up)

On my T590 with the L850-GL WWAN, I've tried this to get it to work. Make && make load gives me this:

make && make load
make -C /lib/modules/5.4.17-200.fc31.x86_64/build M=/home/ghager/Downloads/xmm7360-pci modules
make[1]: Entering directory '/usr/src/kernels/5.4.17-200.fc31.x86_64'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory '/usr/src/kernels/5.4.17-200.fc31.x86_64'
sudo /sbin/rmmod xmm7360
sudo /sbin/insmod xmm7360.ko

Seems like all is well, but when I run the next command, it just gives me the below error:

sudo python rpc/open_xdatachannel.py --apn VZWINTERNET
RPC executing UtaMsSmsInit
b'1600000002040000001602040000003011000100020400000000'
response: 0x0
RPC executing UtaMsCbsInit
b'1600000002040000001602040000002511000100020400000000'
response: 0x0
RPC executing UtaMsNetOpen
b'1600000002040000001602040000005311000100020400000000'
response: 0x0
RPC executing UtaMsCallCsInit
b'1600000002040000001602040000002411000100020400000000'
unsolicited: UtaMsNetGprsClassIndCb: 0x0, 0x3, 0x1, 0x0
response: 0x0
RPC executing UtaMsCallPsInitialize
b'1600000002040000001602040000003a11000100020400000000'
response: 0x0
RPC executing UtaMsSsInit
b'1600000002040000001602040000002611000100020400000000'
response: 0x0
RPC executing UtaMsSimOpenReq
b'1600000002040000001602040000000111000100020400000000'
response: 0x0
RPC executing CsiFccLockQueryReq
b'1c00000002040000001c02040000018e11000101020411000101020400000000'
async_ack: 0x0
response: 0x0, 0x1, 0x2
FCC lock: state 1 mode 2
RPC executing UtaModeSetReq
b'2200000002040000002202040000012f1100010002040000000002040000000f020400000001'
response: 0x0
unsolicited: UtaModeSetRspCb: 0x1, 0x0, 0xf
RPC executing UtaMsCallPsAttachApnConfigReq
b'e11300000204000013e10204000001af110001010204110001010201005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc0204000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000055140204000000140204000000000000000000000000000000000000000000000000020400000000556502040000006802040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc0204000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000055140204000000140204000000000000000000000000000000000000000000000000020400000000556502040000006802040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc02040000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002020000020400000000020400000000020400000000020400000000020400000001020400000000020400000000020400000000020400000000020400000000020400000000020400000000020400000001020400000000020400000000020400000404020400000001020400000000020400000001020400000000020400000000551402040000001402040000000000000000000000000000000000000000000000000204000000035565020400000068020400000003565a57494e5445524e45540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc02040000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002020000020400000000020400000000020400000000020400000000020400000001020400000000020400000000020400000000020400000000020400000000020400000000020400000000020400000001020400000000020400000000020400000404020400000001020400000000020400000001020400000000020400000000551402040000001402040000000000000000000000000000000000000000000000000204000000035565020400000067020400000002565a57494e5445524e45540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020103020400000000'
async_ack: 0x0
response: 0x0, 0x0, 0x0
RPC executing UtaMsNetAttachReq
b'4500000002040000004502040000005c110001010204110001010201000204000000000204000000000204000000000204000000000202ffff0202ffff020400000000020400000000'
async_ack: 0x0
unsolicited: UtaMsNetIsAttachAllowedIndCb: 0x0, 0x0, 0x0, 0x0
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x1, 0xff02, 0x0, 0x69, 0x3, 0x0, 0x0, 0xff, 0x0, 0x0, 0x0, 0x0, 0x0, 0xffff, 0x3e5931b, 0x1, 0x1e0, 0x137, 0x0
unsolicited: UtaMsNetRegistrationInfoIndCb: 0x0, 0x0, 0x1, 0x1e0, 0x137, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x1, 0x1, 0xff02, 0x1, 0x1e0, 0x137, 0x0, 0x1, 0xff, 0xffff, 0xffffffff, 0xffff, 0xffff, 0xfffe, 0x1, 0x1e0, 0x137, 0x0, 0x0, 0x69, 0x3, 0x1, 0x1e0, 0x137, 0x1, 0x0, 0xff, 0x11, 0x0, 0x12, 0xe, 0x1, 0x0
unsolicited: UtaMsNetRegisteredPlmnNameIndCb: 0x1, bytearray(b'\x0f\x88\xd6\xb2<\xad\x7f\xbbA\xd7\xb4\xbc\xcc.\xcf\xe7\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), bytearray(b'\x04\x8bV\xfd\x15\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), 0x1, 0x1e0, 0x137, 0x0
unsolicited: UtaMsNetIsAttachAllowedIndCb: 0x0, 0xff, 0x1, 0x0
unsolicited: UtaMsNetRegistrationInfoIndCb: 0x0, 0x0, 0x1, 0x1e0, 0x137, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x1, 0x1, 0xff02, 0x1, 0x1e0, 0x137, 0x0, 0x1, 0xff, 0xffff, 0xffffffff, 0xffff, 0xffff, 0xfffe, 0x1, 0x1e0, 0x137, 0x0, 0x0, 0x69, 0x3, 0x1, 0x1e0, 0x137, 0x0, 0x0, 0xff, 0x11, 0x0, 0x12, 0xe, 0x1, 0x0
unsolicited: UtaMsNetRegisteredPlmnNameIndCb: 0x1, bytearray(b'\x0f\x88\xd6\xb2<\xad\x7f\xbbA\xd7\xb4\xbc\xcc.\xcf\xe7\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), bytearray(b'\x04\x8bV\xfd\x15\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), 0x1, 0x1e0, 0x137, 0x0
response: 0x0, 0xffffffff, 0x0, 0x1, 0xe, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0xe, 0x0
INFO:root:Attach failed - waiting to see if we just weren't ready
RPC executing UtaMsNetAttachReq
b'4500000002040000004502040000005c110001010204110001010201000204000000000204000000000204000000000204000000000202ffff0202ffff020400000000020400000000'
async_ack: 0x0
unsolicited: UtaMsNetIsAttachAllowedIndCb: 0x0, 0x0, 0x0, 0x0
unsolicited: UtaMsNetCellInfoIndCb: 0x0, 0x0, 0x1, 0xff02, 0x0, 0x71, 0x3, 0x0, 0x0, 0xff, 0x0, 0x0, 0x0, 0x0, 0x0, 0xffff, 0x3e59302, 0x1, 0x1e0, 0x137, 0x0
unsolicited: UtaMsNetRegistrationInfoIndCb: 0x0, 0x0, 0x1, 0x1e0, 0x137, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x1, 0x1, 0xff02, 0x1, 0x1e0, 0x137, 0x0, 0x1, 0xff, 0xffff, 0xffffffff, 0xffff, 0xffff, 0xfffe, 0x1, 0x1e0, 0x137, 0x0, 0x0, 0x71, 0x3, 0x1, 0x1e0, 0x137, 0x1, 0x0, 0xff, 0x11, 0x0, 0x12, 0xe, 0x1, 0x0
unsolicited: UtaMsNetRegisteredPlmnNameIndCb: 0x1, bytearray(b'\x0f\x88\xd6\xb2<\xad\x7f\xbbA\xd7\xb4\xbc\xcc.\xcf\xe7\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), bytearray(b'\x04\x8bV\xfd\x15\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), 0x1, 0x1e0, 0x137, 0x0
unsolicited: UtaMsNetIsAttachAllowedIndCb: 0x0, 0xff, 0x1, 0x0
unsolicited: UtaMsNetRegistrationInfoIndCb: 0x0, 0x0, 0x1, 0x1e0, 0x137, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x1, 0x1, 0xff02, 0x1, 0x1e0, 0x137, 0x0, 0x1, 0xff, 0xffff, 0xffffffff, 0xffff, 0xffff, 0xfffe, 0x1, 0x1e0, 0x137, 0x0, 0x0, 0x71, 0x3, 0x1, 0x1e0, 0x137, 0x0, 0x0, 0xff, 0x11, 0x0, 0x12, 0xe, 0x1, 0x0
unsolicited: UtaMsNetRegisteredPlmnNameIndCb: 0x1, bytearray(b'\x0f\x88\xd6\xb2<\xad\x7f\xbbA\xd7\xb4\xbc\xcc.\xcf\xe7\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), bytearray(b'\x04\x8bV\xfd\x15\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), 0x1, 0x1e0, 0x137, 0x0
response: 0x0, 0xffffffff, 0x0, 0x1, 0xe, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0xe, 0x0
ERROR:root:Attach failed again, giving up

Unfortunately, I don't understand what's going on here...so I'm coming to you with them to try to get some help! Thank you in advance!

Delay while shutdown (EliteBook x360 830 G7 w/ Fedora 33 beta)

Hello,

First of all thank you very much for your work. I managed to make my XMM7360 work on an EliteBook x360 830 G7 running Fedora 33 beta (although I had to disable secure boot in the BIOS because of the kernel lockdown).

My problem is that when trying to shut down the system (GNOME3), it takes much more time once the WWAN connection has been configured ("open_xdatachannel.py" command issued) compared to when it has not been configured (no "open_xdatachannel.py" command issued). I tried to just unload the module prior to shutting down the system, but this does not help.

Do you have any suggestion on how to obtain a speedy shutdown once the module is in use?

Thank you in advance and best regards

Tom

Many thanks got this working on Ubuntu 19.10!

Hi,

I managed to get this working on my HP Elite X2 where all previous attempts using the usb mode switcher had failed.

Happy to do some testing if need be.

As a note to others I had to manually setup DNS nameservers to physically use the connection other than pings etc.

Unused variables

➜ make
make -C /lib/modules/5.5.2-arch2-2/build M=/tmp/xmm7360-pci modules
make[1]: Entering directory '/usr/lib/modules/5.5.2-arch2-2/build'
  CC [M]  /tmp/xmm7360-pci/xmm7360.o
/tmp/xmm7360-pci/xmm7360.c: In function ‘xmm7360_remove’:
/tmp/xmm7360-pci/xmm7360.c:1177:6: warning: unused variable ‘i’ [-Wunused-variable]
 1177 |  int i;
      |      ^
/tmp/xmm7360-pci/xmm7360.c: In function ‘xmm7360_probe’:
/tmp/xmm7360-pci/xmm7360.c:1375:6: warning: unused variable ‘i’ [-Wunused-variable]
 1375 |  int i, ret;
      |      ^
  Building modules, stage 2.
  MODPOST 1 modules
  CC [M]  /tmp/xmm7360-pci/xmm7360.mod.o
  LD [M]  /tmp/xmm7360-pci/xmm7360.ko
make[1]: Leaving directory '/usr/lib/modules/5.5.2-arch2-2/build'

NOT AN ISSUE - Work very well on X390

Just a little update, it's working like a charm on my x390 on ubuntu 19.10, just have to add nameserver to resol.conf.
i wrote a little bash script to connect every time i need, and disable/enable the wifi.

Thinkpad P53 support

Dear @abrasive

Thank you for your work. I'm still looking for a working solution for my new P53. Here xmm7360/xmm7360-usb-modeswitch#2 (comment) i asked whether anybody had found any working solution. Still no succes.

I tried this your new xmm7360-pci and it hanged my P53 :-)

So if you need any testing or other help, just tell me.

Thank you.

Can't build on Manjaro Linux

➜ make
make -C /lib/modules/5.6.11-1-MANJARO/build M=/home/user/xmm7360-pci modules
make[1]: Entering directory '/usr/lib/modules/5.6.11-1-MANJARO/build'
make[1]: *** No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/usr/lib/modules/5.6.11-1-MANJARO/build'
make: *** [Makefile:9: default] Error 2

No module named 'rpc_call_ids'

Thanks for the work on this driver.
I wanted to test it out but I ran into the following issue.
After cloning I run make && make load and it works perfectly, I even already have a wwan0 interface after that.
Then I want to run the open_xdatachannel.py but I get the following error:

$ sudo python3 rpc/open_xdatachannel.py
Traceback (most recent call last):
  File "rpc/open_xdatachannel.py", line 3, in <module>
    import rpc
  File "/home/jonatan/xmm7360-pci/rpc/rpc.py", line 10, in <module>
    import rpc_call_ids
ModuleNotFoundError: No module named 'rpc_call_ids'

I'm using Arch Linux and Python 3.8.1.
I'm happy to continue testing this driver on my device, if I can get it to execute :)

Works on opensuse leap 15.2 and Lenovo T495

When I bought the T495, to get the extra bright screen the cellular modem was a mandatory upgrade. Thank you for making it actually work.

I will say that all I have managed to do is use the fibocom for sftp and ssh since I don't understand how to add the DNS. However I am working on running the ModemManager which should make this more automatic.

https://github.com/enzingerm/ModemManager

Opensuse LEAP 15.2
Linux 5.3.18-lp152.41-default #1 SMP Thu Sep 3 23:02:59 UTC 2020 (a4d139b) x86_64 x86_64 x86_64 GNU/Linux

Note the reply about adding the headers came in useful. In opensuse they are added with yast.

Working on T495 w/Arch

Distro: Arch

Had to install linux headers (I am on a new-ish install so I guess most users already have this).

Also had to get python-pyroute2 which may or may not be worth mentioning.


Really this is just a HUGE thank you for doing this.

Broken with kernel 5.6.7-arch1-1

Initially it was working well with kernel 5.6.4 on my Lenovo X1 Carbon 7th gen, but after upgrading to latest kernel 5.6.7, it is now broken.
make is successful, but make load is giving following error

$ make load
sudo /sbin/rmmod xmm7360
rmmod: ERROR: Module xmm7360 is not currently loaded
make: [Makefile:18: load] Error 1 (ignored)
sudo /sbin/insmod xmm7360.ko
insmod: ERROR: could not insert module xmm7360.ko: Invalid module format
make: *** [Makefile:19: load] Error 1

ThinkPad P52s Working

I can confirm this works very well on a P52s w/ Ubuntu 19.04. I did have to run the script twice and manually assign DNS.

The first time it ended with:
INFO:root:IP address: 0.0.0.0, 0.0.0.0, 0.0.0.0 INFO:root:DNS server(s): Traceback (most recent call last): File "rpc/open_xdatachannel.py", line 88, in <module> address=ip_addr) NameError: name 'ip_addr' is not defined

The second time it assigned an IP, but I did have to add DNS via resolvectl dns wwan0 8.8.8.8

xmm7560 support

Hi,

can the driver be used with xmm7560 (fibocom L860-GL) with a device id change only?

Thank you.

Kernel Panic on Elitebook x360

So after successfully loading the module the first time and running into the previous issue #3 , I wanted to now try again.
This time though the module was not able to load, but instead I had my Laptop freeze up on trying to insert the module.
I grabbed a log like you described in #2, pictures attached.

one
two

pc/open_xdatachannel.py fails at first

When running sudo python3 rpc/open_xdatachannel.py the first time I usually get

unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0xff, 0x25, 0x0, 0x90, 0x33, 0x1, 0x33, 0x1, 0x0, 0x0
unsolicited: UtaMsSimFullAccessIndCb: 0x0
Traceback (most recent call last):
  File "rpc/open_xdatachannel.py", line 27, in <module>
    attach = r.execute('UtaMsNetAttachReq', rpc.pack_UtaMsNetAttachReq(), is_async=True)
  File "/home/david/sys/software/xmm7360-pci/rpc/rpc.py", line 67, in execute
    resp = self.pump()
  File "/home/david/sys/software/xmm7360-pci/rpc/rpc.py", line 32, in pump
    desc = 'unsolicited: %s' % rpc_unsol_table.xmm7360_unsol[resp['code']]
KeyError: 457

Yet it succeeds when simply calling it a second time.
Somewhat strange, but not a major problem.

name 'ip_addr' is not defined in first script call

I using Arch Linux on ThinkPad X395 (with L850-GL).

in Arch Official basic kernel (Linux version 5.4.8-arch1-1 (linux@archlinux) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Sat, 04 Jan 2020 23:46:18 +0000), open_xdatachannel.py throws the NameError (like #5 ). but, re-call the script, that success and connected internet.
I can't determine if it's the same problem.

outputs

1st time

 ~/w/xmm7360-pci (master)> sudo python3 ./rpc/open_xdatachannel.py
b'1600000002040000001602040000003011000100020400000000'
b'1600000002040000001602040000002511000100020400000000'
b'1600000002040000001602040000005311000100020400000000'
b'1600000002040000001602040000002411000100020400000000'
b'1600000002040000001602040000003a11000100020400000000'
b'1600000002040000001602040000002611000100020400000000'
b'1600000002040000001602040000000111000100020400000000'
b'1c00000002040000001c02040000018e11000101020411000101020400000000'
FCC lock: state 0 mode 2
b'1c00000002040000001c02040000019011000101020411000101020400000000'
b'1c00000002040000001c0204000001921100010102041100010102046091f1df'
b'2200000002040000002202040000012f1100010002040000000002040000000f020400000001'
b'e11300000204000013e10204000001af110001010204110001010201005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc0204000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000055140204000000140204000000000000000000000000000000000000000000000000020400000000556502040000006802040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc0204000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000055140204000000140204000000000000000000000000000000000000000000000000020400000000556502040000006802040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc0204000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000002040000000002040000000002040000000002040000000002040000000102040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000102040000000002040000000002040000040402040000000102040000000002040000000102040000000002040000000055140204000000140204000000000000000000000000000000000000000000000000020400000003556502040000006802040000000373706d6f64652e6e652e6a7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc0204000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000002040000000002040000000002040000000002040000000002040000000102040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000102040000000002040000000002040000040402040000000102040000000002040000000102040000000002040000000055140204000000140204000000000000000000000000000000000000000000000000020400000003556502040000006702040000000273706d6f64652e6e652e6a70000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020103020400000000'
b'4500000002040000004502040000005c110001010204110001010201000204000000000204000000000204000000000204000000000202ffff0202ffff020400000000020400000000'
b'2500000002040000002502040000004911000101020411000101020100020400000000020400000000'
unsolicited: b'020100020101020110020110020110020400000001020400000001020400000001020400000001020400000001020400000001020400000000020400000001020400000001020400000001020400000001020400000000'
unsolicited: b'02010002040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02010002040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02040000003202040000005b02010002040000000002040000000002040000000002040000000002040000000002040000000202040000010002043a0f18df02040000000002040000000002040000000002040000000002040000000002040000000202040000010002043a0f18df02040000003202040000003202040000003202040000003302040000003202040000003502040000003202040000003602040000003202040000003902040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02010502040000003502040000003202040000003502040000003302040000003502040000003502040000003502040000003602040000003502040000003902040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b02040000003202040000004b020105020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020100020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020400000000020400000012020100020400000000'
unsolicited: b'0201000204000000010201ff020400000000020400000000020400000000020105020104020400000000'
unsolicited: b'020100020400000000020400000000020400000001020400000000'
unsolicited: b'020100020400000003020400000001020400000000'
b'2500000002040000002502040000004711000101020411000101020100020400000000020400000000'
(IPv4Address('0.0.0.0'), IPv4Address('0.0.0.0'), IPv4Address('0.0.0.0'))
{'v4': [], 'v6': []}
Traceback (most recent call last):
  File "./rpc/open_xdatachannel.py", line 47, in <module>
    address=ip_addr)
NameError: name 'ip_addr' is not defined

2nd time

~/w/xmm7360-pci (master)> sudo python3 ./rpc/open_xdatachannel.py
b'1600000002040000001602040000003011000100020400000000'
b'1600000002040000001602040000002511000100020400000000'
b'1600000002040000001602040000005311000100020400000000'
b'1600000002040000001602040000002411000100020400000000'
unsolicited: b'020100020400000003020400000001020400000000'
b'1600000002040000001602040000003a11000100020400000000'
b'1600000002040000001602040000002611000100020400000000'
b'1600000002040000001602040000000111000100020400000000'
b'1c00000002040000001c02040000018e11000101020411000101020400000000'
FCC lock: state 1 mode 2
b'2200000002040000002202040000012f1100010002040000000002040000000f020400000001'
b'e11300000204000013e10204000001af110001010204110001010201005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc0204000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000055140204000000140204000000000000000000000000000000000000000000000000020400000000556502040000006802040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc0204000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000055140204000000140204000000000000000000000000000000000000000000000000020400000000556502040000006802040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc0204000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000002040000000002040000000002040000000002040000000002040000000102040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000102040000000002040000000002040000040402040000000102040000000002040000000102040000000002040000000055140204000000140204000000000000000000000000000000000000000000000000020400000003556502040000006802040000000373706d6f64652e6e652e6a7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc0204000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000002040000000002040000000002040000000002040000000002040000000102040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000102040000000002040000000002040000040402040000000102040000000002040000000102040000000002040000000055140204000000140204000000000000000000000000000000000000000000000000020400000003556502040000006702040000000273706d6f64652e6e652e6a70000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020103020400000000'
b'4500000002040000004502040000005c110001010204110001010201000204000000000204000000000204000000000204000000000202ffff0202ffff020400000000020400000000'
unsolicited: b'020100020400000000020400000000020400000000'
unsolicited: b'020100020400000000020400000001020261310204000000000204000000650204000000030204000000000204000000000201ff0204000000000204000000000204000000000204000000000204000000000202ffff020406cb00020204000000000202000a020201b8020400000000'
unsolicited: b'020400000000020400000000'
unsolicited: b'0201000204000000000204000000010202612f0204000000000204000000650204000000030204000000000204000000000201ff0204000000000204000000000204000000000204000000000204000000000202ffff0204065ba7130204000000000202000a020201b8020400000000'
unsolicited: b'0201000204000000030204000000000202000a020201b85503020400000004020400000001000000000204000000000202000002011602012b020112020109020101020207e40201000201240204000000000204000000000204000000010204000000010204000000015581ff0204000000ff0204000000000a824e2a15447c0e9fcd27000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005581ff0204000001000204000000010786c4e7f0d97c020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020400000000020400000000'
unsolicited: b'020100020400000002020400000003020400000000020400000000020400000000020400000000020400000000'
unsolicited: b'0201000204000000000204000000010202612f0204000000000204000000650204000000030204000000000204000000000201ff0204000000000204000000000204000000000204000000000204000000000202ffff0204065ba7130204000000000202000a020201b8020400000000'
b'2500000002040000002502040000004911000101020411000101020100020400000000020400000000'
unsolicited: b'0201000204000000000204000000000202000a020201b80204000000000202000002020000020400000000020200000202000002040000000002020000020200000204000000000202000002020000020400000000020200000202000002040000000002020000020200000204000000000202000002020000020400000000020200000202000002040000000002020000020200000204000000000202000002020000020400000000020200000202000002040000000002020000020200000204000000000202000002020000020400000000020200000202000002040000000002020000020200000201010204000000010204000000010202612f0204000000000202000a020201b80204000000000204000000000201ff0202ffff0204ffffffff0202ffff0202ffff020219020204000000000202000a020201b80204000000000204000000000204000000650204000000030204000000000202000a020201b80204000000000204000000000204000000ff0204000000110204000000000204000000ff020400000011020400000009020400000000'
unsolicited: b'0204000000015581ff0204000001010204000000020a824e2a15447c0e9fcd270000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581ff0204000001000204000000010786c4e7f0d97c0200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000000202000a020201b8020400000000'
unsolicited: b'0201000204000000ff020400000001020400000000'
b'2500000002040000002502040000004711000101020411000101020100020400000000020400000000'
(IPv4Address('10.229.47.155'), IPv4Address('0.0.0.0'), IPv4Address('0.0.0.0'))
{'v4': [IPv4Address('110.163.0.6')], 'v6': []}
b'2b00000002040000002b02040000005111000101020411000101020100020400000006020400000000020400000000'
b'3600000002040000003602040000007e1100010055180204000000180204000000002f73696f7363632f504349452f494f534d2f4950532f3000'
b'b80000000204000000b802040000007d110001000201000204000000320204000000010204000000030204000000050201000201fa0201000201fa0201000201000201ff0201ff0201000201120201060201080201fe0201fe02019602010302010202010402010102011f02010902010302010202010402010502040000000155140204000000160204000000020ae52f9b000000000000000000000000000000000000020400000000020400000000020400020017020400000000'

In addition, I usually use a patched kernel, and the system freezes after a kernel message like the image below.

image

and log

 1月 10 03:33:10 chizuru-arch kernel: BUG: scheduling while atomic: python3/1229/0x00000002
 1月 10 03:33:10 chizuru-arch kernel: Modules linked in: xmm7360(O) ccm cmac algif_hash uvcvideo algif_skcipher videobuf2_vmalloc af_alg videobuf2_memops videobuf2_v4l2 videobuf2_common bnep amdgpu videodev joydev mc mousedev amd_iommu_v2 gpu_sched i2c_algo_bit snd_hda_>
 1月 10 03:33:10 chizuru-arch kernel:  crypto_user acpi_call(O) ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 rtsx_pci_sdmmc crc32_pclmul mmc_core crc32c_intel serio_raw atkbd libps2 aesni_intel glue_helper crypto_simd cryptd xhci_pci ehci_pci xhci_hcd ehci_>
 1月 10 03:33:10 chizuru-arch kernel: CPU: 3 PID: 1229 Comm: python3 Tainted: G        W  O      5.4.8-AMD #1
 1月 10 03:33:10 chizuru-arch kernel: Hardware name: LENOVO 20NLCTO1WW/20NLCTO1WW, BIOS R13ET39W(1.13 ) 10/11/2019
 1月 10 03:33:10 chizuru-arch kernel: Call Trace:
 1月 10 03:33:10 chizuru-arch kernel:  dump_stack+0x66/0x90
 1月 10 03:33:10 chizuru-arch kernel:  __schedule_bug.cold+0x4c/0x58
 1月 10 03:33:10 chizuru-arch kernel:  __schedule+0x610/0x740
 1月 10 03:33:10 chizuru-arch kernel:  schedule+0x40/0xc0
 1月 10 03:33:10 chizuru-arch kernel:  schedule_timeout+0x15c/0x320
 1月 10 03:33:10 chizuru-arch kernel:  ? __dma_direct_alloc_pages+0x10e/0x1e0
 1月 10 03:33:10 chizuru-arch kernel:  ? __next_timer_interrupt+0xd0/0xd0
 1月 10 03:33:10 chizuru-arch kernel:  xmm7360_cmd_ring_execute+0x19d/0x1f0 [xmm7360]
 1月 10 03:33:10 chizuru-arch kernel:  ? wait_woken+0x70/0x70
 1月 10 03:33:10 chizuru-arch kernel:  xmm7360_qp_start+0x56/0x170 [xmm7360]
 1月 10 03:33:10 chizuru-arch kernel:  chrdev_open+0xa2/0x1c0
 1月 10 03:33:10 chizuru-arch kernel:  ? cdev_put.part.0+0x20/0x20
 1月 10 03:33:10 chizuru-arch kernel:  do_dentry_open+0x13f/0x380
 1月 10 03:33:10 chizuru-arch kernel:  path_openat+0x2da/0x1330
 1月 10 03:33:10 chizuru-arch kernel:  ? __alloc_pages_nodemask+0x169/0x330
 1月 10 03:33:10 chizuru-arch kernel:  ? reuse_swap_page+0x6e/0x360
 1月 10 03:33:10 chizuru-arch kernel:  do_filp_open+0x91/0x100
 1月 10 03:33:10 chizuru-arch kernel:  ? __check_object_size+0x132/0x143
 1月 10 03:33:10 chizuru-arch kernel:  do_sys_open+0x184/0x220
 1月 10 03:33:10 chizuru-arch kernel:  do_syscall_64+0x5b/0x1b0
 1月 10 03:33:10 chizuru-arch kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xa9
 1月 10 03:33:10 chizuru-arch kernel: RIP: 0033:0x7f5606dad15b
 1月 10 03:33:10 chizuru-arch kernel: Code: 25 00 00 41 00 3d 00 00 41 00 74 4b 64 8b 04 25 18 00 00 00 85 c0 75 67 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 91 00 00 00 48 8b 4c 24 28 64 48 33 0c 25
 1月 10 03:33:10 chizuru-arch kernel: RSP: 002b:00007fff4c334760 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
 1月 10 03:33:10 chizuru-arch kernel: RAX: ffffffffffffffda RBX: 0000000000181002 RCX: 00007f5606dad15b
 1月 10 03:33:10 chizuru-arch kernel: RDX: 0000000000181002 RSI: 00007f56066082f0 RDI: 00000000ffffff9c
 1月 10 03:33:10 chizuru-arch kernel: RBP: 00007f56066082f0 R08: 0000000000000000 R09: 0000000000000000
 1月 10 03:33:10 chizuru-arch kernel: R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000181002
 1月 10 03:33:10 chizuru-arch kernel: R13: 00000000ffffff9c R14: 00005626dce74b10 R15: 00007f5606c5ff80
 1月 10 03:33:10 chizuru-arch kernel: python3[1229]: segfault at 7f5606575450 ip 00007f5606a9a724 sp 00007fff4c334810 error 7 in libpython3.8.so.1.0[7f56069a9000+1c9000]
 1月 10 03:33:10 chizuru-arch kernel: Code: 00 0f 1f 44 00 00 48 83 c4 18 4c 89 f6 48 89 ef 5b 5d 41 5c 41 5d 41 5e 41 5f ff 25 86 8f 1c 00 66 0f 1f 44 00 00 49 8b 47 08 <49> 83 07 01 48 ba 56 55 55 55 55 55 55 55 48 bf ff ff ff ff ff ff
 1月 10 03:33:10 chizuru-arch kernel: BUG: scheduling while atomic: python3/1229/0x00000000
 1月 10 03:33:10 chizuru-arch kernel: Modules linked in: xmm7360(O) ccm cmac algif_hash uvcvideo algif_skcipher videobuf2_vmalloc af_alg videobuf2_memops videobuf2_v4l2 videobuf2_common bnep amdgpu videodev joydev mc mousedev amd_iommu_v2 gpu_sched i2c_algo_bit snd_hda_>
 1月 10 03:33:10 chizuru-arch kernel:  crypto_user acpi_call(O) ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 rtsx_pci_sdmmc crc32_pclmul mmc_core crc32c_intel serio_raw atkbd libps2 aesni_intel glue_helper crypto_simd cryptd xhci_pci ehci_pci xhci_hcd ehci_>
 1月 10 03:33:10 chizuru-arch kernel: CPU: 3 PID: 1229 Comm: python3 Tainted: G        W  O      5.4.8-AMD #1
 1月 10 03:33:10 chizuru-arch kernel: Hardware name: LENOVO 20NLCTO1WW/20NLCTO1WW, BIOS R13ET39W(1.13 ) 10/11/2019
 1月 10 03:33:10 chizuru-arch kernel: Call Trace:
 1月 10 03:33:10 chizuru-arch kernel:  dump_stack+0x66/0x90
 1月 10 03:33:10 chizuru-arch kernel:  __schedule_bug.cold+0x4c/0x58
 1月 10 03:33:10 chizuru-arch kernel:  __schedule+0x610/0x740
 1月 10 03:33:10 chizuru-arch kernel:  ? enqueue_task_fair+0x8a/0x460
 1月 10 03:33:10 chizuru-arch kernel:  schedule+0x40/0xc0
 1月 10 03:33:10 chizuru-arch kernel:  schedule_timeout+0x226/0x320
 1月 10 03:33:10 chizuru-arch kernel:  ? try_to_wake_up+0x22b/0x6e0
 1月 10 03:33:10 chizuru-arch kernel:  wait_for_completion+0xa6/0x100
 1月 10 03:33:10 chizuru-arch kernel:  ? wake_up_q+0x60/0x60
 1月 10 03:33:10 chizuru-arch kernel:  call_usermodehelper_exec+0x13b/0x170
 1月 10 03:33:10 chizuru-arch kernel:  do_coredump+0xd6d/0x118c
 1月 10 03:33:10 chizuru-arch kernel:  ? sched_clock+0x5/0x10
 1月 10 03:33:10 chizuru-arch kernel:  ? sched_clock_cpu+0xc/0xc0
 1月 10 03:33:10 chizuru-arch kernel:  ? log_store.constprop.0+0x1f3/0x270
 1月 10 03:33:10 chizuru-arch kernel:  get_signal+0x4b0/0x8c0
 1月 10 03:33:10 chizuru-arch kernel:  ? kmem_cache_alloc+0x16c/0x210
 1月 10 03:33:10 chizuru-arch kernel:  do_signal+0x36/0x670
 1月 10 03:33:10 chizuru-arch kernel:  ? signal_wake_up_state+0x15/0x30
 1月 10 03:33:10 chizuru-arch kernel:  ? __send_signal+0x1e6/0x400
 1月 10 03:33:10 chizuru-arch kernel:  ? send_signal+0x3f/0x130
 1月 10 03:33:10 chizuru-arch kernel:  exit_to_usermode_loop+0x76/0xd0
 1月 10 03:33:10 chizuru-arch kernel:  prepare_exit_to_usermode+0x78/0xb0
 1月 10 03:33:10 chizuru-arch kernel:  retint_user+0x8/0x8
 1月 10 03:33:10 chizuru-arch kernel: RIP: 0033:0x7f5606a9a724
 1月 10 03:33:10 chizuru-arch kernel: Code: 00 0f 1f 44 00 00 48 83 c4 18 4c 89 f6 48 89 ef 5b 5d 41 5c 41 5d 41 5e 41 5f ff 25 86 8f 1c 00 66 0f 1f 44 00 00 49 8b 47 08 <49> 83 07 01 48 ba 56 55 55 55 55 55 55 55 48 bf ff ff ff ff ff ff
 1月 10 03:33:10 chizuru-arch kernel: RSP: 002b:00007fff4c334810 EFLAGS: 00010246
 1月 10 03:33:10 chizuru-arch kernel: RAX: 0000000000000008 RBX: 00005626dcf10920 RCX: 00007f5606cb97e0
 1月 10 03:33:10 chizuru-arch kernel: RDX: 00007f56066660b0 RSI: 00007f5606608770 RDI: 00005626dcf10920
 1月 10 03:33:10 chizuru-arch kernel: RBP: 0000000000000000 R08: 000000000000003f R09: 0000000000000001
 1月 10 03:33:10 chizuru-arch kernel: R10: 0000000000000e13 R11: 0000000000002a39 R12: 00007f5606cb97e0
 1月 10 03:33:10 chizuru-arch kernel: R13: 00007f5606608770 R14: 00007f56066660b0 R15: 00007f5606575450
 1月 10 03:33:10 chizuru-arch systemd[1]: Created slice system-systemd\x2dcoredump.slice.
 1月 10 03:33:10 chizuru-arch systemd[1]: Started Process Core Dump (PID 1232/UID 0).
 1月 10 03:33:11 chizuru-arch kernel: BUG: scheduling while atomic: python3/1229/0x00000002
 1月 10 03:33:11 chizuru-arch kernel: Modules linked in: xmm7360(O) ccm cmac algif_hash uvcvideo algif_skcipher videobuf2_vmalloc af_alg videobuf2_memops videobuf2_v4l2 videobuf2_common bnep amdgpu videodev joydev mc mousedev amd_iommu_v2 gpu_sched i2c_algo_bit snd_hda_>
 1月 10 03:33:11 chizuru-arch kernel:  crypto_user acpi_call(O) ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 rtsx_pci_sdmmc crc32_pclmul mmc_core crc32c_intel serio_raw atkbd libps2 aesni_intel glue_helper crypto_simd cryptd xhci_pci ehci_pci xhci_hcd ehci_>
 1月 10 03:33:11 chizuru-arch kernel: CPU: 3 PID: 1229 Comm: python3 Tainted: G        W  O      5.4.8-AMD #1
 1月 10 03:33:11 chizuru-arch kernel: Hardware name: LENOVO 20NLCTO1WW/20NLCTO1WW, BIOS R13ET39W(1.13 ) 10/11/2019
 1月 10 03:33:11 chizuru-arch kernel: Call Trace:
 1月 10 03:33:11 chizuru-arch kernel:  dump_stack+0x66/0x90
 1月 10 03:33:11 chizuru-arch kernel:  __schedule_bug.cold+0x4c/0x58
 1月 10 03:33:11 chizuru-arch kernel:  __schedule+0x610/0x740
 1月 10 03:33:11 chizuru-arch kernel:  schedule+0x40/0xc0
 1月 10 03:33:11 chizuru-arch kernel:  schedule_timeout+0x15c/0x320
 1月 10 03:33:11 chizuru-arch kernel:  ? __next_timer_interrupt+0xd0/0xd0
 1月 10 03:33:11 chizuru-arch kernel:  xmm7360_cmd_ring_execute+0x19d/0x1f0 [xmm7360]
 1月 10 03:33:11 chizuru-arch kernel:  ? wait_woken+0x70/0x70
 1月 10 03:33:11 chizuru-arch kernel:  xmm7360_td_ring_destroy+0x42/0xf0 [xmm7360]
 1月 10 03:33:11 chizuru-arch kernel:  xmm7360_qp_stop+0x4d/0x80 [xmm7360]
 1月 10 03:33:11 chizuru-arch kernel:  __fput+0xae/0x230
 1月 10 03:33:11 chizuru-arch kernel:  task_work_run+0x93/0xb0
 1月 10 03:33:11 chizuru-arch kernel:  do_exit+0x2af/0xb00
 1月 10 03:33:11 chizuru-arch kernel:  do_group_exit+0x3a/0xa0
 1月 10 03:33:11 chizuru-arch kernel:  get_signal+0x136/0x8c0
 1月 10 03:33:11 chizuru-arch kernel:  ? kmem_cache_alloc+0x16c/0x210
 1月 10 03:33:11 chizuru-arch kernel:  do_signal+0x36/0x670
 1月 10 03:33:11 chizuru-arch kernel:  ? signal_wake_up_state+0x15/0x30
 1月 10 03:33:11 chizuru-arch kernel:  ? __send_signal+0x1e6/0x400
 1月 10 03:33:11 chizuru-arch kernel:  ? send_signal+0x3f/0x130
 1月 10 03:33:11 chizuru-arch kernel:  exit_to_usermode_loop+0x76/0xd0
 1月 10 03:33:11 chizuru-arch kernel:  prepare_exit_to_usermode+0x78/0xb0
 1月 10 03:33:11 chizuru-arch kernel:  retint_user+0x8/0x8
 1月 10 03:33:11 chizuru-arch kernel: RIP: 0033:0x7f5606a9a724
 1月 10 03:33:11 chizuru-arch kernel: Code: Bad RIP value.
 1月 10 03:33:11 chizuru-arch kernel: RSP: 002b:00007fff4c334810 EFLAGS: 00010246
 1月 10 03:33:11 chizuru-arch kernel: RAX: 0000000000000008 RBX: 00005626dcf10920 RCX: 00007f5606cb97e0
 1月 10 03:33:11 chizuru-arch kernel: RDX: 00007f56066660b0 RSI: 00007f5606608770 RDI: 00005626dcf10920
 1月 10 03:33:11 chizuru-arch kernel: RBP: 0000000000000000 R08: 000000000000003f R09: 0000000000000001
 1月 10 03:33:11 chizuru-arch kernel: R10: 0000000000000e13 R11: 0000000000002a39 R12: 00007f5606cb97e0
 1月 10 03:33:11 chizuru-arch kernel: R13: 00007f5606608770 R14: 00007f56066660b0 R15: 00007f5606575450
 1月 10 03:33:11 chizuru-arch kernel: BUG: scheduling while atomic: python3/1229/0x00000000
 1月 10 03:33:11 chizuru-arch kernel: Modules linked in: xmm7360(O) ccm cmac algif_hash uvcvideo algif_skcipher videobuf2_vmalloc af_alg videobuf2_memops videobuf2_v4l2 videobuf2_common bnep amdgpu videodev joydev mc mousedev amd_iommu_v2 gpu_sched i2c_algo_bit snd_hda_>
 1月 10 03:33:11 chizuru-arch kernel:  crypto_user acpi_call(O) ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 rtsx_pci_sdmmc crc32_pclmul mmc_core crc32c_intel serio_raw atkbd libps2 aesni_intel glue_helper crypto_simd cryptd xhci_pci ehci_pci xhci_hcd ehci_>
 1月 10 03:33:11 chizuru-arch kernel: CPU: 3 PID: 1229 Comm: python3 Tainted: G        W  O      5.4.8-AMD #1
 1月 10 03:33:11 chizuru-arch kernel: Hardware name: LENOVO 20NLCTO1WW/20NLCTO1WW, BIOS R13ET39W(1.13 ) 10/11/2019
 1月 10 03:33:11 chizuru-arch kernel: Call Trace:
 1月 10 03:33:11 chizuru-arch kernel: BUG: unable to handle page fault for address: 0000000000003fe0
 1月 10 03:33:11 chizuru-arch systemd-coredump[1233]: Process 1229 (python3) of user 0 dumped core.
                                                       
                                                       Stack trace of thread 1229:
                                                       #0  0x00007f5606a9a724 _PyObjectDict_SetItem (libpython3.8.so.1.0 + 0x155724)
                                                       #1  0x00007f5606a9b113 _PyObject_GenericSetAttrWithDict (libpython3.8.so.1.0 + 0x156113)
                                                       #2  0x00007f5606aa3f06 PyObject_SetAttr (libpython3.8.so.1.0 + 0x15ef06)
                                                       #3  0x00007f5606ad6903 _PyEval_EvalFrameDefault (libpython3.8.so.1.0 + 0x191903)
                                                       #4  0x00007f5606aa609a _PyEval_EvalCodeWithName (libpython3.8.so.1.0 + 0x16109a)
                                                       #5  0x00007f5606aa7c12 _PyObject_FastCallDict (libpython3.8.so.1.0 + 0x162c12)
                                                       #6  0x00007f5606aa7db4 _PyObject_Call_Prepend (libpython3.8.so.1.0 + 0x162db4)
                                                       #7  0x00007f5606aa7ea5 n/a (libpython3.8.so.1.0 + 0x162ea5)
                                                       #8  0x00007f5606a711a4 _PyObject_MakeTpCall (libpython3.8.so.1.0 + 0x12c1a4)
                                                       #9  0x00007f5606ada97a _PyEval_EvalFrameDefault (libpython3.8.so.1.0 + 0x19597a)
                                                       #10 0x00007f5606aa609a _PyEval_EvalCodeWithName (libpython3.8.so.1.0 + 0x16109a)
                                                       #11 0x00007f5606aa6cca PyEval_EvalCodeEx (libpython3.8.so.1.0 + 0x161cca)
                                                       #12 0x00007f5606b3273c PyEval_EvalCode (libpython3.8.so.1.0 + 0x1ed73c)
                                                       #13 0x00007f5606b327ea n/a (libpython3.8.so.1.0 + 0x1ed7ea)
                                                       #14 0x00007f5606b6e325 n/a (libpython3.8.so.1.0 + 0x229325)
                                                       #15 0x00007f5606a4d4f9 PyRun_FileExFlags (libpython3.8.so.1.0 + 0x1084f9)
                                                       #16 0x00007f5606a4fb3c PyRun_SimpleFileExFlags (libpython3.8.so.1.0 + 0x10ab3c)
                                                       #17 0x00007f5606b71249 Py_RunMain (libpython3.8.so.1.0 + 0x22c249)
                                                       #18 0x00007f5606b71339 Py_BytesMain (libpython3.8.so.1.0 + 0x22c339)
                                                       #19 0x00007f5606ce4153 __libc_start_main (libc.so.6 + 0x27153)
                                                       #20 0x00005626daf2e05e _start (python3.8 + 0x105e)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.