PATCH: Enable udev-based autodetection of calypso modem on Freerunner

Neil Jerram neil at ossau.uklinux.net
Wed Dec 15 14:12:16 PST 2010


Hi all,

With the patch below, ofono-0.36 (the current Debian unstable version)
detects the calypso modem on my freerunner.  (Whereas without it, it
doesn't.)

I don't feel confident that the ofono.rules change is in its nicest
possible form, and (IIUC) it's dependent on these earlier rules in
/lib/udev/rules.d/55-openmoko-gta01-gta02.rules on my phone:

# Samsung UARTS
KERNEL=="s3c2410_serial[0-9]",   NAME="ttySAC%n"
KERNEL=="ttySAC[0-9]",   NAME="ttySAC%n"

Given that the actual udev DB entry, under 2.6.34, is:

P: /devices/platform/s3c2440-uart.0/tty/ttySAC0
N: ttySAC0
S: char/204:64
E: UDEV_LOG=3
E: DEVPATH=/devices/platform/s3c2440-uart.0/tty/ttySAC0
E: MAJOR=204
E: MINOR=64
E: DEVNAME=/dev/ttySAC0
E: SUBSYSTEM=tty
E: DEVLINKS=/dev/char/204:64

what's the neatest way of writing a udev rule for that?

Regards,
        Neil


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Enable-udev-based-autodetection-of-calypso-modem-on-.patch
Type: text/x-diff
Size: 2105 bytes
Desc: not available
URL: <http://lists.ofono.org/pipermail/ofono/attachments/20101215/168e5561/attachment.patch>


More information about the ofono mailing list