| View previous topic :: View next topic |
| Author |
Message |
Ianb1972
Joined: Mon Oct 31, 2005 12:33 pm Posts: 16
|
Posted: Mon Oct 31, 2005 12:44 pm Post subject: Belkin F5D700 wireless card on Fedora core 4 |
|
|
I am new to linux and want to get away from MS Windows.
Can anyone help me with install my Belkin F5D700 wireless network card, I have downloaded ndiswrapper-1.4 and have all the files needed for the install and installed the Kernel-devel-2.6.11-1.1369_FC4 but I am having a few problem.
In the Installation instructions I got from http://ndiswrapper.sourceforge.net it says to create a link use this command
1n -s /usr/src/linux-<kernel-version> /lib/modules/VERSION/build
Well I get an error saying it cant file the file, the Kernel I am using is 2.6.11-1.1369_FC4, and that is the <kernel-version> name I use.
I have extracted Ndiswrapper-1.4 and then I type 'Make distclean' all is fine till I type 'Make' then I get an error :
[Ian@localhost ndiswrapper-1.4]$ make
make -C driver
make[1]: Entering directory `/home/Ian/ndiswrapper-1.4/driver'
Can't find kernel sources in /lib/modules/2.6.11-1.1369_FC4smp/build;
give the path to kernel sources with KSRC=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/home/Ian/ndiswrapper-1.4/driver'
make: *** [all] Error 2
Even when I change to the root (su -) I still get an error.
Can someone please help me as I really want to ditch my windows XP and get this Linux working 100%
Many thanks
Ian |
|
| Back to top |
|
 |
crispibits LXF regular

Joined: Thu Jun 30, 2005 1:33 pm Posts: 201 Location: Bath
|
Posted: Mon Oct 31, 2005 1:07 pm Post subject: RE: Belkin F5D700 wireless card on Fedora core 4 |
|
|
could it be as simple as ndiswrapper looking in
[code]/lib/modules/2.6.11-1.1369_FC4smp/build[code]
and you using
[code]/lib/modules/2.6.11-1.1369_FC4/build[code]
?
just noticed that you also say the command is
[code]1n -s blah...[/code]
That is using the numeric 1, but it should be
[code]ln -s blah...[/code]
using a lowercase L, as the command an abbreviated version of the word link
Is this where you are getting the message about the file not being found? _________________ I'm not a spammer - honest! |
|
| Back to top |
|
 |
Ianb1972
Joined: Mon Oct 31, 2005 12:33 pm Posts: 16
|
Posted: Mon Oct 31, 2005 1:14 pm Post subject: RE: Belkin F5D700 wireless card on Fedora core 4 |
|
|
I think I have realised what I have been doing wrong!
I have been typing
1n -s /usr/src/linux-<2.6.11-1.1369_FC4> /lib/modules/VERSION/build
Should i have been typing:
1n -s /usr/src/linux-<2.6.11-1.1369_FC4> /lib/modules/2.6.11-1.1369_FC4/build
or
1n -s /usr/src/linux-<kernel-version> /lib/modules/2.6.11-1.1369_FC4/build
Like I said I am completely new to linux after always using MS Windows, so that accouints why I am so stupid!! LOL |
|
| Back to top |
|
 |
crispibits LXF regular

Joined: Thu Jun 30, 2005 1:33 pm Posts: 201 Location: Bath
|
Posted: Mon Oct 31, 2005 1:26 pm Post subject: RE: Belkin F5D700 wireless card on Fedora core 4 |
|
|
your best bet is to open a terminal (or your file manager) and navigate to /usr/src. Have a look at the directories you have here. With any luck, you'll just have one. Use that as your source for the link, and use | Code: | | /lib/modules/2.6.11-1.1369_FC4smp/build | as the destination for the link. As an example, if you go to /usr/src and find the only directory in there is 2.6.11-1.1369_FC4, your command would be:
| Code: | | ln -s /usr/src/2.6.11-1.1369_FC4 /lib/modules/2.6.11-1.1369_FC4smp/build |
Don't forget what I mentioned about ln being a lowercase L, not a number 1...  _________________ I'm not a spammer - honest! |
|
| Back to top |
|
 |
Ianb1972
Joined: Mon Oct 31, 2005 12:33 pm Posts: 16
|
Posted: Mon Oct 31, 2005 4:36 pm Post subject: RE: Belkin F5D700 wireless card on Fedora core 4 |
|
|
Well I have tried that and still get an error, I think I must be doing something really silly wrong!!
Here is what I have type/done:
[Ian@localhost ~]$ ln -s /usr/src/2.6.11-1.1369_FC4 /lib/modules/2.6.11-1.1369_FC4smp/build
ln: `/lib/modules/2.6.11-1.1369_FC4smp/build': File exists
[Ian@localhost ~]$ su
Password:
[root@localhost ndiswrapper-1.4]# make
make -C driver
make[1]: Entering directory `/home/Ian/ndiswrapper-1.4/driver'
Can't find kernel sources in /lib/modules/2.6.11-1.1369_FC4smp/build;
give the path to kernel sources with KSRC=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/home/Ian/ndiswrapper-1.4/driver'
make: *** [all] Error 2
[root@localhost ndiswrapper-1.4]#
Is there anything I have done wrong??
Ian |
|
| Back to top |
|
 |
crispibits LXF regular

Joined: Thu Jun 30, 2005 1:33 pm Posts: 201 Location: Bath
|
Posted: Mon Oct 31, 2005 8:35 pm Post subject: RE: Belkin F5D700 wireless card on Fedora core 4 |
|
|
Did you navigate to /usr/src and check the directory name? If so and there was no 'smp' after it, it looks as though you have installed kernel-devel for the wrong architecture, as your install appears to be using SMP (symmetric multiple processor). Do you have either a really whizzy Intel chip with Hyperthreading, or more than one processor?
Try installing the kernel-devel for smp support if this is the case, and then check /usr/src again for the correct name for the directory. If it's different, then you need to:
| Code: | | rm /lib/modules/2.6.11-1369_FC4smp/build |
followed by the correct ln command for your 'new' /usr/src directory. _________________ I'm not a spammer - honest! |
|
| Back to top |
|
 |
Ianb1972
Joined: Mon Oct 31, 2005 12:33 pm Posts: 16
|
Posted: Mon Oct 31, 2005 8:51 pm Post subject: RE: Belkin F5D700 wireless card on Fedora core 4 |
|
|
| I have a pentium 4 3ghz with hypertheading. how do I get to the /usr/src directory?? |
|
| Back to top |
|
 |
crispibits LXF regular

Joined: Thu Jun 30, 2005 1:33 pm Posts: 201 Location: Bath
|
Posted: Mon Oct 31, 2005 8:54 pm Post subject: RE: Belkin F5D700 wireless card on Fedora core 4 |
|
|
In a terminal you can just do
then type
That's a lowercase L.
Otherwise use a GUI file manager. _________________ I'm not a spammer - honest! |
|
| Back to top |
|
 |
Ianb1972
Joined: Mon Oct 31, 2005 12:33 pm Posts: 16
|
Posted: Tue Nov 01, 2005 10:57 am Post subject: RE: Belkin F5D700 wireless card on Fedora core 4 |
|
|
ok I have done as you said and the Kernel I have in /usr/src is 2.6.11-1.1369_FC4-i686
so when I now do the 'Make' command I get this now:
[root@localhost ndiswrapper-1.4]# make
make -C driver
make[1]: Entering directory `/home/Ian/ndiswrapper-1.4/driver'
make -C /lib/modules/2.6.11-1.1369_FC4smp/build SUBDIRS=/home/Ian/ndiswrapper-1.4/driver \
DRIVER_VERSION=1.4
/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'
LD /home/Ian/ndiswrapper-1.4/driver/built-in.o
CC [M] /home/Ian/ndiswrapper-1.4/driver/hal.o
/bin/sh: gcc: command not found
make[3]: *** [/home/Ian/ndiswrapper-1.4/driver/hal.o] Error 127
make[2]: *** [_module_/home/Ian/ndiswrapper-1.4/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/Ian/ndiswrapper-1.4/driver'
make: *** [all] Error 2
What is this gcc that seems to be causing the error?
Ian |
|
| Back to top |
|
 |
crispibits LXF regular

Joined: Thu Jun 30, 2005 1:33 pm Posts: 201 Location: Bath
|
Posted: Tue Nov 01, 2005 11:31 am Post subject: RE: Belkin F5D700 wireless card on Fedora core 4 |
|
|
Yay, we're getting there! GCC is the Gnu C Compiler. It's what is needed in order to compile C programs. If this is not installed, you'll need to install the software development programs. From what I can remember of Fedora, there's actually a section you can tick in the package manager for software development. I would suggest you do that, install all the programs it suggests, and then try again. _________________ I'm not a spammer - honest! |
|
| Back to top |
|
 |
Ianb1972
Joined: Mon Oct 31, 2005 12:33 pm Posts: 16
|
Posted: Tue Nov 01, 2005 12:47 pm Post subject: RE: Belkin F5D700 wireless card on Fedora core 4 |
|
|
ok ow we are getting somewhere!!
now i have an error when i type ndiswrapper -i bcmwl5.inf
this is my screen since 'make distclean' with the ndiswrapper -i bcmwl5.inf command:
[Ian@localhost ndiswrapper-1.4]$ make distclean
make -C driver clean
make[1]: Entering directory `/home/Ian/ndiswrapper-1.4/driver'
rm -rf ndiswrapper.ko ndiswrapper.o hal.o iw_ndis.o loader.o misc_funcs.o ndis.o ntoskernel.o ntoskernel_io.o
pe_linker.o proc.o wrapper.o usb.o divdi3.o usb.o x86_64_stubs.o \
divdi3.o .*.ko.cmd .*.o.cmd ndiswrapper.mod.[oc] *~ .tmp_versions
make[1]: Leaving directory `/home/Ian/ndiswrapper-1.4/driver'
make -C utils clean
make[1]: Entering directory `/home/Ian/ndiswrapper-1.4/utils'
rm -f *~ *.o loadndisdriver
make[1]: Leaving directory `/home/Ian/ndiswrapper-1.4/utils'
rm -f *~
rm -fr ndiswrapper-1.4 ndiswrapper-1.4.tar.gz *.deb patch-stamp
make -C driver distclean
make[1]: Entering directory `/home/Ian/ndiswrapper-1.4/driver'
rm -rf ndiswrapper.ko ndiswrapper.o hal.o iw_ndis.o loader.o misc_funcs.o ndis.o ntoskernel.o ntoskernel_io.o
pe_linker.o proc.o wrapper.o usb.o divdi3.o usb.o x86_64_stubs.o \
divdi3.o .*.ko.cmd .*.o.cmd ndiswrapper.mod.[oc] *~ .tmp_versions
rm -f *_exports.h .\#* x86_64_stubs.h
make[1]: Leaving directory `/home/Ian/ndiswrapper-1.4/driver'
make -C utils distclean
make[1]: Entering directory `/home/Ian/ndiswrapper-1.4/utils'
rm -f *~ *.o loadndisdriver
rm -f .\#*
make[1]: Leaving directory `/home/Ian/ndiswrapper-1.4/utils'
rm -f .\#*
[Ian@localhost ndiswrapper-1.4]$ su
Password:
[root@localhost ndiswrapper-1.4]# make install
make -C driver install
make[1]: Entering directory `/home/Ian/ndiswrapper-1.4/driver'
make -C /lib/modules/2.6.11-1.1369_FC4smp/build
SUBDIRS=/home/Ian/ndiswrapper-1.4/driver \
DRIVER_VERSION=1.4
make[2]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
LD /home/Ian/ndiswrapper-1.4/driver/built-in.o CC [M] /home/Ian/ndiswrapper-1.4/driver/hal.o
CC [M] /home/Ian/ndiswrapper-1.4/driver/iw_ndis.o CC [M] /home/Ian/ndiswrapper-1.4/driver/loader.o
CC [M] /home/Ian/ndiswrapper-1.4/driver/misc_funcs.o
CC [M] /home/Ian/ndiswrapper-1.4/driver/ndis.o
CC [M] /home/Ian/ndiswrapper-1.4/driver/ntoskernel.o
CC [M] /home/Ian/ndiswrapper-1.4/driver/ntoskernel_io.o
CC [M] /home/Ian/ndiswrapper-1.4/driver/pe_linker.o
CC [M] /home/Ian/ndiswrapper-1.4/driver/proc.o
CC [M] /home/Ian/ndiswrapper-1.4/driver/wrapper.o
CC [M] /home/Ian/ndiswrapper-1.4/driver/usb.o
CC [M] /home/Ian/ndiswrapper-1.4/driver/divdi3.o
LD [M] /home/Ian/ndiswrapper-1.4/driver/ndiswrapper.o
Building modules, stage 2.
MODPOST
CC /home/Ian/ndiswrapper-1.4/driver/ndiswrapper.mod.o
LD [M] /home/Ian/ndiswrapper-1.4/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
mkdir -p /lib/modules/2.6.11-1.1369_FC4smp/misc
install -m 0644 ndiswrapper.ko /lib/modules/2.6.11-1.1369_FC4smp/misc
/sbin/depmod -a
make[1]: Leaving directory `/home/Ian/ndiswrapper-1.4/driver'
make -C utils install
make[1]: Entering directory `/home/Ian/ndiswrapper-1.4/utils'
cc -Wall -g -DUTILS_VERSION=\"1.4\" -c -o loadndisdriver.o loadndisdriver.c
gcc -o loadndisdriver loadndisdriver.o
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/Ian/ndiswrapper-1.4/utils'
mkdir -p -m 0755 /usr/share/man/man8
install -m 644 ndiswrapper.8 /usr/share/man/man8
[root@localhost ndiswrapper-1.4]# ndiswrapper -i bcmwl5.inf
bash: ndiswrapper: command not found
what have done wrong now?? |
|
| Back to top |
|
 |
Nigel LXF regular

Joined: Fri Apr 08, 2005 9:03 pm Posts: 1141 Location: Gloucestershire, UK
|
Posted: Tue Nov 01, 2005 12:55 pm Post subject: RE: Belkin F5D700 wireless card on Fedora core 4 |
|
|
You might need to use the command
| Code: | | ./ndiswrapper -i bcmwl5.inf |
- often the current directory is not in your executable path, to avoid problems if somehow you get a file called (for instance) ls in your home directory. _________________ Hope this helps,
Nigel. |
|
| Back to top |
|
 |
Ianb1972
Joined: Mon Oct 31, 2005 12:33 pm Posts: 16
|
Posted: Tue Nov 01, 2005 1:18 pm Post subject: RE: Belkin F5D700 wireless card on Fedora core 4 |
|
|
hi I've done that and I still get the same error message!!
[root@localhost ndiswrapper-1.4]# ndiswrapper -i bcmwl5.inf
bash: ndiswrapper: command not found
[root@localhost ndiswrapper-1.4]# /ndiswrapper -i bcmwl5.inf
bash: /ndiswrapper: No such file or directory
[root@localhost ndiswrapper-1.4]#
Ian |
|
| Back to top |
|
 |
crispibits LXF regular

Joined: Thu Jun 30, 2005 1:33 pm Posts: 201 Location: Bath
|
Posted: Tue Nov 01, 2005 1:32 pm Post subject: RE: Belkin F5D700 wireless card on Fedora core 4 |
|
|
When you became root, you probably just typed
but root needs to be able to get to 'special' paths, so needs to have it's own environment read. In the code you showed above, it has the following lines:
| Code: | 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 |
This shows that the commands have installed to /sbin and /usr/sbin.
To enable root to be able to incllude these paths, open a new terminal and type
That's su with a space then a minus sign after it.
Now if you try top run your ndiswrapper scripts, you should find they work. Good luck! _________________ I'm not a spammer - honest! |
|
| Back to top |
|
 |
Ianb1972
Joined: Mon Oct 31, 2005 12:33 pm Posts: 16
|
Posted: Tue Nov 01, 2005 3:48 pm Post subject: RE: Belkin F5D700 wireless card on Fedora core 4 |
|
|
Yeah that worked now when I type ndiswrapper -l bcmwl5.inf then ndiswrapper -l this is what I get!
[root@localhost ~]# ndiswrapper -i bcmwl5.inf
Installing bcmwl5
cp: cannot stat `bcmwl5.inf': No such file or directory
[root@localhost ~]# ndiswrapper -l
Installed ndis drivers:
bcmwl5 invalid driver!
I think I have pciutils installed
Ian |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|