Re: Fibocom L850-GL / Intel XMM7360

2020-06-25 Thread Eric Caruso
There are carrier firmware packages for some, but not all, carriers
(some use a generic carrier firmware instead). I'm not sure how you
are expected to flash them without the closed-source firmware download
tool, though.

On Thu, Jun 25, 2020 at 12:21 AM Wassenberg, Dennis
 wrote:
>
> Hi Eric,
>
> I think this is a very helpful hint!
>
> We already started contacting Fibocom. If we know that there is in general a 
> firmware available which forces the module
> in USB mode this would be a discussion option.
>
> How does this firmware behaves in terms of provider specific firmware 
> versions? Are there carrier specific firmware
> available too or is there a generic firmware necessary only?
>
> Thank you & best regards,
>
> Dennis
>
> On Wed, 2020-06-24 at 14:54 -0700, Eric Caruso wrote:
> > On Chromebooks, we use the L850-GL in USB mode and it works well. I
> > believe the firmware we get from Fibocom forces the module into USB
> > mode, though, so that might not be super helpful for this discussion.
> >
> > On Tue, Jun 23, 2020 at 4:21 AM Wassenberg, Dennis
> >  wrote:
> > >
> > > Hi all,
> > >
> > > thank you for these hints!
> > >
> > > I think I will try the Intel XMM 7560 / Fibocom L860 modem as well.
> > >
> > > @Dan: You said that there is a (alpha/beta) driver existing. Is there a 
> > > possibility to get it to have a try how this
> > > behaves?
> > >
> > > Thank you & best regards,
> > >
> > > Dennis
> > >
> > > On Mon, 2020-06-22 at 11:23 -0500, Dan Williams wrote:
> > > > On Mon, 2020-06-22 at 10:45 +0200, Reinhard Speyerer wrote:
> > > > > On Mon, Jun 22, 2020 at 06:51:50AM +, Wassenberg, Dennis wrote:
> > > > > > Hi all,
> > > > > >
> > > > > > I tested the PCI approach.
> > > > > >
> > > > > > Unfortunately I had no luck. The kernel PCI driver at
> > > > > > https://github.com/xmm7360/xmm7360-pci can not initiale the modem
> > > > > > correctly. The modem stays at status=0xfeedb007. This seems to mean
> > > > > > that the modem is (still) booting. After 20 seconds
> > > > > > probing fails. The kernel driver gives up waiting for the device to
> > > > > > boot.
> > > > > >
> > > > > > So, both options: usb switch and native pci driver will not work.
> > > > > >
> > > > > > Are there any ideas how to continue?
> > > > > >
> > > > >
> > > > > Hi Dennis,
> > > > >
> > > > > some time ago Johannes Berg was working on a WWAN subsystem for the
> > > > > Linux
> > > > > kernel (
> > > > > https://lore.kernel.org/netdev/20200225100053.16385-1-johan...@sipsolutions.net/T/#t
> > > > > ) which also mentioned the 'upcoming Intel 4G modem driver ("iosm")'.
> > > >
> > > > That effort is currently stalled. And the pci-based driver you mention
> > > > supports 7560 and later, not earlier devices. Not sure how hard it
> > > > would be to adapt to earlier devices though.
> > > >
> > > > It does exist, but it's not quite ready for upstreaming yet.
> > > >
> > > > Dan
> > > >
> > > > > Perhaps it might help to ask him what the current status of this
> > > > > project is.
> > > > >
> > > > > Regards,
> > > > > Reinhard
> > > > >
> > > > > > Thank you & best regards,
> > > > > >
> > > > > > Dennis
> > > > > >
> > > > > >
> > > > > > On Thu, 2020-06-18 at 16:24 +0200, Dennis Wassenberg wrote:
> > > > > > > Hi Bjørn,
> > > > > > >
> > > > > > > thank you for your estimation.
> > > > > > >
> > > > > > > > Do you have any confirmation that it is actually possible to
> > > > > > > > switch this
> > > > > > > > firmware into USB mode?  Are there other firmwares available
> > > > > > > > with
> > > > > > > > (possible) USB support?
> > > > > > > >
> > > > > > >
> > > > > > > I don't have a confirmation that the USB mode will really work,
> > > > > > > especially on the new models.
> > > > > > >
> > > > > > > Last year (Lenovo Thinkpad Whiskey Lake series) there was the
> > > > > > > possibility to choose between the slow modem (Fibocom
> > > > > > > L830-EB) and the faster option Fibocom L850-GL. This year the
> > > > > > > slow modem ist the fast modem of the last year and the
> > > > > > > fast modem is CAT16 Fibocom L860-GL.
> > > > > > >
> > > > > > > Regarding the Lenovo Thinkpad Whiskey Lake series models I found
> > > > > > > some threads where the USB mode switch worked:
> > > > > > >
> > > > > > >
> > >
> > >
> https://forums.lenovo.com/t5/Other-Linux-Discussions/WWAN-Fibocom-L850-GL-and-Linux-support/m-p/4318903?page=1#4327397
> > > > > > > https://gmt-24.net/archives/1461
> > > > > > >
> > > > > > > Thats why I assumed that this might work at newer Thinkpads as
> > > > > > > well.
> > > > > > >
> > > > > > > Especially https://gmt-24.net/archives/1461 shows that your
> > > > > > > assumption regarding the bootloader and application mode
> > > > > > > seems to be correct.
> > > > > > >
> > > > > > > This comes out directly after disabling the PCIe link and
> > > > > > > directly after that:
> > > > > > > [  162.799214] usb 1-6: new high-speed USB device number 5 using
> > > > > > > xhci_hcd
> > > > > > > [ 

Re: Fibocom L850-GL / Intel XMM7360

2020-06-25 Thread Wassenberg, Dennis
Hi Eric,

I think this is a very helpful hint!

We already started contacting Fibocom. If we know that there is in general a 
firmware available which forces the module
in USB mode this would be a discussion option.

How does this firmware behaves in terms of provider specific firmware versions? 
Are there carrier specific firmware
available too or is there a generic firmware necessary only?

Thank you & best regards,

Dennis

On Wed, 2020-06-24 at 14:54 -0700, Eric Caruso wrote:
> On Chromebooks, we use the L850-GL in USB mode and it works well. I
> believe the firmware we get from Fibocom forces the module into USB
> mode, though, so that might not be super helpful for this discussion.
> 
> On Tue, Jun 23, 2020 at 4:21 AM Wassenberg, Dennis
>  wrote:
> > 
> > Hi all,
> > 
> > thank you for these hints!
> > 
> > I think I will try the Intel XMM 7560 / Fibocom L860 modem as well.
> > 
> > @Dan: You said that there is a (alpha/beta) driver existing. Is there a 
> > possibility to get it to have a try how this
> > behaves?
> > 
> > Thank you & best regards,
> > 
> > Dennis
> > 
> > On Mon, 2020-06-22 at 11:23 -0500, Dan Williams wrote:
> > > On Mon, 2020-06-22 at 10:45 +0200, Reinhard Speyerer wrote:
> > > > On Mon, Jun 22, 2020 at 06:51:50AM +, Wassenberg, Dennis wrote:
> > > > > Hi all,
> > > > > 
> > > > > I tested the PCI approach.
> > > > > 
> > > > > Unfortunately I had no luck. The kernel PCI driver at
> > > > > https://github.com/xmm7360/xmm7360-pci can not initiale the modem
> > > > > correctly. The modem stays at status=0xfeedb007. This seems to mean
> > > > > that the modem is (still) booting. After 20 seconds
> > > > > probing fails. The kernel driver gives up waiting for the device to
> > > > > boot.
> > > > > 
> > > > > So, both options: usb switch and native pci driver will not work.
> > > > > 
> > > > > Are there any ideas how to continue?
> > > > > 
> > > > 
> > > > Hi Dennis,
> > > > 
> > > > some time ago Johannes Berg was working on a WWAN subsystem for the
> > > > Linux
> > > > kernel (
> > > > https://lore.kernel.org/netdev/20200225100053.16385-1-johan...@sipsolutions.net/T/#t
> > > > ) which also mentioned the 'upcoming Intel 4G modem driver ("iosm")'.
> > > 
> > > That effort is currently stalled. And the pci-based driver you mention
> > > supports 7560 and later, not earlier devices. Not sure how hard it
> > > would be to adapt to earlier devices though.
> > > 
> > > It does exist, but it's not quite ready for upstreaming yet.
> > > 
> > > Dan
> > > 
> > > > Perhaps it might help to ask him what the current status of this
> > > > project is.
> > > > 
> > > > Regards,
> > > > Reinhard
> > > > 
> > > > > Thank you & best regards,
> > > > > 
> > > > > Dennis
> > > > > 
> > > > > 
> > > > > On Thu, 2020-06-18 at 16:24 +0200, Dennis Wassenberg wrote:
> > > > > > Hi Bjørn,
> > > > > > 
> > > > > > thank you for your estimation.
> > > > > > 
> > > > > > > Do you have any confirmation that it is actually possible to
> > > > > > > switch this
> > > > > > > firmware into USB mode?  Are there other firmwares available
> > > > > > > with
> > > > > > > (possible) USB support?
> > > > > > > 
> > > > > > 
> > > > > > I don't have a confirmation that the USB mode will really work,
> > > > > > especially on the new models.
> > > > > > 
> > > > > > Last year (Lenovo Thinkpad Whiskey Lake series) there was the
> > > > > > possibility to choose between the slow modem (Fibocom
> > > > > > L830-EB) and the faster option Fibocom L850-GL. This year the
> > > > > > slow modem ist the fast modem of the last year and the
> > > > > > fast modem is CAT16 Fibocom L860-GL.
> > > > > > 
> > > > > > Regarding the Lenovo Thinkpad Whiskey Lake series models I found
> > > > > > some threads where the USB mode switch worked:
> > > > > > 
> > > > > > 
> > 
> > 
https://forums.lenovo.com/t5/Other-Linux-Discussions/WWAN-Fibocom-L850-GL-and-Linux-support/m-p/4318903?page=1#4327397
> > > > > > https://gmt-24.net/archives/1461
> > > > > > 
> > > > > > Thats why I assumed that this might work at newer Thinkpads as
> > > > > > well.
> > > > > > 
> > > > > > Especially https://gmt-24.net/archives/1461 shows that your
> > > > > > assumption regarding the bootloader and application mode
> > > > > > seems to be correct.
> > > > > > 
> > > > > > This comes out directly after disabling the PCIe link and
> > > > > > directly after that:
> > > > > > [  162.799214] usb 1-6: new high-speed USB device number 5 using
> > > > > > xhci_hcd
> > > > > > [  162.940604] usb 1-6: New USB device found, idVendor=8087,
> > > > > > idProduct=07f5, bcdDevice= 0.00
> > > > > > [  162.940612] usb 1-6: New USB device strings: Mfr=0, Product=0,
> > > > > > SerialNumber=0
> > > > > > [  169.651754] usb 1-6: USB disconnect, device number 5
> > > > > > 
> > > > > > Now bcdDevice changed to real device id.
> > > > > > 
> > > > > > [  175.462630] usb 1-6: new high-speed USB device number 6 using
> > > > > > xhci_hcd
> > > > > > [  175.620153] usb 1-6: New 

Re: Fibocom L850-GL / Intel XMM7360

2020-06-24 Thread Eric Caruso
On Chromebooks, we use the L850-GL in USB mode and it works well. I
believe the firmware we get from Fibocom forces the module into USB
mode, though, so that might not be super helpful for this discussion.

On Tue, Jun 23, 2020 at 4:21 AM Wassenberg, Dennis
 wrote:
>
> Hi all,
>
> thank you for these hints!
>
> I think I will try the Intel XMM 7560 / Fibocom L860 modem as well.
>
> @Dan: You said that there is a (alpha/beta) driver existing. Is there a 
> possibility to get it to have a try how this
> behaves?
>
> Thank you & best regards,
>
> Dennis
>
> On Mon, 2020-06-22 at 11:23 -0500, Dan Williams wrote:
> > On Mon, 2020-06-22 at 10:45 +0200, Reinhard Speyerer wrote:
> > > On Mon, Jun 22, 2020 at 06:51:50AM +, Wassenberg, Dennis wrote:
> > > > Hi all,
> > > >
> > > > I tested the PCI approach.
> > > >
> > > > Unfortunately I had no luck. The kernel PCI driver at
> > > > https://github.com/xmm7360/xmm7360-pci can not initiale the modem
> > > > correctly. The modem stays at status=0xfeedb007. This seems to mean
> > > > that the modem is (still) booting. After 20 seconds
> > > > probing fails. The kernel driver gives up waiting for the device to
> > > > boot.
> > > >
> > > > So, both options: usb switch and native pci driver will not work.
> > > >
> > > > Are there any ideas how to continue?
> > > >
> > >
> > > Hi Dennis,
> > >
> > > some time ago Johannes Berg was working on a WWAN subsystem for the
> > > Linux
> > > kernel (
> > > https://lore.kernel.org/netdev/20200225100053.16385-1-johan...@sipsolutions.net/T/#t
> > > ) which also mentioned the 'upcoming Intel 4G modem driver ("iosm")'.
> >
> > That effort is currently stalled. And the pci-based driver you mention
> > supports 7560 and later, not earlier devices. Not sure how hard it
> > would be to adapt to earlier devices though.
> >
> > It does exist, but it's not quite ready for upstreaming yet.
> >
> > Dan
> >
> > > Perhaps it might help to ask him what the current status of this
> > > project is.
> > >
> > > Regards,
> > > Reinhard
> > >
> > > > Thank you & best regards,
> > > >
> > > > Dennis
> > > >
> > > >
> > > > On Thu, 2020-06-18 at 16:24 +0200, Dennis Wassenberg wrote:
> > > > > Hi Bjørn,
> > > > >
> > > > > thank you for your estimation.
> > > > >
> > > > > > Do you have any confirmation that it is actually possible to
> > > > > > switch this
> > > > > > firmware into USB mode?  Are there other firmwares available
> > > > > > with
> > > > > > (possible) USB support?
> > > > > >
> > > > >
> > > > > I don't have a confirmation that the USB mode will really work,
> > > > > especially on the new models.
> > > > >
> > > > > Last year (Lenovo Thinkpad Whiskey Lake series) there was the
> > > > > possibility to choose between the slow modem (Fibocom
> > > > > L830-EB) and the faster option Fibocom L850-GL. This year the
> > > > > slow modem ist the fast modem of the last year and the
> > > > > fast modem is CAT16 Fibocom L860-GL.
> > > > >
> > > > > Regarding the Lenovo Thinkpad Whiskey Lake series models I found
> > > > > some threads where the USB mode switch worked:
> > > > >
> > > > >
> https://forums.lenovo.com/t5/Other-Linux-Discussions/WWAN-Fibocom-L850-GL-and-Linux-support/m-p/4318903?page=1#4327397
> > > > > https://gmt-24.net/archives/1461
> > > > >
> > > > > Thats why I assumed that this might work at newer Thinkpads as
> > > > > well.
> > > > >
> > > > > Especially https://gmt-24.net/archives/1461 shows that your
> > > > > assumption regarding the bootloader and application mode
> > > > > seems to be correct.
> > > > >
> > > > > This comes out directly after disabling the PCIe link and
> > > > > directly after that:
> > > > > [  162.799214] usb 1-6: new high-speed USB device number 5 using
> > > > > xhci_hcd
> > > > > [  162.940604] usb 1-6: New USB device found, idVendor=8087,
> > > > > idProduct=07f5, bcdDevice= 0.00
> > > > > [  162.940612] usb 1-6: New USB device strings: Mfr=0, Product=0,
> > > > > SerialNumber=0
> > > > > [  169.651754] usb 1-6: USB disconnect, device number 5
> > > > >
> > > > > Now bcdDevice changed to real device id.
> > > > >
> > > > > [  175.462630] usb 1-6: new high-speed USB device number 6 using
> > > > > xhci_hcd
> > > > > [  175.620153] usb 1-6: New USB device found, idVendor=2cb7,
> > > > > idProduct=0007, bcdDevice= 3.33
> > > > > [  175.620162] usb 1-6: New USB device strings: Mfr=1, Product=2,
> > > > > SerialNumber=3
> > > > > [  175.620167] usb 1-6: Product: L850-GL
> > > > > [  175.620172] usb 1-6: Manufacturer: Fibocom Wireless Inc.
> > > > > [  175.620176] usb 1-6: SerialNumber: 00499901064
> > > > >
> > > > >
> > > > > > Anyway, FWIW, I'd explore the PCIe driver option first if I
> > > > > > were you.
> > > > > > That's the only mode tested by anyone, so it is more likely to
> > > > > > work.
> > > > >
> > > > > Ok, I will try that approach and let you know my results.
> > > > >
> > > > > Thank you & best regards,
> > > > >
> > > > > Dennis
> > > > >
> > > > >
> > > > > On Thu, 

Re: Fibocom L850-GL / Intel XMM7360

2020-06-23 Thread Wassenberg, Dennis
Hi all,

thank you for these hints!

I think I will try the Intel XMM 7560 / Fibocom L860 modem as well.

@Dan: You said that there is a (alpha/beta) driver existing. Is there a 
possibility to get it to have a try how this
behaves?

Thank you & best regards,

Dennis 

On Mon, 2020-06-22 at 11:23 -0500, Dan Williams wrote:
> On Mon, 2020-06-22 at 10:45 +0200, Reinhard Speyerer wrote:
> > On Mon, Jun 22, 2020 at 06:51:50AM +, Wassenberg, Dennis wrote:
> > > Hi all,
> > > 
> > > I tested the PCI approach.
> > > 
> > > Unfortunately I had no luck. The kernel PCI driver at 
> > > https://github.com/xmm7360/xmm7360-pci can not initiale the modem
> > > correctly. The modem stays at status=0xfeedb007. This seems to mean
> > > that the modem is (still) booting. After 20 seconds
> > > probing fails. The kernel driver gives up waiting for the device to
> > > boot.
> > > 
> > > So, both options: usb switch and native pci driver will not work.
> > > 
> > > Are there any ideas how to continue?
> > > 
> > 
> > Hi Dennis,
> > 
> > some time ago Johannes Berg was working on a WWAN subsystem for the
> > Linux
> > kernel (
> > https://lore.kernel.org/netdev/20200225100053.16385-1-johan...@sipsolutions.net/T/#t
> > ) which also mentioned the 'upcoming Intel 4G modem driver ("iosm")'.
> 
> That effort is currently stalled. And the pci-based driver you mention
> supports 7560 and later, not earlier devices. Not sure how hard it
> would be to adapt to earlier devices though.
> 
> It does exist, but it's not quite ready for upstreaming yet.
> 
> Dan
> 
> > Perhaps it might help to ask him what the current status of this
> > project is.
> > 
> > Regards,
> > Reinhard
> > 
> > > Thank you & best regards,
> > > 
> > > Dennis
> > > 
> > > 
> > > On Thu, 2020-06-18 at 16:24 +0200, Dennis Wassenberg wrote:
> > > > Hi Bjørn,
> > > > 
> > > > thank you for your estimation.
> > > > 
> > > > > Do you have any confirmation that it is actually possible to
> > > > > switch this
> > > > > firmware into USB mode?  Are there other firmwares available
> > > > > with
> > > > > (possible) USB support?
> > > > > 
> > > > 
> > > > I don't have a confirmation that the USB mode will really work,
> > > > especially on the new models.
> > > > 
> > > > Last year (Lenovo Thinkpad Whiskey Lake series) there was the
> > > > possibility to choose between the slow modem (Fibocom
> > > > L830-EB) and the faster option Fibocom L850-GL. This year the
> > > > slow modem ist the fast modem of the last year and the
> > > > fast modem is CAT16 Fibocom L860-GL.
> > > > 
> > > > Regarding the Lenovo Thinkpad Whiskey Lake series models I found
> > > > some threads where the USB mode switch worked:
> > > > 
> > > > 
https://forums.lenovo.com/t5/Other-Linux-Discussions/WWAN-Fibocom-L850-GL-and-Linux-support/m-p/4318903?page=1#4327397
> > > > https://gmt-24.net/archives/1461
> > > > 
> > > > Thats why I assumed that this might work at newer Thinkpads as
> > > > well.
> > > > 
> > > > Especially https://gmt-24.net/archives/1461 shows that your
> > > > assumption regarding the bootloader and application mode
> > > > seems to be correct.
> > > > 
> > > > This comes out directly after disabling the PCIe link and
> > > > directly after that:
> > > > [  162.799214] usb 1-6: new high-speed USB device number 5 using
> > > > xhci_hcd
> > > > [  162.940604] usb 1-6: New USB device found, idVendor=8087,
> > > > idProduct=07f5, bcdDevice= 0.00
> > > > [  162.940612] usb 1-6: New USB device strings: Mfr=0, Product=0,
> > > > SerialNumber=0
> > > > [  169.651754] usb 1-6: USB disconnect, device number 5
> > > > 
> > > > Now bcdDevice changed to real device id.
> > > > 
> > > > [  175.462630] usb 1-6: new high-speed USB device number 6 using
> > > > xhci_hcd
> > > > [  175.620153] usb 1-6: New USB device found, idVendor=2cb7,
> > > > idProduct=0007, bcdDevice= 3.33
> > > > [  175.620162] usb 1-6: New USB device strings: Mfr=1, Product=2,
> > > > SerialNumber=3
> > > > [  175.620167] usb 1-6: Product: L850-GL
> > > > [  175.620172] usb 1-6: Manufacturer: Fibocom Wireless Inc.
> > > > [  175.620176] usb 1-6: SerialNumber: 00499901064
> > > > 
> > > > 
> > > > > Anyway, FWIW, I'd explore the PCIe driver option first if I
> > > > > were you.
> > > > > That's the only mode tested by anyone, so it is more likely to
> > > > > work.
> > > > 
> > > > Ok, I will try that approach and let you know my results.
> > > > 
> > > > Thank you & best regards,
> > > > 
> > > > Dennis
> > > > 
> > > > 
> > > > On Thu, 2020-06-18 at 15:36 +0200, Bjørn Mork wrote:
> > > > > "Wassenberg, Dennis"  writes:
> > > > > 
> > > > > > After that dmesg shows this:
> > > > > > [ 930.843781] usb 1-7: new high-speed USB device number 16
> > > > > > using xhci_hcd
> > > > > > [ 930.996572] usb 1-7: New USB device found, idVendor=8087,
> > > > > > idProduct=07f5, bcdDevice= 0.00
> > > > > > [ 930.996577] usb 1-7: New USB device strings: Mfr=0,
> > > > > > Product=0, SerialNumber=0
> > > > > > [ 937.683939] usb 1-7: 

Re: Fibocom L850-GL / Intel XMM7360

2020-06-23 Thread Wassenberg, Dennis
Hi Bjørn,

your comment makes me digging deeper in why this modem can not working in both 
modes.

I installed native Windows on the target device and tried to make this modem 
running in native Windows. There I saw that
after using the modem the first time Windows issued a firmware update of that 
modem. After that firmware version
18500.5001.00.03.25.24 was installed.

Now switching back to Xubuntu 20.04 I tried the usb approach once again. Now 
the usb switch worked in general. The modem
was available at the USB bus but it was not possible to get a connection 
because of the issues described in 
https://github.com/xmm7360/xmm7360-usb-modeswitch and 
https://github.com/xmm7360/xmm7360-usb-modeswitch/issues/23

After that I booted native Windows once again and installed an older firmware 
version. I did this by forcing installing
an older driver and modified the FWUpdater config file a bit.
https://download.lenovo.com/pccbbs/mobiles/nz3wj22w.exe

After that I had firmware version 18500.5001.00.01.20.86 running.

Using this firmware version it was it was possible to get a connection in 
Xubuntu 20.04 using the usb switch.

So, it looks like that directly after this devices leaves the factory there is 
just a bootloader firmware installed and
no "productive" firmware.

Using the PCIe mode it was still not possible to get it running with 
https://github.com/xmm7360/xmm7360-pci. The kernel
driver can attach to the device successfully now but the python script failed.

Thank you & best regards,

Dennis






On Mon, 2020-06-22 at 11:05 +0200, Bjørn Mork wrote:
> "Wassenberg, Dennis"  writes:
> 
> > I tested the PCI approach.
> > 
> > Unfortunately I had no luck. The kernel PCI driver at
> > https://github.com/xmm7360/xmm7360-pci can not initiale the modem
> > correctly. The modem stays at status=0xfeedb007. This seems to mean
> > that the modem is (still) booting. After 20 seconds probing fails. The
> > kernel driver gives up waiting for the device to boot.
> 
> Strange.  That sounds similar to the USB experience.
> 
> Maybe the issue preventing it from booting up in USB mode isn't related
> to USB after all?  Maybe there is a problem with the installed firmware?
> Did you confirm that this specific test device actually works?  Or did
> you test multiple modems with the same behaviour?
> 
> 
> Bjørn

___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


Re: Fibocom L850-GL / Intel XMM7360

2020-06-22 Thread Dan Williams
On Mon, 2020-06-22 at 09:42 +0200, Aleksander Morgado wrote:
> Hey,
> 
> > > Anyway, FWIW, I'd explore the PCIe driver option first if I were
> > > you.
> > > That's the only mode tested by anyone, so it is more likely to
> > > work.
> > Is there anybody reading this willing and knowlegable enough to
> > work on
> > a kernel driver for inclusion in mainline? I'm able to provide
> > funding
> > and hardware for testing...
> > 
> 
> If I'm not mistaken, Intel themselves are working on implementing the
> PCIe driver for these XMM based modules, but I don't know how well
> that is going, or when it's going to happen. I'll ask Fibocom to see
> if they have updates.

It exists, is for 7560 and later, and may be proposed soon. Not sure
how hard it would be adapt to earlier devices, but that would probably
require some community input.

Dan

> If switching the L850-GL to USB mode works, though, that would
> probably work very well. The Dell DW5820e is a L850-GL in USB mode,
> and I added a lot of support for that module in the past years.
> 

___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


Re: Fibocom L850-GL / Intel XMM7360

2020-06-22 Thread Dan Williams
On Mon, 2020-06-22 at 10:45 +0200, Reinhard Speyerer wrote:
> On Mon, Jun 22, 2020 at 06:51:50AM +, Wassenberg, Dennis wrote:
> > Hi all,
> > 
> > I tested the PCI approach.
> > 
> > Unfortunately I had no luck. The kernel PCI driver at 
> > https://github.com/xmm7360/xmm7360-pci can not initiale the modem
> > correctly. The modem stays at status=0xfeedb007. This seems to mean
> > that the modem is (still) booting. After 20 seconds
> > probing fails. The kernel driver gives up waiting for the device to
> > boot.
> > 
> > So, both options: usb switch and native pci driver will not work.
> > 
> > Are there any ideas how to continue?
> > 
> 
> Hi Dennis,
> 
> some time ago Johannes Berg was working on a WWAN subsystem for the
> Linux
> kernel (
> https://lore.kernel.org/netdev/20200225100053.16385-1-johan...@sipsolutions.net/T/#t
> ) which also mentioned the 'upcoming Intel 4G modem driver ("iosm")'.

That effort is currently stalled. And the pci-based driver you mention
supports 7560 and later, not earlier devices. Not sure how hard it
would be to adapt to earlier devices though.

It does exist, but it's not quite ready for upstreaming yet.

Dan

> Perhaps it might help to ask him what the current status of this
> project is.
> 
> Regards,
> Reinhard
> 
> > Thank you & best regards,
> > 
> > Dennis
> > 
> > 
> > On Thu, 2020-06-18 at 16:24 +0200, Dennis Wassenberg wrote:
> > > Hi Bjørn,
> > > 
> > > thank you for your estimation.
> > > 
> > > > Do you have any confirmation that it is actually possible to
> > > > switch this
> > > > firmware into USB mode?  Are there other firmwares available
> > > > with
> > > > (possible) USB support?
> > > > 
> > > 
> > > I don't have a confirmation that the USB mode will really work,
> > > especially on the new models.
> > > 
> > > Last year (Lenovo Thinkpad Whiskey Lake series) there was the
> > > possibility to choose between the slow modem (Fibocom
> > > L830-EB) and the faster option Fibocom L850-GL. This year the
> > > slow modem ist the fast modem of the last year and the
> > > fast modem is CAT16 Fibocom L860-GL.
> > > 
> > > Regarding the Lenovo Thinkpad Whiskey Lake series models I found
> > > some threads where the USB mode switch worked:
> > > 
> > > https://forums.lenovo.com/t5/Other-Linux-Discussions/WWAN-Fibocom-L850-GL-and-Linux-support/m-p/4318903?page=1#4327397
> > > https://gmt-24.net/archives/1461
> > > 
> > > Thats why I assumed that this might work at newer Thinkpads as
> > > well.
> > > 
> > > Especially https://gmt-24.net/archives/1461 shows that your
> > > assumption regarding the bootloader and application mode
> > > seems to be correct.
> > > 
> > > This comes out directly after disabling the PCIe link and
> > > directly after that:
> > > [  162.799214] usb 1-6: new high-speed USB device number 5 using
> > > xhci_hcd
> > > [  162.940604] usb 1-6: New USB device found, idVendor=8087,
> > > idProduct=07f5, bcdDevice= 0.00
> > > [  162.940612] usb 1-6: New USB device strings: Mfr=0, Product=0,
> > > SerialNumber=0
> > > [  169.651754] usb 1-6: USB disconnect, device number 5
> > > 
> > > Now bcdDevice changed to real device id.
> > > 
> > > [  175.462630] usb 1-6: new high-speed USB device number 6 using
> > > xhci_hcd
> > > [  175.620153] usb 1-6: New USB device found, idVendor=2cb7,
> > > idProduct=0007, bcdDevice= 3.33
> > > [  175.620162] usb 1-6: New USB device strings: Mfr=1, Product=2,
> > > SerialNumber=3
> > > [  175.620167] usb 1-6: Product: L850-GL
> > > [  175.620172] usb 1-6: Manufacturer: Fibocom Wireless Inc.
> > > [  175.620176] usb 1-6: SerialNumber: 00499901064
> > > 
> > > 
> > > > Anyway, FWIW, I'd explore the PCIe driver option first if I
> > > > were you.
> > > > That's the only mode tested by anyone, so it is more likely to
> > > > work.
> > > 
> > > Ok, I will try that approach and let you know my results.
> > > 
> > > Thank you & best regards,
> > > 
> > > Dennis
> > > 
> > > 
> > > On Thu, 2020-06-18 at 15:36 +0200, Bjørn Mork wrote:
> > > > "Wassenberg, Dennis"  writes:
> > > > 
> > > > > After that dmesg shows this:
> > > > > [ 930.843781] usb 1-7: new high-speed USB device number 16
> > > > > using xhci_hcd
> > > > > [ 930.996572] usb 1-7: New USB device found, idVendor=8087,
> > > > > idProduct=07f5, bcdDevice= 0.00
> > > > > [ 930.996577] usb 1-7: New USB device strings: Mfr=0,
> > > > > Product=0, SerialNumber=0
> > > > > [ 937.683939] usb 1-7: USB disconnect, device number 16
> > > > > 
> > > > > So, in general I think there should be USB lines routed to
> > > > > the M.2 slot but I have no idea why the device leaves
> > > > > the
> > > > > bus. It is possible to run the script again and again but in
> > > > > the end it will always disconnect automatically.
> > > > 
> > > > I know nothing about these modems, but my guess is that this is
> > > > a
> > > > bootloader mode. Mostly based on the assumption that there will
> > > > be one,
> > > > and that the vendor-id will be something non-Intel in
> > > > 

Re: Fibocom L850-GL / Intel XMM7360

2020-06-22 Thread Bjørn Mork
"Wassenberg, Dennis"  writes:

> I tested the PCI approach.
>
> Unfortunately I had no luck. The kernel PCI driver at
> https://github.com/xmm7360/xmm7360-pci can not initiale the modem
> correctly. The modem stays at status=0xfeedb007. This seems to mean
> that the modem is (still) booting. After 20 seconds probing fails. The
> kernel driver gives up waiting for the device to boot.

Strange.  That sounds similar to the USB experience.

Maybe the issue preventing it from booting up in USB mode isn't related
to USB after all?  Maybe there is a problem with the installed firmware?
Did you confirm that this specific test device actually works?  Or did
you test multiple modems with the same behaviour?


Bjørn
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


Re: Fibocom L850-GL / Intel XMM7360

2020-06-22 Thread Reinhard Speyerer
On Mon, Jun 22, 2020 at 06:51:50AM +, Wassenberg, Dennis wrote:
> Hi all,
> 
> I tested the PCI approach.
> 
> Unfortunately I had no luck. The kernel PCI driver at 
> https://github.com/xmm7360/xmm7360-pci can not initiale the modem
> correctly. The modem stays at status=0xfeedb007. This seems to mean that the 
> modem is (still) booting. After 20 seconds
> probing fails. The kernel driver gives up waiting for the device to boot.
> 
> So, both options: usb switch and native pci driver will not work.
> 
> Are there any ideas how to continue?
> 

Hi Dennis,

some time ago Johannes Berg was working on a WWAN subsystem for the Linux
kernel (
https://lore.kernel.org/netdev/20200225100053.16385-1-johan...@sipsolutions.net/T/#t
) which also mentioned the 'upcoming Intel 4G modem driver ("iosm")'.

Perhaps it might help to ask him what the current status of this project is.

Regards,
Reinhard

> Thank you & best regards,
> 
> Dennis
> 
> 
> On Thu, 2020-06-18 at 16:24 +0200, Dennis Wassenberg wrote:
> > Hi Bjørn,
> > 
> > thank you for your estimation.
> > 
> > > Do you have any confirmation that it is actually possible to switch this
> > > firmware into USB mode?  Are there other firmwares available with
> > > (possible) USB support?
> > > 
> > 
> > I don't have a confirmation that the USB mode will really work, especially 
> > on the new models.
> > 
> > Last year (Lenovo Thinkpad Whiskey Lake series) there was the possibility 
> > to choose between the slow modem (Fibocom
> > L830-EB) and the faster option Fibocom L850-GL. This year the slow modem 
> > ist the fast modem of the last year and the
> > fast modem is CAT16 Fibocom L860-GL.
> > 
> > Regarding the Lenovo Thinkpad Whiskey Lake series models I found some 
> > threads where the USB mode switch worked:
> > 
> > https://forums.lenovo.com/t5/Other-Linux-Discussions/WWAN-Fibocom-L850-GL-and-Linux-support/m-p/4318903?page=1#4327397
> > https://gmt-24.net/archives/1461
> > 
> > Thats why I assumed that this might work at newer Thinkpads as well.
> > 
> > Especially https://gmt-24.net/archives/1461 shows that your assumption 
> > regarding the bootloader and application mode
> > seems to be correct.
> > 
> > This comes out directly after disabling the PCIe link and directly after 
> > that:
> > [  162.799214] usb 1-6: new high-speed USB device number 5 using xhci_hcd
> > [  162.940604] usb 1-6: New USB device found, idVendor=8087, 
> > idProduct=07f5, bcdDevice= 0.00
> > [  162.940612] usb 1-6: New USB device strings: Mfr=0, Product=0, 
> > SerialNumber=0
> > [  169.651754] usb 1-6: USB disconnect, device number 5
> > 
> > Now bcdDevice changed to real device id.
> > 
> > [  175.462630] usb 1-6: new high-speed USB device number 6 using xhci_hcd
> > [  175.620153] usb 1-6: New USB device found, idVendor=2cb7, 
> > idProduct=0007, bcdDevice= 3.33
> > [  175.620162] usb 1-6: New USB device strings: Mfr=1, Product=2, 
> > SerialNumber=3
> > [  175.620167] usb 1-6: Product: L850-GL
> > [  175.620172] usb 1-6: Manufacturer: Fibocom Wireless Inc.
> > [  175.620176] usb 1-6: SerialNumber: 00499901064
> > 
> > 
> > > Anyway, FWIW, I'd explore the PCIe driver option first if I were you.
> > > That's the only mode tested by anyone, so it is more likely to work.
> > 
> > Ok, I will try that approach and let you know my results.
> > 
> > Thank you & best regards,
> > 
> > Dennis
> > 
> > 
> > On Thu, 2020-06-18 at 15:36 +0200, Bjørn Mork wrote:
> > > "Wassenberg, Dennis"  writes:
> > > 
> > > > After that dmesg shows this:
> > > > [ 930.843781] usb 1-7: new high-speed USB device number 16 using 
> > > > xhci_hcd
> > > > [ 930.996572] usb 1-7: New USB device found, idVendor=8087, 
> > > > idProduct=07f5, bcdDevice= 0.00
> > > > [ 930.996577] usb 1-7: New USB device strings: Mfr=0, Product=0, 
> > > > SerialNumber=0
> > > > [ 937.683939] usb 1-7: USB disconnect, device number 16
> > > > 
> > > > So, in general I think there should be USB lines routed to the M.2 slot 
> > > > but I have no idea why the device leaves
> > > > the
> > > > bus. It is possible to run the script again and again but in the end it 
> > > > will always disconnect automatically.
> > > 
> > > I know nothing about these modems, but my guess is that this is a
> > > bootloader mode. Mostly based on the assumption that there will be one,
> > > and that the vendor-id will be something non-Intel in application mode.
> > > 
> > > You can probably confirm this by capturing the full device descriptor,
> > > e.g by creating a udev rule to dump it or simply by snooping on the bus.
> > > 
> > > If this assumption is correct, then the firmware was supposed to boot
> > > into an application mode and then reconnect to the USB bus with its real
> > > device ID and descriptors.  This could be failing due to a firmware
> > > crash, maybe caused by this unexpected state.  Or more likely:  The
> > > firmware on this modem is built without support for the USB mode.
> > > 
> > > Do you have any confirmation that it 

Re: Fibocom L850-GL / Intel XMM7360

2020-06-22 Thread Aleksander Morgado
Hey,

> > Anyway, FWIW, I'd explore the PCIe driver option first if I were you.
> > That's the only mode tested by anyone, so it is more likely to work.
> Is there anybody reading this willing and knowlegable enough to work on
> a kernel driver for inclusion in mainline? I'm able to provide funding
> and hardware for testing...
>

If I'm not mistaken, Intel themselves are working on implementing the
PCIe driver for these XMM based modules, but I don't know how well
that is going, or when it's going to happen. I'll ask Fibocom to see
if they have updates.

If switching the L850-GL to USB mode works, though, that would
probably work very well. The Dell DW5820e is a L850-GL in USB mode,
and I added a lot of support for that module in the past years.

-- 
Aleksander
https://aleksander.es
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


Re: Fibocom L850-GL / Intel XMM7360

2020-06-22 Thread Wassenberg, Dennis
Hi all,

I tested the PCI approach.

Unfortunately I had no luck. The kernel PCI driver at 
https://github.com/xmm7360/xmm7360-pci can not initiale the modem
correctly. The modem stays at status=0xfeedb007. This seems to mean that the 
modem is (still) booting. After 20 seconds
probing fails. The kernel driver gives up waiting for the device to boot.

So, both options: usb switch and native pci driver will not work.

Are there any ideas how to continue?

Thank you & best regards,

Dennis


On Thu, 2020-06-18 at 16:24 +0200, Dennis Wassenberg wrote:
> Hi Bjørn,
> 
> thank you for your estimation.
> 
> > Do you have any confirmation that it is actually possible to switch this
> > firmware into USB mode?  Are there other firmwares available with
> > (possible) USB support?
> > 
> 
> I don't have a confirmation that the USB mode will really work, especially on 
> the new models.
> 
> Last year (Lenovo Thinkpad Whiskey Lake series) there was the possibility to 
> choose between the slow modem (Fibocom
> L830-EB) and the faster option Fibocom L850-GL. This year the slow modem ist 
> the fast modem of the last year and the
> fast modem is CAT16 Fibocom L860-GL.
> 
> Regarding the Lenovo Thinkpad Whiskey Lake series models I found some threads 
> where the USB mode switch worked:
> 
> https://forums.lenovo.com/t5/Other-Linux-Discussions/WWAN-Fibocom-L850-GL-and-Linux-support/m-p/4318903?page=1#4327397
> https://gmt-24.net/archives/1461
> 
> Thats why I assumed that this might work at newer Thinkpads as well.
> 
> Especially https://gmt-24.net/archives/1461 shows that your assumption 
> regarding the bootloader and application mode
> seems to be correct.
> 
> This comes out directly after disabling the PCIe link and directly after that:
> [  162.799214] usb 1-6: new high-speed USB device number 5 using xhci_hcd
> [  162.940604] usb 1-6: New USB device found, idVendor=8087, idProduct=07f5, 
> bcdDevice= 0.00
> [  162.940612] usb 1-6: New USB device strings: Mfr=0, Product=0, 
> SerialNumber=0
> [  169.651754] usb 1-6: USB disconnect, device number 5
> 
> Now bcdDevice changed to real device id.
> 
> [  175.462630] usb 1-6: new high-speed USB device number 6 using xhci_hcd
> [  175.620153] usb 1-6: New USB device found, idVendor=2cb7, idProduct=0007, 
> bcdDevice= 3.33
> [  175.620162] usb 1-6: New USB device strings: Mfr=1, Product=2, 
> SerialNumber=3
> [  175.620167] usb 1-6: Product: L850-GL
> [  175.620172] usb 1-6: Manufacturer: Fibocom Wireless Inc.
> [  175.620176] usb 1-6: SerialNumber: 00499901064
> 
> 
> > Anyway, FWIW, I'd explore the PCIe driver option first if I were you.
> > That's the only mode tested by anyone, so it is more likely to work.
> 
> Ok, I will try that approach and let you know my results.
> 
> Thank you & best regards,
> 
> Dennis
> 
> 
> On Thu, 2020-06-18 at 15:36 +0200, Bjørn Mork wrote:
> > "Wassenberg, Dennis"  writes:
> > 
> > > After that dmesg shows this:
> > > [ 930.843781] usb 1-7: new high-speed USB device number 16 using xhci_hcd
> > > [ 930.996572] usb 1-7: New USB device found, idVendor=8087, 
> > > idProduct=07f5, bcdDevice= 0.00
> > > [ 930.996577] usb 1-7: New USB device strings: Mfr=0, Product=0, 
> > > SerialNumber=0
> > > [ 937.683939] usb 1-7: USB disconnect, device number 16
> > > 
> > > So, in general I think there should be USB lines routed to the M.2 slot 
> > > but I have no idea why the device leaves
> > > the
> > > bus. It is possible to run the script again and again but in the end it 
> > > will always disconnect automatically.
> > 
> > I know nothing about these modems, but my guess is that this is a
> > bootloader mode. Mostly based on the assumption that there will be one,
> > and that the vendor-id will be something non-Intel in application mode.
> > 
> > You can probably confirm this by capturing the full device descriptor,
> > e.g by creating a udev rule to dump it or simply by snooping on the bus.
> > 
> > If this assumption is correct, then the firmware was supposed to boot
> > into an application mode and then reconnect to the USB bus with its real
> > device ID and descriptors.  This could be failing due to a firmware
> > crash, maybe caused by this unexpected state.  Or more likely:  The
> > firmware on this modem is built without support for the USB mode.
> > 
> > Do you have any confirmation that it is actually possible to switch this
> > firmware into USB mode?  Are there other firmwares available with
> > (possible) USB support?
> > 
> > 
> > Anyway, FWIW, I'd explore the PCIe driver option first if I were you.
> > That's the only mode tested by anyone, so it is more likely to work.
> > 
> > 
> > 
> > Bjørn
> 
> 

___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


Re: Fibocom L850-GL / Intel XMM7360

2020-06-21 Thread Andreas Fett
Hello list,

On Thu, Jun 18, 2020 at 03:36:25PM +0200, Bjørn Mork wrote:
> Anyway, FWIW, I'd explore the PCIe driver option first if I were you.
> That's the only mode tested by anyone, so it is more likely to work.
Is there anybody reading this willing and knowlegable enough to work on
a kernel driver for inclusion in mainline? I'm able to provide funding
and hardware for testing...

Andreas

-- 
The three chief virtues of a programmer are:
Laziness, Impatience and Hubris. -- Larry Wall


signature.asc
Description: PGP signature
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


Re: Fibocom L850-GL / Intel XMM7360

2020-06-18 Thread Wassenberg, Dennis
Hi Bjørn,

thank you for your estimation.

> Do you have any confirmation that it is actually possible to switch this
> firmware into USB mode?  Are there other firmwares available with
> (possible) USB support?
> 

I don't have a confirmation that the USB mode will really work, especially on 
the new models.

Last year (Lenovo Thinkpad Whiskey Lake series) there was the possibility to 
choose between the slow modem (Fibocom
L830-EB) and the faster option Fibocom L850-GL. This year the slow modem ist 
the fast modem of the last year and the
fast modem is CAT16 Fibocom L860-GL.

Regarding the Lenovo Thinkpad Whiskey Lake series models I found some threads 
where the USB mode switch worked:

https://forums.lenovo.com/t5/Other-Linux-Discussions/WWAN-Fibocom-L850-GL-and-Linux-support/m-p/4318903?page=1#4327397
https://gmt-24.net/archives/1461

Thats why I assumed that this might work at newer Thinkpads as well.

Especially https://gmt-24.net/archives/1461 shows that your assumption 
regarding the bootloader and application mode
seems to be correct.

This comes out directly after disabling the PCIe link and directly after that:
[  162.799214] usb 1-6: new high-speed USB device number 5 using xhci_hcd
[  162.940604] usb 1-6: New USB device found, idVendor=8087, idProduct=07f5, 
bcdDevice= 0.00
[  162.940612] usb 1-6: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[  169.651754] usb 1-6: USB disconnect, device number 5

Now bcdDevice changed to real device id.

[  175.462630] usb 1-6: new high-speed USB device number 6 using xhci_hcd
[  175.620153] usb 1-6: New USB device found, idVendor=2cb7, idProduct=0007, 
bcdDevice= 3.33
[  175.620162] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  175.620167] usb 1-6: Product: L850-GL
[  175.620172] usb 1-6: Manufacturer: Fibocom Wireless Inc.
[  175.620176] usb 1-6: SerialNumber: 00499901064


> Anyway, FWIW, I'd explore the PCIe driver option first if I were you.
> That's the only mode tested by anyone, so it is more likely to work.
Ok, I will try that approach and let you know my results.

Thank you & best regards,

Dennis


On Thu, 2020-06-18 at 15:36 +0200, Bjørn Mork wrote:
> "Wassenberg, Dennis"  writes:
> 
> > After that dmesg shows this:
> > [ 930.843781] usb 1-7: new high-speed USB device number 16 using xhci_hcd
> > [ 930.996572] usb 1-7: New USB device found, idVendor=8087, idProduct=07f5, 
> > bcdDevice= 0.00
> > [ 930.996577] usb 1-7: New USB device strings: Mfr=0, Product=0, 
> > SerialNumber=0
> > [ 937.683939] usb 1-7: USB disconnect, device number 16
> > 
> > So, in general I think there should be USB lines routed to the M.2 slot but 
> > I have no idea why the device leaves the
> > bus. It is possible to run the script again and again but in the end it 
> > will always disconnect automatically.
> 
> I know nothing about these modems, but my guess is that this is a
> bootloader mode. Mostly based on the assumption that there will be one,
> and that the vendor-id will be something non-Intel in application mode.
> 
> You can probably confirm this by capturing the full device descriptor,
> e.g by creating a udev rule to dump it or simply by snooping on the bus.
> 
> If this assumption is correct, then the firmware was supposed to boot
> into an application mode and then reconnect to the USB bus with its real
> device ID and descriptors.  This could be failing due to a firmware
> crash, maybe caused by this unexpected state.  Or more likely:  The
> firmware on this modem is built without support for the USB mode.
> 
> Do you have any confirmation that it is actually possible to switch this
> firmware into USB mode?  Are there other firmwares available with
> (possible) USB support?
> 
> 
> Anyway, FWIW, I'd explore the PCIe driver option first if I were you.
> That's the only mode tested by anyone, so it is more likely to work.
> 
> 
> 
> Bjørn

___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


Re: Fibocom L850-GL / Intel XMM7360

2020-06-18 Thread Bjørn Mork
"Wassenberg, Dennis"  writes:

> After that dmesg shows this:
> [ 930.843781] usb 1-7: new high-speed USB device number 16 using xhci_hcd
> [ 930.996572] usb 1-7: New USB device found, idVendor=8087, idProduct=07f5, 
> bcdDevice= 0.00
> [ 930.996577] usb 1-7: New USB device strings: Mfr=0, Product=0, 
> SerialNumber=0
> [ 937.683939] usb 1-7: USB disconnect, device number 16
>
> So, in general I think there should be USB lines routed to the M.2 slot but I 
> have no idea why the device leaves the
> bus. It is possible to run the script again and again but in the end it will 
> always disconnect automatically.

I know nothing about these modems, but my guess is that this is a
bootloader mode. Mostly based on the assumption that there will be one,
and that the vendor-id will be something non-Intel in application mode.

You can probably confirm this by capturing the full device descriptor,
e.g by creating a udev rule to dump it or simply by snooping on the bus.

If this assumption is correct, then the firmware was supposed to boot
into an application mode and then reconnect to the USB bus with its real
device ID and descriptors.  This could be failing due to a firmware
crash, maybe caused by this unexpected state.  Or more likely:  The
firmware on this modem is built without support for the USB mode.

