mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
dt: Add -machine dumpdtb option to dump the current dtb
Now that we are dynamically creating the dtb, it's really useful to be able to dump the created blob for debugging. This patch implements a -machine dumpdtb=<file> option for e500 that dumps the dtb exactly in the form the guest would get it to disk. It can then be analyzed by dtc to get information about the guest configuration. Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
2636fcb653
commit
25b42708cd
2 changed files with 22 additions and 0 deletions
|
@ -583,6 +583,10 @@ static QemuOptsList qemu_machine_opts = {
|
|||
.name = "dtb",
|
||||
.type = QEMU_OPT_STRING,
|
||||
.help = "Linux kernel device tree file",
|
||||
}, {
|
||||
.name = "dumpdtb",
|
||||
.type = QEMU_OPT_STRING,
|
||||
.help = "Dump current dtb to a file and quit",
|
||||
},
|
||||
{ /* End of list */ }
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue