pepoとネットワークを語ろう

40年前からこれまでとこれからのネットワークを語る

acm-FOMA.v0.26.09をリリースしました。

2010-11-20 14:44:41 | Linux

acm-FOMAはLinux Kernel2.6.Xのdocom 携帯電話のモデムドライバです。

acm-FOMA.c is driver of docomo FOMA Cellular phone modem mode.

1.Install
[root@~]# tar xvfz acm-FOMA.v0.26.09.tar.gz
# cd /usr/src/linux-2.6.35
# patch -p1
# make menuconfig

CONFIG_USB_ACM_FOMA:                                                                    x
  x                                                                                     x
  x This driver USB Abstract Control Model driver for docomo FOMA Cellular phone.       x
  x (Test Version)                                                                      x
  x                                                                                     x
  x                                                                                     x
  x Symbol: USB_ACM_FOMA [=m]                                                           x
  x Prompt: USB Modem (docomo FOMA) support                                             x
  x   Defined at drivers/usb/class/Kconfig:22                                           x
  x   Depends on: USB                                                                   x
  x   Location:                                                                         x
  x     -> Device Drivers                                                               x
  x       -> USB support                                                                x
  x         -> Support for Host-side USB (USB [=y])                                     x

make modules
make modules_install

OR. An easier installation might be the following method.
# cd acm-FOMA.v0.26.09
[root@~]# make
if test ! -f /lib/modules/2.6.35.6-48.fc14.i686.PAE/build/drivers/usb/class/cdc-acm.h ; then \
echo not exit ! /lib/modules/2.6.35.6-48.fc14.i686.PAE/build/drivers/usb/class/cdc-acm.h ; \
exit 1; \
fi
if test ! -f /root/acm-FOMA.v0.26.09/cdc-acm.h ; then \
ln -s /lib/modules/2.6.35.6-48.fc14.i686.PAE/build/drivers/usb/class/cdc-acm.h cdc-acm.h ; \
fi
make -C /lib/modules/2.6.35.6-48.fc14.i686.PAE/build M=/root/acm-FOMA.v0.26.09 modules
make[1]: ディレクトリ `/usr/src/kernels/2.6.35.6-48.fc14.i686.PAE' に入ります
  CC [M]  /root/acm-FOMA.v0.26.09/acm-FOMA.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /root/acm-FOMA.v0.26.09/acm-FOMA.mod.o
  LD [M]  /root/acm-FOMA.v0.26.09/acm-FOMA.ko
make[1]: ディレクトリ `/usr/src/kernels/2.6.35.6-48.fc14.i686.PAE' から出ます
[root@~]# make install
install -m 644 -c acm-FOMA.ko /lib/modules/2.6.35.6-48.fc14.i686.PAE/kernel/drivers/usb/class
depmod -a
install acm-FOMA.ko completed!
root@~]# make clean
rm -rf *.o *.ko .*.cmd .*.flags *.lst *.mod.c *.symvers modules.order .tmp_versions /root/acm-FOMA.v0.26.09/cdc-acm.h
[root@~]#

3.Discovery of device
 When the cable of FOMA Cellular phone is inserted in USB, you confirm the following logs.

[root@~]# tail -n 10 /var/log/messages
Nov 19 00:13:01 (none) kernel: usb 2-2: new full speed USB device using uhci_hcd and address 3
Nov 19 00:13:07 (none) kernel: acm_FOMA 2-2:1.0: ttyACM0: USB ACM device
Nov 19 00:13:07 (none) kernel: acm_FOMA 2-2:1.2: ttyACM1: USB ACM device
Nov 19 00:13:07 (none) kernel: usbcore: registered new interface driver acm_FOMA
Nov 19 00:13:07 (none) kernel: acm_FOMA: v0.26-FOMA.09:USB modems driver for docomo FOMA Cellular phone

[root@~]# epicon -l /dev/ttyACM0

** Welcome to epicon Version-4.8 Copyright Isamu Yamauchi compiled:Nov 18 2010 **
      exec shell         ~!
      send binary files  ~f
      call rz,sz,sx,rx   ~rz,~sz,~sx,~rx
      call kermit        ~sk,~rk
      external command   ~C
      change speed       ~c
      exit               ~.
      Connected /dev/ttyACM0

at
OK
ath
OK
Disconnected
[root@~]#

pepo