Alex Richardson has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/68480?usp=email )
Change subject: configs: Add /chosen/stdout-path to riscv/fs_linux.py fdt
......................................................................
configs: Add /chosen/stdout-path to riscv/fs_linux.py fdt
Adding this property makes the console work when booting a FreeBSD image.
Without this property the serial port will have all the output, but
FreeBSD will not use it as the default system console and therefore it
is not possible to send any input on the console.
Change-Id: I04618b5ff0805bbd063bddd54f1f7dd39ebde53e
---
M configs/example/riscv/fs_linux.py
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/configs/example/riscv/fs_linux.py
b/configs/example/riscv/fs_linux.py
index c7b06b2..7f05891 100644
--- a/configs/example/riscv/fs_linux.py
+++ b/configs/example/riscv/fs_linux.py
@@ -132,6 +132,13 @@
else:
root.append(node)
+ # Adding the stdout-path node allows operating systems such as FreeBSD
to
+ # select the serial console to use for the default console.
+ for node_path, node in root.walk():
+ if node.name.startswith("uart@"):
+ chosen_node.append(FdtPropertyStrings("stdout-path",
[node_path]))
+ break
+
fdt = Fdt()
fdt.add_rootnode(root)
fdt.writeDtsFile(path.join(m5.options.outdir, "device.dts"))
--
To view, visit
https://gem5-review.googlesource.com/c/public/gem5/+/68480?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I04618b5ff0805bbd063bddd54f1f7dd39ebde53e
Gerrit-Change-Number: 68480
Gerrit-PatchSet: 1
Gerrit-Owner: Alex Richardson <alexrichard...@google.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org