Skip to contentSkip to conversation

Documentation:openrisc: Add build instructions with initramfs

PATCH Superseded Ann Yun 2 participants 2 messages Apr 26, 2025

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Ann Yun

author
#0 lore raw

PATCH v2 1/1 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

---
V1 -> V2: Mention Documentation/filesystems/ramfs-rootfs-initramfs.rst

 Documentation/arch/openrisc/openrisc_port.rst | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/arch/openrisc/openrisc_port.rst +6 -0
index a8f307a3b499..69aed4069e3b 100644
@@ -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
Signature · 1 line
2.37.2
maintainer
#1 lore raw
Quoted 16 lines · Ann Yun

Mention how to include initramfs when building the kernel and direct the reader to ramfs-rootfs-initramfs.rst documentation for more details

---
V1 -> V2: Mention Documentation/filesystems/ramfs-rootfs-initramfs.rst

 Documentation/arch/openrisc/openrisc_port.rst | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/arch/openrisc/openrisc_port.rst +0 -0
index a8f307a3b499..69aed4069e3b 100644

Documentation/arch/openrisc/openrisc_port.rst Build the Linux kernel as usual:: · line 47

Quoted 8 lines
Documentation/arch/openrisc/openrisc_port.rst +5 -0
@@ -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. 

This is one trailing whitespace on the above line. Can it be removed

-Stafford

Quoted 6 lines
Documentation/arch/openrisc/openrisc_port.rst +0 -0
 3) Running on FPGA (optional)
 
 The OpenRISC community typically uses FuseSoC to manage building and programming
Signature · 1 line
2.37.2