<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div class="Am aO9 Al editable LW-avf tS-tW tS-tY" tabindex="1" style="min-height:85px" spellcheck="false">
On Mon, Aug 23, 2021 at 9:29 PM Chris Johns <chrisj@rtems.org> wrote:<br>
><br>
> Hi,<br>
><br>
> Could you please explain this file?<br>
><br>
> Where is the source?<br>
><br>
> Why would we allow a binay blob into the tester like this?<br>
<br>
Hi Chris,<br>
<br>
Running MicroBlaze tests on QEMU requires an appropriate DTB file to pass to QEMU via the "-hw-dtb" flag. There does not appear to be a way to pass the device tree source to QEMU.
<div><br>
</div>
<div>This particular DTB comes from Xilinx as part of their KCU105 BSP. It seems most sensible to store it next to the tester configuration similar to the other device tree files in that directory (psim-device-tree, etc.).
<div><br>
</div>
<div>I realize that this is a binary file and the other device tree files in tester/rtems/testing/bsps are not, but it seems that this needs to live alongside the BSP configuration so that it can be referenced by kcu105_qemu.ini.<br>
<br>
><br>
> This seems specific to a set up or a BSP and not the tester. I am not<br>
> comfortable with this approach. Have alternative approaches have you considered?</div>
<div><br>
</div>
<div>I am not aware of another way that would ensure consistency with the tester configuration. We could require that a user obtain the DTB from elsewhere and copy it to the correct directory, but that seems a lot more involved than just including the needed
file and would be more difficult to keep consistent with any future changes that might be needed.</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Alex</div>
<div><br>
><br>
> Chris<br>
><br>
> On 24/8/21 4:46 am, Alex White wrote:<br>
> > ---<br>
> > tester/rtems/testing/bsps/kcu105.dtb | Bin 0 -> 15256 bytes<br>
> > tester/rtems/testing/bsps/kcu105_qemu.ini | 38 ++++++++++++++++++++++<br>
> > 2 files changed, 38 insertions(+)<br>
> > create mode 100644 tester/rtems/testing/bsps/kcu105.dtb<br>
> > create mode 100644 tester/rtems/testing/bsps/kcu105_qemu.ini<br>
> ><br>
> > diff --git a/tester/rtems/testing/bsps/kcu105.dtb b/tester/rtems/testing/bsps/kcu105.dtb<br>
> > new file mode 100644<br>
> > index 0000000000000000000000000000000000000000..998e8c03b74d8d9ddc82b5f6fa53242415abbd84<br>
> > GIT binary patch<br>
> > literal 15256<br>
> ><br>
><br>
> Chris<br>
> _______________________________________________<br>
> devel mailing list<br>
> devel@rtems.org<br>
> http://lists.rtems.org/mailman/listinfo/devel</div>
</div>
</div>
<br>
</div>
</body>
</html>