<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.DefaultFontHxMailStyle
        {mso-style-name:"Default Font HxMail Style";
        font-family:"Calibri",sans-serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span class="DefaultFontHxMailStyle"><span style="font-size:12.0pt">Thank you Aleksander for the tips and help.<o:p></o:p></span></span></p>
<p class="MsoNormal"><span class="DefaultFontHxMailStyle"><span style="font-size:12.0pt"><o:p> </o:p></span></span></p>
<p class="MsoNormal"><span class="DefaultFontHxMailStyle"><span style="font-size:12.0pt">I tried a newer distro with
<o:p></o:p></span></span></p>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:12.0pt">Setting up network-manager (1.14.6-2+deb10u1) …<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:12.0pt">Setting up modemmanager (1.10.0-1) ...<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span class="DefaultFontHxMailStyle"><span style="font-size:12.0pt"><o:p> </o:p></span></span></p>
<p class="MsoNormal"><span class="DefaultFontHxMailStyle"><span style="font-size:12.0pt">I’m still running into errors but I’ll post my question on our Git issues tracker if that is better.<o:p></o:p></span></span></p>
<p class="MsoNormal"><span class="DefaultFontHxMailStyle"><span style="font-size:12.0pt"><o:p> </o:p></span></span></p>
<p class="MsoNormal"><span class="DefaultFontHxMailStyle"><span style="font-size:12.0pt">Thanks,<o:p></o:p></span></span></p>
<p class="MsoNormal"><span class="DefaultFontHxMailStyle"><span style="font-size:12.0pt"><o:p> </o:p></span></span></p>
<p class="MsoNormal">Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">
Mail</a> for Windows 10</p>
<p class="MsoNormal"><span class="DefaultFontHxMailStyle"><span style="font-size:12.0pt"><o:p> </o:p></span></span></p>
<div style="mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:aleksander@aleksander.es">Aleksander Morgado</a><br>
<b>Sent: </b>Saturday, April 4, 2020 2:24 AM<br>
<b>To: </b><a href="mailto:valens.dsilva@revivalanalytics.com">Valens D'Silva</a><br>
<b>Cc: </b><a href="mailto:modemmanager-devel@lists.freedesktop.org">modemmanager-devel@lists.freedesktop.org</a><br>
<b>Subject: </b>Re: ModemManager 1.6.4 on Raspbian Stretch cannot acquire the 'org.freedesktop.ModemManager1' service name</p>
</div>
<p class="MsoNormal"><span class="DefaultFontHxMailStyle"><span style="font-size:12.0pt"><o:p> </o:p></span></span></p>
<p class="MsoNormal">Hey,<br>
<br>
><br>
> I now see that the port /dev/ttyAMA0 is not whitelisted.<br>
><br>
><br>
><br>
> I found a post from an old mailing list on identifying the kernel driver and whitelisting it using this<br>
><br>
><br>
><br>
> ACTION!="add|change|move", GOTO="mm_platform_device_whitelist_end"<br>
><br>
> SUBSYSTEM!="platform", GOTO="mm_platform_device_whitelist_end"<br>
><br>
> DRIVERS=="imx-uart", ENV{ID_MM_PLATFORM_DRIVER_PROBE}="1"<br>
><br>
> LABEL="mm_platform_device_whitelist_end"<br>
><br>
<br>
Please upgrade ModemManager to a newer version, because 1.6.4 is not<br>
even the latest version in the 1.6.x stable series. Ideally, you<br>
should upgrade to the latest 1.12.8 which is the latest stable<br>
version.<br>
<br>
><br>
><br>
> Before I found all this info I created 2 udev rules for /dev/ttyAMA0 and the /devices/platform/soc/20201000.serial. I named them randomly<br>
><br>
><br>
><br>
> cat /etc/udev/rules.d/s7648-ttyama0.rules<br>
><br>
> ACTION=="add", KERNEL=="20201000.serial", ENV{ID_MM_PLATFORM_DRIVER_PROBE}="1"<br>
><br>
<br>
The best way to user-tag the devices, in my opinion, is to use the<br>
device sysfs path of the port. E.g. in order to tag a single TTY you<br>
would get the full realpath of the port:<br>
<br>
$ realpath /sys/class/tty/ttyUSB0<br>
/sys/devices/pci0000:00/0000:00:14.0/usb1/1-11/1-11.4/1-11.4.1/1-11.4.1:1.0/ttyUSB0/tty/ttyUSB0<br>
<br>
And then add the tag based on its devpath (tagging the USB interface,<br>
and *without* the "/sys" prefix):<br>
<br>
$ sudo vim /lib/udev/rules.d/78-mm-user.rules<br>
ACTION!="add|change|move", GOTO="mm_user_rules_end"<br>
DEVPATH=="/devices/pci0000:00/0000:00:14.0/usb1/1-11/1-11.4/1-11.4.1/1-11.4.1:1.0",ENV{ID_MM_PLATFORM_DRIVER_PROBE}="1"<br>
LABEL="mm_user_rules_end"<br>
<br>
Now reload rules and trigger them so that they are re-applied:<br>
$ sudo udevadm control --reload<br>
$ sudo udevadm trigger<br>
<br>
Now, check that the tag is really applied:<br>
$ sudo udevadm info -p<br>
/sys/devices/pci0000:00/0000:00:14.0/usb1/1-11/1-11.4/1-11.4.1/1-11.4.1:1.0<br>
P: /devices/pci0000:00/0000:00:14.0/usb1/1-11/1-11.4/1-11.4.1/1-11.4.1:1.0<br>
L: 0<br>
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-11/1-11.4/1-11.4.1/1-11.4.1:1.0<br>
....<br>
E: ID_MM_PLATFORM_DRIVER_PROBE=1<br>
<br>
After that, restart ModemManager.<br>
<br>
But please note, ID_MM_PLATFORM_DRIVER_PROBE is no longer supported<br>
since 1.12, you should instead use the more generic<br>
ID_MM_DEVICE_PROCESS introduced in 1.10,<br>
<br>
><br>
><br>
> cat /etc/udev/rules.d/ttyama0.rules<br>
><br>
> ACTION=="add|change|move", KERNEL=="ttyAMA0", ENV{ID_MM_TTY_FLOW_CONTROL}="rts-cts", ENV{ID_MM_TTY_BAUDRATE}="115200"<br>
><br>
<br>
Both ID_MM_TTY_BAUDRATE and ID_MM_TTY_FLOW_CONTROL were introduced in<br>
ModemManager 1.10.<br>
<br>
><br>
><br>
> And lastly here is the output of udevadm<br>
><br>
><br>
><br>
> udevadm info --attribute-walk /dev/ttyAMA0<br>
><br>
><br>
<br>
You shouldn't look at the attributes, you should look at the<br>
properties. See the udevadm commands above.<br>
<br>
Cheers!<br>
<br>
-- <br>
Aleksander<br>
<a href="https://aleksander.es">https://aleksander.es</a><o:p></o:p></p>
<p class="MsoNormal"><span class="DefaultFontHxMailStyle"><span style="font-size:12.0pt"><o:p> </o:p></span></span></p>
</div>
</body>
</html>