Koozali.org: home of the SME Server

How to install the kernel and build a driver

Claudia Siegner

How to install the kernel and build a driver
« on: March 13, 2003, 05:54:50 PM »
Hello everybody,

a few weeks ago I asked a question in this phorum about how to compile the kernel (I have an SME Version 5.5Upd.2)
and one answer was that
all I need to compile sources on SME 5.5 is here

http://myezserver.com/downloads/mitel/contrib/dev-tools/SME55/

I had a look at this and tried to follow
the "HowTo install the kernel and build a driver",
but Step 2 didn't work:

I downloaded the necessary files,
(cpp-2.96-85.i386.rpm
gcc-2.96-85.i386.rpm
glibc-devel-2.2.4-19.i386.rpm
kernel-headers-2.4.9-31.i386.rpm
kernel-source-2.2.19-7.0.8.i386.rpm
make-3.79.1-5.i386.rpm)

but when I try to install the kernel-sources...rpm
I get several messages like:
file /usr/src/linux-2.2.19/include/linux/modules/vfats_syms.ver conflicts between attempted installs of kernel-source-2.2.19-7.0.8 and kernel-headers-2.2.19-7.0.8

Can somebody help me, please!
Thank you, Claudia.

tanyu

Re: How to install the kernel and build a driver
« Reply #1 on: March 13, 2003, 06:48:09 PM »
do not use kernel-headers-2.4.9-31.i386.rpm but kernel-headers-2.2.19-7.0.8.rpm instead. It will solve your problem.
I did the same, had the same problem, and corrected all by installing the correct headers.

Claudia Siegner

Re: How to install the kernel and build a driver
« Reply #2 on: March 13, 2003, 07:15:04 PM »
Hi Phil,

thank you for you answer,
I USED kernel-headers-2.2.19-7.0.8.rpm

I wrote that wrong in my first mail, sorry!

any other ideas?
Claudia

tanyu

Re: How to install the kernel and build a driver
« Reply #3 on: March 13, 2003, 08:44:22 PM »
Claudia,

the list of files on http://myezserver.com/downloads/mitel/contrib/dev-tools/SME55/ is wrong, you find a wrong kernel-headers in it...
you mentioned :
-------------------------
I downloaded the necessary files,
(cpp-2.96-85.i386.rpm
gcc-2.96-85.i386.rpm
glibc-devel-2.2.4-19.i386.rpm
kernel-headers-2.4.9-31.i386.rpm <--------------here is the bug
kernel-source-2.2.19-7.0.8.i386.rpm
make-3.79.1-5.i386.rpm)
-------------------------

You have to remove the all rhe kernel RPMS (source and headers) that are installed on you computer and reinstall only kernel-source-2.2.19-7.0.8.i386.rpm and kernel-headers-2.2.19-7.0.8.i386.rpm.
I dit it and everything got working again.

Hope this helps.

--
Phil.


Claudia Siegner wrote:
>
> Hi Phil,
>
> thank you for you answer,
> I USED kernel-headers-2.2.19-7.0.8.rpm
>
> I wrote that wrong in my first mail, sorry!
>
> any other ideas?
> Claudia

Claudia Siegner

Re: How to install the kernel and build a driver
« Reply #4 on: March 14, 2003, 12:41:52 PM »
Hi Phil again,

> You have to remove the all rhe kernel RPMS (source and headers) that are
> installed on you computer and reinstall only kernel-source-2.2.19-7.0.8.i386.rpm > and kernel-headers-2.2.19-7.0.8.i386.rpm.

I did that and still the same error.

I have some other kernel-rpms installed:
kernel-pcmcia-cs-2.2.19-7.0.8
kernel-utils-2.2.19-7.0.8
kernel-2.2.19-7.0.8

I don't think I have to remove any of these, (have I?)
as the error-message says, that there is conflict between files
from kernel-headers-2.2.19-7.0.8.i386.rpm and
kernel-source-2.2.19-7.0.8.i386.rpm

Regards, Claudia.

Duncan

Re: How to install the kernel and build a driver
« Reply #5 on: March 15, 2003, 07:32:26 PM »
In the howto it says  rpm -ivh * but in the install script it suggests
/bin/rpm -Uvh --force *.rpm .I had the same problem and think from memory this solved my problem.

Regards Duncan

Claudia Siegner

Re: How to install the kernel and build a driver
« Reply #6 on: March 17, 2003, 06:30:49 PM »
Thanx a lot, Duncan.
that helped!
Claudia.

George

Re: How to install the kernel and build a driver
« Reply #7 on: April 05, 2003, 07:20:46 PM »
I am unable to access:

http://myezserver.com/downloads/mitel/contrib/dev-tools/SME55

I need to build simply build a module.  Could I download the RedHat 7.3 sources as prescribed above to accomplish my task?  Or do I need some SME Server specific packages?  If I need specific packages, then where can I find them that now it appears that the above site is 404 not found?

Thanks!