Last weekend I p2v-ized a Gentoo GNU/Linux (kernel 2.4.25) and imported it in XenServer 4.1. When I started the VM it was OK but the driver of the virtual network-cards was missing. I could not compile only the driver since that version of module-init-tools was failing to load the modules (I have not figured the reason why out yet).
In practice I was in need to compile the driver statically inside the kernel, but while creating bzImage I got the following:
In practice I was in need to compile the driver statically inside the kernel, but while creating bzImage I got the following:
CHK include/linux/version.h
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/linux/compile.h
CC arch/i386/kernel/process.o
{standard input}: Assembler messages:
{standard input}:790: Error: suffix or operands invalid for `mov'
{standard input}:791: Error: suffix or operands invalid for `mov'
{standard input}:995: Error: suffix or operands invalid for `mov'
{standard input}:996: Error: suffix or operands invalid for `mov'
{standard input}:1068: Error: suffix or operands invalid for `mov'
{standard input}:1069: Error: suffix or operands invalid for `mov'
{standard input}:1162: Error: suffix or operands invalid for `mov'
{standard input}:1163: Error: suffix or operands invalid for `mov'
{standard input}:1172: Error: suffix or operands invalid for `mov'
{standard input}:1184: Error: suffix or operands invalid for `mov'
make[1]: *** [arch/i386/kernel/process.o] Error 1
make: *** [arch/i386/kernel] Error 2
Fortunatly on kerneltrap I found an article concerning this issue. The errors are due to the fact that the new i386/x86_64 assemblers no longer accept a certain set of instructions (read the article for more details). A patch (one for 2.4 and one for 2.6) that prevents the generation of such obsolete asm has been released. It worked like a charm for me and hope this gonna help you!








