<p dir="ltr">Please remove me from this list.</p>
<div class="gmail_quote">On 14 Sep 2015 01:42,  <<a href="mailto:openbios-request@openbios.org">openbios-request@openbios.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send OpenBIOS mailing list submissions to<br>
        <a href="mailto:openbios@openbios.org">openbios@openbios.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://www.openfirmware.info/mailman/listinfo/openbios" rel="noreferrer" target="_blank">http://www.openfirmware.info/mailman/listinfo/openbios</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:openbios-request@openbios.org">openbios-request@openbios.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:openbios-owner@openbios.org">openbios-owner@openbios.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of OpenBIOS digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: [Qemu-discuss] Qemu-system-sparc: What would I need   to<br>
      change to add functionality to save the nvram content     between<br>
      boots ? (Programmingkid)<br>
   2. Re: [Qemu-discuss] Qemu-system-sparc: What would I need to<br>
      change to add functionality to save the nvram content between<br>
      boots ? (Laurent Vivier)<br>
   3. Re: [Qemu-discuss] Qemu-system-sparc: What would I need   to<br>
      change to add functionality to save the nvram content     between<br>
      boots ? (Programmingkid)<br>
   4. Re: [Qemu-discuss] Qemu-system-sparc: What would I need to<br>
      change to add functionality to save the nvram content between<br>
      boots ? (Mark Cave-Ayland)<br>
   5. Re: [Qemu-discuss] Qemu-system-sparc: What would I need   to<br>
      change to add functionality to save the nvram content     between<br>
      boots ? (Programmingkid)<br>
   6. Re: [Qemu-discuss] Qemu-system-sparc: What would I need to<br>
      change to add functionality to save the nvram content between<br>
      boots ? (Bodo Eggert)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 11 Sep 2015 17:07:49 -0400<br>
From: Programmingkid <<a href="mailto:programmingkidx@gmail.com">programmingkidx@gmail.com</a>><br>
To: Laurent Vivier <<a href="mailto:laurent@vivier.eu">laurent@vivier.eu</a>><br>
Cc: <a href="mailto:jim@suresafe.co.uk">jim@suresafe.co.uk</a>, The OpenBIOS Mailinglist<br>
        <<a href="mailto:openbios@openbios.org">openbios@openbios.org</a>>, Mark Cave-Ayland<br>
        <<a href="mailto:mark.cave-ayland@ilande.co.uk">mark.cave-ayland@ilande.co.uk</a>>, qemu-discuss<br>
        <<a href="mailto:qemu-discuss@nongnu.org">qemu-discuss@nongnu.org</a>><br>
Subject: Re: [OpenBIOS] [Qemu-discuss] Qemu-system-sparc: What would I<br>
        need    to change to add functionality to save the nvram content        between<br>
        boots ?<br>
Message-ID: <<a href="mailto:98CF0A2F-43B1-4E68-8535-42D69DFC3D25@gmail.com">98CF0A2F-43B1-4E68-8535-42D69DFC3D25@gmail.com</a>><br>
Content-Type: text/plain; charset=iso-8859-1<br>
<br>
<br>
On Sep 11, 2015, at 4:09 PM, Laurent Vivier wrote:<br>
<br>
><br>
><br>
> Le 11/09/2015 20:01, Programmingkid a ?crit :<br>
>><br>
>> On Sep 11, 2015, at 12:00 PM, <a href="mailto:qemu-discuss-request@nongnu.org">qemu-discuss-request@nongnu.org</a><br>
>> <mailto:<a href="mailto:qemu-discuss-request@nongnu.org">qemu-discuss-request@nongnu.org</a>> wrote:<br>
>><br>
>>> On 10/09/2015 8:58 AM, Maximilian H. wrote:<br>
>>>> Hello,<br>
>>>><br>
>>>> I was looking into what parts would need change to save and restore the<br>
>>>> nvram content for the qemu-system-sparc vm between boots.<br>
>>>><br>
>>>> I see the code in hw/timer/m48t59.c that implements the nvram.<br>
>>>><br>
>>>> So some questions arise, and before I spend too much time poking around<br>
>>>> the still unknown code, I'd thought I ask first.<br>
>>>><br>
>>>> 1. Command line processing starts in vl.c in the main fct there ? Can I<br>
>>>> add a command line argument there, say "-sparcnvram" ?<br>
>>>><br>
>>>> 2. In hw/timer/m48t59.c has no functionality that I see from having a<br>
>>>> look at it (not in depth) to save or restore the nvram's contents for<br>
>>>> sparc. Is there a general facility that qemu has that provides such a<br>
>>>> functionality - i.e. is there a general qemu save and restore framework ?<br>
>>>><br>
>>>> 3. Is there an example somebody could point me to that implements<br>
>>>> something similar ? Imitation is the sincerest of flattery ....<br>
>>>><br>
>>>> 4. All the alarm and watchdog functionality that the m48t08 provides, is<br>
>>>> that used on sparc too ?<br>
>>>><br>
>>>> 5. Besides what is in<br>
>>>> <a href="http://wiki.qemu.org/Documentation/GettingStartedDevelopers" rel="noreferrer" target="_blank">http://wiki.qemu.org/Documentation/GettingStartedDevelopers</a>, is there<br>
>>>> some qemu coding documentation to make it faster for somebody unfamilar<br>
>>>> with qemu's code like me to be able to implement something ? I'd like to<br>
>>>> spend a few evenings on this, produce a patch and move on.<br>
>>>><br>
>>>> Thanks<br>
>>>> BR<br>
>>>> Max.<br>
>>><br>
>><br>
>> This sounds like a good idea. Having OpenBIOS settings actually be saved<br>
>> between boots<br>
>> would make things more real.<br>
>><br>
>> Mark, do you think it is possible for a QEMU command line option to<br>
>> actually load the<br>
>> saved OpenBIOS settings from a file and restore them into memory? I'm<br>
>> thinking something<br>
>> along the lines of -prom-memory <file name>.<br>
><br>
> Nostalgia: a seven years old thread, out of date now:<br>
><br>
> <a href="https://lists.gnu.org/archive/html/qemu-devel/2008-05/msg00002.html" rel="noreferrer" target="_blank">https://lists.gnu.org/archive/html/qemu-devel/2008-05/msg00002.html</a><br>
><br>
>><br>
>> Max, there is a project that you should probably look at called<br>
>> OpenBIOS. It implements<br>
>> an implementation of Open Firmware. Here is where more info can be<br>
>> found: <a href="http://www.openfirmware.info/Welcome_to_OpenBIOS" rel="noreferrer" target="_blank">http://www.openfirmware.info/Welcome_to_OpenBIOS</a>. If you do want<br>
>> to implement this feature,<br>
>> it would help to know how the BIOS is implemented.<br>
><br>
> Laurent<br>
<br>
Could you send the patch please?<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sat, 12 Sep 2015 09:46:48 +0200<br>
From: Laurent Vivier <<a href="mailto:laurent@vivier.eu">laurent@vivier.eu</a>><br>
To: Programmingkid <<a href="mailto:programmingkidx@gmail.com">programmingkidx@gmail.com</a>><br>
Cc: <a href="mailto:jim@suresafe.co.uk">jim@suresafe.co.uk</a>, The OpenBIOS Mailinglist<br>
        <<a href="mailto:openbios@openbios.org">openbios@openbios.org</a>>, Mark Cave-Ayland<br>
        <<a href="mailto:mark.cave-ayland@ilande.co.uk">mark.cave-ayland@ilande.co.uk</a>>, qemu-discuss<br>
        <<a href="mailto:qemu-discuss@nongnu.org">qemu-discuss@nongnu.org</a>><br>
Subject: Re: [OpenBIOS] [Qemu-discuss] Qemu-system-sparc: What would I<br>
        need to change to add functionality to save the nvram content between<br>
        boots ?<br>
Message-ID: <<a href="mailto:55F3D868.3030702@vivier.eu">55F3D868.3030702@vivier.eu</a>><br>
Content-Type: text/plain; charset=windows-1252<br>
<br>
<br>
<br>
Le 11/09/2015 23:07, Programmingkid a ?crit :<br>
><br>
> On Sep 11, 2015, at 4:09 PM, Laurent Vivier wrote:<br>
><br>
>><br>
>><br>
>> Le 11/09/2015 20:01, Programmingkid a ?crit :<br>
>>><br>
>>> On Sep 11, 2015, at 12:00 PM, <a href="mailto:qemu-discuss-request@nongnu.org">qemu-discuss-request@nongnu.org</a><br>
>>> <mailto:<a href="mailto:qemu-discuss-request@nongnu.org">qemu-discuss-request@nongnu.org</a>> wrote:<br>
>>><br>
>>>> On 10/09/2015 8:58 AM, Maximilian H. wrote:<br>
>>>>> Hello,<br>
>>>>><br>
>>>>> I was looking into what parts would need change to save and restore the<br>
>>>>> nvram content for the qemu-system-sparc vm between boots.<br>
>>>>><br>
>>>>> I see the code in hw/timer/m48t59.c that implements the nvram.<br>
>>>>><br>
>>>>> So some questions arise, and before I spend too much time poking around<br>
>>>>> the still unknown code, I'd thought I ask first.<br>
>>>>><br>
>>>>> 1. Command line processing starts in vl.c in the main fct there ? Can I<br>
>>>>> add a command line argument there, say "-sparcnvram" ?<br>
>>>>><br>
>>>>> 2. In hw/timer/m48t59.c has no functionality that I see from having a<br>
>>>>> look at it (not in depth) to save or restore the nvram's contents for<br>
>>>>> sparc. Is there a general facility that qemu has that provides such a<br>
>>>>> functionality - i.e. is there a general qemu save and restore framework ?<br>
>>>>><br>
>>>>> 3. Is there an example somebody could point me to that implements<br>
>>>>> something similar ? Imitation is the sincerest of flattery ....<br>
>>>>><br>
>>>>> 4. All the alarm and watchdog functionality that the m48t08 provides, is<br>
>>>>> that used on sparc too ?<br>
>>>>><br>
>>>>> 5. Besides what is in<br>
>>>>> <a href="http://wiki.qemu.org/Documentation/GettingStartedDevelopers" rel="noreferrer" target="_blank">http://wiki.qemu.org/Documentation/GettingStartedDevelopers</a>, is there<br>
>>>>> some qemu coding documentation to make it faster for somebody unfamilar<br>
>>>>> with qemu's code like me to be able to implement something ? I'd like to<br>
>>>>> spend a few evenings on this, produce a patch and move on.<br>
>>>>><br>
>>>>> Thanks<br>
>>>>> BR<br>
>>>>> Max.<br>
>>>><br>
>>><br>
>>> This sounds like a good idea. Having OpenBIOS settings actually be saved<br>
>>> between boots<br>
>>> would make things more real.<br>
>>><br>
>>> Mark, do you think it is possible for a QEMU command line option to<br>
>>> actually load the<br>
>>> saved OpenBIOS settings from a file and restore them into memory? I'm<br>
>>> thinking something<br>
>>> along the lines of -prom-memory <file name>.<br>
>><br>
>> Nostalgia: a seven years old thread, out of date now:<br>
>><br>
>> <a href="https://lists.gnu.org/archive/html/qemu-devel/2008-05/msg00002.html" rel="noreferrer" target="_blank">https://lists.gnu.org/archive/html/qemu-devel/2008-05/msg00002.html</a><br>
>><br>
>>><br>
>>> Max, there is a project that you should probably look at called<br>
>>> OpenBIOS. It implements<br>
>>> an implementation of Open Firmware. Here is where more info can be<br>
>>> found: <a href="http://www.openfirmware.info/Welcome_to_OpenBIOS" rel="noreferrer" target="_blank">http://www.openfirmware.info/Welcome_to_OpenBIOS</a>. If you do want<br>
>>> to implement this feature,<br>
>>> it would help to know how the BIOS is implemented.<br>
>><br>
>> Laurent<br>
><br>
> Could you send the patch please?<br>
><br>
<br>
The patch is attached to the mail in the thread. Anyway, I don't think<br>
it applies now.<br>
<br>
Laurent<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Sat, 12 Sep 2015 14:01:33 -0400<br>
From: Programmingkid <<a href="mailto:programmingkidx@gmail.com">programmingkidx@gmail.com</a>><br>
To: Laurent Vivier <<a href="mailto:laurent@vivier.eu">laurent@vivier.eu</a>><br>
Cc: <a href="mailto:jim@suresafe.co.uk">jim@suresafe.co.uk</a>, The OpenBIOS Mailinglist<br>
        <<a href="mailto:openbios@openbios.org">openbios@openbios.org</a>>, Mark Cave-Ayland<br>
        <<a href="mailto:mark.cave-ayland@ilande.co.uk">mark.cave-ayland@ilande.co.uk</a>>, qemu-discuss<br>
        <<a href="mailto:qemu-discuss@nongnu.org">qemu-discuss@nongnu.org</a>><br>
Subject: Re: [OpenBIOS] [Qemu-discuss] Qemu-system-sparc: What would I<br>
        need    to change to add functionality to save the nvram content        between<br>
        boots ?<br>
Message-ID: <<a href="mailto:AF2A4476-8D57-4A73-911E-1F4658F6A5E5@gmail.com">AF2A4476-8D57-4A73-911E-1F4658F6A5E5@gmail.com</a>><br>
Content-Type: text/plain; charset=iso-8859-1<br>
<br>
<br>
On Sep 12, 2015, at 3:46 AM, Laurent Vivier wrote:<br>
<br>
><br>
><br>
> Le 11/09/2015 23:07, Programmingkid a ?crit :<br>
>><br>
>> On Sep 11, 2015, at 4:09 PM, Laurent Vivier wrote:<br>
>><br>
>>><br>
>>><br>
>>> Le 11/09/2015 20:01, Programmingkid a ?crit :<br>
>>>><br>
>>>> On Sep 11, 2015, at 12:00 PM, <a href="mailto:qemu-discuss-request@nongnu.org">qemu-discuss-request@nongnu.org</a><br>
>>>> <mailto:<a href="mailto:qemu-discuss-request@nongnu.org">qemu-discuss-request@nongnu.org</a>> wrote:<br>
>>>><br>
>>>>> On 10/09/2015 8:58 AM, Maximilian H. wrote:<br>
>>>>>> Hello,<br>
>>>>>><br>
>>>>>> I was looking into what parts would need change to save and restore the<br>
>>>>>> nvram content for the qemu-system-sparc vm between boots.<br>
>>>>>><br>
>>>>>> I see the code in hw/timer/m48t59.c that implements the nvram.<br>
>>>>>><br>
>>>>>> So some questions arise, and before I spend too much time poking around<br>
>>>>>> the still unknown code, I'd thought I ask first.<br>
>>>>>><br>
>>>>>> 1. Command line processing starts in vl.c in the main fct there ? Can I<br>
>>>>>> add a command line argument there, say "-sparcnvram" ?<br>
>>>>>><br>
>>>>>> 2. In hw/timer/m48t59.c has no functionality that I see from having a<br>
>>>>>> look at it (not in depth) to save or restore the nvram's contents for<br>
>>>>>> sparc. Is there a general facility that qemu has that provides such a<br>
>>>>>> functionality - i.e. is there a general qemu save and restore framework ?<br>
>>>>>><br>
>>>>>> 3. Is there an example somebody could point me to that implements<br>
>>>>>> something similar ? Imitation is the sincerest of flattery ....<br>
>>>>>><br>
>>>>>> 4. All the alarm and watchdog functionality that the m48t08 provides, is<br>
>>>>>> that used on sparc too ?<br>
>>>>>><br>
>>>>>> 5. Besides what is in<br>
>>>>>> <a href="http://wiki.qemu.org/Documentation/GettingStartedDevelopers" rel="noreferrer" target="_blank">http://wiki.qemu.org/Documentation/GettingStartedDevelopers</a>, is there<br>
>>>>>> some qemu coding documentation to make it faster for somebody unfamilar<br>
>>>>>> with qemu's code like me to be able to implement something ? I'd like to<br>
>>>>>> spend a few evenings on this, produce a patch and move on.<br>
>>>>>><br>
>>>>>> Thanks<br>
>>>>>> BR<br>
>>>>>> Max.<br>
>>>>><br>
>>>><br>
>>>> This sounds like a good idea. Having OpenBIOS settings actually be saved<br>
>>>> between boots<br>
>>>> would make things more real.<br>
>>>><br>
>>>> Mark, do you think it is possible for a QEMU command line option to<br>
>>>> actually load the<br>
>>>> saved OpenBIOS settings from a file and restore them into memory? I'm<br>
>>>> thinking something<br>
>>>> along the lines of -prom-memory <file name>.<br>
>>><br>
>>> Nostalgia: a seven years old thread, out of date now:<br>
>>><br>
>>> <a href="https://lists.gnu.org/archive/html/qemu-devel/2008-05/msg00002.html" rel="noreferrer" target="_blank">https://lists.gnu.org/archive/html/qemu-devel/2008-05/msg00002.html</a><br>
>>><br>
>>>><br>
>>>> Max, there is a project that you should probably look at called<br>
>>>> OpenBIOS. It implements<br>
>>>> an implementation of Open Firmware. Here is where more info can be<br>
>>>> found: <a href="http://www.openfirmware.info/Welcome_to_OpenBIOS" rel="noreferrer" target="_blank">http://www.openfirmware.info/Welcome_to_OpenBIOS</a>. If you do want<br>
>>>> to implement this feature,<br>
>>>> it would help to know how the BIOS is implemented.<br>
>>><br>
>>> Laurent<br>
>><br>
>> Could you send the patch please?<br>
>><br>
><br>
> The patch is attached to the mail in the thread. Anyway, I don't think<br>
> it applies now.<br>
><br>
> Laurent<br>
<br>
The extension on the patch is incorrectly set to .bin. Had to change it to .txt to make it work. Thanks.<br>
I don't have the original poster's email address so I can't send it to him. Hopefully he had read these<br>
emails and knows about it.<br>
<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Sun, 13 Sep 2015 18:14:05 +0100<br>
From: Mark Cave-Ayland <<a href="mailto:mark.cave-ayland@ilande.co.uk">mark.cave-ayland@ilande.co.uk</a>><br>
To: Programmingkid <<a href="mailto:programmingkidx@gmail.com">programmingkidx@gmail.com</a>>,  qemu-discuss<br>
        <<a href="mailto:qemu-discuss@nongnu.org">qemu-discuss@nongnu.org</a>><br>
Cc: <a href="mailto:jim@suresafe.co.uk">jim@suresafe.co.uk</a>, The OpenBIOS Mailinglist<br>
        <<a href="mailto:openbios@openbios.org">openbios@openbios.org</a>><br>
Subject: Re: [OpenBIOS] [Qemu-discuss] Qemu-system-sparc: What would I<br>
        need to change to add functionality to save the nvram content between<br>
        boots ?<br>
Message-ID: <<a href="mailto:55F5AEDD.3040801@ilande.co.uk">55F5AEDD.3040801@ilande.co.uk</a>><br>
Content-Type: text/plain; charset=windows-1252<br>
<br>
On 11/09/15 19:01, Programmingkid wrote:<br>
<br>
> On Sep 11, 2015, at 12:00 PM, <a href="mailto:qemu-discuss-request@nongnu.org">qemu-discuss-request@nongnu.org</a><br>
> <mailto:<a href="mailto:qemu-discuss-request@nongnu.org">qemu-discuss-request@nongnu.org</a>> wrote:<br>
><br>
>> On 10/09/2015 8:58 AM, Maximilian H. wrote:<br>
>>> Hello,<br>
>>><br>
>>> I was looking into what parts would need change to save and restore the<br>
>>> nvram content for the qemu-system-sparc vm between boots.<br>
>>><br>
>>> I see the code in hw/timer/m48t59.c that implements the nvram.<br>
>>><br>
>>> So some questions arise, and before I spend too much time poking around<br>
>>> the still unknown code, I'd thought I ask first.<br>
>>><br>
>>> 1. Command line processing starts in vl.c in the main fct there ? Can I<br>
>>> add a command line argument there, say "-sparcnvram" ?<br>
>>><br>
>>> 2. In hw/timer/m48t59.c has no functionality that I see from having a<br>
>>> look at it (not in depth) to save or restore the nvram's contents for<br>
>>> sparc. Is there a general facility that qemu has that provides such a<br>
>>> functionality - i.e. is there a general qemu save and restore framework ?<br>
>>><br>
>>> 3. Is there an example somebody could point me to that implements<br>
>>> something similar ? Imitation is the sincerest of flattery ....<br>
>>><br>
>>> 4. All the alarm and watchdog functionality that the m48t08 provides, is<br>
>>> that used on sparc too ?<br>
>>><br>
>>> 5. Besides what is in<br>
>>> <a href="http://wiki.qemu.org/Documentation/GettingStartedDevelopers" rel="noreferrer" target="_blank">http://wiki.qemu.org/Documentation/GettingStartedDevelopers</a>, is there<br>
>>> some qemu coding documentation to make it faster for somebody unfamilar<br>
>>> with qemu's code like me to be able to implement something ? I'd like to<br>
>>> spend a few evenings on this, produce a patch and move on.<br>
>>><br>
>>> Thanks<br>
>>> BR<br>
>>> Max.<br>
>><br>
><br>
> This sounds like a good idea. Having OpenBIOS settings actually be saved<br>
> between boots<br>
> would make things more real.<br>
><br>
> Mark, do you think it is possible for a QEMU command line option to<br>
> actually load the<br>
> saved OpenBIOS settings from a file and restore them into memory? I'm<br>
> thinking something<br>
> along the lines of -prom-memory <file name>.<br>
><br>
> Max, there is a project that you should probably look at called<br>
> OpenBIOS. It implements<br>
> an implementation of Open Firmware. Here is where more info can be<br>
> found: <a href="http://www.openfirmware.info/Welcome_to_OpenBIOS" rel="noreferrer" target="_blank">http://www.openfirmware.info/Welcome_to_OpenBIOS</a>. If you do want<br>
> to implement this feature,<br>
> it would help to know how the BIOS is implemented.<br>
<br>
>From memory the reason this hasn't been done is because the NVRAM<br>
interface is used across multiple architectures and there hasn't been a<br>
solution devised that would work well enough for all of them. Then again<br>
as the BIOSs involved have continued to develop, it may be now that some<br>
of the issues can now be solved so it never hurts to ask on the -devel list.<br>
<br>
May I ask why you want to save the NVRAM state between boots on SPARC?<br>
My guess would be that you're using a real SS-5 PROM image and looking<br>
to avoid having to type boot commands into the terminal after every<br>
reset. If this is the case then you may be pleasantly surprised using<br>
QEMU 2.4 with the built-in OpenBIOS as there were fixes applied during<br>
the last development cycle that were enough to allow SunOS 4.1.4 to boot.<br>
<br>
If this solution works for you and you are keen use the alarm/watchdog<br>
features then there may be some scope to add the required features to<br>
QEMU/OpenBIOS in future.<br>
<br>
<br>
ATB,<br>
<br>
Mark.<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Sun, 13 Sep 2015 17:55:39 -0400<br>
From: Programmingkid <<a href="mailto:programmingkidx@gmail.com">programmingkidx@gmail.com</a>><br>
To: Bodo Eggert <<a href="mailto:7eggert@online.de">7eggert@online.de</a>><br>
Cc: <a href="mailto:jim@suresafe.co.uk">jim@suresafe.co.uk</a>, The OpenBIOS Mailinglist<br>
        <<a href="mailto:openbios@openbios.org">openbios@openbios.org</a>>, Mark Cave-Ayland<br>
        <<a href="mailto:mark.cave-ayland@ilande.co.uk">mark.cave-ayland@ilande.co.uk</a>>, qemu-discuss<br>
        <<a href="mailto:qemu-discuss@nongnu.org">qemu-discuss@nongnu.org</a>><br>
Subject: Re: [OpenBIOS] [Qemu-discuss] Qemu-system-sparc: What would I<br>
        need    to change to add functionality to save the nvram content        between<br>
        boots ?<br>
Message-ID: <<a href="mailto:57E81229-4BF3-4354-A896-94070580C3FD@gmail.com">57E81229-4BF3-4354-A896-94070580C3FD@gmail.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
<br>
On Sep 13, 2015, at 5:50 PM, Bodo Eggert wrote:<br>
<br>
> On Sun, 13 Sep 2015, Mark Cave-Ayland wrote:<br>
>> On 11/09/15 19:01, Programmingkid wrote:<br>
><br>
>>> Mark, do you think it is possible for a QEMU command line option to<br>
>>> actually load the<br>
>>> saved OpenBIOS settings from a file and restore them into memory? I'm<br>
>>> thinking something<br>
>>> along the lines of -prom-memory <file name>.<br>
><br>
>>> From memory the reason this hasn't been done is because the NVRAM<br>
>> interface is used across multiple architectures and there hasn't been a<br>
>> solution devised that would work well enough for all of them. Then again<br>
>> as the BIOSs involved have continued to develop, it may be now that some<br>
>> of the issues can now be solved so it never hurts to ask on the -devel list.<br>
><br>
> I'm wondering, why wouldn't it be enough to memmap a nvram file instead of<br>
> mallocing (or whatever) the memory area?<br>
<br>
What advantage does mmap() have over malloc()? I think malloc() is a lot more<br>
familiar to use than mmap().<br>
<br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Sun, 13 Sep 2015 23:50:31 +0200 (CEST)<br>
From: Bodo Eggert <<a href="mailto:7eggert@online.de">7eggert@online.de</a>><br>
To: Mark Cave-Ayland <<a href="mailto:mark.cave-ayland@ilande.co.uk">mark.cave-ayland@ilande.co.uk</a>><br>
Cc: <a href="mailto:jim@suresafe.co.uk">jim@suresafe.co.uk</a>, Programmingkid <<a href="mailto:programmingkidx@gmail.com">programmingkidx@gmail.com</a>>,<br>
        The OpenBIOS Mailinglist <<a href="mailto:openbios@openbios.org">openbios@openbios.org</a>>, qemu-discuss<br>
        <<a href="mailto:qemu-discuss@nongnu.org">qemu-discuss@nongnu.org</a>><br>
Subject: Re: [OpenBIOS] [Qemu-discuss] Qemu-system-sparc: What would I<br>
        need to change to add functionality to save the nvram content between<br>
        boots ?<br>
Message-ID: <alpine.DEB.2.11.1509132343080.9673@be10><br>
Content-Type: TEXT/PLAIN; charset=US-ASCII<br>
<br>
On Sun, 13 Sep 2015, Mark Cave-Ayland wrote:<br>
> On 11/09/15 19:01, Programmingkid wrote:<br>
<br>
> > Mark, do you think it is possible for a QEMU command line option to<br>
> > actually load the<br>
> > saved OpenBIOS settings from a file and restore them into memory? I'm<br>
> > thinking something<br>
> > along the lines of -prom-memory <file name>.<br>
<br>
> >From memory the reason this hasn't been done is because the NVRAM<br>
> interface is used across multiple architectures and there hasn't been a<br>
> solution devised that would work well enough for all of them. Then again<br>
> as the BIOSs involved have continued to develop, it may be now that some<br>
> of the issues can now be solved so it never hurts to ask on the -devel list.<br>
<br>
I'm wondering, why wouldn't it be enough to memmap a nvram file instead of<br>
mallocing (or whatever) the memory area?<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
--<br>
OpenBIOS mailing list<br>
<a href="mailto:OpenBIOS@openbios.org">OpenBIOS@openbios.org</a><br>
<a href="http://www.openfirmware.info/mailman/listinfo/openbios" rel="noreferrer" target="_blank">http://www.openfirmware.info/mailman/listinfo/openbios</a><br>
<br>
------------------------------<br>
<br>
End of OpenBIOS Digest, Vol 125, Issue 2<br>
****************************************<br>
</blockquote></div>