LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-03-2005, 03:10 PM   #1
zodman
LQ Newbie
 
Registered: May 2005
Posts: 12

Rep: Reputation: 0
Using USB modem


Hello, this is my first post, so be gentle please

I'm currently using Billion BIPAC-7000 ADSL USB Modem and, ...well, I don't have a clue how to set it up in Linux. I can't set it up like a normal dial-up modem, and I can't set it like a ethernet router either, if so then how?

I've search the infamous Linux-Document-Project , and find a HOW-TO on the subject, but it offers on virtually no help on how to setup a ADSL USB modem.

I'm not living in the United State, and my current ISP doesn't have modem driver for Linux.

So, is there anyway to setup my connection? or will I have to waited for my ISP to released the driver?(which may never happen by the way )

sorry for the bad grammar and typos(if there is any), and thank you all for helping
 
Old 05-03-2005, 06:48 PM   #2
beagle2
Member
 
Registered: Aug 2004
Location: Aberdeen Scotland
Distribution: elive,sidux,xp,pclinuxos super gamer, mandriva 2007
Posts: 417

Rep: Reputation: 30
Go here and get driver - http://www.billion.com/support/download/fd/fd1.htm :-)
 
Old 05-04-2005, 02:04 AM   #3
zodman
LQ Newbie
 
Registered: May 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks beagle2! I found the driver

...but

I've tried and install the driver onto my fresh copy of Ubuntu 5.04, and this is what happen after I type make to compile the driver :

gcc -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -DCPU=686 -march=i686 -DMODULE -D__KERNEL__ -DLINUX -I/lib/modules/`uname -r`/build/include -c BlSrv.c -o BlSrv.o
BlSrv.c: In function `BlDatagramSend':
BlSrv.c:250: warning: passing arg 4 of `USBADSL_ProcessMPXFR' from incompatible pointer type
BlSrv.c: In function `USBADSL_ProcessMPXFR':
BlSrv.c:325: error: `USB_QUEUE_BULK' undeclared (first use in this function)
BlSrv.c:325: error: (Each undeclared identifier is reported only once
BlSrv.c:325: error: for each function it appears in.)
BlSrv.c:327: error: too few arguments to function `usb_submit_urb'
BlSrv.c: In function `BlDatagramReceive':
BlSrv.c:404: warning: passing arg 4 of `USBADSL_MPReceivePacket' from incompatible pointer type
make: *** [BlSrv.o] Error 1

At first I thought I was missing some library, but then I check and everything seems to be in order (gcc, GTK+, etc). I even install some addtional components, but it still doesn't work.

So what did I do wrong? did I need some addtional package? sorry if this question is very newbie but I'm really at lost here.

Again, thanks for all the helps.
 
Old 05-04-2005, 02:11 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
the kernel ( and drivers) won't use libraries. do you have the kernel source package installed?

take a look at this line from your output above:
-DMODULE -D__KERNEL__ -DLINUX -I/lib/modules/`uname -r`/build/include -c

the "-I/lib/modules/`uname -r`/build/include" means use the include files (headers) from this directory, look in that directory ( `uname -r` will produce a numerical argument, if you type uname -r in a terminal, it will output your kernel version) and see if it has the correct headers there. here's what is in mine, your s should look pretty similar:

ls /lib/modules/`uname -r`/build/include
acpi asm-frv asm-m68k asm-s390 asm-v850 mtd video
asm asm-generic asm-m68knommu asm-sh asm-x86_64 net
asm-alpha asm-h8300 asm-mips asm-sh64 config pcmcia
asm-arm asm-i386 asm-parisc asm-sparc linux rxrpc
asm-arm26 asm-ia64 asm-ppc asm-sparc64 math-emu scsi
asm-cris asm-m32r asm-ppc64 asm-um media sound

Last edited by __J; 05-04-2005 at 02:12 AM.
 
Old 05-04-2005, 07:03 AM   #5
zodman
LQ Newbie
 
Registered: May 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for answer __J

my /lib/modules/`uname -r`/build/include folder looks similar to yours, and I as you have noted I check and found that I don't have kernel source installed, so I went out and get one.


After installing the kernel source, I try again, but ended up getting the same error message as before :

gcc -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -DCPU=686 -march=i686 -DMODULE -D__KERNEL__ -DLINUX -I/lib/modules/`uname -r`/build/include -c BlSrv.c -o BlSrv.o
BlSrv.c: In function `BlDatagramSend':
BlSrv.c:250: warning: passing arg 4 of `USBADSL_ProcessMPXFR' from incompatible pointer type
BlSrv.c: In function `USBADSL_ProcessMPXFR':
BlSrv.c:325: error: `USB_QUEUE_BULK' undeclared (first use in this function)
BlSrv.c:325: error: (Each undeclared identifier is reported only once
BlSrv.c:325: error: for each function it appears in.)
BlSrv.c:327: error: too few arguments to function `usb_submit_urb'
BlSrv.c: In function `BlDatagramReceive':
BlSrv.c:404: warning: passing arg 4 of `USBADSL_MPReceivePacket' from incompatible pointer type
make: *** [BlSrv.o] Error 1



