summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnn Yun <by.ann.yun@gmail.com>2025-04-27 03:07:26 +0300
committerStafford Horne <shorne@gmail.com>2025-05-06 19:12:22 +0300
commitaf69647e995c6bf20733c596277938c4348a6c70 (patch)
treeea878d4beca880a6fb181fff5f1e9d3a3a055315
parent92a09c47464d040866cf2b4cd052bc60555185fb (diff)
downloadlinux-af69647e995c6bf20733c596277938c4348a6c70.tar.xz
Documentation:openrisc: Add build instructions with initramfs
Mention how to include initramfs when building the kernel and direct the reader to ramfs-rootfs-initramfs.rst documentation for more details Signed-off-by: Ann Yun <by.ann.yun@gmail.com> Signed-off-by: Stafford Horne <shorne@gmail.com>
-rw-r--r--Documentation/arch/openrisc/openrisc_port.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/arch/openrisc/openrisc_port.rst b/Documentation/arch/openrisc/openrisc_port.rst
index a8f307a3b499..60b0a9e51d70 100644
--- a/Documentation/arch/openrisc/openrisc_port.rst
+++ b/Documentation/arch/openrisc/openrisc_port.rst
@@ -40,6 +40,12 @@ Build the Linux kernel as usual::
make ARCH=openrisc CROSS_COMPILE="or1k-linux-" defconfig
make ARCH=openrisc CROSS_COMPILE="or1k-linux-"
+If you want to embed initramfs in the kernel, also pass ``CONFIG_INITRAMFS_SOURCE``. For example::
+
+ make ARCH=openrisc CROSS_COMPILE="or1k-linux-" CONFIG_INITRAMFS_SOURCE="path/to/rootfs path/to/devnodes"
+
+For more information on this, please check Documentation/filesystems/ramfs-rootfs-initramfs.rst.
+
3) Running on FPGA (optional)
The OpenRISC community typically uses FuseSoC to manage building and programming