Do you have any confirmation that it is actually possible to switch this
firmware into USB mode?  Are there other firmwares available with
(possible) USB support?


Anyway, FWIW, I'd explore the PCIe driver option first if I were you.
That's the only mode tested by anyone, so it is more likely to work.



Bjørn
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


Re: Fibocom L850-GL / Intel XMM7360 support

2020-01-08 Thread Dan Williams
On Wed, 2020-01-08 at 10:00 +0100, Bjørn Mork wrote:
> James Wah  writes:
> 
> > Hi gang,
> > 
> > I've been working on a PCI driver for the Fibocom L850-GL, and
> > while
> > it's very rough at this point, it sure does transfer data.
> > 
> > If anyone is interested in developing support in MM, or in shaping
> > the kernel driver into something people might actually want to use,
> > now
> > would be a good time to get involved. MM integration is well beyond
> > my
> > available time & expertise - I've just been doing this reverse
> > engineering for fun - but I'd be very happy to contribute what I
> > can.
> > 
> > The modem does not speak MBIM over PCI, though it does expose some
> > AT
> > ports. Most tasks eg. PIN management can be done via AT commands.
> > 
> > In order to initialise the modem, though, or to bring up a raw IP
> > interface, it's necessary to speak a custom RPC protocol. This is
> > unpleasant, but not unpossible; the driver I have uses a Python
> > userspace component to do so. The protocol is ugly but not
> > complicated,
> > so a C port wouldn't be too involved.
> > 
> > The driver, and associated RPC tooling, are currently available
> > here:
> > 
> > https://github.com/xmm7360/xmm7360-pci
> > 
> > A little documentation on the RPC protocol is also available:
> > 
> > https://github.com/xmm7360/xmm7360-pci
> 
> Great stuff! Almost makes me want to buy a device to play with ;-)
> 
> Being responsible for a number of historical userspace API mistakes I
> should probably just shut up now  But just in case you haven't
> been
> following this discussion:
> 
> https://www.spinics.net/lists/linux-wireless/msg186483.html
> 
> I have no idea where this has led.  But you should probably discuss
> the
> userspace API with Johannes and Marcel (I assume Dan and Aleksander
> is
> already on the task) before introducing the new driver.

