Messages in this thread | | | Subject | Re: [PATCH 1/1] LoongArch: Fixed loongarch kernel csr_xxx implicit declaration. | From | Xi Ruoyao <> | Date | Wed, 31 Aug 2022 19:09:47 +0800 |
| |
On Wed, 2022-08-31 at 15:54 +0800, 李宇鹏 wrote: > > thank you for your reply。 > I used the latest gcc tool on the official website of loongson,gcc- > 8.3.0. > http://www.loongnix.cn/zh/toolchain/GNU/
Vanilla kernel cannot work with Loongnix:
1. In Loongnix, GRUB loads pass the essential information to the kernel following "Loongson Firmware-Kernel Interface Specification". Vanilla kernel does not support it and will never support it. 2. In Loongnix, the syscall numbers are different and the layout of some data structures used in kernel UAPI is different. Any Loongnix application invoking a syscall will likely blow up immediately on a vanilla kernel.
These two problems are very difficult. There is some plan to insert compatibility layers to work around them, but not even one line of code has been written AFAIK.
So if you want to build a kernel for Loongnix, don't use the vanilla kernel. If you just want to build a vanilla kernel with a pre-built cross toolchain, use the toolchain from https://kernel.org/pub/tools/crosstool/. -- Xi Ruoyao <xry111@xry111.site> School of Aerospace Science and Technology, Xidian University
| |