trouble compiling modules against custom fedora core 4 kernel
///////////////////////////////////
// BACKGROUND // /////////////////////////////////// ok, i'm trying to install ndiswrapper on my laptop, which is running Fedora Core 4 (via the upgrade feature, from Fedora Core 3) so i can use my linksys WPC54Gv2 wireless card (PCMCIA). i can create the kernel module and userspace utilities for it by using a simple 'make rpm'. however, the fedora core kernels are configured w/ 4K stacks instead of 8K stacks. this is a problem for ndiswrapper (which allows the use of windows wireless card drivers in linux) because many windows drivers won't work w/ 4K stacks. i assume this is my problem, as everything goes well until i load the module w/ the card in (freezes during runtime, kernel panics at boot time). so, i got the src.rpm for the kernel and recreated the source tree as instructed in the fedora core 4 release notes. used their config and changed the stack size option (which is under Kernel Hacking). briefly: rpm -Uvh kernel-2.6.12-1.1398_FC4.src.rpm cd /usr/src/redhat/SPECS rpmbuild -bp --target $(arch) kernel-2.6.spec <go to source dir, get i686 config file into .config> make oldconfig make menuconfig (changed stack size only) make rpm this was all done on my desktop (running Fedora Core 3). moved the kernel rpm over to my laptop and installed. i can now boot this kernel (2.6.12-prep) w/out problems. now, if i try to 'make rpm' for ndiswrapper, it says it needs /lib/modules/2.6.12-prep/build/Makefile, which doesn't exist. i've tried making this directory a symlink to the expanded source tree, which clearly has the makefile (the tree is present on the laptop, there just wasn't enough disk space to build it there). when i first installed fedora core 4, i couldn't build against the current kernel due to the same error. this was fixed by installing the corresponding kernel-devel rpm. i've examined the structure of the existing /lib/modules directories and attempted to mimic them manually (by creating symlinks), but have been unsuccessful. /////////////////////////// // QUESTION // /////////////////////////// what do i need to do to be able to compile the module against this new kernel that has no kernel-devel rpm to go with it? can i create this rpm somehow? can the appropriate /lib/modules directory be created from the source tree, src.rpm, or otherwise? any advice, including pointers to resources, will be greatly appreciated. |
Different but the same
I am also trying to install ndiswrapper, except that I am using Fedora Core 3, the 2.6.13-rc4-RT-V0.7.52-13 kernel, and I am buildding from the ndiswrapper 1.2.1 tar.gz file, not the src rpm.
I try "sudo make rpm" but I get: Quote:
Quote:
Quote:
|
New problem
I still have not figured out the "make rpm" problem, so I just did "make;sudo make install".
But now the module wont load due to an unknown symbol "get_current"! Quote:
Quote:
|
Problem
Hi!
I have a HP Pavilion zd8179ea and have installed Linux Fedora on it. I am trying to make the wireless connection work. It has the Broadcom chipset. I followed the procedure and I have done all the steps right till I have reached the NDISWRAPPER steps. I am trying to enter the ¨make¨ command and the ¨make install¨ command but I get an error message. This is the error: [root@localhost ndiswrapper-1.26]# make make -C driver make[1]: Entering directory `/home/user01/ndiswrapper-1.26/driver' Can't find kernel build files in /lib/modules/2.6.18-1.2200.fc5smp/build; give the path to kernel build directory with KBUILD=<path> argument to make make[1]: *** [prereq_check] Error 1 make[1]: Leaving directory `/home/user01/ndiswrapper-1.26/driver' make: *** [all] Error 2 [root@localhost ndiswrapper-1.26]# What is going wrong? I am doing something wrong? Please help me as soon as possible cause my work depends on that... Thank you |
wade, did you manage to find a solution to compiling ndiswrapper on a custom kernel, as i have exactly the same problem although mine is more problematic as i need to use the custom kernel to include the modules for my AMD processor and for my custom DSDT table (goes into thermal overrun otherwise) any help is very much appreciated. Cheers Graham
|
first i don't know one single thing about rpms but i think
repeat the build procedure this time doing it on the laptop so all the build directories are in the right place ?? don't even have to install it just create the build. |
ndiswrapper compiles and builds fine on my custom kernel, i just can't insert the module as it says its in the wrong format. Any ideas??
|
All times are GMT -5. The time now is 10:21 AM. |