Re: [edk2] xen OVMF problem

2012-10-26 Thread Bei Guan
2012/10/25 Gonglei (Arei) > Hi, Bei > > >I have installed an UEFI OS using the config like this: > > >disk = [ 'file:/root/xen_img/hvm_ubuntu1010_uefi2.img,ioemu:hda,w', > 'file:/root/ubuntu-10.10-desktop-amd64.iso,hdc:cdrom,r' ] > > ** ** > > I have tried ubuntu-10.10-desktop-amd64.

Re: [edk2] xen OVMF problem

2012-10-24 Thread Bei Guan
2012/10/24 Gonglei (Arei) > Hi, guys >I build the OVMF on xen successfully with GCC-4.4.7, and I can see the > EFI Shell. >However, I have set the "disk" option in hvm config file: disk=[ > 'file:/mnt/sdd/arei/image/win2008.img,xvda,w', > 'file:/mnt/sdd/arei/image/win2008_st_sp2_64.iso,xv

Re: [edk2] xen OVMF problem

2012-10-24 Thread Laszlo Ersek
On 10/24/12 11:30, Gonglei (Arei) wrote: > Hi, guys >I build the OVMF on xen successfully with GCC-4.4.7, and I can see the EFI > Shell. >However, I have set the "disk" option in hvm config file: disk=[ > 'file:/mnt/sdd/arei/image/win2008.img,xvda,w', > 'file:/mnt/sdd/arei/image/win2008_

Re: [edk2] xen OVMF problem

2012-10-24 Thread Gonglei (Arei)
Hi, guys I build the OVMF on xen successfully with GCC-4.4.7, and I can see the EFI Shell. However, I have set the "disk" option in hvm config file: disk=[ 'file:/mnt/sdd/arei/image/win2008.img,xvda,w', 'file:/mnt/sdd/arei/image/win2008_st_sp2_64.iso,xvdc:cdrom,r' ] The VNC Viewer is hang

Re: [edk2] xen OVMF problem

2012-10-23 Thread Gonglei (Arei)
Hi Jordan, Laszlo, Bei Thanks for your help! My compiler is gcc-4.3.4 linux-aVzzFl:~ # /usr/bin/gcc -v Using built-in specs. Target: x86_64 -linux Thread model: posix gcc version 4.3.4 [gcc-4_3-branch revision 152973] Next, As your says, I will try it with higher GCC. Best Regards! Arei

Re: [edk2] xen OVMF problem

2012-10-23 Thread Laszlo Ersek
On 10/23/12 17:38, Bei Guan wrote: > > > 2012/10/23 Gonglei (Arei) > > > I delete “-DEFIAPI=__attribute__((sysv_abi))”so that the ovmf can > be built successfully in the ovmf/Conf/tools_def.txt: > > DEFINE GCC44_X64_CC_FLAGS= DEF(GC

Re: [edk2] xen OVMF problem

2012-10-23 Thread Jordan Justen
On Tue, Oct 23, 2012 at 4:42 AM, Gonglei (Arei) wrote: > /home/sdb2/arei/xen-upgrade/xen-4.2.0.bak/tools/firmware/ovmf/MdePkg/Library/PeiMemoryAllocationLib/MemoryAllocationLib.c:713: > error: 'ms_abi' attribute directive ignored Ah! This could certainly explain things. Does '/usr/bin/gcc -v' re

Re: [edk2] xen OVMF problem

2012-10-23 Thread Bei Guan
2012/10/23 Gonglei (Arei) > Hi, Bei, > > Thanks a lot! > > I have tried it with the ovmf.bin which you provided, and I get the boot > info: > > ** ** > > 16 > > 32 > > b1 > > f1 > > 64 > > SecCoreStartupWithStack(0xFFFE6000, 0x8) > > File->Type: 0xB >

Re: [edk2] xen OVMF problem

2012-10-23 Thread Gonglei (Arei)
Hi, Bei, Thanks a lot! I have tried it with the ovmf.bin which you provided, and I get the boot info: 16 32 b1 f1 64 SecCoreStartupWithStack(0xFFFE6000, 0x8) File->Type: 0xB Section->Type: 0x2 Section->Type: 0x19 Section->Type (0x19) != SectionType (0x17) Section->Type: 0x17 File->Type: 0x2 Fi

Re: [edk2] xen OVMF problem

2012-10-22 Thread Jordan Justen
On Mon, Oct 22, 2012 at 5:20 AM, Gonglei (Arei) wrote: > Hi, Jordan > What's your opinion about this problem? Thanks! Sorry. I'm still working to setup a Xen test environment. Bei, Andrei, How recently have you been able to test Xen with OVMF? Do you have time to verify that the lates

Re: [edk2] xen OVMF problem

2012-10-22 Thread Gonglei (Arei)
Hi, Jordan What's your opinion about this problem? Thanks! Best Regards! Arei -Original Message- From: Gonglei (Arei) Sent: Wednesday, October 17, 2012 9:00 AM To: 'Jordan Justen' Cc: gbtj...@gmail.com; Andrei Warkentin Subject: RE: xen OVMF problem Jordan, My environment is x

Re: [edk2] xen OVMF problem

2012-10-16 Thread Gonglei (Arei)
Hi Jordan, I have gotten more detailed location where it stuck. linux-aVzzFl:~ # xl create win2008.cfg -c Parsing config from win2008.cfg xc: info: VIRTUAL MEMORY ARRANGEMENT: Loader:0010->0029c344 TOTAL: ->7f80 ENTRY ADDRESS:

Re: [edk2] xen OVMF problem

2012-10-15 Thread Gonglei (Arei)
No, I'm not using "-D SOURCE_DEBUG_ENABLE", but adding DEBUG info in the source code. linux-aVzzFl:~# xl create win2008.cfg -c Parsing config from win2008_dc_r2_64_2U.cfg xc: info: VIRTUAL MEMORY ARRANGEMENT: Loader:0010->0029c344 TOTAL: ->

Re: [edk2] xen OVMF problem

2012-10-15 Thread Gonglei (Arei)
Thanks Jordan, I am now doing this as your says. And I get the OVMF debugging output: linux-aVzzFl:~# xl create win2008.cfg -c Parsing config from win2008_dc_r2_64_2U.cfg xc: info: VIRTUAL MEMORY ARRANGEMENT: Loader:0010->0029c344 TOTAL: ->00

Re: [edk2] xen OVMF problem

2012-10-15 Thread Jordan Justen
On Mon, Oct 15, 2012 at 7:54 PM, Gonglei (Arei) wrote: > Thanks Jordan, > I am now doing this as your says. And I get the OVMF debugging output: > linux-aVzzFl:~# xl create win2008.cfg -c > Parsing config from win2008_dc_r2_64_2U.cfg > xc: info: VIRTUAL MEMORY ARRANGEMENT: > Loader:

Re: [edk2] xen OVMF problem

2012-10-15 Thread Jordan Justen
Ok, I think I understand the issue then. With the latest code you need this on the build command line to see debug messages printed to the serial port. -D DEBUG_ON_SERIAL_PORT Does Xen support QEMU's debug console device? -Jordan On Mon, Oct 15, 2012 at 1:44 AM, Gonglei (Arei) wrote: > Hi Jord

Re: [edk2] xen OVMF problem

2012-10-15 Thread Gonglei (Arei)
Hi Jordan, 1) I get the OVMF from https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2/. 2) I build the ResetVector code and modify UefiCpuPkg/ResetVector/Vtf0/Bin/ResetVector.inf to use the serial debug versions (Bin/ResetVector.x64.serial.raw and Bin/ResetVector.ia32.serial.raw). -Arei

Re: [edk2] xen OVMF problem

2012-10-15 Thread Jordan Justen
On Sun, Oct 14, 2012 at 11:10 PM, Gonglei (Arei) wrote: > Hi All, > > > > My environment is xen-4.2-testing + upstream qemu-1.2 + Dom0 > (Linux kernel 2.6.32) + edk2, and I build xen/tools/ovmf successfully. Then, > I start the hvm, I can see the hvm is running. But the vnc screen is bl