LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-19-2008, 03:51 PM   #1
NirvanaII
Member
 
Registered: Jun 2005
Posts: 139

Rep: Reputation: 18
Help compiling a ungrab-windmodem.ko Makefile


Okay, so I need to load a file named ungrab-windmodem.ko along with slamr.ko into my kernel: Slamr.ko I have already with 2008.0, ungrab-winmodem however I do not. After much searching online (via Windows; it’s these drivers I need to configure my modem in Linux!) I have only been able to find tarballed source file. I extracted the archive, but trouble is I’m still new -and ignorant – to compiling.

I’d be very appreciative if somebody could help me re-write the attached Makefile, it looks as far as I can tell, pretty simple, to the initiated at least; a case of removing parenthesis, and filling the relevant information at a guess.

I’ve been trying desperately to get online, using nidiswrapper and wvdial, but to no avail. I have spent hours reading books, trawling the net, learning how to use the command line to set up various applications, but source is beyond me right now. I’ll learn it later, but for now I need to de-linux, and just want to do some casual online surfing, get some hours back. Somebody else will know this in a flash, to me that's hours.

So I need to “make clean”, “make”, then “make install” with this, I have read:

KERNEL_VER:=$(shell uname -r)
KERNEL_DIR:=/lib/modules/$(KERNEL_VER)/build
INSTALL_DIR:=/lib/modules/$(KERNEL_VER)/extra

obj-m := ungrab-winmodem.o


all:
$(MAKE) modules -C $(KERNEL_DIR) SUBDIRS=$(shell pwd)

clean:
$(RM) *.o *.ko *.mod.* .*.cmd *~
$(RM) -r .tmp_versions

install: all
install -D -m 644 ungrab-winmodem.ko $(INSTALL_DIR)/ungrab-winmodem.ko
/sbin/depmod -a
uninstall:
modprobe -r ungrab-winmodem ; echo -n
$(RM) $(INSTALL_DIR)/ungrab-winmodem.ko
/sbin/depmod -a

Thankyou

NirvanaII

Last edited by NirvanaII; 10-19-2008 at 08:13 PM.
 
Old 10-19-2008, 09:41 PM   #2
NirvanaII
Member
 
Registered: Jun 2005
Posts: 139

Original Poster
Rep: Reputation: 18
Just tried this at the shell, creating the directory "build" before running make a second time:

[root@localhost ungrab-winmodem-20080126]# make
make modules -C /lib/modules/2.6.22.9-desktop586-1mdv/build SUBDIRS=/media/hd/Software/LinuxSoftware/ungrab-winmodem-20080126
make: *** /lib/modules/2.6.22.9-desktop586-1mdv/build: No such file or directory. Stop.
make: *** [all] Error 2
[root@localhost ungrab-winmodem-20080126]# make
make modules -C /lib/modules/2.6.22.9-desktop586-1mdv/build SUBDIRS=/media/hd/Software/LinuxSoftware/ungrab-winmodem-20080126
make[1]: Entering directory `/lib/modules/2.6.22.9-desktop586-1mdv/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/2.6.22.9-desktop586-1mdv/build'
make: *** [all] Error 2
[root@localhost ungrab-winmodem-20080126]# ./configure
bash: ./configure: No such file or directory
[root@localhost ungrab-winmodem-20080126]#

Guessing this is the significant line: make[1]: *** No rule to make target `modules'. Stop.

There is no configure file, "./configure" did nothing, the readme tells me little else other than I ought have slmodem, and to 'make' and 'make install'.

I read this thread first:
http://www.linuxquestions.org/questi...nmodem-661794/

And so ran "locate 2.6.22.9-desktop586-1mdv" to be certain of install, a long list followed.

Anyone?

NirvanaII
 
Old 10-20-2008, 09:57 PM   #3
NirvanaII
Member
 
Registered: Jun 2005
Posts: 139

Original Poster
Rep: Reputation: 18
Still stuck on this one. Earlier I ran the command "urpmi kernel 2.6.22.0-1mdv2008.0.src.rpm", knowing nothing of the difference I should expect: I got not no message, just a new prompt. I did it again, this time with --src-install; In this instance I got the '#### x%' loaded output, seemingly it had installed.

Bearing in mind I only did this on reading the above cited thread, I have no idea what the rationale behind this is, suffice it to say trying to "make" ungrab-windmodem outputs the same as before.

What am I not doing?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to Compile Ungrab-Winmodem sleepyz Mandriva 5 08-13-2008 08:39 AM
Makefile and compiling the linux kernel ayoub Linux - Newbie 0 12-02-2005 05:25 AM
Compiling Xmame - which CFlags in makefile? lets-eat-gary Linux - Games 2 03-12-2005 06:15 AM
Windmodem drivers for Linux Scarecrow Man Linux - Hardware 3 07-19-2004 06:01 PM
Compiling old code: Makefile plus config.in cbcallaw Linux - Software 1 04-29-2004 06:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 06:15 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration