Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update qemu doc for more detailed command line options #7

Merged
merged 3 commits into from
Jul 29, 2024
Merged

Conversation

bigmagic123
Copy link
Contributor

Add descriptions for some commonly used parameters

Copy link
Member

@fanghuaqi fanghuaqi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bigmagic123 请重新修改下文档再做提交。

格式需要做一些大规模的变更,介绍常见的裸机和Linux的命令行样例是什么样的,然后挨个选项进行详细的介绍,每个选项有哪些参数,什么含义都需要介绍下。

@@ -22,13 +26,13 @@ You can enter qemu-system-riscv32 --help to view the parameters that can be conf
:align: center
:alt: Nuclei QEMU CPUs Support

* ``-M nuclei_evalsoc,download=ddr,soc-cfg=evalsoc.json``:
* ``-M nuclei_evalsoc,download=ddr,soc-cfg=evalsoc.json,debug=1``:

``-M`` represents ``machine``, which means selecting the type of machine. Currently, Nuclei QEMU has added "nuclei_demosoc" (which will be deprecated in future versions) and "nuclei_evalsoc" to the existing options.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里重点提一下 nuclei_evalsoc, 就说 nuclei_demosoc 已经弃用了,后续不再维护。

@@ -22,13 +26,13 @@ You can enter qemu-system-riscv32 --help to view the parameters that can be conf
:align: center
:alt: Nuclei QEMU CPUs Support

* ``-M nuclei_evalsoc,download=ddr,soc-cfg=evalsoc.json``:
* ``-M nuclei_evalsoc,download=ddr,soc-cfg=evalsoc.json,debug=1``:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

选项讲解的时候需要说一下哪些是可选的, 哪些是必要的。

例如 这个 -M nuclei_evalsoc,download=ddr 这个就是必须的,且这里的download=ddr里面的ddr有哪些参数可以配置,后面其他的可选项,有哪些参数。

类似的 -cpu也是这样介绍。

You can enter qemu-system-riscv32 --help to view the parameters that can be configured in Nuclei QEMU. Here are some commonly used parameters:
You can enter qemu-system-riscv32 --help to view the parameters that can be configured in Nuclei QEMU.

This is an example of a fully functional parameter for nuclei qemu: ``qemu-system-riscv32 -M nuclei_evalsoc,download=ddr,soc-cfg=evalsoc.json,debug=1 -cpu nuclei-n300fd,ext=_v_xxldsp,vlen=128,elen=64,s=true -m 512M -smp 1 -icount shift=0 -nodefaults -nographic -serial stdio -kernel dhrystone.elf``.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

除了关键的 -M-cpu 需要介绍,其他的选项例如 -m-smp , -icount shift=0 -nodefaults -nographic -serial stdio 这些选项都需要介绍下。

然后就是 我们处理 -kernel-bios的区别,主要是一个针对 ECLIC中断模式,面向裸机,一个针对 PLIC中断模式 + CLINT Timer,面向Linux,这点需要写出来,并详细描述下。

最好整个文档重整下格式,不要修修补补

@@ -12,7 +12,11 @@ Design and Architecture
=======================

Nuclei QEMU has several types of parameters that can be configured.
You can enter qemu-system-riscv32 --help to view the parameters that can be configured in Nuclei QEMU. Here are some commonly used parameters:
You can enter qemu-system-riscv32 --help to view the parameters that can be configured in Nuclei QEMU.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

qemu-system-riscv32 --help -> qemu-system-riscv32 --help

@fanghuaqi fanghuaqi changed the title update qemu doc update qemu doc for more detailed command line options Jul 26, 2024
@fanghuaqi
Copy link
Member

@bigmagic123 更新下。

@fanghuaqi fanghuaqi merged commit 06c7c47 into master Jul 29, 2024
2 checks passed
@fanghuaqi fanghuaqi deleted the qemu_doc branch July 29, 2024 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants