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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-11-2003, 08:53 AM
|
#1
|
LQ Newbie
Registered: May 2003
Posts: 4
Rep:
|
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!

|
|
|
05-11-2003, 10:13 AM
|
#2
|
Senior Member
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358
Rep:
|
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.
|
|
|
05-11-2003, 10:39 AM
|
#3
|
LQ Newbie
Registered: May 2003
Posts: 4
Original Poster
Rep:
|
thank ill try that right now ... no the manufacturer sent me NO helfiles at all!
|
|
|
05-11-2003, 02:22 PM
|
#4
|
LQ Newbie
Registered: May 2003
Posts: 4
Original Poster
Rep:
|
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 ....
|
|
|
05-11-2003, 04:47 PM
|
#5
|
Senior Member
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358
Rep:
|
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 qanopus; 05-11-2003 at 05:02 PM.
|
|
|
05-14-2003, 07:08 AM
|
#6
|
LQ Newbie
Registered: May 2003
Posts: 4
Original Poster
Rep:
|
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) \
{name  n, vendor:vid, device  id, private:flags},
#include "a400.h"
#undef A400_DEV
{NULL, 0, 0, 0}
};
cheers
|
|
|
All times are GMT -5. The time now is 01:14 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|