LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-28-2005, 05:40 PM   #1
IPDreams
LQ Newbie
 
Registered: Jul 2005
Location: MS
Posts: 11

Rep: Reputation: 0
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?
 
Old 07-28-2005, 08:34 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Have you installed the kernel-devel package?
 
Old 07-28-2005, 11:59 PM   #3
kylnj
Member
 
Registered: May 2005
Posts: 37

Rep: Reputation: 15
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
>
 
Old 07-29-2005, 09:00 AM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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
 
Old 07-29-2005, 09:32 AM   #5
kylnj
Member
 
Registered: May 2005
Posts: 37

Rep: Reputation: 15
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.
 
Old 07-29-2005, 09:42 AM   #6
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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.
 
Old 07-29-2005, 10:18 AM   #7
kylnj
Member
 
Registered: May 2005
Posts: 37

Rep: Reputation: 15
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.
 
Old 07-29-2005, 11:19 AM   #8
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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?
 
Old 07-29-2005, 05:53 PM   #9
kylnj
Member
 
Registered: May 2005
Posts: 37

Rep: Reputation: 15
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.
 
Old 07-29-2005, 06:04 PM   #10
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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.
 
Old 07-29-2005, 07:11 PM   #11
kylnj
Member
 
Registered: May 2005
Posts: 37

Rep: Reputation: 15
thanks

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

any reason why it faild w/o complaint?
 
Old 07-29-2005, 07:45 PM   #12
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Why do you think it failed?
 
Old 07-29-2005, 07:50 PM   #13
kylnj
Member
 
Registered: May 2005
Posts: 37

Rep: Reputation: 15
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!!
 
Old 07-29-2005, 08:13 PM   #14
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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.
 
Old 07-29-2005, 08:21 PM   #15
kylnj
Member
 
Registered: May 2005
Posts: 37

Rep: Reputation: 15
you do shed some light for me.
let me try and see what happen.

thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debain kernel source or Linux kernel source? kushalkoolwal Debian 4 11-28-2005 01:56 PM
kernel-smp-2.6.11-1.1369_FC4 wont boot :( sohail_de Fedora - Installation 3 11-14-2005 09:30 PM
NTFS support in FC4 - Kernel 2.6.11-1.1369_FC4 ajmorton Linux - Newbie 1 09-19-2005 12:39 AM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
difference between "pure" kernel source, and .deb packaged kernel source microsoft/linux Debian 1 06-19-2005 10:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration