Received: from eggs.gnu.org ([208.118.235.92]:54187) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSTr3-0001JY-Fe for qemu-devel@nongnu.org; Thu, 10 May 2012 09:56:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSTr1-0004Ef-EF for qemu-devel@nongnu.org; Thu, 10 May 2012 09:56:28 -0400 Received: from nm21.bullet.mail.ne1.yahoo.com ([98.138.90.84]:40937) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SSTr1-0004EB-4b for qemu-devel@nongnu.org; Thu, 10 May 2012 09:56:27 -0400 References: <1336406325.86421.YahooMailNeo@web130104.mail.mud.yahoo.com> <20120508005521.GA14087@morn.localdomain> <1336495676.9684.YahooMailNeo@web130104.mail.mud.yahoo.com> <20120508220631.GA28784@morn.localdomain> <1336579073.87968.YahooMailNeo@web130105.mail.mud.yahoo.com> <20120510004445.GA19059@morn.localdomain> <20120510011945.GA24218@morn.localdomain> Message-ID: <1336658184.2874.YahooMailNeo@web130104.mail.mud.yahoo.com> Date: Thu, 10 May 2012 06:56:24 -0700 (PDT) From: =?iso-8859-1?Q?Alain_Ribi=E8re?= In-Reply-To: <20120510011945.GA24218@morn.localdomain> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="641185687-177434011-1336658184=:2874" Subject: [Qemu-devel] Re : Re : Re : [SeaBIOS] : Memory problem with Qemu/SeaBIOS Reply-To: =?iso-8859-1?Q?Alain_Ribi=E8re?= List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin O'Connor Cc: "seabios@seabios.org" , "qemu-devel@nongnu.org" --641185687-177434011-1336658184=:2874 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Both solutions work for my application !=0AThanks a lot. I think I will use= one of them, even if I know it's not really "clean".=0A=0AThanks again,=0A= =0AAlain=0A=0A=0A=0A=0A________________________________=0A=0AOn Wed, May 09= , 2012 at 08:44:45PM -0400, Kevin O'Connor wrote:=0A> On Wed, May 09, 2012 = at 08:57:53AM -0700, Alain Ribi=E8re wrote:=0A> > I wonder what is the CDOS= system at 0D4000... It seems a bit strange.=0A> =0A> Very odd.=A0 This is = still controlled by seabios.=A0 Indeed, if I apply=0A> this (clearly incorr= ect) patch to seabios:=0A> =0A> diff --git a/src/shadow.c b/src/shadow.c=0A= > index c0c8cc2..73c0670 100644=0A> --- a/src/shadow.c=0A> +++ b/src/shadow= .c=0A[...]=0A=0AJust for kicks, I tried a simple hack to try and reserve mo= re memory=0Ain the c/d/e-segments, and it seems to work for the image you p= osted.=0ARun:=0A=0Apython -c 'import sys; sys.stdout.write("\x55\xaa\xc8\xc= b\x6e" + "\x00"*(100*1024 - 5))' > dummy.rom=0A=0Aand then add "-option-rom= dummy.rom" to your qemu command line.=A0 (The=0Aidea is to build a 100K du= mmy option rom that seabios will load and=0Amark as read-only memory.)=0A= =0A-Kevin --641185687-177434011-1336658184=:2874 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Both solutions work f= or my application !
Thanks a lot. I think I will use one of them, even i= f I know it's not really "clean".

Thanks again,

Alain

=



On Wed, May 09, 2012 at 08:44:45PM -0400, Kevin O'Con= nor wrote:
> On Wed, May 09, 2012 at 08:57:53AM -0700, Alain Ribi=E8r= e wrote:
> > I wonder what is the CDOS system at 0D4000... It seem= s a bit strange.
>
> Very odd.  This is still controlled = by seabios.  Indeed, if I apply
> this (clearly incorrect) patch= to seabios:
>
> diff --git a/src/shadow.c b/src/shadow.c
>= index c0c8cc2..73c0670 100644
> --- a/src/shadow.c
> +++ b/src= /shadow.c
[...]

Just for kicks, I tried a simple hack to try and = reserve more memory
in the c/d/e-segments, and it seems to work for the = image you posted.
Run:

python -c 'import sys; sys.stdout.write("\= x55\xaa\xc8\xcb\x6e" + "\x00"*(100*1024 - 5))' > dummy.rom

and th= en add "-option-rom dummy.rom" to your qemu command line.  (The
ide= a is to build a 100K dummy option rom that seabios will load and
mark as= read-only memory.)

-Kevin


<= /html> --641185687-177434011-1336658184=:2874--