On Thu, Oct 18, 2012 at 8:32 PM, Shao Miller <sha0.mil...@gmail.com> wrote:
> As a follow-up, I was successful with the same mission but only by using
> Windows DDK 3790.1830, which has always worked in the past.  So perhaps
> there's a problem with using the Linux x86_64-w64-mingw32-gcc version 4.7.0
> 20120322 (Fedora MinGW 4.7.0-2.fc17) that I had tried, below.

Are you using mingw & and the UNIXGCC toolchain?

If so, you might try the GCC46 toolchain instead. It should produce
smaller image sizes.

But, even then I've had issues with size overflow with GCC, and had to
drop drivers, like USB to get DUET to build properly.

Unfortunately, I don't think DUET's build fails gracefully when the
size overflows.

Perhaps DUET should make use of MDEPKG_NDEBUG for GCC...

-Jordan

> -----Original Message-----
> From: Sergey Isakov [mailto:isakov...@bk.ru]
> Sent: Thursday, October 18, 2012 12:34
> To: edk2-devel@lists.sourceforge.net
> Subject: Re: [edk2] Can't Trim Efildr Down
>
> Hi, Shao.
>
> Efildr has fixed size by its construction.
> Size = 472k = 472*1024 = 483328 = 0x76000
> no matter haw many codes you produce up to the limit.
>
> Sergey
>
> On 18.10.2012, at 19:45, Shao Miller <sha0.mil...@gmail.com> wrote:
>
>> Good day to all.
>>
>> I am working from commit "Add manual configured gateway address back
>> after system reset" by Ye Ting.
>>
>> I've been trying to build a DUET boot floppy for use with both real
>> hardware and in QEmu.  My QEmu command-line looks like this:
>>
>>   qemu-system-x86_64 -fda duet.vfd
>>
>> For both the real hardware and the QEmu, shortly after boot the screen
>> displays red text on a black background beginning with:
>>
>>   *** INT 06h Invalid opcode - HALT!! ***
>> (0000000000000038:0000000000010240)
>>
>> followed by 64-bit register dumps and whatever other debugging
>> information is supposed to be there.
>>
>> I suspect that this is caused by Efildr being too big, since the
>> document DuetPkg/ReadMe.txt suggests that Efildr must be less than 470
>> k.  Currently my Build/DuetPkgX64/DEBUG_UNIXGCC/FV/Efildr is 483328 bytes.
>>
>> In that same document, it is suggested to remove drivers from the
>> DuetPkg/DuetPkg.fdf file.  How does one do this?  I have #commented out
>> the INF lines for SATA and all USB support, cleaned my tree, then
>> recompiled, but this results in no size difference for Efildr after
>> running DuetPkg/PostBuild.sh.  I don't understand why that is.
>>
>> So I took another approach and that was to clean and rebuild with:
>>
>>   [BuildOptions]
>>     MSFT:*_*_*_CC_FLAGS = /FAsc /FR$(@R).SBR
>> +   GCC:*_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
>>
>> in the DuetPkg/DuetPkgX64.dsc file.  After re-arranging ASSERT-style
>> macros to expand to '((void) (Expression))', after cleaning, rebuilding,
>> and running PostBuild.sh again, there is _still_ no difference in size
>> for Efildr.
>>
>> What am I doing wrong, if you please?
>>
>> - Shao Miller
>>
>>
> ----------------------------------------------------------------------------
> --
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>> _______________________________________________
>> edk2-devel mailing list
>> edk2-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>>
>
>
> ----------------------------------------------------------------------------
> --
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to