核心

奶油V先锋运行Linux内核。

中文的Linux

所有我认识到的与milkV开拓者一起工作的操作系统(发行版)都运行Linux内核。

核心来源

最佳的最新和最棒的milkV先驱的内核源代码似乎来自Sophgo存储库。

  • Sophgo仓库具有支持并显示最近更新。这是目前我已经能正常工作的唯一内核。 https://github.com/sophgo/linux-riscv

  • 股票的Fedora 38映像运行内�

  • The there is a kernel source in the milkv-pioneer repositories that seems like it would be ideal. But it is just a single branch, with no tags. It has just the 6.1.22 source, which doesn't seem to be the right one for this board, despite having a name that makes it seem like the right repo. It also hasn't been touched since May, 2023, so it is older than the image that ships with the Pioneer: https://github.com/milkv-pioneer/linux-riscv

  • 在这里有Linus的内核和/或“linux-stable”仓库。还不清楚所有的Pioneer组件是否已上游。然而,这可能并不大可能。

内核构建

一个Debian的内核可以这样构建。

mkdir -p sophgo
cd sophgo/
git clone https://github.com/sophgo/linux-riscv
cd linux-riscv/
make ARCH=riscv sophgo_mango_ubuntu_defconfig
scripts/config --disable DEBUG_INFO
make menuconfig
make -j$(nproc) deb-pkg
cd ../
sudo dpkg -i linux-headers-*_riscv64.deb linux-image-*_riscv64.deb linux-libc-dev_*_riscv64.deb 
mkdir -p /boot/dtb/debian/
sudo cp -p /usr/lib/linux-image-6.1.61-0fyi+/sophgo/mango-milkv-pioneer.dtb /boot/dtb/debian/

vim /boot/extlinux/extlinux.conf

label debian
        menu label Debian
        linux /vmlinuz-6.1.61-0fyi+
        initrd /initrd.img-6.1.61-0fyi+
        fdt /dtb/debian/mango-milkv-pioneer.dtb
        append console=ttyS0,115200 root=/dev/nvme0n1p5 rootfstype=ext4  rootwait rw earlycon selinux=0 LANG=en_US.UTF-8

费多拉Kernel配置

Below is a link to the kernel .config that ships with the stock Fedora OS.