From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jrb9E-0008U6-VH for qemu-devel@nongnu.org; Thu, 01 May 2008 11:56:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jrb9C-0008Tr-JH for qemu-devel@nongnu.org; Thu, 01 May 2008 11:56:39 -0400 Received: from [199.232.76.173] (port=43325 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jrb9C-0008To-Do for qemu-devel@nongnu.org; Thu, 01 May 2008 11:56:38 -0400 Received: from ecfrec.frec.bull.fr ([129.183.4.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jrb9C-0007fO-5s for qemu-devel@nongnu.org; Thu, 01 May 2008 11:56:38 -0400 Subject: Re: [Qemu-devel] [PATCH] PMAC NVRAM cleanup From: Laurent Vivier In-Reply-To: References: <84F70DF9-288F-4125-BE93-C9A899DC03B1@lvivier.info> Content-Type: text/plain; charset=utf-8 Date: Thu, 01 May 2008 17:56:55 +0200 Message-Id: <1209657415.20929.7.camel@frecb07144> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl Le jeudi 01 mai 2008 =C3=A0 17:49 +0300, Blue Swirl a =C3=A9crit : > On 5/1/08, Laurent Vivier wrote: > > Hi, > > > > I'm trying to boot openbios on PPC target (for the moment I'm only a= ble to > > load yaboot). >=20 > Great! Which machine are you using? OpenBIOS has some support for > things called briq, mol and pearpc, are any of those useful? I'm working with files from pearpc. > > This patch is a cleanup of PMAC nvram. > > > > It stores nvram in a file and create valid partitions. >=20 > In no other machine nvram is loaded from a file. On Sparc most > configuration needs can be addressed by using -prom-env switch. In fact I took syntax and some parts from ds1225y which loads nvram from a file. I will improve this part (better default filename, switch to specify filename and -prom-env management) later. Thank you for your comments. I'm going to repost a patch based on structures and functions found in hw/firmware_abi.h Regards, Laurent