WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] modprobe says "Invalid module format" in dom0

To: Adam Nielsen <adam.nielsen@xxxxxxxxx>
Subject: Re: [Xen-users] modprobe says "Invalid module format" in dom0
From: Yura Pismerov <y.pismerov@xxxxxxxxxxxxx>
Date: Fri, 02 Jun 2006 09:10:46 -0400
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 02 Jun 2006 06:11:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060602142600.5dfe7e78@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <20060602142600.5dfe7e78@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mail/News 1.5 (X11/20060228)
Set CONFIG_MODVERSIONS=y in .config of your xen0 kernel.

Also, I am not sure whether it is the right way, but I always
configure/build/install the kernel as README suggests:

make linux-2.6-xen0-config CONFIGMODE=menuconfig  
make linux-2.6-xen0-build
make linux-2.6-xen0-install

Adam Nielsen wrote:
> Hi everyone,
>
> I'm just attempting to set up Xen for the first time, but I've gotten
> stuck at the point of booting the dom0 kernel.  I wanted to custom
> compile the kernel (I'm using 2.6.16.16) and this worked, I can boot
> Xen with the custom kernel but none of the kernel modules I compiled
> can be inserted into the running kernel:
>
> $ modprobe snd-usb-audio
> WARNING: Error inserting snd_hwdep 
> (/lib/modules/2.6.16.16-xen0/kernel/sound/core/snd-hwdep.ko): Invalid module 
> format
> WARNING: Error inserting snd_rawmidi 
> (/lib/modules/2.6.16.16-xen0/kernel/sound/core/snd-rawmidi.ko): Invalid 
> module format
> WARNING: Error inserting snd_usb_lib 
> (/lib/modules/2.6.16.16-xen0/kernel/sound/usb/snd-usb-lib.ko): Invalid module 
> format
> FATAL: Error inserting snd_usb_audio 
> (/lib/modules/2.6.16.16-xen0/kernel/sound/usb/snd-usb-audio.ko): Invalid 
> module format
>
> dmesg reports:
>
> snd_hwdep: version magic '2.6.16.16-xen0 SMP PENTIUM4 REGPARM gcc-3.3' should 
> be '2.6.16.16-xen0 686 gcc-3.3'
> snd_rawmidi: version magic '2.6.16.16-xen0 SMP PENTIUM4 REGPARM gcc-3.3' 
> should be '2.6.16.16-xen0 686 gcc-3.3'
> snd_usb_lib: version magic '2.6.16.16-xen0 SMP PENTIUM4 REGPARM gcc-3.3' 
> should be '2.6.16.16-xen0 686 gcc-3.3'
> snd_usb_audio: version magic '2.6.16.16-xen0 SMP PENTIUM4 REGPARM gcc-3.3' 
> should be '2.6.16.16-xen0 686 gcc-3.3'
>
> Which makes me think the modules have somehow been compiled with the
> wrong kernel config.  To install the modules I just ran "make
> modules_install" from the xen-3.0-testing/linux-2.6.16-xen0/
> directory (which is where I ran 'make xconfig' to configure the
> kernel.)
>
> Can anyone see what I've done wrong?
>
> Thanks,
> Adam.
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>   


-- 
Yuri Pismerov, System Administrator
Armor Technologies (Canada) Inc.

P: 905 305 1946 (x.3519)
http://www.armorware.net

Privacy Protection Guaranteed!




_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>