Re: Cross Linux from Scratch x86 to RISC-V

"Nakano Miku" ([email protected] via lfs-support Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.support
Message-ID <TYWPR01MB10630E75F2139E74F637597BFAC7D2@TYWPR01MB10630.jpnprd01.prod.outlook.com>
Thank you all! And I appreciate every work you've done!

________________________________
From: [email protected] <[email protected]> on behalf of Xi Ruoyao <[email protected]>
Sent: Monday, October 7, 2024 12:15 AM
To: [email protected] <[email protected]>
Subject: Re: [lfs-support] Cross Linux from Scratch x86 to RISC-V

On Sun, 2024-10-06 at 11:51 -0400, Rahul Chandra wrote:
> On October 6, 2024 10:22:44 AM EDT, Nakano Miku
> <[email protected]> wrote:
> > Hello, I wonder if there is a tutorial book similar to this LFS
> > tutorial for cross compiling LFS from x86 to RISC-V? I looked up
> > https://jpn01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftrac.clfs.org%2Fwiki%2Fread&data=05%7C02%7C%7Cc1e9690e79a24462c2c708dce6222e12%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638638281728486457%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=KQqaWg7aisRq19xsabwqIGYfVTKbDL0GKggsnQhabDY%3D&reserved=0<https://trac.clfs.org/wiki/read> and I didn't see RISC-V.
> >
> > Thanks!
>
> AFAIK none of us editors have a working RISC-V hardware that works
> with upstream Linux.

And the original CLFS project is dead.

> You can try Xi's branch of clfs-ng
> <https://jpn01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linuxfromscratch.org%2F~xry111%2Flfs%2F&data=05%7C02%7C%7Cc1e9690e79a24462c2c708dce6222e12%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638638281728507629%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=zgNjzfVHNqAwevaxBmhYbXuISD66DpywMF8eZJqQY1g%3D&reserved=0<https://www.linuxfromscratch.org/~xry111/lfs/>> and see if that
> works.  If you have any problems feel free to report them here or in
> lfs-dev.  It will help us verify more hardware.

clfs-ng is a "x86 -> x86" cross build.  Many things will need to be
adapted for RISC-V.

I have a local branch building LFS on RISC-V based on LFS 12.1, but I've
not built LFS 12.2 on RISC-V nor uploaded the branch yet because the
entire RISC-V ecosystem is premature and I alone cannot make things
mature enough for me to publish.

I'd like to have an RISC-V board capable to run the upstream kernel and
the upstream GRUB (i.e. supporting UEFI) before publishing the RISC-V
branch, to minimize the difference between LFS trunk and the branch.

And sorry, things like "you should support RISC-V because it's an open
architecture and more moral than other architectures" will only annoy me
instead of motivate me.  The hardware vendors have got all the money
selling the boards (including some money from I) so they should work
harder than me, i.e. they should try harder to make their things support
upstream kernel and UEFI, instead of saying stupid sh*t like "just use
our distro" or "just use our kernel forked from Linux-5.4."

--
Xi Ruoyao <[email protected]>
School of Aerospace Science and Technology, Xidian University

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-support
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.