RE: [Edk2 Dev] DuetPkg on a Floppy

Subject: RE: [Edk2 Dev] DuetPkg on a Floppy

From: Lu ken <ken.lu@intel.com>

To: dev@edk2.tianocore.org

Date: 2009-04-21 19:22:51

BTW: many configure file under linux provide options for "disable-werror" flag. 

I also found GCC could not be build caused by some warning under ubuntu distribution, I remember it could pass on other linux distribution. 
I will add this flag into mingw-gcc-build.py to improve user experience. Any other options on this? If not, I will do so.

Thanks
Ken

-----Original Message-----
From: Lu ken [mailto:ken.lu@intel.com] 
Sent: 2009421 10:58
To: dev@edk2.tianocore.org
Subject: RE: [Edk2 Dev] DuetPkg on a Floppy

Hi, Stefan:
	Current Duet in edk2 has a size limitation under UNIXGCC tool chain. 
	As original Duet in edk does, the EfiLdr image will be copied to 0x20000 ~ 0x9A000 in real mode with int 13 legacy call. So EfiLdr size should not larger than almost 470kb. 
	If build the Duet under UNIXGCC tool chain, you will get size larger than 470kb, current work around solution is commenting out the unused module from FDF temporary for example: Usb related drivers if you boot Duet from floppy. For long term, we are waiting for GCC more optimization on size or more strong compression algorism such as LZMA.
	
	Thanks
	Ken

-----Original Message-----
From: Stefan Reinauer [mailto:stepan@coresystems.de] 
Sent: 2009417 18:47
To: dev@edk2.tianocore.org
Subject: Re: [Edk2 Dev] DuetPkg on a Floppy

On 17.04.2009 11:55 Uhr, Stefan Reinauer wrote:

> /opt/tiano/bin/i686-pc-mingw32-gcc
>
>   
This is the correct one.

> If I set
> DEFINE UNIXGCC_IA32_PETOOLS_PREFIX = /opt/tiano/bin/i686-pc-mingw32-
> as suggested in Option 3/5 I get
> /bin/sh: /opt/tiano/bin/i686-pc-mingw32-/gcc: No such file or directory
>
> so it looks like the build system appends a / even though it shouldn't. 
> Unfortunately I have not found yet where that happens.
>   
I did, further down in tools_def

After additionally removing the -Werror from the compile flags I got a
good step forward.

When testing the floppy image in Qemu I get:

ABCE
 ...
       WELCOME TO EFI WORLD

before it hangs.

When testing in Parallels I get
     A
Enter DUET Loader
 BIOSMemoryMapBaseAddress = 0x2076A
 Get 9 entries of memory map!
 Decompress BFV image, Image Address=401DA Offset=0x1E1DA
 BFV decompress: DestinationSize=0x180000, ScratchSize=0x3438
 Fail to decompress BFV!


Any hints what could be wrong in either case? If there's some
documentation I can read to catch up before asking potentially answered
questions, please let me know.

Best regards,

Stefan

> If I set
> DEFINE UNIXGCC_IA32_PETOOLS_PREFIX = /opt/tiano/i686-pc-mingw32/bin
> (similat to what was suggesten in option 1) I get
> gcc: error trying to exec 'cc1': execvp: No such file or directory.
>
> So it looks like the script BaseTools/gcc/mingw-gcc-build.py does not
> produce a working compiler.
>
> Any hints?
>
> Best regards,
>
> Stefan



-- 
coresystems GmbH  Brahmsstr. 16  D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825  Fax: +49 761 7664613
Email: info@coresystems.de   http://www.coresystems.de/
Registergericht: Amtsgericht Freiburg  HRB 7656
Geschftsfhrer: Stefan Reinauer  Ust-IdNr.: DE245674866

------------------------------------------------------
https://edk2.tianocore.org/ds/viewMessage.do?dsForumId=135&dsMessageId=38771

To unsubscribe from this discussion, please e-mail [unsubscribeURL]

------------------------------------------------------
https://edk2.tianocore.org/ds/viewMessage.do?dsForumId=135&dsMessageId=39018

To unsubscribe from this discussion, please e-mail [unsubscribeURL]

------------------------------------------------------
https://edk2.tianocore.org/ds/viewMessage.do?dsForumId=135&dsMessageId=39020

To unsubscribe from this discussion, please e-mail [unsubscribeURL]