PDA

View Full Version : Update Kernel from Hard Disk



Ghjnut
10th October 2007, 10:21 PM
I just reinstalled fedora on my system and am running the kernel 1.6.21-1.3193 I am trying to install ndiswrapper to get my wireless working but i'm getting a KBUILD error involving the "Kernel root tree". I'm assuming this means I'm running an unsupported/outdated kernel. I don't have access to a hard connection so I can't update the kernel that way. I'm looking to update the kernel through a flash drive but one, I don't know where to get the update, and two, I'm not sure how to update it through a flash drive. Any help would be appreciated.

Brian1
10th October 2007, 11:26 PM
are you building the ndiswrapper from source? If so did you install the kernel-devel*****.rpm and maybe kernel-headers*******.rpm matching the kernel you are running?
Posting the error messages can help.

Brian

Ghjnut
10th October 2007, 11:46 PM
[root@localhost ndiswrapper-1.48]# make distclean
make -C driver clean
make[1]: Entering directory `/home/Ghjnut/Desktop/ndiswrapper-1.48/driver'
Makefile:24: *** Kernel tree not found - please set KBUILD to configured kernel. Stop.
make[1]: Leaving directory `/home/Ghjnut/Desktop/ndiswrapper-1.48/driver'
make: *** [clean] Error 2
[root@localhost ndiswrapper-1.48]# make uninstall
which: no loadndisdriver in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/Ghjnut/bin)
which: no loadndisdriver in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/Ghjnut/bin)
which: no loadndisdriver in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/Ghjnut/bin)
which: no ndiswrapper in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/Ghjnut/bin)
which: no ndiswrapper in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/Ghjnut/bin)
which: no ndiswrapper in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/Ghjnut/bin)
which: no ndiswrapper-buginfo in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/Ghjnut/bin)
which: no ndiswrapper-buginfo in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/Ghjnut/bin)
which: no ndiswrapper-buginfo in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/Ghjnut/bin)
NOTE: Not all installed files are removed, as different distributions install ndiswrapper files at different places.
Run uninstall as many times as necessary until no "removing" messages appear below.
[root@localhost ndiswrapper-1.48]# make
make -C driver
make[1]: Entering directory `/home/Ghjnut/Desktop/ndiswrapper-1.48/driver'
Makefile:24: *** Kernel tree not found - please set KBUILD to configured kernel. Stop.
make[1]: Leaving directory `/home/Ghjnut/Desktop/ndiswrapper-1.48/driver'
make: *** [all] Error 2
[root@localhost ndiswrapper-1.48]# make install
make -C driver install
make[1]: Entering directory `/home/Ghjnut/Desktop/ndiswrapper-1.48/driver'
Makefile:24: *** Kernel tree not found - please set KBUILD to configured kernel. Stop.
make[1]: Leaving directory `/home/Ghjnut/Desktop/ndiswrapper-1.48/driver'
make: *** [install] Error 2
[root@localhost ndiswrapper-1.48]#


I did try it both from root user and normal user

Brian1
10th October 2007, 11:49 PM
Post output of this command. ' rpm -qa | grep kernel '
Looking for the kernel, kernel-devel, and maybe kernel-headers packages. The kernel-devel is the kernel source package.

Brian

Ghjnut
11th October 2007, 12:04 AM
[root@localhost ~]# rpm -qa | grep kernel
kernel-2.6.21-1.3194.fc7
[root@localhost ~]#

Brian1
11th October 2007, 12:48 AM
You are missing the kernel source. If that was the orginal kernel from the install then on the cd is kernel-devel-2.6.21-1.3194.fc7.rpm or something very close to that. To install goto the location of the file in a console and run this command as root.
rpm -ivh kernel-devel*.rpm

Now build ndiswrapper.

Brian

Ghjnut
11th October 2007, 02:58 AM
[root@localhost Fedora]# rpm -ivh kernel-devel*.rpm
warning: kernel-devel-2.6.21-1.3194.fc7.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
warning: package kernel-devel = 2.6.21-1.3194.fc7 was already added, skipping kernel-devel < 2.6.21-1.3194.fc7

