pb compiling kernel 2.6.10
Hello I am a newbie,
I've downloaded a guide about writing device drivers for linux that looks
nice .
The book refers to kernel 2.6.10, thus I'd like to compile it to practice
the examples of this book .
I downloaded the sources of the kernel and put it in /usr/src/linux-2.6.10
then I got to /usr/src/linux-2.6.10 and did
make O=~cedric/ordinateur/kernel/2.6.10 menuconfig without pb
After that, I did :
make O=~cedric/ordinateur/kernel/2.6.10
and then I got pbs, here are the last lines :
In file included from include2/asm/mpspec.h:5,
from include2/asm/smp.h:18,
from /usr/src/linux-2.6.10/include/linux/smp.h:17,
from /usr/src/linux-2.6.10/include/linux/sched.h:23,
from /usr/src/linux-2.6.10/arch/i386/kernel/process.c:17:
include2/asm/mpspec_def.h:78: attention : «packed" attribute ignored for field of type «unsigned char[6]"
/usr/src/linux-2.6.10/arch/i386/kernel/process.c: In function «show_regs":
/usr/src/linux-2.6.10/arch/i386/kernel/process.c:259: attention : pointer targets in passing argument 2 of «show_trace" differ in signedness
{standard input}: Assembler messages:
{standard input}:1393: Error: suffix or operands invalid for `mov'
{standard input}:1395: 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}:1855: Error: suffix or operands invalid for `mov'
{standard input}:1856: Error: suffix or operands invalid for `mov'
{standard input}:2197: Error: suffix or operands invalid for `mov'
{standard input}:2210: Error: suffix or operands invalid for `mov'
make[2]: *** [arch/i386/kernel/process.o] Erreur 1
So I googled a little bit and found a link
where someone gives the advice to download linux-2.6-seg-5.patch
and then do :
patch -Np1 -i linux-2.6-seg-5.patch
But that doesn't work from the directory where I downloaded linux-2.6-seg-5.patch
I went to /usr/src and made linux point
to linux-2.6.10 , and from /usr/src I typed :
root@lachez-moi:/usr/src# patch -Np1 -i linux-2.6-seg-5.patch
patch: **** Can't open patch file linux-2.6-seg-5.patch : No such file or directory
root@lachez-moi:/usr/src# patch -Np1 -i ~cedric/telechargements/linux-2.6-seg-5.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- linux/arch/i386/kernel/process.c.seg 2005-03-27 13:07:14.000000000 -0800
|+++ linux/arch/i386/kernel/process.c 2005-03-28 10:28:47.000000000 -0800
--------------------------
File to patch:
I checked that linux/arch/i386/kernel/process.c
exists,
Have you got an idea ?
Thanks in advance
|