hi all,
i have a SpeedCom+ 4 port router,
im trying to use the router through USB as im having prob in connecting
through ethernet. i tried to install the drivers according to the way
mentioned in the manual.
but i keep getting error. below i have given the instruction given in
the manual and the error i get.
please help me to solve this problem.
thank you very much.
Setup ADSL Router via USB Cable on Linux
This driver supports Linux-2.4 kernel.
Compiling the Driver
To compile the driver simply run make in "viking" directory. This will
create binary driver with name VKGEther.
% make
Loading the module
To load the VKGEther module enter the following command as root in
directory "viking"
Syntax:
% insmod ./VKGEther {Module Options}
Unloading the module
To unload an unused module:
% rmmod VKGEther
You will need to exit or disconnect any program currently using the
module before it unload. If the module was
configured for LAN, shutdown the ethernet interface:
% ifconfig eth1 down
The ethernet interface associated with the VKGEther driver was "eth1"
that's why interface name is eth1 in above
line.
LAN Configuration
To enable LAN traffic over the ethernet interface:
% ifconfig eth1 192.168.1.200 up
You may also need to modify the netmask and route for the interface.
Refer to the manual pages for ifconfig and
route for more information. To test the LAN connection is alive by
pinging the remote side:
% ping 192.168.1.1
To disconnect the LAN interface:
% ifconfig eth1 down
this is what i get at the first commmand
$ make
gcc -c -O2 -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/include -I./inc -D__KERNEL__ -DMODULE -Dlinux -DDBG=0
-o src/CDCEther.o src/CDCEther.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
src/CDCEther.c:23:24: error: linux/slab.h: No such file or directory
src/CDCEther.c:24:24: error: linux/init.h: No such file or directory
src/CDCEther.c:25:25: error: linux/delay.h: No such file or directory
In file included from /usr/include/linux/socket.h:23,
from /usr/include/linux/if.h:23,
from /usr/include/linux/netdevice.h:28,
from src/CDCEther.c:26:
/usr/include/linux/uio.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘iov_length’
/usr/include/linux/uio.h:47: error: expected declaration specifiers or
‘...’ before ‘size_t’
src/CDCEther.c:27:31: error: linux/etherdevice.h: No such file or
directory
src/CDCEther.c:28:23: error: linux/usb.h: No such file or directory
src/CDCEther.c:29:26: error: linux/module.h: No such file or directory
src/CDCEther.c:31:25: error: asm/uaccess.h: No such file or directory
In file included from src/CDCEther.c:32:
./inc/CDCEther.h:79:41: error: missing binary operator before token "("
In file included from src/CDCEther.c:32:
./inc/CDCEther.h:87: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘USB_CTRLREQUEST’
./inc/CDCEther.h:126: error: expected specifier-qualifier-list before
‘USB_CTRLREQUEST’
src/CDCEther.c:38: error: array type has incomplete element type
src/CDCEther.c:39: warning: implicit declaration of function
‘USB_DEVICE’
src/CDCEther.c:58: warning: ‘struct urb’ declared inside parameter list
src/CDCEther.c:58: warning: its scope is only this definition or
declaration, which is probably not what you want
src/CDCEther.c: In function ‘read_bulk_callback’:
src/CDCEther.c:60: error: dereferencing pointer to incomplete type
src/CDCEther.c:64: error: dereferencing pointer to incomplete type
src/CDCEther.c:75: warning: implicit declaration of function ‘dbg’
src/CDCEther.c:83: warning: implicit declaration of function
‘netif_device_present’
src/CDCEther.c:98: error: dereferencing pointer to incomplete type
src/CDCEther.c:99: error: ‘USB_ST_NOERROR’ undeclared (first use in this
function)
src/CDCEther.c:99: error: (Each undeclared identifier is reported only
once
src/CDCEther.c:99: error: for each function it appears in.)
src/CDCEther.c:101: error: ‘USB_ST_NORESPONSE’ undeclared (first use in
this function)
src/CDCEther.c:108: error: dereferencing pointer to incomplete type
src/CDCEther.c:108: error: dereferencing pointer to incomplete type
src/CDCEther.c:125: error: ‘ether_dev_t’ has no member named ‘rx_buff’
src/CDCEther.c:126: error: ‘ether_dev_t’ has no member named ‘rx_buff’
src/CDCEther.c:129: error: ‘ether_dev_t’ has no member named
‘rxsequence’
src/CDCEther.c:129: error: ‘ether_dev_t’ has no member named ‘rx_buff’
src/CDCEther.c:134: error: ‘ether_dev_t’ has no member named
‘rx_out_of_seq’
src/CDCEther.c:136: error: ‘ether_dev_t’ has no member named
‘rxsequence’
src/CDCEther.c:136: error: ‘ether_dev_t’ has no member named ‘rx_buff’
src/CDCEther.c:140: error: ‘ether_dev_t’ has no member named
‘rx_out_of_seq’
src/CDCEther.c:14