Koozali.org: home of the SME Server

[resolved] gcc, kernel and kernel-smp-devel

Offline nicodeme31

  • 7
  • +0/-0
[resolved] gcc, kernel and kernel-smp-devel
« on: October 12, 2008, 11:35:37 AM »
Hi,

I have some problem with a NIC r8168 on a Eee Box. I run with the r1000 driver but the MAC address of eth change to FF:FF:FF:FF:FF:FF some time.

I want to compile the r8168 dirver but i hav some others problem (my system is up to date) :
- kernel and kernel source haven't the same version. I haven't find the latest version of kernel (2.6.9.78)
- gcc isn't the version that have compile kernel. I can't load the module after compile them.

It seems not normal...

Can you help me ? Thank's

Bye

Nicolas
« Last Edit: October 14, 2008, 11:35:16 AM by nicodeme31 »

Offline byte

  • *
  • 2,183
  • +2/-0
Re: gcc, kernel and kernel-smp-devel
« Reply #1 on: October 12, 2008, 01:03:18 PM »
Can you help me ? Thank's

Your easiest and quickest option is to buy a compatible card as they are inexpensive.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline nicodeme31

  • 7
  • +0/-0
Re: gcc, kernel and kernel-smp-devel
« Reply #2 on: October 12, 2008, 03:39:30 PM »
Your easiest and quickest option is to buy a compatible card as they are inexpensive.

It is not possible in a Eee Box...

I just need the correct gcc...

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: gcc, kernel and kernel-smp-devel
« Reply #3 on: October 12, 2008, 04:09:59 PM »
I think you need another kind of pc.. eee box is not, IMHO, the best solution for SME.

my 2c
ciao

Stefano

Offline nicodeme31

  • 7
  • +0/-0
Re: gcc, kernel and kernel-smp-devel
« Reply #4 on: October 12, 2008, 04:30:04 PM »
I think you need another kind of pc.. eee box is not, IMHO, the best solution for SME.

my 2c
ciao

Stefano

Why ? The consumption of Eee Box is low (20 W). It is sufficient to run sme. It is a very good hard for small environment. With a Eeebox i can propose to small enterprises a light and green solution. I can change hdd if more storage is needed.

I have made a PC server with via C7 processor and it run fine since many months.

For 230€ (in France), i have a mail server, a file server, an egroupware server and i add an external backup solution... with a low consumption, low noise. For small business until 5 persons it is a very good solution.

(sorry for my poor english...)


Offline arne

  • ****
  • 1,116
  • +0/-4
Re: gcc, kernel and kernel-smp-devel
« Reply #5 on: October 12, 2008, 05:54:00 PM »
I agree, because it is a "eee box" and not a "eee sub notebook" ?!
http://www.silentpcreview.com/article867-page6.html

As an "extra server" I have an old Via C3 based box. I think it will last for ever, as there is no heat and now noise. It just works like it have done during all the years. Not a problem. I guess a new eee hardware will at least be as powerfull as my C3.

The only function that will need some prosessor power to have any meaning, that is the Squid web cache.
(Running sme 7.3 in gateway mode with a some powerfull processor can "speed up" the internet connection.) (Possibly not really, but web surfing appear to work a bit quicker.)
« Last Edit: October 12, 2008, 05:58:18 PM by arne »
......

Offline nicodeme31

  • 7
  • +0/-0
Re: gcc, kernel and kernel-smp-devel
« Reply #6 on: October 12, 2008, 05:59:25 PM »
It is an Eee Box not an Eee PC : http://usa.asus.com/products.aspx?l1=24&l2=165

Offline arne

  • ****
  • 1,116
  • +0/-4
Re: gcc, kernel and kernel-smp-devel
« Reply #7 on: October 12, 2008, 11:35:36 PM »
I have no ide if this can help at all, but I found my old notes from last time I did some kernel module compilation:

Quote

First of all one need to open up for the installation of individual program packages in the server-manager panel.
Then it is to choose the right repositories from the server-manager panel.

This will affect also the options that is available from shell.

I went into Linux shell via Putty and installed these packages.

1. Go to the server-manager panel and enable the yum function (program installer)
2. yum install kernel-devel Kernel-headers
3. yum install gcc
4. yum install cvs
5. yum install openssl-devel

I believe this should work for most purposes.


Maybe it have to be "adjusted" or updated in some way, I don't know.

By the way for some days ago I sendt in a modification proposal for uptimizing the SME server for such "light hardware" and virtual environments. The idea was to reduce the memory and load from Apache web server and to turn off some services like Squid and Samba. I tested this "internet-server-only" variant running quite ok on only 64 MB RAM. (But the EEE box should be powerfull enough to run and support the full SME server installation.)

By the way, installing a development environment is considered to be a sequrity risk, so it should be removed after the compilation of source code has been done.
« Last Edit: October 12, 2008, 11:52:52 PM by arne »
......

Offline nicodeme31

  • 7
  • +0/-0
Re: gcc, kernel and kernel-smp-devel
« Reply #8 on: October 13, 2008, 12:20:04 AM »
Thank's for your notes.

But the problem is that the version of gcc is not the same that kernel. In this case, the compiled module is not accepted by the kernel.

gcc version is 3.6.10 and i suppose that the gcc version for compile the kernel was 3.6.9.

The depot of SME seams to be not coherent...

bye

Offline arne

  • ****
  • 1,116
  • +0/-4
Re: gcc, kernel and kernel-smp-devel
« Reply #9 on: October 13, 2008, 07:44:56 AM »
May be then remove it all (compiler etc) and then install again via yum. If then the repositories does not give correct versions, report it in the bugtracker ?! http://bugs.contribs.org/
......

Offline byte

  • *
  • 2,183
  • +2/-0
Re: gcc, kernel and kernel-smp-devel
« Reply #10 on: October 13, 2008, 10:58:50 AM »
If then the repositories does not give correct versions, report it in the bugtracker ?! http://bugs.contribs.org/

Since no complier tools are installed on the SME Server you will not need to report it to the bug tracker, as always it is bad advice to install complier tools on SME Server, you'll need to do any compiling on a Centos 4.x environment.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline byte

  • *
  • 2,183
  • +2/-0
Re: gcc, kernel and kernel-smp-devel
« Reply #11 on: October 13, 2008, 11:01:19 AM »
By the way, installing a development environment is considered to be a sequrity risk, so it should be removed after the compilation of source code has been done.

The better advice would be to use a Centos 4.x environment.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline nicodeme31

  • 7
  • +0/-0
Re: gcc, kernel and kernel-smp-devel
« Reply #12 on: October 14, 2008, 11:34:10 AM »
Hi,

I have ressolved my problem ! The tuto :

download the correct source of the kernel
wget http://linux.web.psi.ch/dist/scientific/46/kernel/2.6.9-67.0.7.EL/kernel-smp-devel-2.6.9-67.0.7.EL.i686.rpm
rpm -ivh kernel-smp-devel-2.6.9-67.0.7.EL.i686.rpm

yum install gcc glibc-devel glibc-headers glibc-kernheaders

wget ftp://202.65.194.212/cn/nic/r8168-8.008.00.tar.bz2
tar vjxf r8168-8.008.00.tar.bz2

cd r8168-8.008.00
make clean modules
make install
depmod -a


I have suppressed the r1000 driver
rm /lib/modules/2.6.9-67.0.7.ELsmp/kernel/drivers/net/r1000.ko

nano /etc/modprob.conf

replace "alias eth0 r1000" to "alias eth0 r8168"

then reboot Eee Box

bye

Nicolas

Offline byte

  • *
  • 2,183
  • +2/-0
Re: [resolved] gcc, kernel and kernel-smp-devel
« Reply #13 on: October 14, 2008, 09:03:47 PM »
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!

Be very careful if any one follows this advice, it is advisable NOT to follow these steps, the best piece of advice would be to do your compiling on the CentOS 4.x
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline tesquenure

  • 15
  • +0/-0
Re: gcc, kernel and kernel-smp-devel
« Reply #14 on: January 26, 2009, 05:40:28 AM »
Hi,

I have ressolved my problem ! The tuto :

download the correct source of the kernel
wget http://linux.web.psi.ch/dist/scientific/46/kernel/2.6.9-67.0.7.EL/kernel-smp-devel-2.6.9-67.0.7.EL.i686.rpm
rpm -ivh kernel-smp-devel-2.6.9-67.0.7.EL.i686.rpm

yum install gcc glibc-devel glibc-headers glibc-kernheaders

wget ftp://202.65.194.212/cn/nic/r8168-8.008.00.tar.bz2
tar vjxf r8168-8.008.00.tar.bz2

cd r8168-8.008.00
make clean modules
make install
depmod -a


I have suppressed the r1000 driver
rm /lib/modules/2.6.9-67.0.7.ELsmp/kernel/drivers/net/r1000.ko

nano /etc/modprob.conf

replace "alias eth0 r1000" to "alias eth0 r8168"

then reboot Eee Box

bye

Nicolas

Hi,

I try this,
its dont work on my eeebox.
I find my r8168.ko in  /lib/modules/2.6.9-67.0.7.EL/kernel/drivers/net/
But when i try to choose it in admin config, have message than "this driver cant be load".

I realy dont know why.

Ur help are welcome ^^.

PS :
I install SME 7.4. via usb
and i use :
kernel-smp-devel-2.6.9-78.0.8.EL.i686.rpm
cpp-3.4.6-10.i386.rpm
glibc-kernheaders-2.4-9.1.103.EL.i386.rpm
glibc-headers-2.3.4-2.41.i386.rpm
glibc-devel-2.3.4-2.41.i386.rpm
gcc-3.4.6-10.i386.rpm
« Last Edit: January 26, 2009, 06:03:33 AM by tesquenure »