[Ghjnut@localhost ndiswrapper-1.48]$ make distclean
make -C driver clean
make[1]: Entering directory `/home/Ghjnut/Desktop/ndiswrapper-1.48/driver'
Makefile:35: *** Cannot find kernel version in /usr/src/kernels/2.6.21-1.3194.fc7-i686, is it configured?. Stop.
make[1]: Leaving directory `/home/Ghjnut/Desktop/ndiswrapper-1.48/driver'
make: *** [clean] Error 2

Ghjnut
11th October 2007, 03:09 AM
here's what got cut off after the first paragraph

error: error reading from file kernel-devel-2.6.21-1.3194.fc7.i686.rpm
[root@localhost Fedora]# rpm -qa |grep kernel
kernel-2.6.21-1.3194.fc7
kernel-devel-2.6.21-1.3194.fc7
[root@localhost Fedora]#

Ghjnut
11th October 2007, 03:54 AM
i also downloaded the i686 rpm manually to make sure the one i was trying to install wasn't corrupted and when i went to install it said it was already installed

brr872002
11th October 2007, 05:34 AM
http://livna-dl.reloumirrors.net/fedora/7/i386/kmod-ndiswrapper-1.46-1.2.6.21_1.3194.fc7.i686.rpm
download RPM files and install manually

Ghjnut
11th October 2007, 05:17 PM
It says it was unable to retrieve file information - this may be due to the lack of a network connection

Ghjnut
12th October 2007, 03:50 AM
So i'm assuming I'm just going to have to get access to a hard connection?

Ghjnut
16th October 2007, 07:01 AM
Here's updated info:


[root@localhost Desktop]# rpm -ivh kmod-ndiswrapper-1.46-1.2.6.21_1.3194.fc7.i686.rpm
warning: kmod-ndiswrapper-1.46-1.2.6.21_1.3194.fc7.i686.rpm: Header V3 DSA signature: NOKEY, key ID a109b1ec
error: Failed dependencies:
ndiswrapper-kmod-common >= 1.46 is needed by kmod-ndiswrapper-1.46-1.2.6.21_1.3194.fc7.i686
[root@localhost Desktop]# ls
kmod-ndiswrapper-1.46-1.2.6.21_1.3194.fc7.i686.rpm ndiswrapper-1.48
ndis ndiswrapper-1.48.tar.gz
[root@localhost Desktop]# cd ndiswrapper-1.48
[root@localhost ndiswrapper-1.48]# ls
AUTHORS driver loadndisdriver.8 ndiswrapper.8 README
ChangeLog INSTALL Makefile ndiswrapper.spec utils
[root@localhost ndiswrapper-1.48]# make distclean
make -C driver clean
make[1]: Entering directory `/home/Ghjnut/Desktop/ndiswrapper-1.48/driver'
rm -rf ndiswrapper.ko ndiswrapper.o crt.o hal.o iw_ndis.o loader.o ndis.o ntoskernel.o ntoskernel_io.o pe_linker.o pnp.o proc.o rtl.o wrapmem.o wrapndis.o wrapper.o usb.o divdi3.o usb.o win2lin_stubs.o \
divdi3.o workqueue.o .*.ko.cmd .*.o.cmd compat.h \
ndiswrapper.mod.[oc] *~ .tmp_versions Modules.symvers Module.symvers
make[1]: Leaving directory `/home/Ghjnut/Desktop/ndiswrapper-1.48/driver'
make -C utils clean
make[1]: Entering directory `/home/Ghjnut/Desktop/ndiswrapper-1.48/utils'
rm -f *~ *.o loadndisdriver
make[1]: Leaving directory `/home/Ghjnut/Desktop/ndiswrapper-1.48/utils'
rm -f *~
rm -fr ndiswrapper-1.48 ndiswrapper-1.48.tar.gz patch-stamp
make -C driver distclean
make[1]: Entering directory `/home/Ghjnut/Desktop/ndiswrapper-1.48/driver'
rm -rf ndiswrapper.ko ndiswrapper.o crt.o hal.o iw_ndis.o loader.o ndis.o ntoskernel.o ntoskernel_io.o pe_linker.o pnp.o proc.o rtl.o wrapmem.o wrapndis.o wrapper.o usb.o divdi3.o usb.o win2lin_stubs.o \
divdi3.o workqueue.o .*.ko.cmd .*.o.cmd compat.h \
ndiswrapper.mod.[oc] *~ .tmp_versions Modules.symvers Module.symvers
rm -f *_exports.h .\#* win2lin_stubs.h built-in.o
make[1]: Leaving directory `/home/Ghjnut/Desktop/ndiswrapper-1.48/driver'
make -C utils distclean
make[1]: Entering directory `/home/Ghjnut/Desktop/ndiswrapper-1.48/utils'
rm -f *~ *.o loadndisdriver
rm -f .\#*
make[1]: Leaving directory `/home/Ghjnut/Desktop/ndiswrapper-1.48/utils'
rm -f .\#*
[root@localhost ndiswrapper-1.48]# make uninstall
which: no loadndisdriver in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/Ghjnut/bin)
which: no loadndisdriver in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/Ghjnut/bin)
which: no loadndisdriver in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/Ghjnut/bin)
which: no ndiswrapper in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/Ghjnut/bin)
which: no ndiswrapper in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/Ghjnut/bin)
which: no ndiswrapper in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/Ghjnut/bin)
which: no ndiswrapper-buginfo in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/Ghjnut/bin)
which: no ndiswrapper-buginfo in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/Ghjnut/bin)
which: no ndiswrapper-buginfo in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/Ghjnut/bin)
NOTE: Not all installed files are removed, as different distributions install ndiswrapper files at different places.
Run uninstall as many times as necessary until no "removing" messages appear below.
[root@localhost ndiswrapper-1.48]# make
make -C driver
make[1]: Entering directory `/home/Ghjnut/Desktop/ndiswrapper-1.48/driver'
make -C /usr/src/kernels/2.6.21-1.3194.fc7-i686 SUBDIRS=/home/Ghjnut/Desktop/ndiswrapper-1.48/driver
/usr/src/kernels/2.6.21-1.3194.fc7-i686/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/kernels/2.6.21-1.3194.fc7-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.21-1.3194.fc7-i686'
LD /home/Ghjnut/Desktop/ndiswrapper-1.48/driver/built-in.o
CC [M] /home/Ghjnut/Desktop/ndiswrapper-1.48/driver/crt.o
/bin/sh: gcc: command not found
make[3]: *** [/home/Ghjnut/Desktop/ndiswrapper-1.48/driver/crt.o] Error 127
make[2]: *** [_module_/home/Ghjnut/Desktop/ndiswrapper-1.48/driver] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.21-1.3194.fc7-i686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/Ghjnut/Desktop/ndiswrapper-1.48/driver'
make: *** [all] Error 2
[root@localhost ndiswrapper-1.48]# make install
make -C driver install
make[1]: Entering directory `/home/Ghjnut/Desktop/ndiswrapper-1.48/driver'
make -C /usr/src/kernels/2.6.21-1.3194.fc7-i686 SUBDIRS=/home/Ghjnut/Desktop/ndiswrapper-1.48/driver
/usr/src/kernels/2.6.21-1.3194.fc7-i686/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/kernels/2.6.21-1.3194.fc7-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.21-1.3194.fc7-i686'
CC [M] /home/Ghjnut/Desktop/ndiswrapper-1.48/driver/crt.o
/bin/sh: gcc: command not found
make[3]: *** [/home/Ghjnut/Desktop/ndiswrapper-1.48/driver/crt.o] Error 127
make[2]: *** [_module_/home/Ghjnut/Desktop/ndiswrapper-1.48/driver] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.21-1.3194.fc7-i686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/Ghjnut/Desktop/ndiswrapper-1.48/driver'
make: *** [install] Error 2