MandrivaUsers.org : Missing Module.symvers from Kernel Source [solved] - MandrivaUsers.org

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Missing Module.symvers from Kernel Source [solved]

#1 User is offline   netburn 

  • New Here
Group:
New here
Posts:
4
Joined:
13-February 05

Posted 13 February 2005 - 07:14 AM

I am trying to do a "make all" for my "linux-wlan-ng-0.2.1-pre26" [for Linksys wireless USB network adapter] to build the modules and programs, but it gives me this:

---------------------------------------------------------------------------------------------------------------------
set -e; for d in src doc man etc; do make -C $d ; done
make[1]: Entering directory `/home/ryan/linux-wlan-ng-0.2.1-pre26/src'
set -e; for d in mkmeta p80211 prism2 shared wlanctl wland nwepgen wlancfg; do make WLAN_SRC=/home/ryan/linux-wlan-ng-0.2.1-pre26/src/ -C $d ; done
make[2]: Entering directory `/home/ryan/linux-wlan-ng-0.2.1-pre26/src/mkmeta'
mkdir -p obj
make[2]: Leaving directory `/home/ryan/linux-wlan-ng-0.2.1-pre26/src/mkmeta'
make[2]: Entering directory `/home/ryan/linux-wlan-ng-0.2.1-pre26/src/p80211'
if test ! -d /home/ryan/linux-wlan-ng-0.2.1-pre26/src//.tmp_versions; then \
if test -d /usr/src/linux/.tmp_versions; then \
cp -rf /usr/src/linux/.tmp_versions /home/ryan/linux-wlan-ng-0.2.1-pre26/src/p80211/../ ; \
fi ; \
fi
if test ! -e /home/ryan/linux-wlan-ng-0.2.1-pre26/src/p80211/Module.symvers ; then \
cp /usr/src/linux/Module.symvers /home/ryan/linux-wlan-ng-0.2.1-pre26/src/p80211/../ ; \
fi
cp: cannot stat `/usr/src/linux/Module.symvers': No such file or directory
make[2]: *** [default] Error 1
make[2]: Leaving directory `/home/ryan/linux-wlan-ng-0.2.1-pre26/src/p80211'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/ryan/linux-wlan-ng-0.2.1-pre26/src'
make: *** [all] Error 2
------------------------------------------------------------------------------------------------------------------------------------

So it is saying that "Modules.symvers" is missing from /usr/src/linux.
I tried looking for that file in /lib/modules/2.6.8.1-12mdk/build but it isn't there either.

I think I might have accidentally deleted it when I did "make mrproper" in /usr/src/linux.

Anyone know how I can create that file, or what I should do?

Thanks,
netburn

OS: Mandrake 10.1 Community
Kernel: 2.6.8.1-12mdk

This post has been edited by netburn: 11 March 2005 - 05:27 PM

0

#2 User is offline   netburn 

  • New Here
Group:
New here
Posts:
4
Joined:
13-February 05

Posted 14 February 2005 - 04:35 PM

Can anyone help me? Googling this problem hasn't come up with anything promising. :help:
0

#3 User is offline   took 

  • New Here
Group:
New here
Posts:
6
Joined:
10-March 05

Posted 10 March 2005 - 07:01 PM

Hi

netburn, on Feb 13 2005, 07:14 AM, said:

So it is saying that "Modules.symvers" is missing from /usr/src/linux.
I tried looking for that file in /lib/modules/2.6.8.1-12mdk/build  but it isn't there either.


I've got exactly the same problem. I tried to "make all" on linux-wlan-ng-0.2.1-pre26 to get my D-Link DWL-122 working under Mandrake 10.1 (3CDs).

I cant find Modules.symvers anywhere...


CU
took
0

#4 User is offline   devries 

  • paashaas
  • Icon
Group:
Members
Posts:
4,120
Joined:
10-August 03

Posted 10 March 2005 - 07:17 PM

Quote

/lib/modules/2.6.8.1-12mdk/build


Install the kernel-source. (urpmi kernel-source, read the faqs for urpmi). If it is installed already make sure the kernel (uname -r) and kernel-source (/usr/src/) are exactly the same. (the /lib/modules/2.6.8.1-12mdk/build directory is a link to /usr/src/linux.)

Good luck.
0

#5 User is offline   took 

  • New Here
Group:
New here
Posts:
6
Joined:
10-March 05

Posted 11 March 2005 - 08:06 AM

Moin

Of course I already installed the kernel-sources. :)
And as far as I can say, the Versions seem to fit...

my /lib/modules/2.6.8.1-12mdk/build is a link to /usr/src/linux-2.6.8.1-12mdk/, just like /usr/src/linux, wich is also a link to /usr/src/linux-2.6.8.1-12mdk/

$ uname -r
2.6.8.1-12mdk
$ ls -lha /lib/modules/2.6.8.1-12mdk/
insgesamt 964K
drwxr-xr-x 4 root root 4,0K Mär 5 18:27 ./
drwxr-xr-x 4 root root 4,0K Jan 21 16:11 ../
lrwxrwxrwx 1 root root 28 Mär 5 17:59 build -> /usr/src/linux-2.6.8.1-12mdk/
drwxr-xr-x 11 root root 4,0K Jan 21 16:11 kernel/
drwxr-xr-x 2 root root 4,0K Mär 10 18:25 linux-wlan-ng/
-rw-r--r-- 1 root root 151K Okt 1 12:58 modules.alias
-rw-r--r-- 1 root root 69 Okt 1 12:58 modules.ccwmap
-rw-r--r-- 1 root root 259K Okt 1 12:58 modules.dep
-rw-r--r-- 1 root root 50K Okt 1 12:58 modules.description
-rw-r--r-- 1 root root 591 Okt 1 12:58 modules.ieee1394map
-rw-r--r-- 1 root root 700 Okt 1 12:58 modules.inputmap
-rw-r--r-- 1 root root 17K Okt 1 12:58 modules.isapnpmap
-rw-r--r-- 1 root root 138K Okt 1 12:58 modules.pcimap
-rw-r--r-- 1 root root 105K Okt 1 12:58 modules.symbols
-rw-r--r-- 1 root root 178K Okt 1 12:58 modules.usbmap
lrwxrwxrwx 1 root root 28 Mär 5 17:59 source -> /usr/src/linux-2.6.8.1-12mdk/

This post has been edited by took: 11 March 2005 - 03:40 PM

0

#6 User is offline   devries 

  • paashaas
  • Icon
Group:
Members
Posts:
4,120
Joined:
10-August 03

Posted 11 March 2005 - 08:16 AM

Google suggest it is a bug. Are you running a custom kernel and did you give the command 'make mrproper' in the /usr/src/linux directory?

Solution: remove the kernel-source and install it again. And don't run 'make mrproper' (if you did so)
0

#7 User is offline   netburn 

  • New Here
Group:
New here
Posts:
4
Joined:
13-February 05

Posted 11 March 2005 - 05:23 PM

Hey guys, thanks for the replies,

I finally found how to make Module.symvers!

Here is what I did:

-Uninstalled the kernel-source package
-Installed the kernel-source package again (looked for Module.symvers, still missing!)
-Went hunting on the web again, found this: http://www.linuxques...2399#post962399
-Followed steps 4 -> 6:
4 - [In /usr/src/linux] compile the kernel (make/make modules_install/make bzImage/make install) and take a break (make can last a couple hours, especially if you're using you computer while it's compiling)
5 - reboot and choose the new kernel in GRUB (should be linux<version>custom)
6 - and now you're ready for the install of the driver.
-Did a "locate -u"
-The "locate Module.symvers" command gives me this:
[ryan@localhost ryan]$ locate Module.symvers
/home/ryan/linux-wlan-ng-0.2.1-pre26/src/Module.symvers
/usr/src/linux-2.6.8.1-12mdk/Module.symvers

AHA!!
-Did a "make all" and "make install" in my /linux-wlan-ng-0.2.1-pre26 dir
-Success!!

So I'm guessing that the "Module.symvers" file must have been created when I did the "make" or "make modules_install" command. I don't think you have to go as far as "make bzImage" and "make install", but I did anyway. [Forgot to check for file while going through steps]

Now I am onto my next problem, which will have me delve deep into google and the wlan-ng site again.... *sigh* :wall: [Command fails when I do "wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable", arg!]

netburn
0

#8 User is offline   took 

  • New Here
Group:
New here
Posts:
6
Joined:
10-March 05

Posted 11 March 2005 - 05:48 PM

devries, on Mar 11 2005, 08:16 AM, said:

Google suggest it is a bug. Are you running a custom kernel and did you give the command 'make mrproper' in the /usr/src/linux directory?

Solution: remove the kernel-source and install it again. And don't run 'make mrproper' (if you did so)


I never used 'make mrproper' bevore.
I didnt compiled my kernel my self. My Kernel-Sources and everything else installed on the PC are from the CD 'out of the box'...

...anyway: I tried removing an reinstalling the sources. no change. Still "Modules.symvers" missing...
0

#9 User is offline   took 

  • New Here
Group:
New here
Posts:
6
Joined:
10-March 05

Posted 11 March 2005 - 05:54 PM

netburn, on Mar 11 2005, 05:23 PM, said:

I finally found how to make Module.symvers!

/home/ryan/linux-wlan-ng-0.2.1-pre26/src/Module.symvers

So I'm guessing that the "Module.symvers" file must have been created when I did the "make" or "make modules_install" command. I don't think you have to go as far as "make bzImage" and "make install", but I did anyway. [Forgot to check for file while going through steps]


Can you eMail me your Module.symvers? We seem to use the same System... so maybe I dont have to compile for hours?!
0

#10 User is offline   took 

  • New Here
Group:
New here
Posts:
6
Joined:
10-March 05

Posted 12 March 2005 - 05:06 AM

Thanks to netburn, who sends me his Modules.symvers, 'make all' is working fine now.

after some 'make clean', 'make config', 'make all'(had to do it three times befor it works...?!), now also my 'make install' exits without errors! :)

now lets see how to continue...

cu soon ;)

This post has been edited by took: 12 March 2005 - 06:35 AM

0

#11 User is offline   took 

  • New Here
Group:
New here
Posts:
6
Joined:
10-March 05

Posted 12 March 2005 - 08:26 AM

Moin

according to http://64.233.183.10...&hl=de&ie=UTF-8 I finished my setup.

/etc/init.d/wlan restart works
ifconfig now shows the wlan-adapter

# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

sit0      no wireless extensions.

wlan0     IEEE 802.11-DS  ESSID:""
          Mode:Auto  Frequency:2.422GHz  Access Point: 00:00:00:00:00:00
          Bit Rate:2Mb/s   Tx-Power:-1005004800 dBm
          Retry min limit:8   RTS thr:off   Fragment thr:off
          Encryption key:off
          Link Quality:0/92  Signal level:-69 dBm  Noise level:-90 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

# ifconfig
eth0      Protokoll:Ethernet  Hardware Adresse 00:03:47:BB:06:85
          inet Adresse:192.168.0.6  Bcast:192.168.0.255  Maske:255.255.255.0
          inet6 Adresse: fe80::203:47ff:febb:685/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1006130 errors:0 dropped:0 overruns:0 frame:0
          TX packets:984742 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:127732896 (121.8 Mb)  TX bytes:67257784 (64.1 Mb)
          Interrupt:11 Basisadresse:0xb000

lo        Protokoll:Lokale Schleife
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1063 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1063 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:271939 (265.5 Kb)  TX bytes:271939 (265.5 Kb)

wlan0     Protokoll:Ethernet  Hardware Adresse 00:11:95:8F:A2:5F
          inet6 Adresse: fe80::211:95ff:fe8f:a25f/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:10 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


wlan0 still got no ip4-Adress. OK. Now I have to go to my universitiy after I installed their special vpn-client... I guess their dhcpd will give me an IP...

THX for help to devries an netburn! :)

cu
took
0

#12 User is offline   anocka 

  • New Here
Group:
New here
Posts:
1
Joined:
01-April 05

Posted 01 April 2005 - 09:09 PM

Please, can you email me the Module.symvers, Netburn ?
I :wall: am ready to die. :wall:
0

#13 User is offline   netburn 

  • New Here
Group:
New here
Posts:
4
Joined:
13-February 05

Posted 30 April 2005 - 12:56 AM

For anyone else that would like the Module.symvers file, I have it attached to this post.

(Due to attachment constraints, I had to rename the extention to .txt, so just rename it to Module.symvers when it is downloaded.)

Have fun!

Netburn

Attachment:
Attached File  Module.txt (218.55K)
Number of downloads: 5
0

#14 User is offline   klipp 

  • casual
  • Icon
Group:
Members
Posts:
67
Joined:
09-July 04

Posted 19 May 2005 - 09:38 PM

For what its worth, Module.symvers is created for you when you compile wlan_ng. You just need to copy it to /lib/modules/xxxxx/build. Its located in /linux-wlan-ng-0.2.1-pre26/src.

This post has been edited by klipp: 19 May 2005 - 09:44 PM

0

#15 User is offline   joeblow1102 

  • New Here
Group:
New here
Posts:
1
Joined:
10-June 05

Posted 10 June 2005 - 08:18 PM

sweet

This post has been edited by joeblow1102: 18 September 2005 - 05:43 PM

0

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic



1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users