Trying to build User-Mode-Linux Kernel
Harry Courtice
hcourtice at optusnet.com.au
Thu Nov 9 10:44:26 UTC 2006
Hi
I am trying to build a UML kernel from Ubuntu 6.o6.
I've never built a kernel before, so probably doing something basic wrong..
I have
gcc version:
4.0.3 (Ubuntu 4.0.4-1ubuntu5)
Kernel sources:
(head -1 Debian.src.changelog)
linux-source-2.6.15 (2.6.15.27.48) dapper-security
I am following the instructions in "Installing User Mode Linux"
http://cosi.clarkson.edu/docs/kernel/setup/uml/uml.html
I untarred source files to my home directory
root at desktop:~/tar -xvjf /usr/src/linux-source-2.6.15.tar.bz2
Configure went without a problem. I selected the suggested options in the
instructions.
root at desktop:~/linux-source-2.6.15# make ARCH=um menuconfig
Then try to make the kernel.
root at desktop:~/linux-source-2.6.15# make ARCH-um linux
Very quickly get an error:
In file included from include/asm/bitops.h:4
...
From arch/um/sys-i386/kernel-offsets.c:3
Include/asm/arch/bitops.h:10:29: error asm/alternative.h: no such file or
directory
Followed by lots of errors "In function 'xxx_bit'" syntax error before
LOCK_PREFIX"
Clearly I'm doing something basic wrong.
Any hints??
Thanks,
Harry.
More information about the ubuntu-users
mailing list