Jump to content

Missing Module.symvers from Kernel Source [solved]


Guest netburn
 Share

Recommended Posts

Guest netburn

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

Edited by netburn
Link to comment
Share on other sites

  • 4 weeks later...

Hi

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

Link to comment
Share on other sites

/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.

Link to comment
Share on other sites

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/

Edited by took
Link to comment
Share on other sites

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)

Link to comment
Share on other sites

Guest netburn

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.linuxquestions.org/questions/sh...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

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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?!

Link to comment
Share on other sites

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 ;)

Edited by took
Link to comment
Share on other sites

Moin

 

according to http://64.233.183.104/search?q=cache:jyvNg...&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

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 weeks later...
Guest netburn

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:

Module.txt

Link to comment
Share on other sites

  • 3 weeks later...

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.

Edited by klipp
Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...