Skip to content

Commit 6427c16

Browse files
kot-begemot-ukrichardweinberger
authored andcommitted
um: Document dtb command line option
Add documentation for the dtb command line option and the ability to load/parse device trees. Signed-off-by: Anton Ivanov <anton.ivanov@cambridgegreys.com> Reviewed-by: Vincent Whitchurch <vincent.whitchurch@axis.com> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent 2a6852c commit 6427c16

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Documentation/virt/uml/user_mode_linux_howto_v2.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,26 @@ E.g. ``os_close_file()`` is just a wrapper around ``close()``
11891189
which ensures that the userspace function close does not clash
11901190
with similarly named function(s) in the kernel part.
11911191

1192+
Using UML as a Test Platform
1193+
============================
1194+
1195+
UML is an excellent test platform for device driver development. As
1196+
with most things UML, "some user assembly may be required". It is
1197+
up to the user to build their emulation environment. UML at present
1198+
provides only the kernel infrastructure.
1199+
1200+
Part of this infrastructure is the ability to load and parse fdt
1201+
device tree blobs as used in Arm or Open Firmware platforms. These
1202+
are supplied as an optional extra argument to the kernel command
1203+
line::
1204+
1205+
dtb=filename
1206+
1207+
The device tree is loaded and parsed at boottime and is accessible by
1208+
drivers which query it. At this moment in time this facility is
1209+
intended solely for development purposes. UML's own devices do not
1210+
query the device tree.
1211+
11921212
Security Considerations
11931213
-----------------------
11941214

0 commit comments

Comments
 (0)