Grr... , well at least we know it wasn't the lack of the kernel source, but why won't it compile?

Is it possible, because that I'm using AMD64 version of the kernel? (Ubuntu 5.04 amd64) the driver won't work? if not then, again, what is the problem here?

Thanks for all the help guys, I really appreciated it ,hope I didn't bored you yet with these simple questions.
 
Old 05-04-2005, 02:12 PM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
in your source folder (the one for the modem), check and make sure it can be compiled on your kernel version. there are alot of drivers ( outside of the ones that come with the kernel) that were written for 2.4.x kernels and have never been updated.
 
Old 05-04-2005, 03:50 PM   #7
zodman
LQ Newbie
 
Registered: May 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks __J, I'll check on it.

And if that is the case,then is there a way to make it complies in new kernel? (maybe edited the makefile?) or will I have to use old kernel that this thing support.
 
Old 05-04-2005, 03:53 PM   #8
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
if it was written for a 2.4 kernel and never updated, most likely it will take some source code modifying to get it to work ( getting it to compile and getting it to work are two different things, the kernel api changes so the drivers have to too).
 
Old 05-05-2005, 01:23 AM   #9
zodman
LQ Newbie
 
Registered: May 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Hm...

Say... what if I install linux that use kernel version 2.4.x.x (like debian woody), install the driver and then after that download and install kernel 2.6.10, will my modem driver still work? or will it need to be upgraded (and hence become useless).

Thanks agin guys.
 
Old 05-05-2005, 01:37 AM   #10
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
no, it has to be installed on the kernel you are currently running. you could compile and install a 2.4 kernel on your machine and try it out to see if you like it ( 2.4 kernels are good kernels, but if you use things that require 2.6 ( like hal, etc..) they may not work for you). make sure you leave your 2.6 kernel alone until you have the 2.4 working if you decide to go this route.
 
Old 05-06-2005, 05:28 AM   #11
zodman
LQ Newbie
 
Registered: May 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Well, I finally give up on 2.6.10 and install Slackware 10.1 with 2.4.29 kernel, and guess what guys, it works! (Thanks to all you help )

the darn driver complies nicely without any problem at all.

but during the last two phase of installtion (according to the readme file), when I issue a command:

ifconfig hsb0 up

the result was an error, saying that no such device exist.

here is the full readme text:

'First, uncompressing the packaged: USBNET_E2_LINUX_062802_REL1.7.tar.gz
#tar zxvpf USBNET_E2_LINUX_062802_REL1.7.tar.gz
A directory named e2 will be created under current directory.

Second, Changing directory to the "e2" directory.
#cd e2

Third, compiling the source code.
#make

At last, copy the firmware file "CnxE2Fw.bin" to directory "/etc".
#cp CnxE2Fw.bin /etc/CnxE2Fw.bin


Now, you can install the driver by the command below under current directory:
#insmod e2.o

If you would like to installing driver anywhere else, Please copy the e2.o to
the directory: /lib/modules/2.4.xx-xxx/kernel/drivers/usb first.

If the network doesn't up automatically, you must run the following commands to activate the net adapter.

-->*this is where I get stuck* #ifconfig hsb0 up
#dhcpcd -n hsb0



Upgrade the firmware:
Replace the firmware file "/etc/CnxE2Fw.bin" with the new release. Note that the file
name must be case sensitive.'

I use 'dmesg | less' to check if my kernel is loaded with USB support, and it did, I also have hotplug enable.

Do I input the wrong device address? if so then how can I check what address my USB modem is on?

Thank in advance again guys, you're the greatest.

Last edited by zodman; 05-06-2005 at 06:07 AM.
 
  


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
SUSE 9.2 detect my [B]ADSL USB-Ethernet Modem-Router [/B] as a [B]Dial up modem[/B]. myprecius Linux - Hardware 0 06-27-2005 09:21 AM
Problem with Mandrake 10.0 Community, Sagem usb modem and logitech usb mouse. al370601 Mandriva 4 04-29-2004 06:48 PM
usb modem : Can ping, but cant browse - and cant modprobe usb-uhci nmoog Linux - Newbie 8 01-07-2004 11:50 PM
USB mouse thru a USB modem & linux support zeppelin Slackware 7 07-29-2003 03:43 PM
USB cable modem kills usb keyboard sketi Linux - Hardware 1 02-22-2003 06:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:13 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration