LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   Not able to connect internet through 3G USB Modem by PPPD from CLI on AMCC Board (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/not-able-to-connect-internet-through-3g-usb-modem-by-pppd-from-cli-on-amcc-board-866191/)

bhayanisunny 03-03-2011 05:43 AM

Not able to connect internet through 3G USB Modem by PPPD from CLI on AMCC Board
 
Hi All,

I am trying to connect my AMCC Board to internet through a 3G USB Modem.

Earlier I was trying to connect my PC having Fedora 11 to connect to internet using the same 3G Modem using WvDial and it worked after some support and research. Here is the link to those who want to configure using Fedora 11

http://www.linuxquestions.org/questi...=1#post4270801

For KERNEL support, I have enabled the following options:

Code:

Device Drivers  --->
 Network device support --->
  <*> PPP (point-to-point protocol) support[*] PPP filtering
  <*> PPP support for async serial ports
  <*> PPP support for sync tty ports
  <*> PPP Deflate compression
  <*> PPP BSD-Compress compression
 USB support  --->
  <*> Support for Host-side USB
  <*>  UHCI HCD (most Intel and VIA) support
  USB Serial Converter support  --->
  <*> USB Serial Converter support
  <*>  USB driver for GSM and CDMA modems

I have also added the "ppp" application package to my Root Filesystem (RFS).

I have created the ppp scripts in "/etc/ppp/" folder by following the link:

http://tldp.org/HOWTO/PPP-HOWTO


But the problem is when I insert the 3G USB Modem, I get the following log in kernel:

Code:

# usb 2-1: new full speed USB device using ppc-of-ohci and address 2
usb 2-1: New USB device found, idVendor=12d1, idProduct=1446
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=4
usb 2-1: Product: HUAWEI Mobile
usb 2-1: Manufacturer: HUA˙WEI TECHNOLOGIES
usb 2-1: SerialNumber: ˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙
usb 2-1: configuration #1 chosen from 1 choice

and when I do the "cat /proc/devices" I get
Code:

# cat /proc/devices
Character devices:
  1 mem
  2 pty
  3 ttyp
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
 10 misc
 89 i2c
 90 mtd
108 ppp
128 ptm
136 pts
180 usb
188 ttyUSB
189 usb_device
252 usb_endpoint
253 usbmon
254 rtc

Block devices:
  1 ramdisk
259 blkext
 31 mtdblock
 93 nftl

I am not getting the serial usb node in "/dev/ttyUSB0".

Do I need to create it manually. Because in PC, it created dynamically on inserting the 3G Modem.

Actually in my PC, I saw the log:

Code:

usb 2-2: New USB device found, idVendor=12d1, idProduct=140b
usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=4
usb 2-2: Product: HUAWEI Mobile
usb 2-2: Manufacturer: HUA�WEI TECHNOLOGIES
usb 2-2: SerialNumber: �������������������
usb 2-2: configuration #1 chosen from 1 choice
usb-storage: probe of 2-2:1.3 failed with error -1
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
option 2-2:1.0: GSM modem (1-port) converter detected
usb 2-2: GSM modem (1-port) converter now attached to ttyUSB0
option 2-2:1.1: GSM modem (1-port) converter detected
usb 2-2: GSM modem (1-port) converter now attached to ttyUSB1
option 2-2:1.2: GSM modem (1-port) converter detected
usb 2-2: GSM modem (1-port) converter now attached to ttyUSB2
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems

which I am not able to see in the AMCC Board.

Can you let me know what is the problem.

This is the kernel boot log related to usb-serial:
Code:

usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems


Your help will really be appreciated.

cnxsoft 03-05-2011 02:52 AM

You may also need to enable the option driver in your kernel.

bhayanisunny 03-06-2011 12:27 AM

Quote:

Originally Posted by cnxsoft (Post 4279601)
You may also need to enable the option driver in your kernel.

Hi cnxsoft,

I have enabled the related drivers in the kernel.

Code:

Device Drivers  --->
 Network device support --->
  <*> PPP (point-to-point protocol) support[*] PPP filtering
  <*> PPP support for async serial ports
  <*> PPP support for sync tty ports
  <*> PPP Deflate compression
  <*> PPP BSD-Compress compression
 USB support  --->
  <*> Support for Host-side USB
  <*>  UHCI HCD (most Intel and VIA) support
  USB Serial Converter support  --->
  <*> USB Serial Converter support
  <*>  USB driver for GSM and CDMA modems

Please do let me know if anything other driver support is required from the kernel side.

cnxsoft 03-07-2011 09:41 PM

Sorry, when I installed a Huawei 3G dongle in my embedded board, my kernel was older and the "Option driver" is now called "USB driver for GSM and CDMA modems". So it seems you have all drivers needed.

For my dongle I had to use usb_modeswitch to manually switch between the mass storage and serial mode of the 3G dongle.

For you device VID=12d1, PID=1446, somebody had to modify usb_modeswitch configuration as well
http://www.draisberghof.de/usb_modes...opic.php?t=349

You might want to run usb_modeswitch manually to see if you get any clues.

bhayanisunny 03-08-2011 06:42 AM

Quote:

Originally Posted by cnxsoft (Post 4282179)
You might want to run usb_modeswitch manually to see if you get any clues.

Hi cnxsoft,

Actually, I do not have usb_modeswitch package in my rootfilesystem. Can you please be more elaborate on how you installed or enabled the usb_modeswitch option for your board.

I went through the link which you gave. So in my host PC, I have a file in "/lib/udev/rules.d/40-usb_modeswitch.rules". So can I just copy this file to my RFS.

cnxsoft 03-08-2011 09:48 AM

Sorry, I did not take note when I did that a few months ago. I just remember it was for HUAWEI EC169 dongle.

If you do not have usb_modeswitch in your rootfs, you can download the source at http://www.draisberghof.de/usb_modeswitch/#download and cross-compile it for your board with something like:

Quote:

./configure --host=i686 --target=powerpc-linux
make
First, you'll probably have to cross-compile some other libraries such as libusb-0.1.12.


All times are GMT -5. The time now is 08:34 PM.