Koozali.org: home of the SME Server

Howto Kernel upgrade.

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto Kernel upgrade.
« on: February 26, 2004, 08:46:22 AM »
Hi,

Here is my last Howto.
It concerne the upgrade of the kernel for the SME 6.0.
All rpms (smp and single proc) are available.

I use last version of kernel 2.4.25 and add some patch for netfilter :
strings
h323
quake3
mms

howto

Regards.

Offline Rigger

  • ***
  • 71
  • +0/-0
Howto Kernel upgrade.
« Reply #1 on: February 27, 2004, 08:00:25 AM »
Error:

Quote
# lilo
Fatal: Label "SME-Server-2425s" is too long
]#


Also will not boot on the new kernel. Message that kernel is loading and then system resets.


--
Doug M.
Rigger

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto Kernel upgrade.
« Reply #2 on: February 28, 2004, 10:06:21 AM »
Hi

In your lilo.conf try typing something smaller than the label I type
Like : SMEserver2425
That should work

Regards

CH Cheah

Howto Kernel upgrade.
« Reply #3 on: February 29, 2004, 11:01:33 PM »
Thanks, I've been waiting for mod string for quite sometime, maybe now i can try to filter kazaa.

CH Cheah

Howto Kernel upgrade.
« Reply #4 on: March 09, 2004, 10:34:36 PM »
Hi MasterSleepy

Can you confirm that there is no PPTP support in this kernel
build. I tried looking for ppp_mppe.o module but it's not
there. Modprobe also gives an error trying to locate the
module ppp-compress-18

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto Kernel upgrade.
« Reply #5 on: March 15, 2004, 12:07:05 PM »
Hi,

Yes it appears that I don't include that module in the kernel.
I'll look for that also.

Thanks for the return.
Bye

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto Kernel upgrade.
« Reply #6 on: March 30, 2004, 03:24:02 PM »
Hi all,

http://vanhees.homeip.net/index.php?module=ContentExpress&func=display&ceid=18
Here you can find the updated doc and RPM for the installation of last kernel.

ppp module are now included.
i2c module are included.

I still have some problem with my USB ups, but sitll looking to solve that problem.

Regards.

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto Kernel upgrade.
« Reply #7 on: April 28, 2004, 11:42:59 AM »
Hi,

The documentation have been updated.
The new version of the kernel is also available.
http://www.vanhees.cc/index.php?module=ContentExpress&func=display&ceid=18

Note : Source rpm are not include for the moment, but it will arrive soon.

Regards,

Anonymous

Howto Kernel upgrade.
« Reply #8 on: April 29, 2004, 07:44:38 PM »
MasterSleepy, how can I get the URL to the downloads so I can download them direct to my SME servers from the command line with for example wget ?

bobk

Howto Kernel upgrade.
« Reply #9 on: April 30, 2004, 12:21:58 AM »
Quote from: "Anonymous"
MasterSleepy, how can I get the URL to the downloads so I can download them direct to my SME servers from the command line with for example wget ?


http://mvanhees.free.fr/kernel-2.4.26mstslp01-2.i386.rpm

http://mvanhees.free.fr/sme-iptables-1.2.9-01.i386.rpm

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto Kernel upgrade.
« Reply #10 on: August 09, 2004, 08:06:19 AM »
Hi all,

Kernel 2.4.27 are out from this week-end.
So I recompile whole kernel with new feature.
Howto upgrade kernel

Regards.

lajgaard

Howto Kernel upgrade.
« Reply #11 on: August 09, 2004, 12:35:45 PM »
It is a very good initiative MasterSleepy. And seems that it works for other people. So I guess i am willing to give it a try. My question is: can you make a multi processor kernel? I have a abit BP6 mobo with 2 celerons running as server. Ofcause I would like both my processors to put in their workload ;-)

/Carsten

CheahCH

Howto Kernel upgrade.
« Reply #12 on: August 09, 2004, 04:30:54 PM »
The smp version is there
kernel-2.4.27mstslpsmp01-2.i386.rpm

cc_skavenger

Kernel Upgrade Test
« Reply #13 on: August 10, 2004, 01:03:58 AM »
Test box:

Hardware:
PII-350 64MB ram, 7.5GB hard drive. (Old reliable junker)  

Software:
SME 6.01-01 with the following updates:
initscripts-6.67-1es26.i386.rpm
openssh-3.8p1-1.norlug.i386.rpm
openssh-clients-3.8p1-1.norlug.i386.rpm
openssh-server-3.8p1-1.norlug.i386.rpm
openssl-0.9.6b-36.7.legacy.i386.rpm
openssl-perl-0.9.6b-36.7.legacy.i386.rpm
rsync-2.6.2-1.noarch.rpm


Had no trouble with the upgrade, but now I am not able to create a PPTP session to another SME 6 box from behind the upgraded SME server that I could vpn into before I upgraded the kernel.  I get the dreaded error 619.  Is there anything different that needs to be done to create the PPTP session?  I am using XP Pro.  I currently use PPTP vpn's to my other vpn servers with no trouble.  I have a mixture of AMD and Intel boxes.  I am currently behind a SME 6 box now and have no trouble with VPNs to other remote SME 6 boxes.

Thanks for your work. I am just posting this as feedback.

Keep up the good work!

Marco

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto Kernel upgrade.
« Reply #14 on: August 10, 2004, 10:20:16 AM »
Hi,

I have tested the pptp connection, and it's working on my test platform.
Did you follow Step 7 of the howto?

Regards.

cc_skavenger

PPTP Connection
« Reply #15 on: August 10, 2004, 04:04:37 PM »
Yes,
I did follow step 7 and have verified that the alias is there.  Are you making pptp connections to this test server or through this test server.  I seem to be having problems with making connections through my test server.  I can make pptp connections to it all day long, with no trouble.

thanks

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto Kernel upgrade.
« Reply #16 on: August 10, 2004, 07:37:27 PM »
You are right, I teste by connecting directly to the teste server.
try the following command at the command line :
Code: [Select]
/sbin/iptables --append INPUT -p GRE -j ACCEPT
But normally nothing have change with firewall rules.

Regards.

cc_skavenger

PPTP Pass through
« Reply #17 on: August 11, 2004, 04:43:55 PM »
Master Sleepy,

Tried that, but it did not help.  Checked the message log, but did not find any reference to the outgoing pptp connection.  I am going to load the dev tools and try to compare the two different kernel's options.
I'll let you know what I find.

Marco

djohen

Howto Kernel upgrade.
« Reply #18 on: August 12, 2004, 01:46:07 PM »
interesting, cuz im having the same problems with vpn after a kernel upgrade

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto Kernel upgrade.
« Reply #19 on: August 12, 2004, 07:47:47 PM »
Great thanks to cc_skavenger,

New kernel have a problem with some patch from netfilter.
I look to solve that.

Regards,

cc_skavenger

Kernel upgrade
« Reply #20 on: August 15, 2004, 06:40:53 PM »
MasterSleepy,
I have upgraded another test box.  As long as I don't install the iptables rpm, things seem to work fine.  What is the iptables file for?  Is it an update to iptables?

Thanks for the great work you have been doing.

Marco

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto Kernel upgrade.
« Reply #21 on: August 16, 2004, 06:29:58 AM »
Hello Marco,

Great thanks to make the test and for the feedback.

The update of iptables is needed if you want to use new feature that are include in the new kernel, like iptables string,mms, h323,... modules.
Effectively there is a 1.2.11 version of iptables, I need to update whole packages.

Solution are near for kernel, but style have some problems, I'm no the good way to find the solution  ;-)

Regards.

PhilV

Howto Kernel upgrade.
« Reply #22 on: August 16, 2004, 02:10:02 PM »
Sorry, newbie, here, (with a slow connection!) Does the howto say in detail how to update the kernel?

Also am I right in thinking that the new kernels support SATA raid?

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto Kernel upgrade.
« Reply #23 on: August 16, 2004, 02:45:43 PM »
Hy,

If every things goes fine, here is the supported SATA hardware in the new kernel:

Serial ATA (SATA) support
   ServerWorks Frodo / Apple K2 SATA support (EXPERIMENTAL)
   Promise SATA TX2/TX4 support (EXPERIMENTAL)
   Promise SATA SX4 support (EXPERIMENTAL)
   Silicon Image SATA support (EXPERIMENTAL)
   SiS 964/180 SATA support (EXPERIMENTAL)
   VIA SATA support (EXPERIMENTAL)
   Vitesse VSC-7174 SATA support (EXPERIMENTAL)

Regards.

danny

Howto Kernel upgrade.
« Reply #24 on: August 18, 2004, 08:43:50 AM »
currently i'm running e-smith 5.6, with freeswan-1.99_2.4.18_27_7.x-0.i386.rpm and the associated module rpm as well.

i'm about to upgrade to SME 6, and hopefully i dont brake the ipsec too much.. obviously i have to install the ipsec compiled to the newer kernel, however, i will be upgrading to this kernel as well.. so might do it all at once..

has anyone else got ipsec/freeswan running for vpn with sme6 and this latest kernel?

if so, please let me know of any problems you encounted

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto Kernel upgrade.
« Reply #25 on: August 18, 2004, 08:57:07 AM »
Hello danny,

I've include the freeswan kernel patch in this futur kernel.

Regards.

jeremy

Howto Kernel upgrade.
« Reply #26 on: August 18, 2004, 09:35:35 PM »
MasterSleepy,

Any ideas on this?

http://Contribs.org/viewtopic.php?t=23503

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto Kernel upgrade.
« Reply #27 on: August 20, 2004, 09:03:16 AM »
Hello,

Now I thing every thing work fine.
http://www.vanhees.cc/index.php?module=ContentExpress&func=display&ceid=18

rpm have been updated too.

regards.

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto Kernel upgrade.
« Reply #28 on: August 20, 2004, 09:05:23 AM »
SMP version of the kernel is not done.
I'm waiting for feedback of UP version to compile SMP version.

Regs

cc_skavenger

Kernel Upgrade
« Reply #29 on: August 20, 2004, 10:54:15 PM »
Downloading it now, will let you know in a couple of hours....

Thanks for the serious effort you have been putting into this!

Marco

Offline MikeT

  • 4
  • +0/-0
    • http://www.miketrotter.nz
Howto Kernel upgrade.
« Reply #30 on: August 21, 2004, 06:14:41 AM »
Ninety downloads of the kernel upgrade, here's one thank you MasterSleepy. Looking forward to learning how to do it.
Regards. :-)
...

Offline psc

  • *
  • 151
  • +0/-0
Howto Kernel upgrade.
« Reply #31 on: August 22, 2004, 04:56:00 PM »
A short test results in:

Aug 22 16:38:28 gateway modprobe: modprobe: Can't locate module eth1
Aug 22 16:38:29 gateway modprobe: modprobe: Can't locate module eth1
Aug 22 16:38:29 gateway modprobe: modprobe: Can't locate module char-major-108
Aug 22 16:38:29 gateway pppd[26750]: This system lacks kernel support for PPP.  This could be because the PPP kernel module could not be loaded, or because PPP was not included in the kernel configuration.  If PPP was included as a module, try /sbin/modprobe -v ppp'.  If that fails, check that ppp.o exists in /lib/modules/uname -r/net. See README.linux file in the ppp distribution for more details.
First, solve the problem. Then, write the code.

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto Kernel upgrade.
« Reply #32 on: August 22, 2004, 09:17:40 PM »
Thanks for feedback.

I'll look for that problem.

regards

jeremy

Howto Kernel upgrade.
« Reply #33 on: August 24, 2004, 12:00:00 AM »
Has anyone created a custom SME Install ISO with the updated kernel and updated RPMs?

ricrjhl

Howto Kernel upgrade.
« Reply #34 on: August 24, 2004, 09:37:16 AM »
Quote from: "MasterSleepy"
Thanks for feedback.

I'll look for that problem.

regards


Maybe something else to look into also is IPV6 support. Seems it has been removen from the 2.4.27mstslp-02 version. Previous versions included it. I use IPV6 on my sme machine (thru www.sixxs.com). Mainly as an experiment.

Ricrjhl.

jeremy

Howto Kernel upgrade.
« Reply #35 on: August 24, 2004, 05:09:26 PM »
cc_skavenger,

    You posted two links to custom ISOs, and all of a sudden the links have disappeared, as has your message which pointed to them.

    I was right in the middle of downloading the two ISOs.  What happened?  Any chance of putting them back up ... somewhere?

cc_skavenger

ISO post
« Reply #36 on: August 24, 2004, 05:22:43 PM »
Sorry,

The ISO's do not work.  The initrd image is missing from the kernel rpm that MasterSleepy created and once installed, the system will not boot.  You only get the dreaded LI error.  I am working on fixing this problem.  

Marco

jeremy

Howto Kernel upgrade.
« Reply #37 on: August 24, 2004, 05:24:06 PM »
cc_skavenger,

Oh.  Whenever they are ready, let me know.  I would like to test them both out.

cc_skavenger

Kernel
« Reply #38 on: August 24, 2004, 11:40:33 PM »
MasterSleepy,
Are you applying any patches to the kernels before creating the rpm?

Thanks
Marco

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto Kernel upgrade.
« Reply #39 on: August 25, 2004, 06:31:27 AM »
Hi Marco,

Yes I apply some patch.
For pptp (vpn), i2c(sensors), iptables(firewall), freeswan(ipsec).

Regards

jeremy

Howto Kernel upgrade.
« Reply #40 on: September 04, 2004, 04:19:22 AM »
Any progress on ISOs based on more recent kernel versions?

Offline MikeT

  • 4
  • +0/-0
    • http://www.miketrotter.nz
Howto Kernel upgrade.
« Reply #41 on: September 05, 2004, 12:03:50 AM »
After the kernel upgrade the system boots and networks over a lan fine.  But on issuing the lilo command at the command prompt the response is: Fatal: open /boot/initrd-2.4.27mstslp-02.img :No such file or directory
Does this mean no initrd in the kernel?  Can this problem be fixed? These are Newbie questions I know.
...

Offline arne

  • ****
  • 1,116
  • +0/-4
Howto Kernel upgrade.
« Reply #42 on: September 08, 2004, 03:16:49 AM »
I tried to make a kernel upgrade at my test server. It's an old K6-2 450 with 256 MB ram and SME 6.0.1-01

Before the kernel upgrade I made a PHP upgrade to 4.3.8 No error with this.

No error during this prosess and I think I did everything according to the web page. Used the -27 single prosessor installation.

After I had made the upgrade, I got 3 choices in lilo, The old single pros, the new -27 and the old multiprossessor. he old singkle pross is still default. Don't know why.

The old boot images work like before. If I choose the new image, I can see that the new kernel starts booting, then it crashes, and the PC reboots.

Any idea how to troubleshoot this ?

Could it be so simple that the hardware is just to old for the new kernel ? Could it help to choose the -26 kernel instead ??

Best reg Arne
......

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto Kernel upgrade.
« Reply #43 on: September 08, 2004, 08:01:11 AM »
Hello,

I have several problem with version 2.4.27 of the kernel.
I still looking to solve all problem and come back when I have the beginning of the solution.

regards.

Offline arne

  • ****
  • 1,116
  • +0/-4
Howto Kernel upgrade.
« Reply #44 on: September 08, 2004, 11:16:16 AM »
OK, thanks a lot. Think I will try -26 as well. Will reprot if it should work. (Guess the installation procedures etc are the same.)

Arne.
......

Offline arne

  • ****
  • 1,116
  • +0/-4
Howto Kernel upgrade.
« Reply #45 on: September 08, 2004, 11:59:30 AM »
I removed kernel .27 and installed .26 as a replacement. The old K6-2 were quite happy with that. PC now boots with no vissible error with the .26 kernel:

[root@blackie /]# uname -a
Linux blackie 2.4.26mstslp-03 #2 Mon Jun 7 04:33:29 CEST 2004 i586 unknown

I guess that the .26 already have the nice things like the string inspection function.

Is there any good reason to upgrade to .27 again when this is stable  ?

By the way .. Thanks a lot - I would never believe that I should replace the kernel on the 6.0.1 and I would certainly not be able to do it allone and by myself from scratch   :lol:
......

Offline arne

  • ****
  • 1,116
  • +0/-4
Howto Kernel upgrade.
« Reply #46 on: September 09, 2004, 10:54:27 PM »
For your info:

I did the php upgrade just before the kernel upgrade. Then discovered that the php function did not work after the kernel upgrade.

Then made this "repair procedure":

Rebooted from installation CD and choosed "upgrade".

(Even though this was the same CD I used for the orginal installation.)

This removed the PHP mod but not the kernel upgrade.

The PC now runs with the orginal PHP rpm and the new .26 kernel from mr Sleepy. Seems to be working ok, togeteher with the orginal PHP.

Find this "incompability" between the PHP and the kernel mod rather strange and difficult to understand.

If anybody else should experience such a problem or if have any theories about this, please leave a msg. (Because it could be something like just fingertrouble from my side.)

Arne.
......

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto Kernel upgrade.
« Reply #47 on: September 13, 2004, 08:41:04 AM »
Hello every one,

Here is the last version of the kernel.
Documentation have been updated.
Howto upgrade kernel

Please use it with caution.
Feedback will be appreciate.

Regards.

Offline smeghead

  • *
  • 557
  • +0/-0
Howto Kernel upgrade.
« Reply #48 on: September 13, 2004, 09:05:24 PM »
Hi MasterSleepy, love ya work :-)

If you can 'roll' the SMP version then my test Compaq DL380 will be very happy to test it out for you (and everyone else).

Could you please post the list options compiled into these new kernels (particulaly if PPTP is in or out)

TIA
..................

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto Kernel upgrade.
« Reply #49 on: September 14, 2004, 10:51:02 AM »

Offline smeghead

  • *
  • 557
  • +0/-0
Howto Kernel upgrade.
« Reply #50 on: September 15, 2004, 07:35:30 PM »
.. well after a coupla typos (doh!) I got it installed and booting, buutttt, I seem to have an iptable issue with some apparent missing lib modules being reported in the messages log.

The test server is now effectively isolated when using this kernel due to the firewall config being faulty.  It works fine on the orig kernel.

I have an extract of the log file but its 960 lines so rather than clutter up the forum with a huge post I will sen it to you as an email attachement of list if you give me an address to send it to.

Recently, I have been playing around with writing a script to install Public DNS and this makes some changes to the firewall itself (open port 53) so I am gonna do a reload of the test server just to be sure this hasn't contributed to the problem.

If you wish to contact me off list to get the file then use smeghead$at$gfitc$com$au.

HTH
..................

cc_skavenger

Howto Kernel upgrade.
« Reply #51 on: September 15, 2004, 10:19:49 PM »
Same here on the "isolated server".  Thought it was something I had done.  Tried three times, once on a remote server....had to pick it up, LOL.

jeremy

Howto Kernel upgrade.
« Reply #52 on: September 17, 2004, 05:15:06 AM »
Is anyone still working on rolling kernel updates into a new installation ISO?

Offline arne

  • ****
  • 1,116
  • +0/-4
Howto Kernel upgrade.
« Reply #53 on: September 18, 2004, 07:55:24 AM »
Made a new effort to install the newest .27.04 kernel on my K2-2 450 test server.

It apeared that the .27 kernel vere not able to run 1 second. It craches before it can even give one error message. When I try to boot the machine on the .27 kernel it just reboot and reboot.

Then removed the .27 kernel and installed .26

This time the .26 worked without a problem. Then made a upgrade of the php installation.

This time the .26 and the PHP upgrade worked without a problem.

First time I tried this installation, I used en exisisting server with a lot of datas and some modifications. I also made the PHP mod before the kernel mod. PHP did not work after the mod.

This time I used a fresh installed and unmodified 6.0.1 and I started with the kernel as the first mod and then the php as the second upgrade.

Sems to be working ok for the .26 kernel. For the .27 kernel it did not work at all.
......

Offline MasterSleepy

  • *
  • 386
  • +0/-0
    • http://www.vanhees.cc
Howto Kernel upgrade.
« Reply #54 on: September 19, 2004, 08:19:53 PM »
Hello,

I still looking for the problem.
I have build new test version but waiting for iptables packages.

It will arrive during next week.

Regards.

Offline psc

  • *
  • 151
  • +0/-0
Still ppp error in kernel-2.4.27mstslp04SMP-1
« Reply #55 on: September 20, 2004, 07:39:29 AM »
Hi,
i still have the ppp error in the new version.
--------------------------------------------------
Sep 20 07:30:58 gateway modprobe: modprobe: Can't locate module eth1
Sep 20 07:30:58 gateway modprobe: modprobe: Can't locate module eth1
Sep 20 07:30:58 gateway modprobe: modprobe: Can't locate module char-major-108
Sep 20 07:30:58 gateway pppd[11650]: This system lacks kernel support for PPP.  This could be because the PPP kernel module could not be loaded, or because PPP was not included in the kernel configuration.  If PPP was included as a module, try /sbin/modprobe -v ppp'.  If that fails, check that ppp.o exists in /lib/modules/uname -r/net. See README.linux file in the ppp distribution for more details.
--------------------------------------------------

Best
Peter
First, solve the problem. Then, write the code.

Offline psc

  • *
  • 151
  • +0/-0
Still ppp error in kernel-2.4.27mstslp04SMP-1
« Reply #56 on: September 22, 2004, 02:18:45 PM »
Part sloved:

I removed all "ppp" entries in /etc/modules.conf:
The /etc/e-smith/templates/etc/modules.conf/10ppp have to look like this:
-----------------
{
    # Obsolete the aliasing of ppp module name if we find it
    # We no longer need to use the alias, we use a module
    # search path instead
    @lines = grep { !/^alias ppp ppp-4mppe$/ } @lines;
    foreach my $line
        (
#not needed "alias ppp ppp_generic",
            "alias char-major-108 ppp",
#old:       "alias /dev/ppp ppp",
            "alias /dev/ppp ppp_generic",
            "alias tty-ldisc-3 ppp_async",
            "alias tty-ldisc-14 ppp_synctty",
        )
    {
        unless (exists $lines{$line})
        {
            push @lines, $line;
        }
    }
    "";
}
--------------------------------

Now the Kernel works without errors, PPPOE is started on connect ... but some other problem occur, squid fails to start, no connection to the internet at all.
First, solve the problem. Then, write the code.