System Configuration
From Moto4Lin
Required steps:
- Kernel with the USB Abstract Control Model module compiled (acm for 2.4.x, cdc-acm for 2.6.x). If problems with the device connection appear, try to upgrade the kernel. (prompt USB Modem (CDC ACM) support)
- /proc/bus/usb mounted (this is usually done automatically when the usb drivers are loaded).
- The ACM device node (/dev/ttyACM0, /dev/usb/acm/0, /dev/input/ttyACM0, /dev/ttyUSB0, etc.). Usually this already exists, or is created by the driver.
Generally, if the telephone can be used as a GPRS modem, it is also possible to use with P2K without any additional configuration.
Thus, before starting moto4lin, it is necessary to make sure the ACM drivers are loaded, a device node exists (and you know what it is :-)), and the telephone is listed in /proc/bus/usb/devices.
Configuration for a normal user
Unfortunately, switching the device into P2K mode and using it thereafter requires super-user privileges. It is possible to use moto4lin as a normal user; to do this, you will need write access to the device node (p.e., /dev/ttyACM0) and the usbfs tree (/proc/bus/usb). FIXME: mounting usbfs with write access for all users
If you have UDEV installed on your system (UDEV is installed by default on 2.6 kernels), there is another way to allow a normal user to use moto4lin. Follow the following:
- Create a group called usb.
- Add your user to the usb group.
- Add the following to a rules file in /etc/udev/rules.d/
KERNEL=="ttyACM[0-9]*", NAME="ttyACM%n", GROUP="usb", MODE="0660"
SUBSYSTEM=="usb_device", ATTRS{product}=="Motorola*", GROUP="usb", mode="0660"
When the phone is plugged in, the /dev/ttyACM0 and /dev/bus/usb/XXX/YYY device nodes will be created and will have permissions for a member of the usb group to access the device. Works on a Gentoo system with the 2.6.13 kernel!
On recent Fedora Core 4 systems /dev/ttyACM* is created automagically by udev for access by the group uucp, so you have to add yourself to this group. At the moment there is no hotplug script for Motorola phones (22b8:**02,22b8:**01?) available, so you have to chmod (the right place in) /proc/bus/usb manually as root.
Configuration for a normal user on OpenSuSE 10.2 (2.6.18.2-34-default)
On recent OpenSuse 10.2 system /dev/ttyACM* is created automagically by udev for access by the group uucp, so you have to grant yourself permissions to the the device file through an udev rule. (no usb group need be added if uucp is used on opensuse)
- Add the following to a rules file in /etc/udev/rules.d/ (such as: 95-udev-late.rules)
KERNEL=="ttyACM[0-9]*", NAME="ttyACM%n", GROUP="uucp", MODE="0660"
