lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aAyeY-cFSDuLYnJZ@antec>
Date: Sat, 26 Apr 2025 09:50:43 +0100
From: Stafford Horne <shorne@...il.com>
To: Ann Yun <by.ann.yun@...il.com>
Cc: jonas@...thpole.se, stefan.kristiansson@...nalahti.fi, corbet@....net,
	linux-openrisc@...r.kernel.org, linux-doc@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Documentation:openrisc: Add build instructions with
 initramfs

On Fri, Apr 25, 2025 at 04:10:18PM -0400, Ann Yun wrote:
> Mention how to include initramfs when building the kernel
> 
> Signed-off-by: Ann Yun <by.ann.yun@...il.com>
> ---
>  Documentation/arch/openrisc/openrisc_port.rst | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/Documentation/arch/openrisc/openrisc_port.rst b/Documentation/arch/openrisc/openrisc_port.rst
> index a8f307a3b499..4ab28879d7ed 100644
> --- a/Documentation/arch/openrisc/openrisc_port.rst
> +++ b/Documentation/arch/openrisc/openrisc_port.rst
> @@ -40,6 +40,10 @@ 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"
> +

I think this is good, but maybe we can mention to refer to Documentation/filesystems/ramfs-rootfs-initramfs.rst
for more details on this?

Also, it may be helpful to mention we can get pre-built busybox rootfs images
here:

  https://github.com/stffrdhrn/or1k-rootfs-build/releases

But if we do that then it would be better to show how to use thos rootfs images,
which maybe something better we have in our openrisc/tutorials[0].

-Stafford

[0] https://github.com/openrisc/tutorials

>  3) Running on FPGA (optional)
>  
>  The OpenRISC community typically uses FuseSoC to manage building and programming
> -- 
> 2.37.2
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