Skip to content

Commit 6848b4b

Browse files
committed
doc: 更新Nuclei Qemu evalsoc配置说明,添加json配置文件支持
1 parent a6b2811 commit 6848b4b

3 files changed

Lines changed: 23 additions & 0 deletions

File tree

509 KB
Loading

source/ide/advanceusage.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,6 +1332,25 @@ Connect to Running Target
13321332

13331333
|image103|
13341334

1335+
.. _ide_nuclei_qemu_customize_evalsoc:
1336+
1337+
Nuclei Qemu更新evalsoc配置
1338+
---------------------------
1339+
1340+
为了方便在不修改Nuclei QEMU源码的基础上,快速修改Nuclei QEMU evalsoc里面的各种外设的地址和大小以及中断编号,以快速
1341+
适配不同的evalsoc版本,Nuclei Qemu在``-M``选项里面扩展了 :ref:`soc-cfg <qemu_opt_soc_cfg>`用于让客户可以直接编写一个
1342+
json配置文件,然后Qemu命令行类似传一个这样的选项 ``-M nuclei_evalsoc,download=ddr,soc-cfg=evalsoc.json,debug=1``即可修改
1343+
evalsoc的外设配置。
1344+
1345+
而在 Nuclei Studio中,你只需要将编写好的 ``evalsoc.json`` 放在你的工程所在根目录下,然后修改 **Nuclei Qemu Debug Configuration**
1346+
页面的``Debugger`` Tab里面的``Extra Board Options(-M)``即可,这里修改成了 ``,soc-cfg=${project_loc}/evalsoc.json,debug=1`` 然后
1347+
保存调试配置即可。
1348+
1349+
接着就可以按照新的evalsoc的配置来进行Nuclei Qemu的功能调试。
1350+
1351+
|image130|
1352+
1353+
13351354
.. |image1| image:: /asserts/nucleistudio/advanceusage/image2.png
13361355

13371356
.. |image2| image:: /asserts/nucleistudio/advanceusage/image3.png
@@ -1592,6 +1611,8 @@ Connect to Running Target
15921611

15931612
.. |image129| image:: /asserts/nucleistudio/advanceusage/image129.png
15941613

1614+
.. |image130| image:: /asserts/nucleistudio/advanceusage/image130.png
1615+
15951616
.. |image-nice-1| image:: /asserts/nucleistudio/advanceusage/nice-1.png
15961617

15971618
.. |image-nice-2| image:: /asserts/nucleistudio/advanceusage/nice-2.png

source/qemu/intro.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ Let's describe the meaning of this complete command:
249249

250250
``aia-guests=`` will set number of guest MMIO pages for AIA-IMSIC. Valid value should be between 0 and 4.
251251

252+
.. _qemu_opt_soc_cfg:
253+
252254
``soc-cfg=`` is an optional option to pass dynamic modifications to the initial configuration of the machine with a json file. If this parameter is not set, the default value of qemu will be used.
253255

254256
Here is an example of json config file passed to ``soc-cfg=``:

0 commit comments

Comments
 (0)