LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 03-03-2011, 04:43 AM   #1
bhayanisunny
LQ Newbie
 
Registered: Oct 2010
Location: Bangalore, INDIA
Distribution: Fedora Core 11
Posts: 6

Rep: Reputation: 0
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.

Last edited by bhayanisunny; 03-03-2011 at 04:46 AM. Reason: had misprinted a code block
 
Old 03-05-2011, 01:52 AM   #2
cnxsoft
Member
 
Registered: Nov 2010
Location: Thailand
Distribution: Fedora 12, Ubuntu 10.10
Posts: 166

Rep: Reputation: 29
You may also need to enable the option driver in your kernel.
 
Old 03-05-2011, 11:27 PM   #3
bhayanisunny
LQ Newbie
 
Registered: Oct 2010
Location: Bangalore, INDIA
Distribution: Fedora Core 11
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by cnxsoft View Post
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.
 
Old 03-07-2011, 08:41 PM   #4
cnxsoft
Member
 
Registered: Nov 2010
Location: Thailand
Distribution: Fedora 12, Ubuntu 10.10
Posts: 166

Rep: Reputation: 29
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.
 
Old 03-08-2011, 05:42 AM   #5
bhayanisunny
LQ Newbie
 
Registered: Oct 2010
Location: Bangalore, INDIA
Distribution: Fedora Core 11
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by cnxsoft View Post
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.
 
Old 03-08-2011, 08:48 AM   #6
cnxsoft
Member
 
Registered: Nov 2010
Location: Thailand
Distribution: Fedora 12, Ubuntu 10.10
Posts: 166

Rep: Reputation: 29
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Oops at loading kernel module on AMCC Sequoia board. ynedel Linux - Newbie 1 03-14-2009 05:00 AM
Cannot connect usb cellphone modem to internet Rodemire Linux - Networking 4 02-15-2009 04:59 PM
ADSL USB Modem / Router connecting ( through USB ) but cannot connect to internet DJ Shaji Linux - Networking 1 03-28-2008 03:24 AM
Connect to internet with USB external modem rssguy Linux - Newbie 5 04-28-2005 07:58 PM
can't connect internet with adsl usb modem arthur_mueller Slackware 1 12-23-2003 01:48 AM


All times are GMT -5. The time now is 11:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration