Kernel Compile For RT linux please help..

Kernels & Hardware, configuring network, installing services

Kernel Compile For RT linux please help..

Postby themaccabee » 2008-07-09 18:59

Im running a Debian OS with linux kernel 2.6.24,
I want to install rtlinux on it (www.rtlinuxfree.com)
The package has only patches upto 2.6.9 kernel , i downloaded 2.6.9 applied the patch
tried to compile in the debian way im getting stuck

at this stage
Code: Select all
 fakeroot make-kpkg --initrd --append-to-version=-some-string-here kernel-image kernel-headers


The error is
Code: Select all
include/linux/skbuff.h:1017: warning: pointer targets in passing argument 2 of ‘csum_and_copy_from_user’ differ in signedness
  CC      init/do_mounts_rd.o
In file included from include/asm/mpspec.h:5,
                 from include/asm/smp.h:18,
                 from include/linux/smp.h:17,
                 from include/linux/topology.h:33,
                 from include/linux/mmzone.h:371,
                 from include/linux/gfp.h:4,
                 from include/linux/slab.h:15,
                 from include/linux/percpu.h:4,
                 from include/linux/rcupdate.h:41,
                 from include/linux/dcache.h:10,
                 from include/linux/fs.h:16,
                 from init/do_mounts_rd.c:3:
include/asm/mpspec_def.h:78: warning: ‘packed’ attribute ignored for field of type ‘unsigned char[6]’
init/do_mounts_rd.c: In function ‘identify_ramdisk_image’:
init/do_mounts_rd.c:73: warning: pointer targets in passing argument 2 of ‘sys_read’ differ in signedness
init/do_mounts_rd.c:108: warning: pointer targets in passing argument 2 of ‘sys_read’ differ in signedness
init/do_mounts_rd.c: In function ‘fill_inbuf’:
init/do_mounts_rd.c:351: warning: pointer targets in passing argument 2 of ‘sys_read’ differ in signedness
init/do_mounts_rd.c: In function ‘flush_window’:
init/do_mounts_rd.c:372: warning: pointer targets in passing argument 2 of ‘sys_write’ differ in signedness
  CC      init/do_mounts_initrd.o
In file included from include/asm/mpspec.h:5,
                 from include/asm/smp.h:18,
                 from include/linux/smp.h:17,
                 from include/linux/topology.h:33,
                 from include/linux/mmzone.h:371,
                 from include/linux/gfp.h:4,
                 from include/linux/slab.h:15,
                 from include/linux/percpu.h:4,
                 from include/linux/rcupdate.h:41,
                 from include/linux/dcache.h:10,
                 from include/linux/fs.h:16,
                 from init/do_mounts_initrd.c:4:
include/asm/mpspec_def.h:78: warning: ‘packed’ attribute ignored for field of type ‘unsigned char[6]’
  LD      init/mounts.o
  CC      init/initramfs.o
In file included from include/asm/mpspec.h:5,
                 from include/asm/smp.h:18,
                 from include/linux/smp.h:17,
                 from include/linux/topology.h:33,
                 from include/linux/mmzone.h:371,
                 from include/linux/gfp.h:4,
                 from include/linux/slab.h:15,
                 from include/linux/percpu.h:4,
                 from include/linux/rcupdate.h:41,
                 from include/linux/dcache.h:10,
                 from include/linux/fs.h:16,
                 from init/initramfs.c:2:
include/asm/mpspec_def.h:78: warning: ‘packed’ attribute ignored for field of type ‘unsigned char[6]’
init/initramfs.c: In function ‘flush_window’:
init/initramfs.c:401: warning: pointer targets in passing argument 1 of ‘flush_buffer’ differ in signedness
init/initramfs.c: In function ‘unpack_to_rootfs’:
init/initramfs.c:442: warning: pointer targets in assignment differ in signedness
  LD      init/built-in.o
  HOSTCC  usr/gen_init_cpio
  CPIO    usr/initramfs_data.cpio
  GZIP    usr/initramfs_data.cpio.gz
  AS      usr/initramfs_data.o
  LD      usr/built-in.o
  CC      arch/i386/kernel/process.o
In file included from include/asm/mpspec.h:5,
                 from include/asm/smp.h:18,
                 from include/linux/smp.h:17,
                 from include/linux/sched.h:23,
                 from arch/i386/kernel/process.c:17:
include/asm/mpspec_def.h:78: warning: ‘packed’ attribute ignored for field of type ‘unsigned char[6]’
arch/i386/kernel/process.c: In function ‘show_regs’:
arch/i386/kernel/process.c:252: warning: pointer targets in passing argument 2 of ‘show_trace’ differ in signedness
{standard input}: Assembler messages:
{standard input}:1394: Error: suffix or operands invalid for `mov'
{standard input}:1396: Error: suffix or operands invalid for `mov'
{standard input}:1743: Error: suffix or operands invalid for `mov'
{standard input}:1745: Error: suffix or operands invalid for `mov'
{standard input}:1856: Error: suffix or operands invalid for `mov'
{standard input}:1857: Error: suffix or operands invalid for `mov'
{standard input}:2031: Error: suffix or operands invalid for `mov'
{standard input}:2033: Error: suffix or operands invalid for `mov'
{standard input}:2150: Error: suffix or operands invalid for `mov'
{standard input}:2163: Error: suffix or operands invalid for `mov'
make[2]: *** [arch/i386/kernel/process.o] Error 1
make[1]: *** [arch/i386/kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.9'
make: *** [debian/stamp-build-kernel] Error 2



    I ve some basic questions

    1. Can i compile a linux kernel 2.6.9 in a 2.6.24 OS??
    2..If possible ,Can i boot with that kernel into my current OS
    3.If 1 not possible then wat is the most appropriate solution without changing my current OS??
themaccabee
 
Posts: 4
Joined: 2008-04-11 09:34

Postby nowshining » 2008-08-23 18:00

would u still like some help on this issue?
nowshining
 
Posts: 21
Joined: 2008-08-23 09:23

Postby themaccabee » 2008-08-24 15:25

since i ve never succeeded in my attempt to run freertlinux..everytime i tried i hooked upon something...
i d really like to know wats the solution for above problem..since i couldnt find a solution myself
nyways thanks for ur post!!!
themaccabee
 
Posts: 4
Joined: 2008-04-11 09:34

Postby nowshining » 2008-08-24 16:39

first the patches can be fuond here:http://www.kernel.org/pub/linux/kernel/projects/rt/

second off the rt linux wiki is here:http://rt.wiki.kernel.org/index.php/Main_Page

3r5d: http://www.kernel.org/pub/linux/kernel/ ... /rt/older/ it may say older however the newer kenel patches are in there,

4th: if your trying to use grsecurity with the rt patch it wont' do - i've tried it with the rt patch...

5th: to build my kernel with debs - i use the follwoing command: - change rtbotnetgodalphamale to whatever u want or remove the append line.
Code: Select all
make-kpkg --initrd --append-to-version=-rtbotnetgodalphamale kernel_image kernel_headers


edit: oh! don't download the broken-out bz2, etc.. just the rt ones u want, and also to patch use the following after in the untared kernel directory,

Code: Select all
gunzip < patch_file | patch -p0 (or p1 if errors)

or

bunzip2 < patch_file | patch -p0 (or p1 if errors)


alas make sure you remove the now patched src and try to re-patch a fresh src and also don't use fakeroot if the src is in /usr/src/ - use root - i'd say only using fakeroot if only compiling from your own account - ie: desktop, etc...
nowshining
 
Posts: 21
Joined: 2008-08-23 09:23


Return to System configuration

Who is online

Users browsing this forum: ilovedebian and 17 guests

fashionable