[HOW TO] Installing Wireless Networking


Recommended Posts

DjmUK:

I'm having a problem with Part 7 on Step 2 of the first post of this topic.  I'm extremely new to Linux and have Fedora Core 4.  I'm trying to get my Linux card to work on this thing.  I do an lspci and come up with the following (just for the sake of having posted as much info as possible)

So I go to do this install on my nix box and get to this part

and type in the word 'make' to get something along the following output (I had to write it down seeing as how I have no net connection).

Someone please tell me what this means?  Why am I getting an error?

586129713[/snapback]

You need to install the sources for your kernel.

I think you should be able to install the sources via yum, but there are too many hits for me to track down the one(s) that may help. None of the titles jumped out at me as being "the answer".

http://www.google.com/linux?q=fedora+4+ins...nel+sources+yum

Okay, I'm familiar with Windoze but not Linux. What's a source? My kernel is something like my version, right? 2.6.11-1.1369_FC4?? So, in essence I have to install a "source" for 2.6.11-1.1369_FC4, but I can't figure out what a source is or where to get it. So far all I've got is this

Source - The code that makes a program work.

But what that is saying to me is that there must be different versions of ndiswrapper and I picked the wrong one????

......PLEASE FORGIVE ME FOR BEING SO IGNORANT ABOUT THIS SUBJECT I APPOLOGIZE.....

Also, what is yum, I haven't quite googled that question yet but I've been googling the source question for a few days now to no avail.

Yes, source is the code that was written to create the program (in this case, the kernel). It is written in human-readable form (generally in C), but is not machine-executable until it is compiled into 'binary' code (like a Windows .exe). And you are right in needing to download the source that matches your current kernel version. You are understanding it fine, so far. (Y)

As far as "yum" goes, it is an application that manages all of your installed packages (including the kernel). You can type "yum install celestia", and yum will search for, and install, the space simulator "Celestia". You type "yum update", and yum will check for newer versions of everything that you have on your computer. To find out more, you type "man yum" to read the 'manual' for 'yum'.

Ok, did a bit of hunting, and here is what I have found:

Procedure that may be helpful: http://fedoraforum.org/forum/showthread.php?t=29434

(you probably won't want/need to rebuild your whole kernel, but the first part will install it for you) EDIT: I think that all you will want to di is the single "rpm" command as step #2.

Where your "source RPM" is located: http://download.fedora.redhat.com/pub/fedo...x/core/4/SRPMS/

Look for "kernel-2.6.11-1.1369_FC4.src.rpm"

That should get what you are needing.

Okay, an update: I followed your link (thank you so much for the direction, some people need their hands held) installed the src (I only used the first command '$ rpm -ivh kernel-2.6.9-1.1021_FC4.src.rpm' I don't know if I should have done the rest of it, from your post earlier it didn't seem like it.) but I was getting nokey errors. So I stumbled upon something online saying that I need to do a 'yum install kernel-devel' in order to not get a nokey error. It worked and then the src installed fine (I think) and now I'm at the ndiswrapper install at the beginning of this post again. I get to the make part and see a bunch of errors. Did I mess something up?

[root@localhost ndiswrapper-1.2]# make

make -C driver

make[1]: Entering directory `/home/tv/ndiswrapper-1.2/driver'

make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/home/tv/ndiswrapper-1.2/driver \

        NDISWRAPPER_VERSION=1.2 \

        EXTRA_VERSION= modules

/usr/src/kernels/2.6.11-1.1369_FC4-i686/scripts/gcc-version.sh: line 11: gcc: command not found

/usr/src/kernels/2.6.11-1.1369_FC4-i686/scripts/gcc-version.sh: line 12: gcc: command not found

make[2]: gcc: Command not found

make[2]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'

  CC [M]  /home/tv/ndiswrapper-1.2/driver/hal.o

/bin/sh: gcc: command not found

make[3]: *** [/home/tv/ndiswrapper-1.2/driver/hal.o] Error 127

make[2]: *** [_module_/home/tv/ndiswrapper-1.2/driver] Error 2

make[2]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'

make[1]: *** [default] Error 2

make[1]: Leaving directory `/home/tv/ndiswrapper-1.2/driver'

make: *** [all] Error 2

Errrrrr, doesnt yum install linux-source simply work? :unsure:

edit: nevermind, i see you have the source installed now... But for future reference thats how you install your kernel source, you have a package manager, USE IT... although you were advised not to for some reason...

Edited by Bliksem

SWEET!!! now I have the compiler installed and started to do the make. I got to I think its number 4 on part 5 and realized that it says that my driver is an invalid driver and that kinda worries me. One more thing is that in the instructions it says to use all caps when pointing at the .inf file. Problem is, mine's not in all caps for some strange reason. Here's my histor below

[root@localhost ndiswrapper-1.2]# make

make -C driver

make[1]: Entering directory `/home/tv/ndiswrapper-1.2/driver'

make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/home/tv/ndiswrapper-1.2/driver \

        NDISWRAPPER_VERSION=1.2 \

        EXTRA_VERSION= modules

make[2]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'

  CC [M]  /home/tv/ndiswrapper-1.2/driver/hal.o

  CC [M]  /home/tv/ndiswrapper-1.2/driver/iw_ndis.o

  CC [M]  /home/tv/ndiswrapper-1.2/driver/loader.o

/home/tv/ndiswrapper-1.2/driver/loader.c: In function ?ndiswrapper_add_pci_device?:

/home/tv/ndiswrapper-1.2/driver/loader.c:202: warning: ignoring return value of ?pci_set_power_state?, declared with attribute warn_unused_result

  CC [M]  /home/tv/ndiswrapper-1.2/driver/misc_funcs.o

  CC [M]  /home/tv/ndiswrapper-1.2/driver/ndis.o

  CC [M]  /home/tv/ndiswrapper-1.2/driver/ntoskernel.o

  CC [M]  /home/tv/ndiswrapper-1.2/driver/pe_linker.o

  CC [M]  /home/tv/ndiswrapper-1.2/driver/proc.o

  CC [M]  /home/tv/ndiswrapper-1.2/driver/wrapper.o

/home/tv/ndiswrapper-1.2/driver/wrapper.c: In function ?miniport_halt?:

/home/tv/ndiswrapper-1.2/driver/wrapper.c:293: warning: ignoring return value of ?pci_set_power_state?, declared with attribute warn_unused_result

/home/tv/ndiswrapper-1.2/driver/wrapper.c: In function ?ndiswrapper_suspend_pci?:

/home/tv/ndiswrapper-1.2/driver/wrapper.c:737: warning: ignoring return value of ?pci_set_power_state?, declared with attribute warn_unused_result

/home/tv/ndiswrapper-1.2/driver/wrapper.c: In function ?ndiswrapper_resume_pci?:/home/tv/ndiswrapper-1.2/driver/wrapper.c:759: warning: ignoring return value of ?pci_enable_device?, declared with attribute warn_unused_result

  CC [M]  /home/tv/ndiswrapper-1.2/driver/usb.o

  CC [M]  /home/tv/ndiswrapper-1.2/driver/divdi3.o

  LD [M]  /home/tv/ndiswrapper-1.2/driver/ndiswrapper.o

  Building modules, stage 2.

  MODPOST

  CC      /home/tv/ndiswrapper-1.2/driver/ndiswrapper.mod.o

  LD [M]  /home/tv/ndiswrapper-1.2/driver/ndiswrapper.ko

make[2]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'

*** WARNING:  Kernel is compiled with 4K stack size option (CONFIG_4KSTACKS); many Windows drivers will not work with this option enabled. Disable CONFIG_4KSTACKS option, recompile and install kernel

make[1]: Leaving directory `/home/tv/ndiswrapper-1.2/driver'

make -C utils

make[1]: Entering directory `/home/tv/ndiswrapper-1.2/utils'

cc -Wall -g -DNDISWRAPPER_VERSION=\"1.2\"    -c -o loadndisdriver.o loadndisdriver.c

gcc -o loadndisdriver loadndisdriver.o

make[1]: Leaving directory `/home/tv/ndiswrapper-1.2/utils'

[root@localhost ndiswrapper-1.2]# make install

make -C driver install

make[1]: Entering directory `/home/tv/ndiswrapper-1.2/driver'

make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/home/tv/ndiswrapper-1.2/driver \

        NDISWRAPPER_VERSION=1.2 \

        EXTRA_VERSION= modules

make[2]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'

  Building modules, stage 2.

  MODPOST

make[2]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'

*** WARNING:  Kernel is compiled with 4K stack size option (CONFIG_4KSTACKS); many Windows drivers will not work with this option enabled. Disable CONFIG_4KSTACKS option, recompile and install kernel

mkdir -p /lib/modules/2.6.11-1.1369_FC4/misc

install -m 0644 ndiswrapper.ko /lib/modules/2.6.11-1.1369_FC4/misc

/sbin/depmod -a

make[1]: Leaving directory `/home/tv/ndiswrapper-1.2/driver'

make -C utils install

make[1]: Entering directory `/home/tv/ndiswrapper-1.2/utils'

install -D -m 755 loadndisdriver /sbin/loadndisdriver

install -D -m 755 ndiswrapper /usr/sbin/ndiswrapper

install -D -m 755 ndiswrapper-buginfo /usr/sbin/ndiswrapper-buginfo

NOTE: Windows driver configuration file format has changed since 1.0-rc2. You must re-install Windows drivers if they were installed before.

make[1]: Leaving directory `/home/tv/ndiswrapper-1.2/utils'

mkdir -p -m 0755 /usr/share/man/man8

install -m 644 ndiswrapper.8 /usr/share/man/man8

[root@localhost ndiswrapper-1.2]# ls -l /lib/modules/`uname -r`/misc/

total 1640

-rw-r--r--  1 root root 1667592 Jul  1 16:50 ndiswrapper.ko

[root@localhost ndiswrapper-1.2]# whereis ndiswrapper loadndisdriver wlan_radio_averatec_5110hx

ndiswrapper: /usr/sbin/ndiswrapper /usr/share/man/man8/ndiswrapper.8

loadndisdriver: /sbin/loadndisdriver

wlan_radio_averatec_5110hx:

[root@localhost ndiswrapper-1.2]# /usr/sbin/ndiswrapper -i /home/tv/BCMWL5.INF

Installing bcmwl5

cp: cannot stat `/home/tv/BCMWL5.INF': No such file or directory

[root@localhost ndiswrapper-1.2]# /usr/sbin/ndiswrapper -i /home/tv/bcmwl5.inf

bcmwl5 is already installed. Use -e to remove it

[root@localhost ndiswrapper-1.2]# ndiswrapper -l

Installed ndis drivers:

bcmwl5  invalid driver!

[root@localhost ndiswrapper-1.2]#

  • 3 weeks later...

hello i have a little trouble installing my USB wlan card with ndiswrapper 1.2 I have read about others using this usb device with ndiswrapper so it should work, but it doesn't. I have completed all steps from post #1 and #3 with out errors but when i try to reactivate the network with

service network restart

i get

determining IP address for wlan0: Failed no link present. Check cable? [FAILED]

what could be the problem? All lights are on and it starts blinking when trying to get an IP (which according to the book means that it has a valid connection and is sending/receiving data) :cry:

It should. NDISWrapper uses the Windows drivers and makes them work in Linux. There may be a newer version out now than this procedure specifies. I don't have wireless, so I can't vouch.

  • 3 weeks later...
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Let's goooooooo! I've been loving the entries so far! I still have to finish Rebirth (things have been busy!)! Excited for this next installment.
    • "Revelation?" I was hoping for this episode to be called "Reunion". Oh, well... In a related note, the Final Fantasy VII compilation has received an EC entry, short for Ever Crisis. For those who don't know, it already had AC, BC, CC, and DC entries, short for Advent Children, Before Crisis, Crisis Core, and Dirge of Cerberus. I hope it doesn't get an FC entry becaude that would be a freakin' crisis.
    • Uh, after intense testing now, 'Samsung Browser' is not the best one outside of 'Microsoft Edge' after all. Opera Air is that. It has "some" bloat, but it's far less than what both Microsoft Edge and Brave browser have.
    • Weekend PC Game Deals: Resident Evil, Mafia, Like a Dragon, and more by Pulasthi Ariyasinghe Weekend PC Game Deals is where the hottest gaming deals from all over the internet are gathered into one place every week for your consumption. So kick back, relax, and hold on to your wallets. The Epic concluded its mystery giveaways this week with another double freebie promotion. As a part of this, you can now grab Rogue Waters and Songs of Conquest to keep. Songs of Conquest is a turn-based 4X strategy game where you'll be managing a kingdom, making tough decisions, and taking down enemy forces in tactical combat. Meanwhile, Rogue Waters is a roguelike where, as a pirate captain, you command a ship and crew through procedurally generated encounters. The double giveaway is coming to an end on June 11. On the same day, Warhammer 40K Speed Freeks will join in as the next freebie. Another Humble Choice offer was revealed earlier this week, bringing a refreshed eight-game selection to jump into. The June selection is Octopath Traveler 2, The Riftbreaker, Life is Strange: Double Exposure, INDIKA, Citizen Sleeper 2: Starward Vector, Construction Simulator, Hell Clock, and Overlooting to keep as Steam keys. The $15 bundle gives you all eight games from this month's Choice selection. The month-long promotion will come to an end on July 6, giving you ample time to decide on whether you want the titles. The Humble Store also brought in standard gaming collections this week. The IGN Live Bundle kicked things off with games like Control, Shadow Gambit: The Cursed Crew, Blair Witch, Rollerdrome, and The Last Campfire for $10. At the same time, the We Will Always be Here bundle carried in titles like Bad End Theater, Thirsty Suitors, Vampire Therapist, and Tavern Talk for $12. Next, the 2K Sports Champions Bundle comes touting games like NBA 2K26, PGA TOUR 2K25, OlliOlli World Rad Edition, and TopSpin 2K25 with a hefty $25 price tag. Lastly, the Redline Racing Bundle is touting games like Art of Rally, Descenders, Mudrunner, and Assetto Corsa Competizione with a $10 price tag. Big Deals The biggest promotions of this weekend come from franchise discounts for hits like Mafia, Like a Dragon, Resident Evil, and more. With all those and more, here's our hand-picked big deals list for the weekend: Mafia: The Old Country – $34.99 on Steam ARC Raiders – $31.99 on Steam Forza Horizon 5 – $29.99 on Steam Monster Hunter Wilds – $29.39 on Steam Satisfactory – $27.99 on Steam No Rest for the Wicked – $27.99 on Steam Satisfactory – $27.99 on Steam Esoteric Ebb – $19.99 on Steam Street Fighter 6 – $19.99 on Steam Cloudheim – $19.79 on Steam Pacific Drive – $17.99 on Steam Like a Dragon: Infinite Wealth – $17.49 on Steam ACE COMBAT 7: SKIES UNKNOWN – $14.99 on Steam Yakuza 0 Director's Cut – $14.99 on Steam Like a Dragon Gaiden: The Man Who Erased His Name – $14.99 on Steam Like a Dragon: Pirate Yakuza in Hawaii – $14.99 on Steam Grand Theft Auto V Enhanced – $14.99 on Steam Lost Judgment – $13.99 on Steam The Crew Motorfest – $13.99 on Steam Stronghold Crusader: Definitive Edition – $12.59 on Steam The Stanley Parable: Ultra Deluxe – $12.49 on Steam Blood West – $12.49 on Steam Yakuza Kiwami 2 – $11.99 on Steam Judgment – $11.99 on Steam Like a Dragon: Ishin! – $11.99 on Steam Alien: Isolation – $11.99 on Steam Goat Simulator: Remastered – $10.19 on Steam Resident Evil Village – $9.99 on Steam Yakuza 4 Remastered – $9.99 on Steam Yakuza 5 Remastered – $9.99 on Steam Yakuza 6: The Song of Life – $9.99 on Steam Caravan SandWitch – $9.99 on Steam Spyro Reignited Trilogy – $9.99 on Steam Assassin's Creed III Remastered – $9.99 on Steam The Expanse: A Telltale Series – $9.99 on Steam Sons Of The Forest – $8.99 on Steam Untitled Goose Game – $7.99 on Steam Resident Evil 2 – $7.99 on Steam Resident Evil 3 – $7.99 on Steam Resident Evil 7 Biohazard – $7.99 on Steam Yakuza: Like a Dragon – $7.99 on Steam Airborne Kingdom – $7.49 on Steam Assassin's Creed Syndicate – $7.49 on Steam The Wolf Among Us – $7.49 on Steam Amnesia: The Bunker – $7.49 on Steam Mini Motorways – $6.99 on Steam Age of History 3 – $6.99 on Steam Fabledom – $6.29 on Steam Trine 4: The Nightmare Prince – $5.99 on Steam Mafia: Definitive Edition – $5.99 on Steam Mafia II: Definitive Edition – $5.99 on Steam Resident Evil 6 – $4.99 on Steam Resident Evil 5 – $4.99 on Steam Resident Evil Revelations 2 – $4.99 on Steam Resident Evil 3 Nemesis (1999) – $4.99 on Steam Terra Memoria – $4.99 on Steam FOR HONOR – $4.49 on Steam Metro Exodus – $4.49 on Steam The Forest – $4.39 on Steam Mini Metro – $3.99 on Steam Songs of Conquest – $0 on Epic Store Rogue Waters – $0 on Epic Store Gravity Circuit – $0 on Steam DRM-free Specials The DRM-free store GOG has plenty of discounts to look over this weekend too. Here are some highlights: Trials of Mana - $14.99 on GOG SPORE Collection - $14.99 on GOG Stellaris - $12.49 on GOG FINAL FANTASY VIII - REMASTERED - $7.99 on GOG Final Fantasy IV (3D Remake) - $7.99 on GOG Final Fantasy III (3D Remake) - $7.99 on GOG FINAL FANTASY IX - $6.29 on GOG The Forgotten City - $6.25 on GOG Warlords Battlecry 3 - $5.99 on GOG Heroes of Might and Magic 3: Complete - $4.99 on GOG Heroes of Might and Magic 4: Complete - $4.99 on GOG SimCity 4 Deluxe Edition - $4.99 on GOG FINAL FANTASY VII - $4.79 on GOG Cultures 1+2 - $3.99 on GOG Outlast - $3.75 on GOG Dungeon Keeper 2 - $2.99 on GOG Theme Hospital - $2.99 on GOG Sid Meier's Alpha Centauri Planetary Pack - $2.99 on GOG Dungeon Keeper Gold - $2.99 on GOG Alba: A Wildlife Adventure - $2.55 on GOG Disciples 2 Gold - $1.99 on GOG Outcast - Second Contact - $1.49 on GOG Disciples: Sacred Lands Gold - $1.49 on GOG Port Royale 2 - $0.99 on GOG Keep in mind that availability and pricing for some deals could vary depending on the region. That's it for our pick of this weekend's PC game deals, and hopefully, some of you have enough self-restraint not to keep adding to your ever-growing backlogs. As always, there are an enormous number of other deals ready and waiting all over the interwebs, as well as on services you may already subscribe to if you comb through them, so keep your eyes open for those, and have a great weekend.
  • Recent Achievements

    • Week One Done
      pestcontrol46 earned a badge
      Week One Done
    • One Month Later
      pestcontrol46 earned a badge
      One Month Later
    • Week One Done
      JKR earned a badge
      Week One Done
    • Rookie
      moog19 went up a rank
      Rookie
    • Mentor
      grik went up a rank
      Mentor
  • Popular Contributors

    1. 1
      +primortal
      497
    2. 2
      PsYcHoKiLLa
      276
    3. 3
      Skyfrog
      75
    4. 4
      Steven P.
      68
    5. 5
      FloatingFatMan
      65
  • Tell a friend

    Love Neowin? Tell a friend!