Skip to contentSkip to conversation

building unmodified_drivers on a recent kernel

DISCUSSION C.J. Adams-Collier 2 participants 4 messages Nov 17, 2009 – Nov 19, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hey folks,

I'm trying to build unmodified_drivers on a recent kernel (2.6.27.39-0.0.0.2.a1d3483-xen), but I'm failing on platform-pci. Is there a better version to use? Maybe I don't understand the build instructions.

Thanks in advance,

C.J.

make: Entering directory `/usr/src/linux-2.6.27'
CC [M] /usr/src/hg/xen-unstable.hg/unmodified_drivers/linux-2.6/platform-pci/evtchn.o
<command-line>: warning: "__XEN_INTERFACE_VERSION__" redefined <command-line>: warning: this is the location of the previous definition In file included from <command-line>:0:
./include/linux/autoconf.h:145:1: warning: "CONFIG_XEN_COMPAT" redefined <command-line>: warning: this is the location of the previous definition In file included from include/linux/mm.h:40,

                 from include/asm/mach-xen/asm/pci.h:4,
                 from include/linux/pci.h:1026,
                 from /usr/src/hg/xen-unstable.hg/unmodified_drivers/linux-2.6/platform-pci/platform-pci.h:25,
                 from /usr/src/hg/xen-unstable.hg/unmodified_drivers/linux-2.6/platform-pci/evtchn.c:37:

include/asm/mach-xen/asm/pgtable.h:50:1: warning: "_PAGE_NX" redefined
In file included from include/asm/mach-xen/asm/synch_bitops.h:11,
from include/xen/evtchn.h:40,
from /usr/src/hg/xen-unstable.hg/unmodified_drivers/linux-2.6/platform-pci/evtchn.c:34:
/usr/src/hg/xen-unstable.hg/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h:107:1: warning: this is the location of the previous definition In file included from include/linux/mm.h:40,

                 from include/asm/mach-xen/asm/pci.h:4,
                 from include/linux/pci.h:1026,
                 from /usr/src/hg/xen-unstable.hg/unmodified_drivers/linux-2.6/platform-pci/platform-pci.h:25,
                 from /usr/src/hg/xen-unstable.hg/unmodified_drivers/linux-2.6/platform-pci/evtchn.c:37:

include/asm/mach-xen/asm/pgtable.h:274: error: expected ‘)’ before numeric constant make[2]: *** [/usr/src/hg/xen-unstable.hg/unmodified_drivers/linux-2.6/platform-pci/evtchn.o] Error 1 make[1]: *** [/usr/src/hg/xen-unstable.hg/unmodified_drivers/linux-2.6/platform-pci] Error 2
make: *** [_module_/usr/src/hg/xen-unstable.hg/unmodified_drivers/linux-2.6] Error 2
make: Leaving directory `/usr/src/linux-2.6.27'

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

I built the 2.6.31.5 kernel from here and got the attached error. I think I'm getting closer... Any hints?

http://aur.archlinux.org/packages.php?ID=29023

Quoted 11 lines · C.J. Adams-Collier

Hey folks,

I'm trying to build unmodified_drivers on a recent kernel (2.6.27.39-0.0.0.2.a1d3483-xen), but I'm failing on platform-pci. Is there a better version to use? Maybe I don't understand the build instructions.

Thanks in advance,

C.J.

make: Entering directory `/usr/src/linux-2.6.31.5'
CC [M] /usr/src/hg/xen-unstable.hg/unmodified_drivers/linux-2.6/platform-pci/platform-pci.o
<command-line>: warning: "__XEN_INTERFACE_VERSION__" redefined
<command-line>: warning: this is the location of the previous definition
In file included from <command-line>:0:
./include/linux/autoconf.h:200:1: warning: "CONFIG_XEN_COMPAT" redefined
<command-line>: warning: this is the location of the previous definition /usr/src/hg/xen-unstable.hg/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c: In function ‘set_callback_via’:
/usr/src/hg/xen-unstable.hg/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c:251: error: implicit declaration of function ‘HYPERVISOR_hvm_op’ make[2]: *** [/usr/src/hg/xen-unstable.hg/unmodified_drivers/linux-2.6/platform-pci/platform-pci.o] Error 1
make[1]: *** [/usr/src/hg/xen-unstable.hg/unmodified_drivers/linux-2.6/platform-pci] Error 2
make: *** [_module_/usr/src/hg/xen-unstable.hg/unmodified_drivers/linux-2.6] Error 2
make: Leaving directory `/usr/src/linux-2.6.31.5'

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
In reply to C.J. Adams-Collier
Quoted 1 line

From the log I would judge that your source tree is a forward ported one,

and you try to build the drivers against a kernel that was built for Xen (i.e. CONFIG_XEN enabled) - which makes no sense. You want the unmodified drivers explicitly for anything *but* Xen-enabled configurations.

Jan

Quoted 1 line
Quoted 1 line
Quoted 1 line

"C.J. Adams-Collier" <[email protected]> 17.11.09 18:10 >>>

Hey folks,

I'm trying to build unmodified_drivers on a recent kernel (2.6.27.39-0.0.0.2.a1d3483-xen), but I'm failing on platform-pci. Is there a better version to use? Maybe I don't understand the build instructions.

Thanks in advance,

C.J.

A message that is not in the archive (sent off-list or not yet received): 1258593446.7075.1487.camel@norseth

#4 lore raw
Quoted 8 lines
Quoted 1 line
Quoted 1 line

"C.J. Adams-Collier" <[email protected]> 19.11.09 02:17 >>>

I grabbed the .config from the 2.6.18 kernel we're currently running and did the 'make oldconfig' thing. I think I selected sane options. I've attached it in case you have time to review.

At least the log looks different now...

Perhaps I've got some other mis-configurations in the .config file?

Log file and .config don't match up - there's no CONFIG_XEN_COMPAT in the config file, yet the log file reports that the symbol is defined in autoconf.h. You may have a stale tree.

Quoted 1 line

Perhaps you have a working one I might be able to try?

Just try any of the ones we ship with SLE11 (should be in kernel-source.rpm, but you could also simply grab them from a running kernel's /proc/config.gz).

Jan