[OpenPower-Firmware] Firmware Sim help
Cédric Le Goater
clg at fr.ibm.com
Tue Oct 6 19:45:03 AEDT 2020
On 10/6/20 10:36 AM, Marty E. Plummer wrote:
> On Tue, Oct 06, 2020 at 10:24:06AM +0200, Cédric Le Goater wrote:
>> On 10/6/20 10:19 AM, Marty E. Plummer wrote:
>>> On Tue, Oct 06, 2020 at 09:10:57AM +0200, Cédric Le Goater wrote:
>>>> On 10/6/20 3:28 AM, Stewart Smith wrote:
>>>>> On Mon, Oct 5, 2020, at 2:45 PM, Daniel M Crowell wrote:
>>>>>> Wish I could help, Simics is all we use internally for Hostboot work.
>>>>>> What is the "power9 functional simulator" you are referring to?
>>>>>
>>>>> It's the name that Mambo goes under when downloading from the public parts of ibm.com
>>>>
>>>>
>>>> and it's a core simulator not a platform simulator, which means it
>>>> has no devices.
>>>>
>>> Yeah. I saw that skiboot had a testing thing for it, which worked with
>>> skiboot, but it seems I misunderstood some stuff about it. I've moved
>>> back to using the qemu-powernv stuff you're working on, patched again
>>> to avoid the 'bios too big' or 'no payload partition' errors.
>>
>> I just increased the maximum size of fw to 16MB, in mainline and in the
>> powernv-5.2 branch.
>>
> Yeah, I see that, but unless I'm mistaken it still tries to grab the
> skiboot partition, even if I set the rom size to 16mb.
If you pass a drive, yes, but you should use '-bios' to pass your own loader.
Here is how we start a 'hostboot' like FW, with a PNOR :
$qemu -machine powernv9,hb-mode=true -smp 1 -m 10 \
-bios $hbb -drive file=./witherspoon.pnor,format=raw,if=mtd \
-serial mon:stdio -nographic -nodefaults
This will also set HRMOR to 0x8000000.
C.
More information about the OpenPower-Firmware
mailing list