Re: linux-2.4.26-om1 kernel running under Ubuntu 6.06.1 LTS

Tony Travis <[email protected]> Thu, 18 Jan 2007 01:31:05 +0000
Newsgroups gmane.linux.cluster.openmosix.general
Message-ID <[email protected]>
Luis Solís wrote:
> Thanks
> 
> Where download kernel openmosix 2.4.26-om1 CVS, i have kernel 
> http://sourceforge.net/project/showfiles.php?group_id=46729&package_id=137967 
> <http://sourceforge.net/project/showfiles.php?group_id=46729&package_id=137967>

Hello, Luis.

I checked out the 2.4.26-om1 sources from the openMosix CVS:

	http://sourceforge.net/cvs/?group_id=46729

There are instructions on the openMosix CVS web page about how to check 
out the 2.4.26-om1 sources.

>       1. You need to know how to recompile the openMosix kernel
>       2. Patch the kernel sources as I described previously
>       3. Patch hpc/mig.c using the patch below
> 
> 
> What patch becouse in make bzImage  error:
> 
> {entrada estándar}: Mensajes del ensamblador:
> {entrada estándar}:2258: Error: sufijo u operandos inválidos para `mov'
> {entrada estándar}:2259: Error: sufijo u operandos inválidos para `mov'
> make[2]: *** [mig.o] Error 1
> make[2]: se sale del directorio `/usr/src/linux- 2.4.26/hpc'
> make[1]: *** [first_rule] Error 2
> make[1]: se sale del directorio `/usr/src/linux-2.4.26/hpc'
> make: *** [_dir_hpc] Error 2

My patch is after "12. Configure openMosix", but it has been quoted 
twice and is also corrupted in this message:

>       4. Compile and install the linux-2.4.26-om1 kernel
>       5. Reboot single-user
>       6. "cd /dev; ./MAKEDEV generic" # udev not supported by 2.4 kernel
>       7. "discover -f "%m\t%M\n" all" # to find kernel modules to load
>       8. modprobe to check the modules are in the kernel...
>       9  if not, reconfigure the kernel and start again at step 4
>     10. vi /etc/modules.conf #add aliases e.g. alias eth0 sk98lin
>     11. reboot multi-user
>     12. Configure openMosix
> 
>      > diff -Naur linux-2.4.26-om1.old/hpc/mig.c linux-2.4.26-om1/hpc/mig.c
>      > --- linux-2.4.26-om1.old/hpc/mig.c      2004-11-19
>     20:23:51.000000000 +0000
>      > +++ linux-2.4.26-om1/hpc/mig.c  2007-01-07 01:44: 56.000000000 +0000
>      > @@ -854,8 +854,8 @@
>      >         /* else do not bother - DEPUTY will bring */
>      >         /* send task segment registers.
>      >          */
>      > -       asm volatile ("movl %%fs,%0":"=m" (*(int *) &m.fs));
>      > -       asm volatile ("movl %%gs,%0":"=m" (*(int *) &m.gs));
>      > +       asm volatile ("mov %%fs,%0":"=m" (m.fs));
>      > +       asm volatile ("mov %%gs,%0":"=m" ( m.gs <http://m.gs>));
                                                   ^^^^^^^^^^^^^^^^^^^^^
                                                   ** corrupted patch **

>      >         /* send task  limits */
>      >         m.rlim_cpu = p->rlim[RLIMIT_CPU];
>      >         m.rlim_data = p->rlim[RLIMIT_DATA];

The unquoted patch below changes the two lines containing movl to mov, 
and removes the "*(int *) &" cast:

diff -Naur linux-2.4.26-om1.old/hpc/mig.c linux-2.4.26-om1/hpc/mig.c
--- linux-2.4.26-om1.old/hpc/mig.c 2004-11-19 20:23:51.000000000 +0000
+++ linux-2.4.26-om1/hpc/mig.c     2007-01-07 01:44:56.000000000 +0000
@@ -854,8 +854,8 @@
         /* else do not bother - DEPUTY will bring */
         /* send task segment registers.
          */
-       asm volatile ("movl %%fs,%0":"=m" (*(int *) &m.fs));
-       asm volatile ("movl %%gs,%0":"=m" (*(int *) &m.gs));
+       asm volatile ("mov %%fs,%0":"=m" (m.fs));
+       asm volatile ("mov %%gs,%0":"=m" (m.gs));
         /* send task  limits */
         m.rlim_cpu = p->rlim[RLIMIT_CPU];
         m.rlim_data = p->rlim[RLIMIT_DATA];

Best wishes,

	Tony.
-- 
Dr. A.J.Travis,                     |  mailto:[email protected]
Rowett Research Institute,          |    http://www.rri.sari.ac.uk/~ajt
Greenburn Road, Bucksburn,          |   phone:+44 (0)1224 712751
Aberdeen AB21 9SB, Scotland, UK.    |     fax:+44 (0)1224 716687

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV