Re: Problem in compiling router usb driver

2009-12-27 Thread arshad
On Mon, 2009-12-28 at 09:33 +0800, Christopher Lees wrote:
> On Sun, 2009-12-27 at 19:27 +, arshad wrote:
> > 
> > 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.
> >
> > ...
> 
> 1. Do you have the linux-headers-generic package installed?
> 
> 2. This driver might not compile anyway. We've been on Linux 2.6 for
> years; it's a massive difference from 2.4.
> 
> I'm surprised you're having troubles connecting via Ethernet. I suspect
> if you connected via USB you'd have the same trouble. Can we help you
> solve your Ethernet problem?
> 
> 

Hi, thank you very much.
that would be very kind of you. 

this is what the problem im having with connecting ethernet.

the LAN light is flashing neither in NIC port no in the router.
i checked the router with several cables but to no avail. (in windows
and ubuntu)
the current adsl connection is working on other computers (with another
router). but in my router the adsl light is keep blinking (not flashing)
but my current router is working perfectly with my friends machine with
the same cables i checked with my machine.

in network manager i can see the following:
1) Wired Nertwork (Biostar Microtech Int'l RTL810E/RTL8102E PCI Express
Fast Ethernet controller) - disconnected
2) Wired Network (Sony Ericsson Mobile AB Sony Ericsson K530)
-diconnected
3) Mobile Broadband -connected

the (2) and (3) are a of my mobile phone which i use to connect through
mobile broadband. though i have never used the (2).

as for the (1) no radio button is appearing to select it.

please feel free to ask if i should give more information.


thank you very much.


PS: if i connect the USB cable to router (even without the drivers
installed) i can see that the USB light is flashing in the router.




-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Problem in compiling router usb driver

2009-12-27 Thread Christopher Lees
On Sun, 2009-12-27 at 19:27 +, arshad wrote:
> 
> 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.
>
> ...

1. Do you have the linux-headers-generic package installed?

2. This driver might not compile anyway. We've been on Linux 2.6 for
years; it's a massive difference from 2.4.

I'm surprised you're having troubles connecting via Ethernet. I suspect
if you connected via USB you'd have the same trouble. Can we help you
solve your Ethernet problem?


-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Problem in compiling router usb driver...

2009-12-27 Thread Darren Albers
On Sun, Dec 27, 2009 at 1:02 PM, arshad  wrote:
> 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.


I think the line above is your problem:
"This driver supports Linux-2.4 kernel"

Most modern distributions have been on 2.6 for a LONG time.

Are you sure there isn't a driver already in place for this?   Most
USB NIC's work fine.   If this is a PPPOE over DSL connection make
sure you setup PPPOE.

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Problem in compiling router usb driver...

2009-12-27 Thread arshad
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