Re: Cross Linux from Scratch x86 to RISC-V
| Newsgroups | gmane.linux.lfs.support |
|---|---|
| Message-ID | <[email protected]> |
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://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://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