LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 05-11-2003, 08:53 AM   #1
scram2309
LQ Newbie
 
Registered: May 2003
Posts: 4

Rep: Reputation: 0
Adsl Usb Modem Install Problems


im new to linux- have got fed up with windows, so i installed redhat 9- went fine, all down to recognising my adsl modem. i have got the source code for the driver (from the manufacturer - Dynamode), and it consists of a .c and .h file. i tried looking up what to do on howto pages, all about modules and that stuff , and how it has to be compiled with the kernel or something, or can be run on its own- not compiled into the kernel. can somebody please help ,e! i would like to know i can "install" the modem, now that i have the drivers. i have no idea ... thanks alot!

 
Old 05-11-2003, 10:13 AM   #2
schatoor
Senior Member
 
Registered: Jul 2002
Location: a tiny place caled hendrik ido ambacht in the netherlands
Distribution: SuSE, debian, slackware, lfs
Posts: 1,358

Rep: Reputation: 45
And there were no readmes that came with the source? Have you tried looking at the site of the manufacturer?
You could try to compile it. Do "gcc <sourcefile>.c" where <sourcefile> is your *.c file ofcource. I'm guessing, if it works, you'l get an *.o file. Then do "insmod <somefile>.o and see what happens.
Hope it helps.
 
Old 05-11-2003, 10:39 AM   #3
scram2309
LQ Newbie
 
Registered: May 2003
Posts: 4

Original Poster
Rep: Reputation: 0
thank ill try that right now ... no the manufacturer sent me NO helfiles at all!
 
Old 05-11-2003, 02:22 PM   #4
scram2309
LQ Newbie
 
Registered: May 2003
Posts: 4

Original Poster
Rep: Reputation: 0
naah, didnt work - wouldnt compile , a hold load of error messages, more than 80 lines: does include this, but this ir that would not work, or could not be found.
final line says something about unknown output size, - infact their is no output to file at all. does anyone have any other ideas i can try?
thanks in adavance ....
 
Old 05-11-2003, 04:47 PM   #5
schatoor
Senior Member
 
Registered: Jul 2002
Location: a tiny place caled hendrik ido ambacht in the netherlands
Distribution: SuSE, debian, slackware, lfs
Posts: 1,358

Rep: Reputation: 45
Okey, did you look at the content of the source file. Maby there is some usefull comment in the source file of how to install the driver.
You could also try to compile it with "g++" instead of "gcc". See if that works better. And just to check, there isn't a file called "makefile" right? Cos if there is, just do "make".
If that doen't work out, then mail me the error messages. Mail it to me at s_chatoor@email.com . I can't say if I will be able to work it out. But maby it will give me a hint as to how to solve this.
It could be that the compile fails because you don't have the kernel headers installed. You see, what you are triying to do is create an kernel module. And for that he needs the kernel headers. Mail me the error mesagges, and I'l try to figure out if that's the case.

Last edited by schatoor; 05-11-2003 at 05:02 PM.
 
Old 05-14-2003, 07:08 AM   #6
scram2309
LQ Newbie
 
Registered: May 2003
Posts: 4

Original Poster
Rep: Reputation: 0
this is the begging of the code - ie no help at all no instructions nothing!:

/*
** A400: USB Ethernet
**
** Copyright (c) 2002 kinpobj
** V1.0.0 2002/04/26
*/

#define MODULE
#define __KERNEL__


#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/usb.h>
#include <linux/timer.h>
#include <linux/module.h>

#define printk myprk
#include "a400.h"

static void myprk()
{
}

static const char *version = __FILE__ ": v0.1.01 2002/03/28 (C) 2002 Kinpobj";


static int multicast_filter_limit = 32;

static struct usb_eth_dev usb_dev_id[] = {
#define A400_DEV(pn, vid, pid, flags) \
{namen, vendor:vid, deviceid, private:flags},
#include "a400.h"
#undef A400_DEV
{NULL, 0, 0, 0}
};


cheers
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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
Ethernet Adsl Modem Driver Problems And Install Problems... akhilnair Linux - Hardware 12 11-28-2004 08:19 AM
Please Help Me Get Online-- Usb Adsl Modem Problems!!! akhilnair Linux - Newbie 4 10-25-2004 12:32 PM
adi usb adsl modem installation problems tonydix Linux - General 2 08-05-2004 08:21 AM
adi usb adsl modem installation problems tonydix Red Hat 1 10-16-2003 02:04 PM


All times are GMT -5. The time now is 01:10 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