Johannes says the Intel folks will be submitting drivers to staging
"any time now" for that family of devices (7360, 7460, 7560). What the
actual architecture of those drivers is and how you communicate with
them, I don't recall.

Dan

___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


Re: Fibocom L850-GL / Intel XMM7360 support

2020-01-08 Thread James Wah
On Wed, Jan 08, 2020 at 10:29:11AM +0100, Aleksander Morgado wrote:
> Is that the correct link? Don't see anything regarding the RPC protocol
> there

Whoops, my apologies for the sloppy paste. Correct link:

https://github.com/xmm7360/reversing

This is more in the vein of "things that might not be obvious from
reading the code", as opposed to a clean freestanding documentation of
the protocol, for now.

Cheerio,
James
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


Re: Fibocom L850-GL / Intel XMM7360 support

2020-01-08 Thread Aleksander Morgado
>
> A little documentation on the RPC protocol is also available:
>
> https://github.com/xmm7360/xmm7360-pci
>
>
Is that the correct link? Don't see anything regarding the RPC protocol
there

-- 
Aleksander
https://aleksander.es
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


Re: Fibocom L850-GL / Intel XMM7360 support

2020-01-08 Thread Bjørn Mork
James Wah  writes:

> Hi gang,
>
> I've been working on a PCI driver for the Fibocom L850-GL, and while
> it's very rough at this point, it sure does transfer data.
>
> If anyone is interested in developing support in MM, or in shaping
> the kernel driver into something people might actually want to use, now
> would be a good time to get involved. MM integration is well beyond my
> available time & expertise - I've just been doing this reverse
> engineering for fun - but I'd be very happy to contribute what I can.
>
> The modem does not speak MBIM over PCI, though it does expose some AT
> ports. Most tasks eg. PIN management can be done via AT commands.
>
> In order to initialise the modem, though, or to bring up a raw IP
> interface, it's necessary to speak a custom RPC protocol. This is
> unpleasant, but not unpossible; the driver I have uses a Python
> userspace component to do so. The protocol is ugly but not complicated,
> so a C port wouldn't be too involved.
>
> The driver, and associated RPC tooling, are currently available here:
>
> https://github.com/xmm7360/xmm7360-pci
>
> A little documentation on the RPC protocol is also available:
>
> https://github.com/xmm7360/xmm7360-pci

Great stuff! Almost makes me want to buy a device to play with ;-)

Being responsible for a number of historical userspace API mistakes I
should probably just shut up now  But just in case you haven't been
following this discussion:

https://www.spinics.net/lists/linux-wireless/msg186483.html

I have no idea where this has led.  But you should probably discuss the
userspace API with Johannes and Marcel (I assume Dan and Aleksander is
already on the task) before introducing the new driver.




Bjørn
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel