PDA

View Full Version : Can't compile network driver


kreyszig
2007-03-03, 05:38 AM CST
Hi,

I'm installing fedora core 6 (32 bit) on my machine which has an aw9d motherboard. The nework interface for this board (it's built in) is not recognised by fedora and I know that I need to install the driver for it myself. I have the correct driver source, but I can't compile it. The installation instructions call for me to
make clean modules
make install
depmod -a

and the requirements are
- kernel source tree (supported versions 2.4.x or 2.6.x)
- compiler/binutils for kernel compilation

When I (re)installed FC6 after this failed the first time, I installed all the available dev packages (including legacy support) that I could see (from DVD). However when trying

make clean modules

I get errors like

make: *** /lib/modules/2.6.19-1.2798.fc6xen/build: No such file or directory. Stop.
make: leaving unknown directory
make[1]: Leaving directory 'home/myusername/r1000_v1.05/src'

I'm a bit of a linux newbie so would really appreciate someone's thoughts on how I can get this to work. I've been trying to get my machine up and running for two weeks now - I am running two high end GPUs and various flavours of linux have all let me down. I have seen a post from someone with my mobo and one of my GPU's so I know it can be done on this platform! Please, please help me!
With great appreciation for *any* help...

leigh123@linux
2007-03-03, 05:48 AM CST
dont double post

Seve
2007-03-03, 05:51 AM CST
Hello:
You need to install the matching devel rpm for you kernel.
kernel-xen-devel

Seve

kreyszig
2007-03-03, 05:54 AM CST
Sorry for the double post, I hadn't had a reply from the Installation forum for a while so thought I'd try networking. How can I install these packages without a network connection?

bob
2007-03-03, 06:03 AM CST
Info on the other, closed thread too: http://forums.fedoraforum.org/forum/showthread.php?p=754420

kreyszig
2007-03-03, 06:24 AM CST
Well, I've copied the kernel-dev package from DVD to a local directory, tried yum localinstall /home/myusername/junk/kernel-devel-2.6.18-1.2798.fc6.i686.rpm

and I get

Examining /home/myusername/junk/kernel-devel-...rpm: kernel-devel - 2.6.18...rpm
Marking /home/myusername/kernel-devel-....rpm to be installed
Setting up repositories
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist/?repo=core-6&arch=i386 error was [..etc as before]

I only have i686 and i586 kernel-devel packages on the CD, do I need i386 (i'm installing 32bit), or is there another package I need, or am I missing something else altogether?

Thanks for any advice...

bob
2007-03-03, 06:33 AM CST
I wonder if you've been bit by the i586/i686 bug from here: http://fedoraproject.org/wiki/Bugs/FC6Common (check Common Issues). And, no, you should be using the i686 not i586 or i386. i686 refers to any processor from the early Pentiums (pre-Pentium2) on up to the present. Hardly anyone would have a need for i586 or older.

kreyszig
2007-03-03, 06:50 AM CST
When I run
rpm -qa 'kernel*' --queryformat "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n"|sort
as suggested on that page, I get

kernel-headers-2.6.18-1.2798.fc6.i386
kernel-xen-2.6.18-1.2798.fc6.i686

That's about right, isn't it? EDIT: or do I need i686 headers?

Seve
2007-03-03, 08:03 AM CST
When I run
rpm -qa 'kernel*' --queryformat "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n"|sort
as suggested on that page, I get

kernel-headers-2.6.18-1.2798.fc6.i386
kernel-xen-2.6.18-1.2798.fc6.i686

That's about right, isn't it? EDIT: or do I need i686 headers?
Hello:
The kernel headers are only released in the i386 arch, so you are fine.
You are still missing the kernel-xen-devel rpm
As Leigh pointed out on your other post, copy it from the disc and then rpm -ivh packagename to install it and you should be good to go.

Seve

kreyszig
2007-03-03, 09:18 AM CST
thanks for that - I had been using yum localinstall, but rpm -ivh worked great.