You are not logged in.

#1 2012-08-11 16:43:37

davidg
Member
Registered: 2012-08-11
Posts: 15

Compiling USB Driver fails

I have old modem which has a USB driver. I want to install that driver.

I followed instructions in the documentation.

at the instruction when document says now execute

make all

it says

gcc  -Wall -Wno-missing-braces -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -mcpu=i486 -falign-loops=2 -falign-jumps=2 -falign-functions=2  -I/usr/src/linux-2.4.20-8/include -I./inc  -D__KERNEL__ -DMODULE  -Dlinux -DDBG=0   -c -o src/CDCEther.o src/CDCEther.c
gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
src/CDCEther.c:1:0: error: CPU you selected does not support x86-64 instruction set
make: *** [src/CDCEther.o] Error 1



how do I get rid of

CPU you selected does not support x86-64 instruction set

help needed  please.

Thanks

David

Last edited by davidg (2012-08-11 22:33:58)

Offline

#2 2012-08-11 16:50:09

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,557

Re: Compiling USB Driver fails

I guess you're using x86_64 and the build process wants to use the -mcpu=i486 flag, which fails. You may want to remove that from the Makefile.

/edit: you may want to post a link to the source

Last edited by bangkok_manouel (2012-08-11 16:51:01)

Offline

#3 2012-08-11 17:38:32

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Compiling USB Driver fails

davidg,

Welcome to Arch.  You did not mention the make or model of your device. 

Best practice on Arch dictates that one should use the Arch Build System (ABS, makepkg whenever possible.  Have you looked in AUR (Arch User Repository) to see if someone has already packaged the driver for you?  It might make your life much easier.

You can also place a request for someone to package it in these forums under PKGBUILD requests.

Installing files by hand into the file system is likely to complicate you Arch system maintenance.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2012-08-11 17:50:22

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Compiling USB Driver fails

Is it PPPoE based? I'm asking because you may not need to use its "specific" driver and the solution could be much simpler, like running pppoe-setup (part of the rp-pppoe package, which is included on the install media): https://bbs.archlinux.org/viewtopic.php … 9#p1132019


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#5 2012-08-11 18:24:20

davidg
Member
Registered: 2012-08-11
Posts: 15

Re: Compiling USB Driver fails

First thank you for help.

To give more information it is huawei mt882 router. The source I have is on CD which came with router. Huawei does not support this device anymore. So  I have old cd.

I did not try rp-pppoe package. I will try to install this package and will post result.

Last edited by davidg (2012-08-11 18:26:42)

Offline

#6 2012-08-11 18:33:59

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Compiling USB Driver fails

I said that the rp-pppoe package is included on the install media. It's installed already, you don't have to install it.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#7 2012-08-11 18:39:31

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Compiling USB Driver fails

David,

I'm sorry not to be able to post anything beyond this, but would you please edit your initial post to include a better title.  "Compiling USB Driver fails" may be a good start.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2012-08-11 18:50:59

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Compiling USB Driver fails

It seems the MT882 has an ethernet interface - why aren't you using that, instead of torturing yourself with usb?

Offline

#9 2012-08-11 22:38:04

davidg
Member
Registered: 2012-08-11
Posts: 15

Re: Compiling USB Driver fails

Ok changed title.

Yes it has ethernet interface. But ethernet connection will be used for other computer. So I have get this USB driver compiled.

Offline

#10 2012-08-12 00:46:56

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Compiling USB Driver fails

I see... in that case, get a cheap switch. smile

Re the driver, I see it's called CDCEther. The current kernel has a driver called cdc-ether for USB CDC Ethernet devices, did you try that?

Offline

#11 2012-08-27 19:47:36

davidg
Member
Registered: 2012-08-11
Posts: 15

Re: Compiling USB Driver fails

Getting a network switch certainly will be good solution but I still want to know how can I use usb connection. I think I do not have to compile driver because I installed network manager applet(which I have uninstalled now) and when I connected router using usb cable it detected it correctly. But I do not know how to configure it using usb connection. Is it same as usb modem for 3g https://wiki.archlinux.org/index.php/US … rk_Manager?

Last edited by davidg (2012-08-27 19:49:34)

Offline

#12 2012-08-27 21:07:08

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Compiling USB Driver fails

I've never used usb networking (lucky me tongue ), so I'd guess that the driver creates some kind of network interface when it's loaded - dmesg and/or ip link should have some details.

Offline

Board footer

Powered by FluxBB