Project

General

Profile

Feature #2206

Note 2 LTE modem on mainline kernel

Added by Joey Hewitt about 2 months ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
01/09/2021
Due date:
% Done:

0%

Estimated time:
Resolution:
Device:
New device
Grant:

Description

I'll track work on LTE modems on mainline kernel. The attached patch goes in the kernel. Build and install https://github.com/technexion-android/platform_external_libgpiod, then run the following script:

pin_name() {
    sed 's/-/ /' /sys/firmware/devicetree/base/soc/pinctrl@*/$1/samsung,pins
}

gpioset $(pin_name ap2mdm-soft-reset-n)=0
sleep .005
gpioset $(pin_name ap2mdm-soft-reset-n)=1
sleep .010
gpioset $(pin_name ap2mdm-status)=1

The modem should now appear in lsusb, in QDL mode. I am trying to figure out how to boot it. I'm using https://git.replicant.us/contrib/scintill/external_modem-boot/ with some obsolete pieces stripped out, but now the modem sends a non-existent command 0. I don't know why, but some guesses are that the HSIC is buggy in this kernel, or the old kernel does something I don't know about to get the modem in the right state.


Files

patch (4.38 KB) patch Joey Hewitt, 01/09/2021 12:36 AM
#1

Updated by Joey Hewitt about 2 months ago

P.S. Credit to https://github.com/fourkbomb/linux/tree/modem for the HSIC devicetree code.

#2

Updated by Kurtis Hanna about 1 month ago

Denis is doing some upstream modem work in this repo that continues on the work forkbomb was doing at the link above: https://git.replicant.us/contrib/GNUtoo/kernel_replicant_linux/log/?h=replicant-11-i9300-modem

Also available in: Atom PDF