:: Re: [maemo-leste] Grand plan to get…
Top Page
Delete this message
Reply to this message
Author: Pavel Machek
Date:  
To: Merlijn Wajer
CC: maemo-leste, mpartap, sre, martin_rysavy, nekit1000
Subject: Re: [maemo-leste] Grand plan to get make phones... phone (for Motorola Droid 4)
Hi!

> > >> Pavel, are you seeing this on your ofono fork/branch too?
> > >
> > > No, I believe I have the basics working. (But disable the PIN code for
> > > testing.)
> > >
> > >> I will add this ofono to the -devel repo today, since it's easy to build
> > >> for me. Happy to try to build Pavel's ofono too, if you think the repos
> > >> diverge significantly (it's not quite clear to me at this point).
> > >
> > > They are now significantly different.
> > >
> > > If you want something working, take one of the branches I mentioned before.
> > >
> > > If you want to look at the code, take a look at the latest
> > > branch... and that one is also suitable base for development.
> >
> > I checked out mux-v1.31-5, but I can't get it to pick up the modem. Is
> > anything missing in these rules?
> >
> > > # grep -v '#' /etc/udev/rules.d/55-modem.rules
> > > KERNEL=="gsmtty[0-9]*", GROUP="dialout", MODE="0660"
> > > SUBSYSTEMS=="gnss", GROUP="root", MODE="0644"
> > > KERNEL=="motmdm1", ENV{OFONO_DRIVER}="motmdm"
> > > ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8",
> > > ATTRS{idProduct}=="2a70", TEST=="power/control"
> > > ATTR{power/control}="auto"
>
> I believe you need:
>
> KERNEL=="gsmtty[0-9]*", GROUP="dialout", MODE="0660", ENV{OFONO_DRIVER}="motmdm"


I checked, and I'm using:

user@devuan:~$ cat /etc/udev/rules.d/55-modem.rules
KERNEL=="ttyUSB4", ENV{OFONO_DRIVER}="g1"

SUBSYSTEMS=="motmdm", GROUP="dialout", MODE="0664"
SUBSYSTEMS=="gsmtty", GROUP="dialout", MODE="0664"
SUBSYSTEMS=="gnss", GROUP="root", MODE="0644"

# ofono needs these
KERNEL=="ttyUSB4", ENV{OFONO_DRIVER}="g1"
KERNEL=="motmdm1", ENV{OFONO_DRIVER}="motmdm"
KERNEL=="gsmtty1", ENV{OFONO_DRIVER}="motmdm"

# mdm6600 needs autoidle enabled, otherwise ohci will block deeper pm states for soc
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", ATTRS{idProduct}=="2a70", TEST=="power/control" ATTR{power/control}="auto"

But above should be ok.

Best regards,
                                    Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html