Liang Yang
2006-Dec-01 06:17 UTC
[Xen-devel] Can not find the cdrom device in /dev/ on xen 3.0.3
Hello, I just did a fresh installation of Xen 3.0.3. However, I can not find my cd-rom device under /dev/ after I booted into Xen. If I booted into Linux native (RHELAS 4.4), CD-ROM device is there and listed as /dev/cdrom. I know Xen changed the CD-ROM access mode from HVM domain. But for Xen domain0, it should still be listed as /dev/cdrom, right? I think the driver for CD-ROM must be already loaded and it is hided by Xen somehow. I checked a Linux Server beta version which has integrated Xen on the same platform, I can find the cdrom device in /dev/. I remember Xen 3.0.2 does not have this problem either. Could anyone share some solutions? Thanks, Liang _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Liang Yang
2006-Dec-01 16:12 UTC
[Xen-devel] Can not find the cdrom device in /dev/ after booted into xen(3.0.3)
Hello, I just did a fresh installation of Xen 3.0.3. However, I can not find my cd-rom device under /dev/ after I booted into Xen. If I booted into Linux native (RHELAS 4.4), CD-ROM device is there and listed as /dev/cdrom. I know Xen changed the CD-ROM access mode from HVM domain. But for Xen domain0, it should still be listed as /dev/cdrom, right? I think the driver for CD-ROM must be already loaded and it is hided by Xen somehow. I checked a Linux Server beta version which has integrated Xen on the same platform, I can find the cdrom device in /dev/. I remember Xen 3.0.2 does not have this problem either. Could anyone share some solutions? Thanks, Liang _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Petersson, Mats
2006-Dec-01 16:22 UTC
[Xen-devel] RE: [Xen-users] Can not find the cdrom device in /dev/ after booted into xen(3.0.3)
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Liang Yang > Sent: 01 December 2006 16:12 > To: xen-devel@lists.xensource.com > Cc: xen-users@lists.xensource.com > Subject: [Xen-users] Can not find the cdrom device in /dev/ > after booted into xen(3.0.3) > > Hello, > > I just did a fresh installation of Xen 3.0.3. However, I can > not find my > cd-rom device under /dev/ after I booted into Xen. If I > booted into Linux > native (RHELAS 4.4), CD-ROM device is there and listed as > /dev/cdrom. I know > Xen changed the CD-ROM access mode from HVM domain. But for > Xen domain0, it > should still be listed as /dev/cdrom, right?/dev/cdrom is a "link" to the actual /dev/[sh]d[abcd] device that is the CDROM drive. As far as I understand, it''s normally created by the distributions initrd. You may be able to disassemble your distributions initrd and find the line that creates this link - but the fact is that different distributions do this slightly differently. Much easier to just use /dev/[sh]d[abcd] for your cdrom. -- Mats> > I think the driver for CD-ROM must be already loaded and it > is hided by Xen > somehow. I checked a Linux Server beta version which has > integrated Xen on > the same platform, I can find the cdrom device in /dev/. I > remember Xen > 3.0.2 does not have this problem either. > > Could anyone share some solutions? > > Thanks, > > Liang > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Liang Yang
2006-Dec-01 16:38 UTC
[Xen-devel] Re: [Xen-users] Can not find the cdrom device in /dev/ after booted into xen(3.0.3)
Hi Mats, Thanks for your reply. I still have two questions: 1. Your answer still does not explain why Linux native listed the CD-ROM device as /dev/cdrom while Xen Linux (using the same distribution, i.e. RHEL Server 4.4) does not. 2. If I want to install HVM Linux from CDROM instead of file image, how can I define the cdrom in .hvm file: disk = [ ''phy:/dev/sdb,hda,w'', ''phy:/dev/cdrom,hdc:cdrom,r'' ] will not work as /dev/cdrom is not available. Then I tried disk = [ ''phy:/dev/sdb,hda,w'', ''phy:/dev/hdc,hdc:cdrom,r'' ]. It still does not work as /dev/hdc is not available either. How can I create /dev/hdc for my cd-rom? Regards, Liang ----- Original Message ----- From: "Petersson, Mats" <Mats.Petersson@amd.com> To: "Liang Yang" <multisyncfe991@hotmail.com>; <xen-devel@lists.xensource.com> Cc: <xen-users@lists.xensource.com> Sent: Friday, December 01, 2006 9:22 AM Subject: RE: [Xen-users] Can not find the cdrom device in /dev/ after booted into xen(3.0.3)> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Liang Yang > Sent: 01 December 2006 16:12 > To: xen-devel@lists.xensource.com > Cc: xen-users@lists.xensource.com > Subject: [Xen-users] Can not find the cdrom device in /dev/ > after booted into xen(3.0.3) > > Hello, > > I just did a fresh installation of Xen 3.0.3. However, I can > not find my > cd-rom device under /dev/ after I booted into Xen. If I > booted into Linux > native (RHELAS 4.4), CD-ROM device is there and listed as > /dev/cdrom. I know > Xen changed the CD-ROM access mode from HVM domain. But for > Xen domain0, it > should still be listed as /dev/cdrom, right?/dev/cdrom is a "link" to the actual /dev/[sh]d[abcd] device that is the CDROM drive. As far as I understand, it''s normally created by the distributions initrd. You may be able to disassemble your distributions initrd and find the line that creates this link - but the fact is that different distributions do this slightly differently. Much easier to just use /dev/[sh]d[abcd] for your cdrom. -- Mats> > I think the driver for CD-ROM must be already loaded and it > is hided by Xen > somehow. I checked a Linux Server beta version which has > integrated Xen on > the same platform, I can find the cdrom device in /dev/. I > remember Xen > 3.0.2 does not have this problem either. > > Could anyone share some solutions? > > Thanks, > > Liang > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2006-Dec-01 16:44 UTC
Re: [Xen-devel] Re: [Xen-users] Can not find the cdrom device in /dev/ after booted into xen(3.0.3)
On 1/12/06 16:38, "Liang Yang" <multisyncfe991@hotmail.com> wrote:> 2. If I want to install HVM Linux from CDROM instead of file image, how can > I define the cdrom in .hvm file: > disk = [ ''phy:/dev/sdb,hda,w'', ''phy:/dev/cdrom,hdc:cdrom,r'' ] will not work > as /dev/cdrom is not available. Then I tried disk = [ ''phy:/dev/sdb,hda,w'', > ''phy:/dev/hdc,hdc:cdrom,r'' ]. It still does not work as /dev/hdc is not > available either. > > How can I create /dev/hdc for my cd-rom?When you boot native RHEL4.4, what is /dev/cdrom a symlink to? You should try using the target of the symlink as the physical device target in your HVM config file. If the target of the symlink also does not exist when running on Xen then it is likely that your XenLinux kernel does not include an appropriate driver for your CDROM device. Perhaps it is a SATA drive connected to a SATA chipset for which our kernel does not have a driver? -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Petersson, Mats
2006-Dec-01 16:52 UTC
RE: [Xen-devel] Re: [Xen-users] Can not find the cdrom device in /dev/ after booted into xen(3.0.3)
> -----Original Message----- > From: xen-devel-bounces@lists.xensource.com > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of > Keir Fraser > Sent: 01 December 2006 16:45 > To: Liang Yang; Petersson, Mats; xen-devel@lists.xensource.com > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-devel] Re: [Xen-users] Can not find the > cdrom device in /dev/ after booted into xen(3.0.3) > > On 1/12/06 16:38, "Liang Yang" <multisyncfe991@hotmail.com> wrote: > > > 2. If I want to install HVM Linux from CDROM instead of > file image, how can > > I define the cdrom in .hvm file: > > disk = [ ''phy:/dev/sdb,hda,w'', ''phy:/dev/cdrom,hdc:cdrom,r'' > ] will not work > > as /dev/cdrom is not available. Then I tried disk = [ > ''phy:/dev/sdb,hda,w'', > > ''phy:/dev/hdc,hdc:cdrom,r'' ]. It still does not work as > /dev/hdc is not > > available either. > > > > How can I create /dev/hdc for my cd-rom? > > When you boot native RHEL4.4, what is /dev/cdrom a symlink > to? You should > try using the target of the symlink as the physical device > target in your > HVM config file. If the target of the symlink also does not exist when > running on Xen then it is likely that your XenLinux kernel > does not include > an appropriate driver for your CDROM device. Perhaps it is a > SATA drive > connected to a SATA chipset for which our kernel does not > have a driver?I''d say that the most likely scenario is that /dev/hdc isn''t the device that is your CDROM. If your hard-disk is /dev/sd<something>, then chances are that the /dev/hda could be the CDROM drive (as, indeed, it could be even on a machine that uses /dev/hd<something> as the "disk device", since you could very well connect the first IDE controller to the CDROM and the second to the DISK, or some such). -- Mats> > -- Keir > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Liang Yang
2006-Dec-01 17:23 UTC
Re: [Xen-devel] Re: [Xen-users] Can not find the cdrom device in /dev/ after booted into xen(3.0.3)
Hi Keir and Mats, When I booted into native RHEL4.4, /dev/cdrom is linked to hda. My CD-ROM is the only IDE device and my OS hard disk is the SATA. When I booted into Xen(on the same platform with the same distribution) I can NOT find ANY hd* device under /dev/ (SATA hard disk is listed correctly though). So what Mats said does not apply here. Could this be a bug for Xen 3.0.3? Best regards, Liang ----- Original Message ----- From: "Keir Fraser" <keir@xensource.com> To: "Liang Yang" <multisyncfe991@hotmail.com>; "Petersson, Mats" <Mats.Petersson@amd.com>; <xen-devel@lists.xensource.com> Cc: <xen-users@lists.xensource.com> Sent: Friday, December 01, 2006 9:44 AM Subject: Re: [Xen-devel] Re: [Xen-users] Can not find the cdrom device in /dev/ after booted into xen(3.0.3)> On 1/12/06 16:38, "Liang Yang" <multisyncfe991@hotmail.com> wrote: > >> 2. If I want to install HVM Linux from CDROM instead of file image, how >> can >> I define the cdrom in .hvm file: >> disk = [ ''phy:/dev/sdb,hda,w'', ''phy:/dev/cdrom,hdc:cdrom,r'' ] will not >> work >> as /dev/cdrom is not available. Then I tried disk = [ >> ''phy:/dev/sdb,hda,w'', >> ''phy:/dev/hdc,hdc:cdrom,r'' ]. It still does not work as /dev/hdc is not >> available either. >> >> How can I create /dev/hdc for my cd-rom? > > When you boot native RHEL4.4, what is /dev/cdrom a symlink to? You should > try using the target of the symlink as the physical device target in your > HVM config file. If the target of the symlink also does not exist when > running on Xen then it is likely that your XenLinux kernel does not > include > an appropriate driver for your CDROM device. Perhaps it is a SATA drive > connected to a SATA chipset for which our kernel does not have a driver? > > -- Keir > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Petersson, Mats
2006-Dec-01 17:32 UTC
RE: [Xen-devel] Re: [Xen-users] Can not find the cdrom device in /dev/ after booted into xen(3.0.3)
And if you do "modprobe ide" or some such, does that help? It may be that if you only have one IDE device that is a CDROM, the driver may not load automatically - I don''t know - but if you haven''t got ANY /dev/hd* devices, then you probably haven''t got the driver loaded. Try "dmesg|grep -i ide" to see if there''s any messages from the IDE controller that tells you why it didn''t load. Also looking at "lspci" and see what IDE controller you have, and check if that particular device driver is in your configuration for the kernel... [It''s worth noting that most distributions are built with a wider range of device drivers than what the Xen kernel normally builds with, so if you have some unusual device, you may need to enable it first]. -- Mats> -----Original Message----- > From: Liang Yang [mailto:multisyncfe991@hotmail.com] > Sent: 01 December 2006 17:24 > To: Keir Fraser; Petersson, Mats > Cc: xen-users@lists.xensource.com; xen-devel@lists.xensource.com > Subject: Re: [Xen-devel] Re: [Xen-users] Can not find the > cdrom device in /dev/ after booted into xen(3.0.3) > > Hi Keir and Mats, > > When I booted into native RHEL4.4, /dev/cdrom is linked to > hda. My CD-ROM is > the only IDE device and my OS hard disk is the SATA. When I > booted into > Xen(on the same platform with the same distribution) I can > NOT find ANY hd* > device under /dev/ (SATA hard disk is listed correctly > though). So what Mats > said does not apply here. Could this be a bug for Xen 3.0.3? > > Best regards, > > Liang > > ----- Original Message ----- > From: "Keir Fraser" <keir@xensource.com> > To: "Liang Yang" <multisyncfe991@hotmail.com>; "Petersson, Mats" > <Mats.Petersson@amd.com>; <xen-devel@lists.xensource.com> > Cc: <xen-users@lists.xensource.com> > Sent: Friday, December 01, 2006 9:44 AM > Subject: Re: [Xen-devel] Re: [Xen-users] Can not find the > cdrom device in > /dev/ after booted into xen(3.0.3) > > > > On 1/12/06 16:38, "Liang Yang" <multisyncfe991@hotmail.com> wrote: > > > >> 2. If I want to install HVM Linux from CDROM instead of > file image, how > >> can > >> I define the cdrom in .hvm file: > >> disk = [ ''phy:/dev/sdb,hda,w'', > ''phy:/dev/cdrom,hdc:cdrom,r'' ] will not > >> work > >> as /dev/cdrom is not available. Then I tried disk = [ > >> ''phy:/dev/sdb,hda,w'', > >> ''phy:/dev/hdc,hdc:cdrom,r'' ]. It still does not work as > /dev/hdc is not > >> available either. > >> > >> How can I create /dev/hdc for my cd-rom? > > > > When you boot native RHEL4.4, what is /dev/cdrom a symlink > to? You should > > try using the target of the symlink as the physical device > target in your > > HVM config file. If the target of the symlink also does not > exist when > > running on Xen then it is likely that your XenLinux kernel does not > > include > > an appropriate driver for your CDROM device. Perhaps it is > a SATA drive > > connected to a SATA chipset for which our kernel does not > have a driver? > > > > -- Keir > > > > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Keir Fraser
2006-Dec-01 17:33 UTC
Re: [Xen-devel] Re: [Xen-users] Can not find the cdrom device in /dev/ after booted into xen(3.0.3)
On 1/12/06 17:23, "Liang Yang" <multisyncfe991@hotmail.com> wrote:> When I booted into native RHEL4.4, /dev/cdrom is linked to hda. My CD-ROM is > the only IDE device and my OS hard disk is the SATA. When I booted into > Xen(on the same platform with the same distribution) I can NOT find ANY hd* > device under /dev/ (SATA hard disk is listed correctly though). So what Mats > said does not apply here. Could this be a bug for Xen 3.0.3?Where does your rootfs reside? Obviously not on an IDE HD I guess... Can you send boot output of native and Xen kernels, and also output of lsmod? -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Tim Post
2006-Dec-01 18:05 UTC
Re: [Xen-users] Can not find the cdrom device in /dev/ after booted into xen(3.0.3)
On Fri, 2006-12-01 at 09:12 -0700, Liang Yang wrote:> Hello, > > I just did a fresh installation of Xen 3.0.3. However, I can not find my > cd-rom device under /dev/ after I booted into Xen. If I booted into Linux > native (RHELAS 4.4), CD-ROM device is there and listed as /dev/cdrom. I know > Xen changed the CD-ROM access mode from HVM domain. But for Xen domain0, it > should still be listed as /dev/cdrom, right?Should be.> I think the driver for CD-ROM must be already loaded and it is hided by Xen > somehow. I checked a Linux Server beta version which has integrated Xen on > the same platform, I can find the cdrom device in /dev/. I remember Xen > 3.0.2 does not have this problem either. > > Could anyone share some solutions? >Please post the output of lsmod and lspci so the list can help you diagnose the issue. My guess is your IDE was loaded via insmod in linuxrc and was not picked up by a depmod when xen installed. Uncommon, but not the first time I''ve seen it in RHEL.> Thanks, > > Liang > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Liang Yang
2006-Dec-01 18:27 UTC
[Xen-devel] logs attached. Re: [Xen-users] Can not find the cdrom device in /dev/ afterbooted into xen(3.0.3)
Hi Tim, Keir and Mats, I attached all the detailed log files (text file format). The file extension indicate the version of environment. Please take a look. Thanks, Liang ----- Original Message ----- From: "Tim Post" <tim.post@netkinetics.net> To: "Liang Yang" <multisyncfe991@hotmail.com> Cc: <xen-devel@lists.xensource.com>; <xen-users@lists.xensource.com> Sent: Friday, December 01, 2006 11:05 AM Subject: Re: [Xen-users] Can not find the cdrom device in /dev/ afterbooted into xen(3.0.3)> On Fri, 2006-12-01 at 09:12 -0700, Liang Yang wrote: >> Hello, >> >> I just did a fresh installation of Xen 3.0.3. However, I can not find my >> cd-rom device under /dev/ after I booted into Xen. If I booted into Linux >> native (RHELAS 4.4), CD-ROM device is there and listed as /dev/cdrom. I >> know >> Xen changed the CD-ROM access mode from HVM domain. But for Xen domain0, >> it >> should still be listed as /dev/cdrom, right? > > Should be. > >> I think the driver for CD-ROM must be already loaded and it is hided by >> Xen >> somehow. I checked a Linux Server beta version which has integrated Xen >> on >> the same platform, I can find the cdrom device in /dev/. I remember Xen >> 3.0.2 does not have this problem either. >> >> Could anyone share some solutions? >> > > Please post the output of lsmod and lspci so the list can help you > diagnose the issue. My guess is your IDE was loaded via insmod in > linuxrc and was not picked up by a depmod when xen installed. > > Uncommon, but not the first time I''ve seen it in RHEL. > >> Thanks, >> >> Liang >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Tim Post
2006-Dec-01 18:28 UTC
Re: [Xen-users] Can not find the cdrom device in /dev/ after booted into xen(3.0.3)
On Fri, 2006-12-01 at 09:12 -0700, Liang Yang wrote:> > Could anyone share some solutions? > > Thanks, > > Liang >I forgot to ask, did you install from source or binary packages? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Keir Fraser
2006-Dec-01 18:34 UTC
[Xen-devel] Re: logs attached. Re: [Xen-users] Can not find the cdrom device in /dev/ afterbooted into xen(3.0.3)
On 1/12/06 6:27 pm, "Liang Yang" <multisyncfe991@hotmail.com> wrote:> Hi Tim, Keir and Mats, > > I attached all the detailed log files (text file format). The file extension > indicate the version of environment. Please take a look.ESB2 should be supported by the piix IDE driver. Which XenLinux kernel config are you using? Either you need the driver compiled into the kernel, or you need to load it as a module. Look for a line containing CONFIG_BLK_DEV_PIIX in your .config -- it should be "=m" or "=y". If it''s compiled as a module, and you installed the modules on your filesystem, you may be able to fire up the CDROM drive by typing ''modprobe piix''. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Liang Yang
2006-Dec-01 18:34 UTC
[Xen-devel] Re: [Xen-users] Can not find the cdrom device in /dev/ afterbooted into xen(3.0.3)
Hi Tim, I installed from source. I still think it could be caused by Xen instead of RHEL. The reason I tested RHEL 4.4 with Xen version which is older than 3.0.3 and I don''t have such problems. I also tested RHEL 5 Beta which has Xen integrated and it does not have this problem either. Regards, Liang ----- Original Message ----- From: "Tim Post" <tim.post@netkinetics.net> To: "Liang Yang" <multisyncfe991@hotmail.com> Cc: <xen-devel@lists.xensource.com>; <xen-users@lists.xensource.com> Sent: Friday, December 01, 2006 11:28 AM Subject: Re: [Xen-users] Can not find the cdrom device in /dev/ afterbooted into xen(3.0.3)> On Fri, 2006-12-01 at 09:12 -0700, Liang Yang wrote: > >> >> Could anyone share some solutions? >> >> Thanks, >> >> Liang >> > > I forgot to ask, did you install from source or binary packages? > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Liang Yang
2006-Dec-01 18:48 UTC
Re: [Xen-devel] Re: logs attached. Re: [Xen-users] Can not find the cdrom device in /dev/ afterbooted into xen(3.0.3)
I just download Xen source and do "make world;make install;depmod..;mkinitrd...". I don''t know which config file will be used if I build Xen like this (maybe the config-2.6.16.29-xen under the directory dist/install/boot). I did a grep with "CONFIG_BLK_DEV_PIIX" and found it it set to m in the config-2.6.16.29-xen. I did a modprobe piix, however my CD-ROM is still not fired up (nothing is show up /dev/ as either cdrom or hd*). Liang ----- Original Message ----- From: "Keir Fraser" <keir@xensource.com> To: "Liang Yang" <multisyncfe991@hotmail.com>; <tim.post@netkinetics.net>; "Petersson, Mats" <Mats.Petersson@amd.com> Cc: <xen-devel@lists.xensource.com>; <xen-users@lists.xensource.com> Sent: Friday, December 01, 2006 11:34 AM Subject: [Xen-devel] Re: logs attached. Re: [Xen-users] Can not find the cdrom device in /dev/ afterbooted into xen(3.0.3)> On 1/12/06 6:27 pm, "Liang Yang" <multisyncfe991@hotmail.com> wrote: > >> Hi Tim, Keir and Mats, >> >> I attached all the detailed log files (text file format). The file >> extension >> indicate the version of environment. Please take a look. > > ESB2 should be supported by the piix IDE driver. Which XenLinux kernel > config are you using? Either you need the driver compiled into the kernel, > or you need to load it as a module. Look for a line containing > CONFIG_BLK_DEV_PIIX in your .config -- it should be "=m" or "=y". > > If it''s compiled as a module, and you installed the modules on your > filesystem, you may be able to fire up the CDROM drive by typing ''modprobe > piix''. > > -- Keir > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2006-Dec-01 18:56 UTC
Re: [Xen-devel] Re: logs attached. Re: [Xen-users] Can not find the cdrom device in /dev/ afterbooted into xen(3.0.3)
Actually, now I look closer it seems that on native the IDE I/O ports are detected as 0x1860-0x1867, but the Xen kernel is failing to detect this and is then failing to register at the default 0x1f0, probably because a legacy ISA IDE driver is registered there. So there is definitely something odd going on here but tracking it down will probably require adding some kernel tracing (e.g., to ide_hwif_configure(), to determine why it is failing to find the special location of the IDE I/O ports). -- Keir On 1/12/06 6:48 pm, "Liang Yang" <multisyncfe991@hotmail.com> wrote:> I just download Xen source and do "make world;make > install;depmod..;mkinitrd...". I don''t know which config file will be used > if I build Xen like this (maybe the config-2.6.16.29-xen under the directory > dist/install/boot). > > I did a grep with "CONFIG_BLK_DEV_PIIX" and found it it set to m in the > config-2.6.16.29-xen. I did a modprobe piix, however my CD-ROM is still not > fired up (nothing is show up /dev/ as either cdrom or hd*). > > Liang > > ----- Original Message ----- > From: "Keir Fraser" <keir@xensource.com> > To: "Liang Yang" <multisyncfe991@hotmail.com>; <tim.post@netkinetics.net>; > "Petersson, Mats" <Mats.Petersson@amd.com> > Cc: <xen-devel@lists.xensource.com>; <xen-users@lists.xensource.com> > Sent: Friday, December 01, 2006 11:34 AM > Subject: [Xen-devel] Re: logs attached. Re: [Xen-users] Can not find the > cdrom device in /dev/ afterbooted into xen(3.0.3) > > >> On 1/12/06 6:27 pm, "Liang Yang" <multisyncfe991@hotmail.com> wrote: >> >>> Hi Tim, Keir and Mats, >>> >>> I attached all the detailed log files (text file format). The file >>> extension >>> indicate the version of environment. Please take a look. >> >> ESB2 should be supported by the piix IDE driver. Which XenLinux kernel >> config are you using? Either you need the driver compiled into the kernel, >> or you need to load it as a module. Look for a line containing >> CONFIG_BLK_DEV_PIIX in your .config -- it should be "=m" or "=y". >> >> If it''s compiled as a module, and you installed the modules on your >> filesystem, you may be able to fire up the CDROM drive by typing ''modprobe >> piix''. >> >> -- Keir >> >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >> > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2006-Dec-01 18:58 UTC
Re: [Xen-devel] Re: logs attached. Re: [Xen-users] Can not find the cdrom device in /dev/ afterbooted into xen(3.0.3)
Lspci -vvv output for native and Xen kernels may be useful, just for device 00:1f.1 (the IDE device). Then we could see which I/O resources the device is claiming in each case -- Keir On 1/12/06 6:56 pm, "Keir Fraser" <keir@xensource.com> wrote:> Actually, now I look closer it seems that on native the IDE I/O ports are > detected as 0x1860-0x1867, but the Xen kernel is failing to detect this and > is then failing to register at the default 0x1f0, probably because a legacy > ISA IDE driver is registered there. So there is definitely something odd > going on here but tracking it down will probably require adding some kernel > tracing (e.g., to ide_hwif_configure(), to determine why it is failing to > find the special location of the IDE I/O ports). > > -- Keir > > On 1/12/06 6:48 pm, "Liang Yang" <multisyncfe991@hotmail.com> wrote: > >> I just download Xen source and do "make world;make >> install;depmod..;mkinitrd...". I don''t know which config file will be used >> if I build Xen like this (maybe the config-2.6.16.29-xen under the directory >> dist/install/boot). >> >> I did a grep with "CONFIG_BLK_DEV_PIIX" and found it it set to m in the >> config-2.6.16.29-xen. I did a modprobe piix, however my CD-ROM is still not >> fired up (nothing is show up /dev/ as either cdrom or hd*). >> >> Liang >> >> ----- Original Message ----- >> From: "Keir Fraser" <keir@xensource.com> >> To: "Liang Yang" <multisyncfe991@hotmail.com>; <tim.post@netkinetics.net>; >> "Petersson, Mats" <Mats.Petersson@amd.com> >> Cc: <xen-devel@lists.xensource.com>; <xen-users@lists.xensource.com> >> Sent: Friday, December 01, 2006 11:34 AM >> Subject: [Xen-devel] Re: logs attached. Re: [Xen-users] Can not find the >> cdrom device in /dev/ afterbooted into xen(3.0.3) >> >> >>> On 1/12/06 6:27 pm, "Liang Yang" <multisyncfe991@hotmail.com> wrote: >>> >>>> Hi Tim, Keir and Mats, >>>> >>>> I attached all the detailed log files (text file format). The file >>>> extension >>>> indicate the version of environment. Please take a look. >>> >>> ESB2 should be supported by the piix IDE driver. Which XenLinux kernel >>> config are you using? Either you need the driver compiled into the kernel, >>> or you need to load it as a module. Look for a line containing >>> CONFIG_BLK_DEV_PIIX in your .config -- it should be "=m" or "=y". >>> >>> If it''s compiled as a module, and you installed the modules on your >>> filesystem, you may be able to fire up the CDROM drive by typing ''modprobe >>> piix''. >>> >>> -- Keir >>> >>> >>> _______________________________________________ >>> Xen-devel mailing list >>> Xen-devel@lists.xensource.com >>> http://lists.xensource.com/xen-devel >>> >> >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Tim Post
2006-Dec-01 19:00 UTC
Re: [Xen-devel] Re: logs attached. Re: [Xen-users] Can not find the cdrom device in /dev/ afterbooted into xen(3.0.3)
On Fri, 2006-12-01 at 11:48 -0700, Liang Yang wrote:> I just download Xen source and do "make world;make > install;depmod..;mkinitrd...". I don''t know which config file will be used > if I build Xen like this (maybe the config-2.6.16.29-xen under the directory > dist/install/boot). > > I did a grep with "CONFIG_BLK_DEV_PIIX" and found it it set to m in the > config-2.6.16.29-xen. I did a modprobe piix, however my CD-ROM is still not > fired up (nothing is show up /dev/ as either cdrom or hd*). >what does modprobe ide_cd do for you? Remember its going to show up as /dev/hd(b)? (c)? when its loaded. If modprobe throws an error for that, something is *really* wrong. the lspci from the native dump shows a bunch of undetected hardware, the lspci from Xen looks quite a bit better. I see ide_generic, but no ide_cd ... Give it a whirl and please post back with results.> LiangBest, -Tim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Keir Fraser
2006-Dec-01 19:10 UTC
Re: [Xen-devel] Re: logs attached. Re: [Xen-users] Can not find the cdrom device in /dev/ afterbooted into xen(3.0.3)
On 1/12/06 7:10 pm, "Alan" <alan@lxorguk.ukuu.org.uk> wrote:> Also if the device is on the SATA side you need libata and drivers/ata > support not the legacy PIIX driver for the old drivers/ide code.The Xen lsmod is listing libata and ata_piix *and* the legacy piix module. So it should probably work one way or the other. I assume native is using the legacy driver since the drive appears as /dev/hda, not /dev/sdx. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Alan
2006-Dec-01 19:10 UTC
Re: [Xen-devel] Re: logs attached. Re: [Xen-users] Can not find the cdrom device in /dev/ afterbooted into xen(3.0.3)
On Fri, 01 Dec 2006 18:56:38 +0000 Keir Fraser <keir@xensource.com> wrote:> Actually, now I look closer it seems that on native the IDE I/O ports are > detected as 0x1860-0x1867, but the Xen kernel is failing to detect this and > is then failing to register at the default 0x1f0, probably because a legacy > ISA IDE driver is registered there.More likely becaue as you already said the I/O ports are at 0x1860-1867. In native mode an ATA channel honours the PCI spec, in legacy mode it uses magic hard coded addresses. Also if the device is on the SATA side you need libata and drivers/ata support not the legacy PIIX driver for the old drivers/ide code. Alan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Liang Yang
2006-Dec-01 19:19 UTC
Re: [Xen-devel] Re: logs attached. Re: [Xen-users] Can not findthe cdrom device in /dev/ afterbooted into xen(3.0.3)
See attached. ----- Original Message ----- From: "Keir Fraser" <keir@xensource.com> To: "Keir Fraser" <keir@xensource.com>; "Liang Yang" <multisyncfe991@hotmail.com>; <tim.post@netkinetics.net>; "Petersson, Mats" <Mats.Petersson@amd.com> Cc: <xen-devel@lists.xensource.com>; <xen-users@lists.xensource.com> Sent: Friday, December 01, 2006 11:58 AM Subject: Re: [Xen-devel] Re: logs attached. Re: [Xen-users] Can not findthe cdrom device in /dev/ afterbooted into xen(3.0.3)> Lspci -vvv output for native and Xen kernels may be useful, just for > device > 00:1f.1 (the IDE device). Then we could see which I/O resources the device > is claiming in each case > > -- Keir > > On 1/12/06 6:56 pm, "Keir Fraser" <keir@xensource.com> wrote: > >> Actually, now I look closer it seems that on native the IDE I/O ports are >> detected as 0x1860-0x1867, but the Xen kernel is failing to detect this >> and >> is then failing to register at the default 0x1f0, probably because a >> legacy >> ISA IDE driver is registered there. So there is definitely something odd >> going on here but tracking it down will probably require adding some >> kernel >> tracing (e.g., to ide_hwif_configure(), to determine why it is failing to >> find the special location of the IDE I/O ports). >> >> -- Keir >> >> On 1/12/06 6:48 pm, "Liang Yang" <multisyncfe991@hotmail.com> wrote: >> >>> I just download Xen source and do "make world;make >>> install;depmod..;mkinitrd...". I don''t know which config file will be >>> used >>> if I build Xen like this (maybe the config-2.6.16.29-xen under the >>> directory >>> dist/install/boot). >>> >>> I did a grep with "CONFIG_BLK_DEV_PIIX" and found it it set to m in the >>> config-2.6.16.29-xen. I did a modprobe piix, however my CD-ROM is still >>> not >>> fired up (nothing is show up /dev/ as either cdrom or hd*). >>> >>> Liang >>> >>> ----- Original Message ----- >>> From: "Keir Fraser" <keir@xensource.com> >>> To: "Liang Yang" <multisyncfe991@hotmail.com>; >>> <tim.post@netkinetics.net>; >>> "Petersson, Mats" <Mats.Petersson@amd.com> >>> Cc: <xen-devel@lists.xensource.com>; <xen-users@lists.xensource.com> >>> Sent: Friday, December 01, 2006 11:34 AM >>> Subject: [Xen-devel] Re: logs attached. Re: [Xen-users] Can not find the >>> cdrom device in /dev/ afterbooted into xen(3.0.3) >>> >>> >>>> On 1/12/06 6:27 pm, "Liang Yang" <multisyncfe991@hotmail.com> wrote: >>>> >>>>> Hi Tim, Keir and Mats, >>>>> >>>>> I attached all the detailed log files (text file format). The file >>>>> extension >>>>> indicate the version of environment. Please take a look. >>>> >>>> ESB2 should be supported by the piix IDE driver. Which XenLinux kernel >>>> config are you using? Either you need the driver compiled into the >>>> kernel, >>>> or you need to load it as a module. Look for a line containing >>>> CONFIG_BLK_DEV_PIIX in your .config -- it should be "=m" or "=y". >>>> >>>> If it''s compiled as a module, and you installed the modules on your >>>> filesystem, you may be able to fire up the CDROM drive by typing >>>> ''modprobe >>>> piix''. >>>> >>>> -- Keir >>>> >>>> >>>> _______________________________________________ >>>> Xen-devel mailing list >>>> Xen-devel@lists.xensource.com >>>> http://lists.xensource.com/xen-devel >>>> >>> >>> >>> _______________________________________________ >>> Xen-devel mailing list >>> Xen-devel@lists.xensource.com >>> http://lists.xensource.com/xen-devel >> > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2006-Dec-01 19:24 UTC
Re: [Xen-devel] Re: logs attached. Re: [Xen-users] Can not findthe cdrom device in /dev/ afterbooted into xen(3.0.3)
Looks like the I/O ports are allocated correctly to the device in both cases (both Xen and native). So I have no idea why the IDE PCI probing code isn''t picking up on this. At this point I''d be adding tracing to the two kernels to find out where their probing paths diverge. -- Keir On 1/12/06 7:19 pm, "Liang Yang" <multisyncfe991@hotmail.com> wrote:> See attached. > > ----- Original Message ----- > From: "Keir Fraser" <keir@xensource.com> > To: "Keir Fraser" <keir@xensource.com>; "Liang Yang" > <multisyncfe991@hotmail.com>; <tim.post@netkinetics.net>; "Petersson, Mats" > <Mats.Petersson@amd.com> > Cc: <xen-devel@lists.xensource.com>; <xen-users@lists.xensource.com> > Sent: Friday, December 01, 2006 11:58 AM > Subject: Re: [Xen-devel] Re: logs attached. Re: [Xen-users] Can not findthe > cdrom device in /dev/ afterbooted into xen(3.0.3) > > >> Lspci -vvv output for native and Xen kernels may be useful, just for >> device >> 00:1f.1 (the IDE device). Then we could see which I/O resources the device >> is claiming in each case >> >> -- Keir >> >> On 1/12/06 6:56 pm, "Keir Fraser" <keir@xensource.com> wrote: >> >>> Actually, now I look closer it seems that on native the IDE I/O ports are >>> detected as 0x1860-0x1867, but the Xen kernel is failing to detect this >>> and >>> is then failing to register at the default 0x1f0, probably because a >>> legacy >>> ISA IDE driver is registered there. So there is definitely something odd >>> going on here but tracking it down will probably require adding some >>> kernel >>> tracing (e.g., to ide_hwif_configure(), to determine why it is failing to >>> find the special location of the IDE I/O ports). >>> >>> -- Keir >>> >>> On 1/12/06 6:48 pm, "Liang Yang" <multisyncfe991@hotmail.com> wrote: >>> >>>> I just download Xen source and do "make world;make >>>> install;depmod..;mkinitrd...". I don''t know which config file will be >>>> used >>>> if I build Xen like this (maybe the config-2.6.16.29-xen under the >>>> directory >>>> dist/install/boot). >>>> >>>> I did a grep with "CONFIG_BLK_DEV_PIIX" and found it it set to m in the >>>> config-2.6.16.29-xen. I did a modprobe piix, however my CD-ROM is still >>>> not >>>> fired up (nothing is show up /dev/ as either cdrom or hd*). >>>> >>>> Liang >>>> >>>> ----- Original Message ----- >>>> From: "Keir Fraser" <keir@xensource.com> >>>> To: "Liang Yang" <multisyncfe991@hotmail.com>; >>>> <tim.post@netkinetics.net>; >>>> "Petersson, Mats" <Mats.Petersson@amd.com> >>>> Cc: <xen-devel@lists.xensource.com>; <xen-users@lists.xensource.com> >>>> Sent: Friday, December 01, 2006 11:34 AM >>>> Subject: [Xen-devel] Re: logs attached. Re: [Xen-users] Can not find the >>>> cdrom device in /dev/ afterbooted into xen(3.0.3) >>>> >>>> >>>>> On 1/12/06 6:27 pm, "Liang Yang" <multisyncfe991@hotmail.com> wrote: >>>>> >>>>>> Hi Tim, Keir and Mats, >>>>>> >>>>>> I attached all the detailed log files (text file format). The file >>>>>> extension >>>>>> indicate the version of environment. Please take a look. >>>>> >>>>> ESB2 should be supported by the piix IDE driver. Which XenLinux kernel >>>>> config are you using? Either you need the driver compiled into the >>>>> kernel, >>>>> or you need to load it as a module. Look for a line containing >>>>> CONFIG_BLK_DEV_PIIX in your .config -- it should be "=m" or "=y". >>>>> >>>>> If it''s compiled as a module, and you installed the modules on your >>>>> filesystem, you may be able to fire up the CDROM drive by typing >>>>> ''modprobe >>>>> piix''. >>>>> >>>>> -- Keir >>>>> >>>>> >>>>> _______________________________________________ >>>>> Xen-devel mailing list >>>>> Xen-devel@lists.xensource.com >>>>> http://lists.xensource.com/xen-devel >>>>> >>>> >>>> >>>> _______________________________________________ >>>> Xen-devel mailing list >>>> Xen-devel@lists.xensource.com >>>> http://lists.xensource.com/xen-devel >>> >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Tim Post
2006-Dec-01 19:39 UTC
Re: [Xen-devel] Re: logs attached. Re: [Xen-users] Can not findthe cdrom device in /dev/ afterbooted into xen(3.0.3)
On Fri, 2006-12-01 at 12:19 -0700, Liang Yang wrote:> See attached. > Hi Tim, Keir and Mats, > > I attached all the detailed log files (text file format). The fileextension> indicate the version of environment. Please take a look. > > Thanks, > > Liang >Thought I''d add, it looks like your board is breaking up IDE and SATA on two continents and both devices should be accessible.. however, you may still need sr_mod too. sr_mod, ide_cd and cdrom may do it if ide_cd and cdrom alone do not. It depends on your MB (and type of cdrom). If its a burner, just ide_cd and cdrom *should* get you read access to at least see the device, but I try to avoid Intel and I''m not quite sure. If its a lite-on burner (or similar), chances are you may need sr_mod as its treated as a SCSI device when its writing, and its not showing up because the device isn''t initializing properly. Well, it is, but modprobe doesn''t think it is. I have no idea why ide_cd won''t see it in read only .. can you check dmesg to see if one of the three modules failed to load? To recap modprobe sr_mod modprobe ide_cd modprobe cdrom Best, -Tim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Alan
2006-Dec-01 19:58 UTC
Re: [Xen-devel] Re: logs attached. Re: [Xen-users] Can not findthe cdrom device in /dev/ afterbooted into xen(3.0.3)
On Fri, 01 Dec 2006 19:24:33 +0000 Keir Fraser <keir@xensource.com> wrote:> Looks like the I/O ports are allocated correctly to the device in both cases > (both Xen and native). So I have no idea why the IDE PCI probing code isn''t > picking up on this. At this point I''d be adding tracing to the two kernels > to find out where their probing paths diverge.Looking over the current kernel code it is known to work in the non-Xen case. The native mode on the ESB2 has other problems recently reported but they would cause hangs later with stuck interrupts. Since I''ve got bugs filed on this I know the detection works outside of Xen. The old IDE probe code predates PCI so conveniently the PCI side of the scan logic is all in setup-pci.c. Modules registering with ide during init are added to a list and all run post init, modules added later get their setup methods run immediately. Thus you can trace loading the piix module pretty directly through idepci_register_driver and ide_setup_pci_device, beyond that you are pretty much out of PCI territory _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel