:: Re: [maemo-leste] Grand plan to get…
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Tony Lindgren
Ημερομηνία:  
Προς: Pavel Machek
Υ/ο: maemo-leste, mpartap, sre, martin_rysavy, nekit1000
Καινούρια Θέματα: [maemo-leste] Droid 4 random reboots, battery charging issues
Αντικείμενο: Re: [maemo-leste] Grand plan to get make phones... phone (for Motorola Droid 4)
* Tony Lindgren <tony@???> [200509 20:15]:
> * Pavel Machek <pavel@???> [200509 19:38]:
> > 3) I can prepare patched kernel for droid 4, based on 5.7-rc. It will use latest Tony's
> > patches, where available, and my/Tony's old hacks where not. Goal: enough support for
> > calls/SMS/data.
>
> I put together initial droid4-pending-v5.7 branch yesterday but need to
> sort out few more audio bugs with the current serdev-ngsm. Might be able
> to push it out on Sunday hopefully.


So I got things behaving again and made a brief test call and heard
some feedback noise between the two phonese so it seems to work still :)

Below are the initial v5.7 kernel based branches at [0][1][2][3][4].

We now use the generic serdev-ngsm driver with the standard /dev/gsmtty*
devices spun up by n_gsm instead of the custom /dev/motmdm* devices like
we did earlier. This means all the commands must prefix the Motorola
custom packet ID to the commands like:

printf "U1234AT+CFUN?\r" > /dev/gsmtty1

This is based on the comments on LKML. The advantage is that the kernel
code is simpler and more generic, and we should be a few steps closer
to getting merged to the mainline kernel.

Merlijn, I'm not sure what to do with the ofono package dependencies
while we're changing ofono over to use the standard interface?

Should we just rename the old ofono hacks to something like ofono-motmdm
until it's no longer needed with the v5.6 kernel? There's probably no
reason to try to support both the old and new interfaces in ofono as the
old interface won't get merged upstream for kernel or for ofono.

Also there are changes are needed for udev to set the permissions,
I'm using these now, not sure if there's a better way for these
individual gsmtty* entries:

KERNEL=="gsmtty1", GROUP="dialout", MODE="0660"
KERNEL=="gsmtty3", GROUP="dialout", MODE="0660"
KERNEL=="gsmtty5", GROUP="dialout", MODE="0660"
KERNEL=="gsmtty6", GROUP="dialout", MODE="0660"
KERNEL=="gsmtty7", GROUP="dialout", MODE="0660"
KERNEL=="gsmtty8", GROUP="dialout", MODE="0660"
KERNEL=="gsmtty9", GROUP="dialout", MODE="0660"
KERNEL=="gsmtty10", GROUP="dialout", MODE="0660"
KERNEL=="gsmtty11", GROUP="dialout", MODE="0660"
KERNEL=="gsmtty12", GROUP="dialout", MODE="0660"

# legacy motmdm interface
#SUBSYSTEMS=="motmdm", GROUP="dialout", MODE="0660"

SUBSYSTEMS=="gnss", GROUP="root", MODE="0644"

# Pavel's ofono branch still needs this I belive
KERNEL=="motmdm1", 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"

Regards,

Tony

droid4 kernel with serdev-ngsm patches (using /dev/gsmtty* instead of /dev/motmdm*):
[0] git://git.kernel.org:/pub/scm/linux/kernel/git/tmlind/linux-omap droid4-pending-v5.7
[1] https://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git/log/?h=droid4-pending-v5.7

pvr hacks that ca be merged into droid4-pending-v5.7
[2] https://github.com/tmlind/linux_openpvrsgx/tree/letux-pvrsrvkm-5.7-rc1-ddk-1.9.2253347-omapdrm-hacks

serdev-ngsm patches only (not typically needed, already droid4-pending-v5.7)
[3] git://git.kernel.org:/pub/scm/linux/kernel/git/tmlind/linux-omap serdev-ngsm-pending-v5.7
[4] https://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git/log/?h=serdev-ngsm-pending-v5.7