LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-21-2004, 08:32 PM   #1
justin9
Member
 
Registered: Jul 2003
Location: Toronto
Distribution: Fedora Core 2
Posts: 36

Rep: Reputation: 15
vmlinux and fedora core 2...


I am trying to install madwifi on my fedora core 2 box, but am having problems. I keep getting errors saying that vmlinux isnt where it should be. I read in a post at the madwifi site that in fedora 2 vmlinux is in a different location, and the posts author had to recompile his kernel to get vmlinux in the proper location. This is what I get when doing a make.

/lib/modules/2.6.5-1.358/build/vmlinux: No such file or directory

Is there any way to move/find vmlinux without recompiling the kernel?
 
Old 08-21-2004, 09:02 PM   #2
cincindie
Member
 
Registered: Jul 2004
Location: Zinzinnati, OH
Distribution: RH, FC 1-6, F 7-21, Debian, LinuxPPC, Knoppix, Ubuntu, Yellow Dog
Posts: 176

Rep: Reputation: 31
That's strange. Try just copying the vmlinuz-2.6.5-1.358 file from your /boot directory into /lib/modules/2.6.5-1.358/build directory and name it as vmlinux.
 
Old 08-22-2004, 12:12 AM   #3
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Re: vmlinux and fedora core 2...

Quote:
Originally posted by justin9
I am trying to install madwifi on my fedora core 2 box, but am having problems. I keep getting errors saying that vmlinux isnt where it should be. I read in a post at the madwifi site that in fedora 2 vmlinux is in a different location, and the posts author had to recompile his kernel to get vmlinux in the proper location. This is what I get when doing a make.

/lib/modules/2.6.5-1.358/build/vmlinux: No such file or directory

Is there any way to move/find vmlinux without recompiling the kernel?
hi there
/lib/modules/2.6.5-1.358/build/vmlinux
here 'build' should be pointing to ur linux 2.6.5 source directory /usr/src/linux-2.6.5-1......

so what u can do is copy ur vmlinux-2.6.5,.... from the /boot directory to the
/lib/modules/2.6.5-1.358/build/ in the nameof vmlinux


regads
gaurav
 
Old 08-23-2004, 12:48 PM   #4
justin9
Member
 
Registered: Jul 2003
Location: Toronto
Distribution: Fedora Core 2
Posts: 36

Original Poster
Rep: Reputation: 15
I copied the vmlinuz file over to the correct directory and renamed it, and then ran make again, this time I got the following problem.
Code:
make[1]: Entering directory `/madwifi-20030802/ath_hal'
/lib/modules/2.6.5-1.358/build/scripts/modpost /lib/modules/2.6.5-1.358/build/vmlinux ah_osdep.o
make[1]: *** [ah_osdep.mod.c] Segmentation fault
make[1]: Leaving directory `/madwifi-20030802/ath_hal'
This repeats 3 times with slightly different commands, same results. What is segmentation fault?
 
Old 08-23-2004, 02:25 PM   #5
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi
as far as i know in linux segmentaton fault generally refers to some invalid memory refernce due to some error in the code

did u get past the lst error u were getting

more more output

regards
 
Old 08-23-2004, 02:29 PM   #6
cincindie
Member
 
Registered: Jul 2004
Location: Zinzinnati, OH
Distribution: RH, FC 1-6, F 7-21, Debian, LinuxPPC, Knoppix, Ubuntu, Yellow Dog
Posts: 176

Rep: Reputation: 31
It could be because the vmlinux file you copied is a compressed file.
 
Old 08-23-2004, 02:32 PM   #7
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Quote:
Originally posted by cincindie
It could be because the vmlinux file you copied is a compressed file.

hi
can u please throw more light on to that, i could not get it

regards
 
Old 08-23-2004, 02:55 PM   #8
justin9
Member
 
Registered: Jul 2003
Location: Toronto
Distribution: Fedora Core 2
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
as far as i know in linux segmentaton fault generally refers to some invalid memory refernce due to some error in the code
The segmentation fault is the only error I recieved, here is the complete output, maybe I just overlooked something.
Code:
[root@localhost madwifi-20030802]# make
for i in ./ath_hal ./wlan ./driver; do \
        (cd $i; make); \
done
make[1]: Entering directory `/madwifi-20030802/ath_hal'
/lib/modules/2.6.5-1.358/build/scripts/modpost /lib/modules/2.6.5-1.358/build/vmlinux ah_osdep.o
make[1]: *** [ah_osdep.mod.c] Segmentation fault
make[1]: Leaving directory `/madwifi-20030802/ath_hal'
make[1]: Entering directory `/madwifi-20030802/wlan'
/lib/modules/2.6.5-1.358/build/scripts/modpost /lib/modules/2.6.5-1.358/build/vmlinux if_ieee80211subr.o
make[1]: *** [if_ieee80211subr.mod.c] Segmentation fault
make[1]: Leaving directory `/madwifi-20030802/wlan'
make[1]: Entering directory `/madwifi-20030802/driver'
/lib/modules/2.6.5-1.358/build/scripts/modpost /lib/modules/2.6.5-1.358/build/vmlinux if_ath.o
make[1]: *** [if_ath.mod.c] Segmentation fault
make[1]: Leaving directory `/madwifi-20030802/driver'
make: *** [all] Error 2
[root@localhost madwifi-20030802]#
How can I tell if the problem is with the vmlinux or my madwifi program? I could try downloading and installing a different version of madwifi if you think that might work.
 
Old 08-23-2004, 03:01 PM   #9
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi
yes if u can ry out some newer versions that would be fine
also see the pre requisites of the software u r installing

regards
 
Old 08-23-2004, 03:13 PM   #10
cincindie
Member
 
Registered: Jul 2004
Location: Zinzinnati, OH
Distribution: RH, FC 1-6, F 7-21, Debian, LinuxPPC, Knoppix, Ubuntu, Yellow Dog
Posts: 176

Rep: Reputation: 31
I think the default installation using kernel*.rpm is a bzImage file. For custom installations from the source code, you have the option of making the kernel as a zImage, a bzImage, and a host of other images. So, if the madwifi installer is looking for a .so or .o reference in the kernel, it would be able to find it in the uncompressed kernel image, but not the compressed kernal image file.
 
Old 08-23-2004, 04:36 PM   #11
justin9
Member
 
Registered: Jul 2003
Location: Toronto
Distribution: Fedora Core 2
Posts: 36

Original Poster
Rep: Reputation: 15
I will download a newer version, and try runnning that. And what would be the easiest way for me to get the uncompressed kernel image, I would appreciate somewhat easy instructions too, as I am still quite a newb. thanks
 
Old 09-06-2004, 05:32 PM   #12
justin9
Member
 
Registered: Jul 2003
Location: Toronto
Distribution: Fedora Core 2
Posts: 36

Original Poster
Rep: Reputation: 15
Can anyone help me? I am still unable to use the internet from linux...
 
  


Reply



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
Severe problems with Fedora Core 1 and Fedora Core 2 installatiom TheOneKEA Fedora - Installation 2 07-14-2004 02:12 PM
Upgrading via Internet Fedora Core 1 to Fedora Core 2 cdean Linux - Newbie 2 05-30-2004 11:14 PM
Fedora Core 2 - Just days away! Final comments on Fedora Core 1 lrt2003 Fedora 3 05-12-2004 02:09 AM
Will Fedora Core 1 RPMs still be compatable with Fedora Core 2? yarjar Linux - Software 1 05-02-2004 01:02 AM
vmlinux eastj1974 Linux - Newbie 1 04-19-2003 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:26 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
Open Source Consulting | Domain Registration