Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 767937 - sys-kernel/genkernel: Risc-V ARCH support request
Summary: sys-kernel/genkernel: Risc-V ARCH support request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2021-01-30 08:00 UTC by Yixun Lan
Modified: 2021-03-21 23:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to support riscv 001 (0001-riscv-support-parse-riscv-arch.patch,607 bytes, patch)
2021-01-30 14:34 UTC, Yixun Lan
Details | Diff
patch to support riscv 002 (0002-riscv-add-config.sh-and-modules_load.patch,1.29 KB, patch)
2021-01-30 14:36 UTC, Yixun Lan
Details | Diff
patch to support riscv 003 (0003-riscv-add-arch-config-file-which-copy-from-kernel.patch,3.55 KB, patch)
2021-01-30 14:38 UTC, Yixun Lan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yixun Lan archtester gentoo-dev 2021-01-30 08:00:23 UTC
this bug request to add support for building kernel (sys-kernel/gentoo-sources) for ARCH Risc-V.

I have one patch which need review, and already successfully build/run kernel (tested with sys-kernel/gentoo-sources version 5.8.7, 5.10.11) for Risc-V on sifive unleashed board

Reproducible: Always
Comment 1 Yixun Lan archtester gentoo-dev 2021-01-30 14:34:27 UTC
Created attachment 685197 [details, diff]
patch to support riscv 001
Comment 2 Yixun Lan archtester gentoo-dev 2021-01-30 14:36:18 UTC
Created attachment 685200 [details, diff]
patch to support riscv 002

add config.sh and modules_load, which not have much settings
Comment 3 Yixun Lan archtester gentoo-dev 2021-01-30 14:38:50 UTC
Created attachment 685203 [details, diff]
patch to support riscv 003

this is riscv kernel defconfig directly from kernel source, may need tailor to fit into genkernel? need suggestion/review here
Comment 4 Larry the Git Cow gentoo-dev 2021-03-19 02:46:41 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=c541b76e7b401ab685412e1ab95cb77dbc859b20

commit c541b76e7b401ab685412e1ab95cb77dbc859b20
Author:     Yixun Lan <dlan@gentoo.org>
AuthorDate: 2021-03-19 02:13:52 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-03-19 02:45:48 +0000

    Add RISC-V support
    
    Bug: https://bugs.gentoo.org/767937
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 arch/riscv64/arch-config                           | 449 +++++++++++++++++++++
 arch/riscv64/config.sh                             |   8 +
 arch/riscv64/modules_load                          |   2 +
 gen_arch.sh                                        |   3 +
 gen_initramfs.sh                                   |   2 +-
 ...tore-8.31-behavior-on-removed-directories.patch |  86 ++++
 6 files changed, 549 insertions(+), 1 deletion(-)
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2021-03-21 23:21:40 UTC
Released with genkernel-4.2.0!