LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   No source for the 2.6.11-1.1369_FC4 kernel (https://www.linuxquestions.org/questions/linux-software-2/no-source-for-the-2-6-11-1-1369_fc4-kernel-347815/)

IPDreams 07-28-2005 05:40 PM

No source for the 2.6.11-1.1369_FC4 kernel
 
I'm installing Asterisk 1.1 on Fedora4 - after getting from CVS i run the

[root@IPDreams zaptel]# make install

and get

cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.c

(etc etc etc etc etc)

cc -o fxotune fxotune.o -lm
You do not appear to have the sources for the 2.6.11-1.1369_FC4 kernel installed.

Thoughts?

macemoneta 07-28-2005 08:34 PM

Have you installed the kernel-devel package?

kylnj 07-28-2005 11:59 PM

kloading kernel source for 2.6.12-1.1372_FC3
 
hi guys

need help!!

i am running fc-3 2.6.12-1.1372, since this version
didnt come with kernel source. so i try bootng into
2.6.11-1.35 instead to make the 'ndiswrapper' and copy
the ndiswrapper.ko into 2.6.12-1.1372/modify
modules.dep.




[root@localhost ~]# modprobe ndiswrapper
FATAL: Error inserting ndiswrapper
(/lib/modules/2.6.12-1.1372_FC3/misc/ndiswrapper.ko):
Invalid module format
[root@localhost ~]# dmesg|grep ndiswrapper
ndiswrapper: disagrees about version of symbol
struct_module
[root@localhost




then i try rpm to load the current (2.6.12) kernel
source so i can remake the ndiswrapper,

but
.
.
[root@localhost /home/tom]# rpm -i kernel-2.6.12-1.1372_FC3.src.rpm
[root@localhost /home/tom]# rpm -q kernel-2.6.12-1.1372_FC3.src.rpm
package kernel-2.6.12-1.1372_FC3.src.rpm is not
installed
[root@localhost /home/tom]#


it fail to load correctly.

pls help and thanks much











--- tom loong <kylnj@yahoo.com> wrote:

>
> hi all,
>
> i try to get my g630 to work with ndiswrapper, but
> having problem...
> .
> .
> [root@localhost /home/tom/ndiswrapper-1.2]#
> ndiswrapper -i mrv8k51.inf
> Installing mrv8k51
> Parse error in inf. Unable to find section
> W8100PCI.zerocfg
> Parse error in inf. Unable to find section
> W8100PCI.zerocfg
> Parse error in inf. Unable to find section
> W8100PCI.zerocfg
>
>
>
> [root@localhost /home/tom/ndiswrapper-1.2]#
> ndiswrapper -l
> Installed ndis drivers:
> mrv8k51 driver present, hardware present
>
>
> ** if i pop out the card, ndiswrapper seems to
> notice
> its not there.
>
> but
>
> [root@localhost /home/tom/ndiswrapper-1.2]# modprobe
> ndiswrapper
> FATAL: Module ndiswrapper not found.
>
>
> and the LED on the card wont light up!!
>
>
>
> please comment.
>
> thanks much
>
> tom
>

macemoneta 07-29-2005 09:00 AM

If you want the kernel source for an updated kernel, you need to download it (yum doesn't handle source files):

http://download.fedora.redhat.com/pu...dates/3/SRPMS/

You can also use up2date to get the source for the current kernel:

up2date --get-source kernel

kylnj 07-29-2005 09:32 AM

yes, i did download 'kernel-2.6.12-1.1372_FC3.src.rpm' from redhat.

any way to check the error msg?

rpm -i 2>&1 didnt give me any error msg.

macemoneta 07-29-2005 09:42 AM

You mean the error message from the modprobe? That means that the module was not created properly. You can't build the kernel modules (in general) for one release and then copy it to another. You must properly build it for the kernel you want to use.

kylnj 07-29-2005 10:18 AM

i am aware ndiswrapper has to be 'make' & run on the same plateform. so i try to remake it under 2.6.12.

i wonder why rpm -i 2.6.12 src.rpm 2>&1 didnt show any info.

macemoneta 07-29-2005 11:19 AM

What info were you expecting? A source kernel rpm is installed into the /usr/src/ directory hierarchy. It's not a binary rpm, which behaves differently. Did you build the kernel prior to attempting to build the ndiswrapper?

kylnj 07-29-2005 05:53 PM

when i download/install fc3-2.6.11...(which is a 4 cd package), it seems to have kernal-source installed.

after i updated to 2.6.12.1..., the kernal source wasnt there(i launch up2date process & select all available updates).


i try to use rpm to load the 2.6.12.1..kernal source so i can remake the ndiswrapper correctly.

macemoneta 07-29-2005 06:04 PM

Unless you specify the option to up2date, it will not get source. Source files are not updated, they are installed. It is a different process.

kylnj 07-29-2005 07:11 PM

thanks

i download the src.rpm and try to use rpm -i to install it.

any reason why it faild w/o complaint?

macemoneta 07-29-2005 07:45 PM

Why do you think it failed?

kylnj 07-29-2005 07:50 PM

hi


i do rpm -q xxxxxx
show not install
[root@localhost /home/tom]# rpm -i kernel-2.6.12-1.1372_FC3.src.rpm
[root@localhost /home/tom]# rpm -q kernel-2.6.12-1.1372_FC3.src.rpm
package kernel-2.6.12-1.1372_FC3.src.rpm is not
installed
[root@localhost /home/tom]#


!i am a newbei!!

macemoneta 07-29-2005 08:13 PM

Ah. Source files do not go into the database. As I said in post #8, the source rpm is installed into /usr/src, where you can then run the kernel build process:

* cd /usr/src/redhat/SPECS/

Where the kernel SPEC file is installed

* rpmbuild -bp --target=i686 kernel-2.6.spec

Prepare the kernel for your architecture. Replace i686 with what is appropriate for your machine (i386, i686, x86_64, ppc).

* cd /usr/src/redhat/BUILD/kernel-x.y.z/linux-x.y.z

Change to the appropriate directory to build the kernel.

* cp configs/kernel.xyz ./.config

Copy the config file for your machine to the proper location (replacing the default config). Look in the configs directory to see what is available.

* update Makefile kernel id

If you want to call the kernel something other than 2.6.xx-prep, update the EXTRAVERSION field. For example:

EXTRAVERSION = -1.1372_FC3xy

* make oldconfig && make clean

Use the config file and get ready.

* make rpm

Build the binary kernel rpm.

* rpm -ivh /usr/src/redhat/RPMS/i386/kernel-2.6...

Install the rpm file that was created.

* new-kernel-pkg --install --make-default --mkinitrd --depmod 2.6.x-y.x

Create the initrd image and update the boot loader.

* Verify:
/boot/grub/grub.conf

Make sure the new kernel is ready to go.

Shutdown and reboot the new kernel. You can now build anything that requires a full kernel source against your running kernel.

kylnj 07-29-2005 08:21 PM

you do shed some light for me.
let me try and see what happen.

thanks


All times are GMT -5. The time now is 03:39 AM.