Linux - Wireless NetworkingThis 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.
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.
add the following to your gcc command line. It appears to fix the error for me. There will still be a warning about there being no license and therefore it might taint the kernel, but the kernel version problem seems to go away.
(You might need to put some version information after linux in the path. Search your filesystem to see what the correct path would be.)
-isystem /usr/src/linux/include
This is the command line that worked for me in the hello world module from "Linux Device Drivers" 2nd Edition. ( I defined __KERNEL__ and MODULE in the code.)
gcc -c -isystem /usr/src/linux/include hello.c
Hey folks!, first of all sorry for my bad english, it isn't my first language. Once i have told that i can tell u my problem. I have a Xterasys XN-2411b wireless card, im using Gentoo on a Toshiba satellite. I really need to configure the wireless card, i have tried a lot of things, it uses the realtek controlers, so i download them and try to install, but i couldn't . Then i tried with the ndiswrapper, following the instructions above and everything go ok, until the part of "iwconfig" , because it says "command not found".
What have i do rong?, the problem is that in the insallation i din't do something?, or i have bad compile the kernel? or i have to install something with the livecd?
Please be explicit with the explanaitions because im a EXTREM NEWB
Any help will be apreciated
u need to be come root in order to use that command
you can type "su -" into ur terminal and then type the root's passwd.
now, try again
it should work out
if not, go to the site that's in my signature
there is a tutorial about it
hope that helps
thx man, i went to the web page and follow the instructions, everythig goes ok until i have to write
"
ndiswrapper -l
Installed ndis drivers:
inffile] invalid diver!
net8180 driver present, harware present
"
What the hell is the "inffile]" thing?, i tried ti unistall it with "ndiswrapper -e inffile" but the next time i put again "ndiswrapper -l" y tell me it was there again. What should i do about it, is it ok or is an error?
Well then i restar and put "modprobe ndiswrapper" as a root, and nothing happend, well the lights of the card didn't go on, not even one. Any idea?
please post the original error as it is
code it if u will
now i think i need the output of dmesg before and after you do modprobe ndiswrapper and the error it gives whenever u do "ndiswrapper -l"
also, which window driver did u use?
if it's the one i linked, there should be any problem.
but the "net8180 driver present, harware present" means ndiswrapper had recognize ur physical hardware and u had installed the right driver
i think that "inffile]" shouldn't be there, but ok,lets move on:
here goes the dmesg before modprobe ndiswrapper
Code:
******** RTL8180 Wireless Lan Driver 2003-11-24 loaded********
PCI: Setting latency timer of device 04:00.0 to 64
RTL8180: 04:00.0: region #0 IS a PIO resource!
RTL8180: request_region(0x00004000,0x00000100) !
Unable to handle kernel paging request at virtual address 000e0109
printing eip:
b0afbd88
*pde = 00000000
Oops: 0002
CPU: 0
EIP: 0010:[<b0afbd88>] Tainted: P
EFLAGS: 00010206
eax: aca60000 ebx: aca60000 ecx: 00000000 edx: 00000000
esi: adb4fc00 edi: 000e0001 ebp: acccfe68 esp: acccfe40
ds: 0018 es: 0018 ss: 0018
Process modprobe.old (pid: 10093, stackpage=acccf000)
Stack: aca60000 00000000 0001b0ac 00000286 00000001 00000286 8015c391 adb4fc00
00004000 adb4fe67 acccfe88 b0afa954 adb4fc00 af23785c af251b20 adb4fc00
af237800 adb4fc00 acccfec8 b0afa266 adb4fc00 00004000 00000100 b0b318a0
Call Trace: [<b0afa954>] [<b0afa266>] [<b0b318a0>] [<b0b318c0>] [<b0b31900>]
[<8030a687>] [<b0b318c0>] [<b0b31900>] [<8030a717>] [<b0b31900>] [<b0afa48e>]
[<b0b31900>] [<801e4305>] [<b0afa060>] [<801ce263>]
Code: 89 9f 08 01 00 00 89 da 81 c3 ec 93 01 00 89 1a 81 c3 04 03
<6>8139cp: 10/100 PCI Ethernet driver v1.1 (Aug 30, 2003)
eth0: no IPv6 routers present
SCSI subsystem driver Revision: 1.00
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 690M
agpgart: Detected Intel i845 chipset
agpgart: AGP aperture is 256M @ 0xe0000000
this isn't all the "dmesg" message,but i think that is what u need if it isn't that let me know
then i put
Code:
modprobe ndiswrapper
this is the dmesg aftter the modprobe
Code:
******** RTL8180 Wireless Lan Driver 2003-11-24 loaded********
PCI: Setting latency timer of device 04:00.0 to 64
RTL8180: 04:00.0: region #0 IS a PIO resource!
RTL8180: request_region(0x00004000,0x00000100) !
Unable to handle kernel paging request at virtual address 000e0109
printing eip:
b0afbd88
*pde = 00000000
Oops: 0002
CPU: 0
EIP: 0010:[<b0afbd88>] Tainted: P
EFLAGS: 00010206
eax: aca60000 ebx: aca60000 ecx: 00000000 edx: 00000000
esi: adb4fc00 edi: 000e0001 ebp: acccfe68 esp: acccfe40
ds: 0018 es: 0018 ss: 0018
Process modprobe.old (pid: 10093, stackpage=acccf000)
Stack: aca60000 00000000 0001b0ac 00000286 00000001 00000286 8015c391 adb4fc00
00004000 adb4fe67 acccfe88 b0afa954 adb4fc00 af23785c af251b20 adb4fc00
af237800 adb4fc00 acccfec8 b0afa266 adb4fc00 00004000 00000100 b0b318a0
Call Trace: [<b0afa954>] [<b0afa266>] [<b0b318a0>] [<b0b318c0>] [<b0b31900>]
[<8030a687>] [<b0b318c0>] [<b0b31900>] [<8030a717>] [<b0b31900>] [<b0afa48e>]
[<b0b31900>] [<801e4305>] [<b0afa060>] [<801ce263>]
Code: 89 9f 08 01 00 00 89 da 81 c3 ec 93 01 00 89 1a 81 c3 04 03
<6>8139cp: 10/100 PCI Ethernet driver v1.1 (Aug 30, 2003)
eth0: no IPv6 routers present
SCSI subsystem driver Revision: 1.00
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 690M
agpgart: Detected Intel i845 chipset
agpgart: AGP aperture is 256M @ 0xe0000000
ndiswrapper version 0.10 loaded (preempt=yes,smp=no)
now the one ligth of the card should go on, isn't it?, well it didn't.
Sorry about the "window driver" cause i have no idea what are u talking about, but if u tell me how to know it, i tell you as fast as i can
THX for al the help u have give man
it's no problem
but it seems that ndiswrapper is loading alright, but lights not turnin on it's not right, but like i said it's not really necessary to see the lights come on
carry on the follow the finaly step, see if that will straight everything out
also, please give me the brand and serial code of ur pcmcia wireless card
Its nice to know that until this moments there are no troubles, but i think here comes one:
Code:
/sbin/iwconfig wlan0 mode Managed
-bash: /sbin/iwconfig: No such file or directory
Evidently it shouldn't say that, it says the same thing with all the comands that need "/sbin/iwconfig". I am like root, so the problem isn't that.
Next problem:
Code:
/sbin/ifconfig wlan0 up
wlan0: unknown interface: No such device
ok, is really bad that i dont have a "wlan0" what do i have to do for making it?
im so sorry man, but i have no idea what is the brand and the serial code of my card. All i can give u is this:
Xterasys
Wireless LAN CardBus PC Card
IEEE802.11b XN-2411b here is the info about the card(http://xterasys.com/xn2411b.htm)
And again, thx for all the help man.
hm... what did u do to be come root?
if u used "su" then try "su -" next time u do it
if you used "su -" in the first place, then it's possible that you don't have iwconfig installed by default
you can check it by typing this command with root privilege, "rpm -qa | grep iwconfig"
in fact to become root i use "su -" so the problem is not that. Here are the results of what u asked:
Code:
# rpm -qa | grep iwconfig
-bash: rpm: command not found
im sure that is not good. I think the problem is deep inside, but if u want to help me any way, i will apreciated it so much.
First, what do i have to install to have "rpm"?
Is there another way to check "iwconfig" or is only rpm way?
I have gentoo, and im using Gnome, hope this is usefull for u.
thx for everything
ohh damn, i use Gentoo, its a shame we dont use the same. Well any way, thax so much for all the help, can u give me an advice about how to configure mi wireless card?, i mean here can i ask? well any way thx for all ur help.
THX MAN!, i really apreciate ur help, i have weeks tring to make my card works, maybe even a month. I really need to get it working soon, or i'll have to return to windows
Well anyway, thx again for all ur help, if u find out anything, just let me know!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.