[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] PCI passthrough issue
Hello, Le 03/03/2011 23:12, Konrad Rzeszutek Wilk a écrit : >>>> Lets do both. Do you know where the sources for OpenWRT are located? >>> >>> Openwrt .img and PV kernel are available at >>> http://downloads.jbfavre.org/openwrt.tar.gz > > Using that, and this xm file > > kernel="/mnt/tmp/openwrt/openwrt-x86-xen_domu-vmlinuz" > root='/dev/xvda2 rw' > memory=256 > vcpus=1 > localtime=0 > disk=['phy:/dev/sdc,xvda,w'] > extra="console=hvc0 debug loglevel=10 iommu=soft" > name="openwrt" > on_crash="preserve" > vfb = [ 'vnc=1, vnclisten=0.0.0.0,vncunused=1'] > pci = ['04:00.0'] > > where > 04:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E > Gigabit Ethernet Controller (rev 13) > > I can't get the sky2 adapter to work at all. > > Just to make sure it wasn't your build ... >>> >>> I'm making dd from my debian DomU and will upload it as debian.tar.gz at >>> the same place. Will update you when completed. >>> >>> Openwrt source tree is available here: >>> svn://svn.openwrt.org/openwrt/trunk >>> >>> You have all information to build it here: >>> http://wiki.openwrt.org/doc/howto/build >>> >>> Or you have all steps I followed here: >>> http://publications.jbfavre.org/virtualisation/xen_openwrt_domu_pci_passthrough.en > > ... I tried to follow those directions and found that it would not work. > I can't get the xen-pcifront.ko file at all on any of the *combined.img > images. > > > I made this patch thinking it was due to the name of the module being > different: > > Index: target/linux/x86/Makefile > =================================================================== > --- target/linux/x86/Makefile (revision 25855) > +++ target/linux/x86/Makefile (working copy) > @@ -12,7 +12,7 @@ > FEATURES:=squashfs jffs2 ext4 vdi vmdk pcmcia targz > SUBTARGETS=generic olpc xen_domu ep80579 net5501 kvm_guest geos > > -LINUX_VERSION:=2.6.32.29 > +LINUX_VERSION:=2.6.37 > > include $(INCLUDE_DIR)/target.mk > > Index: package/kernel/modules/virtual.mk > =================================================================== > --- package/kernel/modules/virtual.mk (revision 25855) > +++ package/kernel/modules/virtual.mk (working copy) > @@ -168,7 +168,7 @@ > TITLE:=Xen PCI device frontend > DEPENDS:=@TARGET_x86_xen_domu @LINUX_2_6_37||LINUX_2_6_38 > KCONFIG:=CONFIG_XEN_PCIDEV_FRONTEND > - FILES:=$(LINUX_DIR)/drivers/xen/platform-pci.ko > + FILES:=$(LINUX_DIR)/drivers/pci/xen-pcifront.ko > AUTOLOAD:=$(call AutoLoad,10,xen-pcifront) > endef > > but it still would not include the xen-pcifront.ko file on the > *combined-ext4.img.gz > file. Any ideas what I am doing wrong? I don't remember such problem. Could this module be BTW, I'm checking that rebuilding OpenWRT. When you execute make menuconfig, choose Target=x86 and SubTarget="Xen paravirt Guest". Then go to Kernel Modules -> Virtualisation Support Xen PCI frontend is disabled by default. Did you activated it ? OpenWRT global config cat be found in .config: # grep xen -i .config CONFIG_TARGET_x86_xen_domu=y CONFIG_TARGET_x86_xen_domu_Default=y CONFIG_DEFAULT_kmod-xen-evtchn=y CONFIG_DEFAULT_kmod-xen-fs=y CONFIG_DEFAULT_kmod-xen-kbddev=y CONFIG_DEFAULT_kmod-xen-netdev=y CONFIG_X86_GRUB_BOOTOPTS="xencons=hvc" CONFIG_PACKAGE_kmod-xen-evtchn=y # CONFIG_PACKAGE_kmod-xen-fbdev is not set CONFIG_PACKAGE_kmod-xen-fs=y CONFIG_PACKAGE_kmod-xen-kbddev=y CONFIG_PACKAGE_kmod-xen-netdev=y CONFIG_PACKAGE_kmod-xen-pcidev=y Other way may be to fill target/linux/x86/xen_domu/config-default with Xen CONFIG_* values. This will be used as kernel config Regards, JB _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |