Skip to content

Commit af69647

Browse files
anngineerystffrdhrn
authored andcommitted
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 <[email protected]> Signed-off-by: Stafford Horne <[email protected]>
1 parent 92a09c4 commit af69647

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/arch/openrisc/openrisc_port.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ Build the Linux kernel as usual::
4040
make ARCH=openrisc CROSS_COMPILE="or1k-linux-" defconfig
4141
make ARCH=openrisc CROSS_COMPILE="or1k-linux-"
4242

43+
If you want to embed initramfs in the kernel, also pass ``CONFIG_INITRAMFS_SOURCE``. For example::
44+
45+
make ARCH=openrisc CROSS_COMPILE="or1k-linux-" CONFIG_INITRAMFS_SOURCE="path/to/rootfs path/to/devnodes"
46+
47+
For more information on this, please check Documentation/filesystems/ramfs-rootfs-initramfs.rst.
48+
4349
3) Running on FPGA (optional)
4450

4551
The OpenRISC community typically uses FuseSoC to manage building and programming

0 commit comments

Comments
 (0)