Sierra MC 7455 qmi stalls

Hello,

I first posted this in 'installing and using lede', but after some tests I did yesterday maybe this is a better place.
Mbim also stalls and after searching deeper, I found three things:
1] kernel 4.9 / 4.12 : qmi-wwan.c
2] dtr of mc7455 should be 1
3] don't use qmi but mbim

I'm a lttle lost here what to do now, so here is my post of yesterday

Please help me with this:
I'm trying to install a Sierra MC 7455 in my router. When I look into my kernel log, I think all is well. If I look for a cdc-wdc0 and cdc-wdc1 I find them, also the USB0, USB1 and USB2.

I can access the Sierra with AT-commands, but when I try qmi the console stalls until ctrl-c.

What am I missing here / doing wrong?
(below you find the kernel log and ls of /dev

Best regards,
Robert

U-Boot 1.1.4-g2be56671-dirty (Sep 23 2016 - 13:53:48)

AP121 (ar9330) U-boot(WLM115)

DRAM:  64 MB
led turning on for 1s...
id read 0x100000ff
flash size 8388608, sector count = 128
Flash:  8 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
blah blah blah ...
blah blah blah ...
blah blah blah ...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
: cfg1 0x5 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
ag7240_phy_setup
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
athrs26_reg_init_lan
ATHRS26: resetting s26
ATHRS26: s26 reset done
ag7240_phy_setup
eth1 up
eth0, eth1
Hit any key to stop autoboot:  0
## Booting image at 9f680000 ...
   Image Name:   MIPS OpenWrt Linux-4.4.74
   Created:      2017-07-17  20:42:35 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1318551 Bytes =  1.3 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum at 0x9f680040 ...OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 4.4.74 (dev@redev) (gcc version 5.4.0 (LEDE GCC 5.4.0 r4561-254f0da) ) #0 Mon Jul 17 20:42:35 2017
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] No valid device tree found, continuing without
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  board=AP121 console=ttyATH0,115200 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6336k(rootfs),1408k(kernel),64k(nvram),64k(art)ro,7744k@0x50000(firmware) rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 60100K/65536K available (2992K kernel code, 148K rwdata, 756K rodata, 320K init, 200K bss, 5436K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000013] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007538] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.088738] pid_max: default: 32768 minimum: 301
[    0.093336] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.099494] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.109983] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.118041] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.124959] NET: Registered protocol family 16
[    0.130118] MIPS: machine is Atheros AP121 reference board
[    0.629349] clocksource: Switched to clocksource MIPS
[    0.634644] NET: Registered protocol family 2
[    0.638590] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.644173] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.650219] TCP: Hash tables configured (established 1024 bind 1024)
[    0.656391] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.661883] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.668171] NET: Registered protocol family 1
[    0.677886] Crashlog allocated RAM at address 0x3f00000
[    0.701169] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.705382] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.718435] io scheduler noop registered
[    0.720880] io scheduler deadline registered (default)
[    0.726113] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.732542] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a AR933X UART
[    0.741021] console [ttyATH0] enabled
[    0.741021] console [ttyATH0] enabled
[    0.747791] bootconsole [early0] disabled
[    0.747791] bootconsole [early0] disabled
[    0.759955] m25p80 spi0.0: found s25fl164k, expected m25p80
[    0.764091] m25p80 spi0.0: s25fl164k (8192 Kbytes)
[    0.768900] 7 cmdlinepart partitions found on MTD device spi0.0
[    0.774807] Creating 7 MTD partitions on "spi0.0":
[    0.779563] 0x000000000000-0x000000040000 : "u-boot"
[    0.787678] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.793930] 0x000000050000-0x000000680000 : "rootfs"
[    0.799712] mtd: device 2 (rootfs) set to be root filesystem
[    0.803972] 1 squashfs-split partitions found on MTD device rootfs
[    0.810129] 0x000000310000-0x000000680000 : "rootfs_data"
[    0.817676] 0x000000680000-0x0000007e0000 : "kernel"
[    0.823521] 0x0000007e0000-0x0000007f0000 : "nvram"
[    0.829193] 0x0000007f0000-0x000000800000 : "art"
[    0.834783] 0x000000050000-0x0000007e0000 : "firmware"
[    0.859324] libphy: ag71xx_mdio: probed
[    1.450844] ag71xx-mdio.1: Found an AR7240/AR9330 built-in switch
[    1.482916] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    2.071061] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    2.079829] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    2.087437] NET: Registered protocol family 10
[    2.095639] NET: Registered protocol family 17
[    2.098735] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    2.111485] 8021q: 802.1Q VLAN Support v1.8
[    2.124614] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    2.132778] Freeing unused kernel memory: 320K (80430000 - 80480000)
[    3.463202] init: Console is alive
[    3.465443] init: - watchdog -
[    4.979121] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.067878] usbcore: registered new interface driver usbfs
[    5.072123] usbcore: registered new interface driver hub
[    5.077340] usbcore: registered new device driver usb
[    5.089705] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.107784] SCSI subsystem initialized
[    5.116763] ehci-platform: EHCI generic platform driver
[    5.120765] ehci-platform ehci-platform: EHCI Host Controller
[    5.126305] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    5.136330] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    5.159410] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    5.165535] hub 1-0:1.0: USB hub found
[    5.168382] hub 1-0:1.0: 1 port detected
[    5.178281] usbcore: registered new interface driver usb-storage
[    5.183715] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.200691] init: - preinit -
[    5.719400] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    5.732999] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    5.873116] random: procd: uninitialized urandom read (4 bytes read, 10 bits of entropy available)
[    5.881402] hub 1-1:1.0: USB hub found
[    5.884795] hub 1-1:1.0: 4 ports detected
[    6.169374] usb 1-1.3: new full-speed USB device number 3 using ehci-platform
[    6.259366] usb 1-1.3: device descriptor read/64, error -32
[    6.469361] usb 1-1.3: device descriptor read/64, error -32
[    6.659369] usb 1-1.3: new full-speed USB device number 4 using ehci-platform
[    6.749360] usb 1-1.3: device descriptor read/64, error -32
[    6.939380] usb 1-1.3: device descriptor read/64, error -32
[    7.129372] usb 1-1.3: new full-speed USB device number 5 using ehci-platform
[    7.549357] usb 1-1.3: device not accepting address 5, error -32
[    7.629364] usb 1-1.3: new full-speed USB device number 6 using ehci-platform
[    7.831773] eth0: link up (1000Mbps/Full duplex)
[    7.836395] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.110991] usb 1-1.3: device not accepting address 6, error -32
[    8.116095] usb 1-1-port3: unable to enumerate USB device
[    8.168956] jffs2: notice: (367) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    8.186043] mount_root: switching to jffs2 overlay
[    8.220182] usb 1-1.4: new high-speed USB device number 7 using ehci-platform
[    8.226831] urandom-seed: Seeding with /etc/urandom.seed
[    8.463877] usb 1-1.4: config 1 has an invalid interface number: 8 but max is 4
[    8.469849] usb 1-1.4: config 1 has an invalid interface number: 10 but max is 4
[    8.477143] usb 1-1.4: config 1 has no interface number 1
[    8.482516] usb 1-1.4: config 1 has no interface number 4
[    8.498528] eth0: link down
[    8.521757] procd: - early -
[    8.523316] procd: - watchdog -
[    9.223944] random: jshn: uninitialized urandom read (4 bytes read, 20 bits of entropy available)
[    9.331091] procd: - watchdog -
[    9.333152] procd: - ubus -
[    9.667256] random: ubusd: uninitialized urandom read (4 bytes read, 21 bits of entropy available)
[    9.680077] random: ubusd: uninitialized urandom read (4 bytes read, 21 bits of entropy available)
[    9.687683] random: ubusd: uninitialized urandom read (4 bytes read, 21 bits of entropy available)
[    9.701051] random: jshn: uninitialized urandom read (4 bytes read, 21 bits of entropy available)
[    9.719878] random: ubusd: uninitialized urandom read (4 bytes read, 21 bits of entropy available)
[    9.727467] random: ubusd: uninitialized urandom read (4 bytes read, 21 bits of entropy available)
[    9.738260] random: ubusd: uninitialized urandom read (4 bytes read, 21 bits of entropy available)
[    9.746186] random: ubusd: uninitialized urandom read (4 bytes read, 21 bits of entropy available)
[    9.755831] procd: - init -
Please press Enter to activate this console.
[   10.914609] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.951624] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   10.987518] usbcore: registered new interface driver cdc_acm
[   10.991806] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   11.021488] usbcore: registered new interface driver cdc_wdm
[   11.041588] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[   11.048140] Backport generated by backports.git backports-20160324-13-g24da7d3c
[   11.069803] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.094581] nf_conntrack version 0.5.0 (944 buckets, 3776 max)
[   11.189092] usbcore: registered new interface driver usbserial
[   11.193716] usbcore: registered new interface driver usbserial_generic
[   11.200186] usbserial: USB Serial support registered for generic
[   11.231109] xt_time: kernel timezone is -0000
[   11.237102] usbcore: registered new interface driver cdc_ether
[   11.246246] usbcore: registered new interface driver cdc_ncm
[   11.336301] PPP generic driver version 2.4.2
[   11.343017] NET: Registered protocol family 24
[   11.350521] qmi_wwan 1-1.4:1.8: cdc-wdm0: USB WDM device
[   11.355775] qmi_wwan 1-1.4:1.8 wwan0: register 'qmi_wwan' at usb-ehci-platform-1.4, WWAN/QMI device, ae:58:b8:70:65:96
[   11.389735] qmi_wwan 1-1.4:1.10: cdc-wdm1: USB WDM device
[   11.395100] qmi_wwan 1-1.4:1.10 wwan1: register 'qmi_wwan' at usb-ehci-platform-1.4, WWAN/QMI device, ae:58:b8:70:65:96
[   11.404756] usbcore: registered new interface driver qmi_wwan
[   11.432085] usbcore: registered new interface driver sierra
[   11.436346] usbserial: USB Serial support registered for Sierra USB modem
[   11.462040] usbcore: registered new interface driver sierra_net
[   11.542297] usbcore: registered new interface driver cdc_mbim
[   11.562337] usbcore: registered new interface driver option
[   11.566588] usbserial: USB Serial support registered for GSM modem (1-port)
[   11.597199] usbcore: registered new interface driver qcserial
[   11.601743] usbserial: USB Serial support registered for Qualcomm USB modem
[   11.621708] qcserial 1-1.4:1.0: Qualcomm USB modem converter detected
[   11.627270] usb 1-1.4: Qualcomm USB modem converter now attached to ttyUSB0
[   11.650033] qcserial 1-1.4:1.2: Qualcomm USB modem converter detected
[   11.655585] usb 1-1.4: Qualcomm USB modem converter now attached to ttyUSB1
[   11.679472] qcserial 1-1.4:1.3: Qualcomm USB modem converter detected
[   11.685002] usb 1-1.4: Qualcomm USB modem converter now attached to ttyUSB2
[   11.752319] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   11.829302] kmodloader: done loading kernel modules from /etc/modules.d/*
[   24.772671] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   24.800982] device eth0.1 entered promiscuous mode
[   24.804328] device eth0 entered promiscuous mode
[   24.837066] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   24.897876] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   26.417716] eth0: link up (1000Mbps/Full duplex)
[   26.434692] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   26.449816] br-lan: port 1(eth0.1) entered forwarding state
[   26.454005] br-lan: port 1(eth0.1) entered forwarding state
[   26.479485] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   27.601146] eth1: link up (100Mbps/Full duplex)
[   27.604261] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   28.449439] br-lan: port 1(eth0.1) entered forwarding state
[   59.668786] random: nonblocking pool is initialized



BusyBox v1.26.2 () built-in shell (ash)

     _________
    /        /\      _    ___ ___  ___
   /  LE    /  \    | |  | __|   \| __|
  /    DE  /    \   | |__| _|| |) | _|
/________/  LE  \  |____|___|___/|___|                      lede-project.org
\        \   DE /
  \    LE  \    /  -----------------------------------------------------------
   \  DE    \  /    Reboot (SNAPSHOT, r4590-b4ce088)
    \________\/    -----------------------------------------------------------

=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@LEDE:/# ls -al /dev
drwxr-xr-x    4 root     root          1060 Jul 18 10:11 .
drwxr-xr-x    1 root     root             0 Jan  1  1970 ..
drwxr-xr-x    3 root     root            60 Jan  1  1970 bus
crw-------    1 root     root      180, 176 Jul 18 10:11 cdc-wdm0
crw-------    1 root     root      180, 177 Jul 18 10:11 cdc-wdm1
crw-------    1 root     root        5,   1 Jan  1  1970 console
crw-------    1 root     root       10,  63 Jan  1  1970 cpu_dma_latency
crw-rw-rw-    1 root     root        1,   7 Jan  1  1970 full
crw-------    1 root     root        1,  11 Jan  1  1970 kmsg
srw-rw-rw-    1 root     root             0 Jul 18 10:11 log
crw-------    1 root     root       10,  60 Jan  1  1970 memory_bandwidth
crw-------    1 root     root       90,   0 Jan  1  1970 mtd0
crw-------    1 root     root       90,   1 Jan  1  1970 mtd0ro
crw-------    1 root     root       90,   2 Jan  1  1970 mtd1
crw-------    1 root     root       90,   3 Jan  1  1970 mtd1ro
crw-------    1 root     root       90,   4 Jan  1  1970 mtd2
crw-------    1 root     root       90,   5 Jan  1  1970 mtd2ro
crw-------    1 root     root       90,   6 Jan  1  1970 mtd3
crw-------    1 root     root       90,   7 Jan  1  1970 mtd3ro
crw-------    1 root     root       90,   8 Jan  1  1970 mtd4
crw-------    1 root     root       90,   9 Jan  1  1970 mtd4ro
crw-------    1 root     root       90,  10 Jan  1  1970 mtd5
crw-------    1 root     root       90,  11 Jan  1  1970 mtd5ro
crw-------    1 root     root       90,  12 Jan  1  1970 mtd6
crw-------    1 root     root       90,  13 Jan  1  1970 mtd6ro
crw-------    1 root     root       90,  14 Jan  1  1970 mtd7
crw-------    1 root     root       90,  15 Jan  1  1970 mtd7ro
brw-------    1 root     root       31,   0 Jan  1  1970 mtdblock0
brw-------    1 root     root       31,   1 Jan  1  1970 mtdblock1
brw-------    1 root     root       31,   2 Jan  1  1970 mtdblock2
brw-------    1 root     root       31,   3 Jan  1  1970 mtdblock3
brw-------    1 root     root       31,   4 Jan  1  1970 mtdblock4
brw-------    1 root     root       31,   5 Jan  1  1970 mtdblock5
brw-------    1 root     root       31,   6 Jan  1  1970 mtdblock6
brw-------    1 root     root       31,   7 Jan  1  1970 mtdblock7
crw-------    1 root     root       10,  62 Jan  1  1970 network_latency
crw-------    1 root     root       10,  61 Jan  1  1970 network_throughput
crw-rw-rw-    1 root     root        1,   3 Jan  1  1970 null
crw-------    1 root     root        1,   4 Jan  1  1970 port
crw-------    1 root     root      108,   0 Jul 18 10:11 ppp
crw-rw-rw-    1 root     root        5,   2 Jan  1  1970 ptmx
drwxr-xr-x    2 root     root             0 Jan  1  1970 pts
crw-rw-rw-    1 root     root        1,   8 Jan  1  1970 random
lrwxrwxrwx    1 root     root             8 Jan  1  1970 shm -> /tmp/shm
crw-rw-rw-    1 root     root        5,   0 Jan  1  1970 tty
crw-rw----    1 root     tty       254,   0 Jul 18 10:25 ttyATH0
crw-rw----    1 root     tty         4,  64 Jan  1  1970 ttyS0
crw-rw----    1 root     tty       188,   0 Jul 18 10:11 ttyUSB0
crw-rw----    1 root     tty       188,   1 Jul 18 10:11 ttyUSB1
crw-rw----    1 root     tty       188,   2 Jul 18 10:11 ttyUSB2
crw-rw-rw-    1 root     root        1,   9 Jan  1  1970 urandom
crw-------    1 root     root       10, 130 Jan  1  1970 watchdog
crw-rw-rw-    1 root     root        1,   5 Jan  1  1970 zero
root@LEDE:/#