Linux - Wireless Networking This forum is for the discussion of wireless networking in 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.
|
|
|
03-18-2004, 09:14 PM
|
#1
|
Member
Registered: Feb 2004
Location: Toledo, OH
Distribution: Mandrake 10.0
Posts: 50
Rep:
|
Problems with hostap driver
I ran "make" and "make install", that went through properl, but when I try "modprobe hostap_pci" it doesnt work. Here is what it says:
Quote:
[root@localhost root]# modprobe hostap_pci
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol register_netdevice
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol __netdev_watchdog_up
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol eth_type_trans
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol __wake_up
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol __kfree_skb
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol alloc_skb
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol pskb_expand_head
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol __write_lock_failed
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol ether_setup
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol skb_under_panic
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol unregister_netdevice
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol create_proc_entry
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol alloc_etherdev
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol remove_wait_queue
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol unregister_netdev
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol wireless_send_event
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol request_module
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol proc_mkdir
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol __read_lock_failed
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol dev_alloc_name
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol dev_queue_xmit
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol ___pskb_trim
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol remove_proc_entry
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol netif_rx
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol skb_over_panic
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol add_wait_queue
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol proc_net
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol skb_clone
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol softnet_data
/lib/modules/2.4.20-8/net/hostap.o: unresolved symbol irq_stat
/lib/modules/2.4.20-8/net/hostap.o: insmod /lib/modules/2.4.20-8/net/hostap.o failed
/lib/modules/2.4.20-8/net/hostap.o: insmod hostap_pci failed
[root@localhost root]#
|
Does anybody have any ideas?
|
|
|
03-19-2004, 11:05 AM
|
#3
|
Member
Registered: Feb 2004
Location: Toledo, OH
Distribution: Mandrake 10.0
Posts: 50
Original Poster
Rep:
|
Thanks. It looks like the first link will work, but when they say
Quote:
I always forget that the
RH kernel .src.rpm has this at the top of their rpm "spec" file:
|
I am not sure where that file is to edit it.
|
|
|
03-19-2004, 11:51 AM
|
#4
|
Member
Registered: Dec 2003
Location: San Jose
Distribution: Redhat WS 3
Posts: 410
Rep:
|
/usr/src/redhat/SPECS
have to install the SRPM file inorder to have the spec file.
Be very careful, save originals of any files that might change.
Have you recompiled your kernel successfully before?
|
|
|
03-19-2004, 12:17 PM
|
#5
|
Member
Registered: Feb 2004
Location: Toledo, OH
Distribution: Mandrake 10.0
Posts: 50
Original Poster
Rep:
|
I tried to recompile before, but it did not go through properly. As for the SPEC folder, there is nothing in it.
|
|
|
03-19-2004, 07:11 PM
|
#6
|
Member
Registered: Feb 2004
Location: Toledo, OH
Distribution: Mandrake 10.0
Posts: 50
Original Poster
Rep:
|
OK, I just tried to recompile my kernel again, and I think it went through properly, but I am not sure on one thing. Do I need to upgrade my lilo for the recompiled kernel?
|
|
|
03-19-2004, 07:24 PM
|
#7
|
Member
Registered: Dec 2003
Location: San Jose
Distribution: Redhat WS 3
Posts: 410
Rep:
|
I forget if my /etc/grub.conf was automatically updated. I know that the /boot files were updated automatically during make install of kernel.
Find out if you are booting lilo or grub and look at it's configuration file.
If it is not updated automatically then it should be straightforward to add a new entry, be sure to save copies of all config files that you edit.
One problem that I had was problems with LABEL=/root errors on boot which I had fixed by adding support for RAM DISK and size of 8192. I believe this was under block devices.
|
|
|
03-19-2004, 10:07 PM
|
#8
|
Member
Registered: Feb 2004
Location: Toledo, OH
Distribution: Mandrake 10.0
Posts: 50
Original Poster
Rep:
|
Actually, I am using grub, not lilo Anyways, do I have to modify it? Here is what I have:
Quote:
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hdb2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.4.20-8.img
|
|
|
|
03-19-2004, 10:26 PM
|
#9
|
Member
Registered: Dec 2003
Location: San Jose
Distribution: Redhat WS 3
Posts: 410
Rep:
|
Here is a sample of what I have for my Redhat WS 3 system
You will want to change hd0,2 to hd0,0 for your system, etc.
default=2
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz
title Red Hat Enterprise Linux WS (2.6.0)
root (hd0,2)
kernel /vmlinuz-2.6.0 ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.6.0.img
title Red Hat Enterprise Linux WS (2.4.21-4.ELcustom)
root (hd0,2)
kernel /vmlinuz-2.4.21-4.ELcustom ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.4.21-4.ELcustom.img
title Red Hat Enterprise Linux WS (2.4.21-4.EL)
root (hd0,2)
kernel /vmlinuz-2.4.21-4.EL ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.4.21-4.EL.img
title DOS
rootnoverify (hd0,0)
chainloader +1
|
|
|
03-19-2004, 10:51 PM
|
#10
|
Member
Registered: Feb 2004
Location: Toledo, OH
Distribution: Mandrake 10.0
Posts: 50
Original Poster
Rep:
|
Im not exactly sure what I am looking at here. What lines are for the recompiled kernel?
|
|
|
03-19-2004, 11:19 PM
|
#11
|
Member
Registered: Dec 2003
Location: San Jose
Distribution: Redhat WS 3
Posts: 410
Rep:
|
Add the following lines and replace 2.4.20-8 with new kernel name.
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.4.20-8.img
|
|
|
03-20-2004, 01:22 AM
|
#12
|
Member
Registered: Feb 2004
Location: Toledo, OH
Distribution: Mandrake 10.0
Posts: 50
Original Poster
Rep:
|
OK, now I am lost. When you recompile your kernel, doesnt that mean you are using the same version? Meaning if I am using 2.4.20-8 and if I recompile it, isnt it still 2.4.20-8?
|
|
|
03-20-2004, 04:38 AM
|
#13
|
Member
Registered: Dec 2003
Location: San Jose
Distribution: Redhat WS 3
Posts: 410
Rep:
|
yes, but need to do ls -l /boot to see what the name is, maybe the new kernel has "custom" or something tagged onto the end of the version.
|
|
|
03-20-2004, 12:10 PM
|
#14
|
Member
Registered: Feb 2004
Location: Toledo, OH
Distribution: Mandrake 10.0
Posts: 50
Original Poster
Rep:
|
When I try ls -l /boot, this is what I get:
Quote:
[root@localhost root]# ls -l /boot
total 6855
-rw-r--r-- 1 root root 5824 Jan 25 2003 boot.b
-rw-r--r-- 1 root root 612 Jan 25 2003 chain.b
-rw-r--r-- 1 root root 44252 Mar 13 2003 config-2.4.20-8
drwxr-xr-x 2 root root 1024 Feb 24 20:26 grub
-rw-r--r-- 1 root root 146218 Feb 24 19:40 initrd-2.4.20-8.img
-rw-r--r-- 1 root root 479 Feb 24 20:29 kernel.h
drwx------ 2 root root 12288 Feb 24 14:33 lost+found
-rw-r--r-- 1 root root 23108 Feb 24 2003 message
-rw-r--r-- 1 root root 21282 Feb 24 2003 message.ja
lrwxrwxrwx 1 root root 20 Feb 24 19:40 module-info -> module-info-2.4.20-8
-rw-r--r-- 1 root root 15436 Mar 13 2003 module-info-2.4.20-8
-rw-r--r-- 1 root root 640 Jan 25 2003 os2_d.b
-rw-r--r-- 1 root root 776482 Mar 6 13:27 System.map
-rw-r--r-- 1 root root 518322 Mar 13 2003 System.map-2.4.20-8
-rw-r--r-- 1 root root 3149072 Mar 13 2003 vmlinux-2.4.20-8
lrwxrwxrwx 1 root root 16 Feb 24 19:40 vmlinuz -> vmlinuz-2.4.20-8
-rw-r--r-- 1 root root 1117254 Mar 13 2003 vmlinuz-2.4.20-8
-rw-r--r-- 1 root root 1141041 Mar 6 13:27 vmlinuz-2.6.3
[root@localhost root]#
|
They problem that I see is when I recompiled the kernel, I did that on Mar 19, but I dont see that date there. Maybe when I recompiled I did it wrong. Do you have any info on how to do this properly to make sure I did it correctly?
P.S. Thanks for all of the help so far
|
|
|
03-20-2004, 12:58 PM
|
#15
|
Member
Registered: Dec 2003
Location: San Jose
Distribution: Redhat WS 3
Posts: 410
Rep:
|
Reconfiguring the kernel:
from the top level directory of the kernel source /usr/src/linux-<version> you will do
make mrproper -> done just once
make menuconfig -> brings up menu to set options to add
support for "Wireless LAN (non-hamradio)"
make depend
make modules
make modules_install
make install -> also installs boot images, etc.
Be sure to save off your original .config file before running any makes, this is a text file that contains the kernel configuration settings that are used to build the kernel and altered by make menuconfig.
On the make menuconfig:
Go to:
Network Device support −−>
then Select:
Wireless LAN (non−hamradio) −−−>
Then Choose the options, so that it looks like below, or something as close to this. [*] Wireless LAN (non−hamradio)
I usually have problems with unable to read LABEL on the root device when trying to reboot with the recompiled kernel, which is usually fixed by adding support for RAM disk support under Device Drivers -> Block Devices -> Ram disk support and setting the RAM disk size to 8192 (what works for me on Redhat).
|
|
|
All times are GMT -5. The time now is 11:45 AM.
|
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
|
|