-
Notifications
You must be signed in to change notification settings - Fork 0
Rust
william edited this page Sep 20, 2022
·
1 revision
- Learn Rust
- Kernel modules Linux/FreeBSD
- Embedded Rust
- OS Development
Additional resources:
I am primarily focused on Rust for Linux. After some testings here is a where I am as at early june, 2022.
- It works on Ubuntu 20.04. I am using Ubuntu 20.04 as VM on M1 macbook and on Intel VirtualBox.
- Ubuntu 20.04 supports clang and llvm 11. Later distros, such as Fedora 36, installs clang and llvm 14, which does not work.
- The kernel can be compiled successfully. All the ko in sample/rust can be insmod and rmmod successfully.
To do:
- Hack the KBuild language
- Hack the overall mechanisms
- Develop my own ko in-tree or out-tree
- Read the Rust for Linux mailing list
I have got this error:
Build error: failed to run custom build command for `linux-kernel-module v0.1.0
Seems that it doesn't work on M1 Linux.
FreeBSD Rust doesn't work on aarch64 FreeBSD.
For Intel mac, Parallels failed to boot the FreeBSD 12 or 13 isntallation disk.
Now using VirtualBox on Intel mac
VirtualBox issue. The good news is that VirtualBox can run on Intel mac again. https://stackoverflow.com/questions/65149373/kernel-driver-not-installed-rc-1908-getting-errors-in-macos-big-sur-11-0-1
edit: This sub-issue, or sub-quest, has been resolved. I ended up running FreeBSD 12.3 in virtualbox on my old Intel mac.