Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH next 1/1] configs/spike_riscv64: bump kernel to 6.1.14
@ 2023-02-26 13:18 Julien Olivain
  2023-03-12 17:45 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Julien Olivain @ 2023-02-26 13:18 UTC (permalink / raw)
  To: buildroot; +Cc: Julien Olivain

Linux Kernel 6.1 now being officially promoted to be a LTS, this
commit bump the kernel version of this defconfig to 6.1.14.

A Kernel config fragment "linux.fragment" is now needed as the kernel
no longer enable SBI v0.1 support and the earlycon RISC-V SBI in its
riscv arch defconfig. See [1] [2].

The Spike riscv-isa-sim was updated upstream accordingly [3].

In order to keep a smooth transition, this kernel config fragment
re-enable those options to make sure this kernel will work with
both old Spike versions (not including commit [3] like the v1.1.0
currently included in Buildroot), and newer versions. This commit
was also successfully tested with riscv-isa-sim at commit
0d1a48c0c0.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6f562570b9c5d6a3e30d87aec60a9d8f22a3203c
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3938d5a2f9369d1ebd56320629fed395ce327e9c
[3] https://github.com/riscv-software-src/riscv-isa-sim/commit/191634d2854dfed448fc323195f9b65c305e2d77

Signed-off-by: Julien Olivain <ju.o@free.fr>
---
Patch tested on top of branch next at commit b793f3a with commands:

    make spike_riscv64_defconfig
    make
    board/spike/riscv64/start.sh
---
 board/spike/riscv64/linux.fragment | 3 +++
 configs/spike_riscv64_defconfig    | 5 +++--
 2 files changed, 6 insertions(+), 2 deletions(-)
 create mode 100644 board/spike/riscv64/linux.fragment

diff --git a/board/spike/riscv64/linux.fragment b/board/spike/riscv64/linux.fragment
new file mode 100644
index 0000000000..b443b0ab36
--- /dev/null
+++ b/board/spike/riscv64/linux.fragment
@@ -0,0 +1,3 @@
+CONFIG_RISCV_SBI_V01=y
+CONFIG_HVC_RISCV_SBI=y
+CONFIG_SERIAL_EARLYCON_RISCV_SBI=y
diff --git a/configs/spike_riscv64_defconfig b/configs/spike_riscv64_defconfig
index e23f1ce32c..73ea566084 100644
--- a/configs/spike_riscv64_defconfig
+++ b/configs/spike_riscv64_defconfig
@@ -2,9 +2,10 @@ BR2_riscv=y
 BR2_RISCV_64=y
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.86"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.1.14"
 BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/spike/riscv64/linux.fragment"
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_1=y
 BR2_TARGET_ROOTFS_CPIO=y
 # BR2_TARGET_ROOTFS_TAR is not set
 BR2_TARGET_OPENSBI=y
-- 
2.39.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH next 1/1] configs/spike_riscv64: bump kernel to 6.1.14
  2023-02-26 13:18 [Buildroot] [PATCH next 1/1] configs/spike_riscv64: bump kernel to 6.1.14 Julien Olivain
@ 2023-03-12 17:45 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-03-12 17:45 UTC (permalink / raw)
  To: Julien Olivain; +Cc: buildroot

On Sun, 26 Feb 2023 14:18:38 +0100
Julien Olivain <ju.o@free.fr> wrote:

> Linux Kernel 6.1 now being officially promoted to be a LTS, this
> commit bump the kernel version of this defconfig to 6.1.14.
> 
> A Kernel config fragment "linux.fragment" is now needed as the kernel
> no longer enable SBI v0.1 support and the earlycon RISC-V SBI in its
> riscv arch defconfig. See [1] [2].
> 
> The Spike riscv-isa-sim was updated upstream accordingly [3].
> 
> In order to keep a smooth transition, this kernel config fragment
> re-enable those options to make sure this kernel will work with
> both old Spike versions (not including commit [3] like the v1.1.0
> currently included in Buildroot), and newer versions. This commit
> was also successfully tested with riscv-isa-sim at commit
> 0d1a48c0c0.
> 
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6f562570b9c5d6a3e30d87aec60a9d8f22a3203c
> [2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3938d5a2f9369d1ebd56320629fed395ce327e9c
> [3] https://github.com/riscv-software-src/riscv-isa-sim/commit/191634d2854dfed448fc323195f9b65c305e2d77
> 
> Signed-off-by: Julien Olivain <ju.o@free.fr>
> ---
> Patch tested on top of branch next at commit b793f3a with commands:

Applied to next, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-12 17:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-26 13:18 [Buildroot] [PATCH next 1/1] configs/spike_riscv64: bump kernel to 6.1.14 Julien Olivain
2023-03-12 17:45 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox