Compiling User-Mode-Linux kernel
Hello.
I've almost always compiled my own kernels, across a bunch of
things for quite a while (UN*X experience back to 1984, Linux to
1997?). Some shortcomings of using chroot to isolate things has
lead me to wanting to try UML.
So, I did a little reading, and figured I should use the skas
patch that Debian has available. Compiling a new 2.6.18 kernel
(and nvidia module) making use of the patch went well. But,
adding a --arch=um line to the make-kpkg command line to compile
a UML kernel has generated a few errors. I've manually patched
kernel.org sources to get token ring support on newer kernels
than the patch supported, so I am somewhat familiar with patching
things. The errors look to me like I am missing a patch or two,
which would seem to point at missing dependencies of some kind.
However, I have no idea where to look, and looking in the
archives of this list, googling, etc. hasn't shook anything
loose. Maybe someone could get me pointed in the right
direction?
-------------------------
...
In file included from include/asm/smp.h:17,
from include/linux/smp.h:18,
from include/linux/sched.h:63,
from arch/um/include/sysdep/kernel-offsets.h:2,
from arch/um/kernel/asm-offsets.c:1:
include/asm/mpspec.h:6:25: error: mach_mpspec.h: No such file or
directory
In file included from include/asm/smp.h:17,
from include/linux/smp.h:18,
from include/linux/sched.h:63,
from arch/um/include/sysdep/kernel-offsets.h:2,
from arch/um/kernel/asm-offsets.c:1:
include/asm/mpspec.h:8: error: 'MAX_MP_BUSSES' undeclared here
(not in a function)
include/asm/mpspec.h:22: error: 'MAX_IRQ_SOURCES' undeclared here
(not in a function)
In file included from include/linux/smp.h:18,
from include/linux/sched.h:63,
from arch/um/include/sysdep/kernel-offsets.h:2,
from arch/um/kernel/asm-offsets.c:1:
include/asm/smp.h:76:26: error: mach_apicdef.h: No such file or
directory
In file included from include/linux/smp.h:18,
from include/linux/sched.h:63,
from arch/um/include/sysdep/kernel-offsets.h:2,
from arch/um/kernel/asm-offsets.c:1:
include/asm/smp.h: In function 'hard_smp_processor_id':
include/asm/smp.h:80: warning: implicit declaration of
function 'GET_APIC_ID'
In file included from arch/um/kernel/asm-offsets.c:1:
arch/um/include/sysdep/kernel-offsets.h: In function 'foo':
arch/um/include/sysdep/kernel-offsets.h:20: error: 'struct
thread_struct' has no member named 'arch'
In file included from arch/um/include/sysdep/kernel-offsets.h:25,
from arch/um/kernel/asm-offsets.c:1:
arch/um/include/common-offsets.h:3: error: 'struct thread_struct'
has no member named 'regs'
-------------------------
Thanks.
Gord
Reply to: