File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ See [How to evaluate Nuclei Linux SDK in docker](https://github.com/Nuclei-Softw
2222- Build dependencies
2323 - packages: see [ apt.txt] ( .github/apt.txt )
2424 - python pip packages: [ pipreq.txt] ( .github/pipreq.txt )
25- - Get prebuilt qemu and openocd 2025.02 from [ Nuclei Development Tools] ( https://nucleisys.com/download.php#tools )
25+ - Get prebuilt qemu and openocd 2025.10 from [ Nuclei Development Tools] ( https://nucleisys.com/download.php#tools )
2626- Setup qemu and openocd and add it into ** PATH**
2727- mtools version >= 4.0.24
2828
Original file line number Diff line number Diff line change 55硬件:NUCLEI RISC-V Core with hypervisor extension
66软件:Linux SDK + kvmtool 工具
77
8+ > [ !NOTE]
9+ > 如果需要在Nuclei Qemu上体验,需要升级到Nuclei Qemu 2025.10版本
10+
811## 1.编译kvmtool虚拟化应用程序
912
13+ > - 本分支最新代码已经将 预编译好的 ` kvmtool ` + ` Guest Linux Kernel ` 放在了 conf/evalsoc/kvm 目录下
14+ > - 因此如果不想重新编译这些工具,可以直接跳过 1 + 2 步骤,也不需要手动拷贝这些工具了,这个已经做到Makefile里面
15+ > 自动拷贝过去,只需要登录 host linux 内核以后执行 ` ./kvm/kvm.sh ` 即可体验, 执行log参见 cd5f1d7317b63027
16+
1017kvmtool 是一个轻量级的工具,用于在 Linux 上托管 KVM 客户机,它是一个纯虚拟化工具,仅支持运行相同架构的客户机。
1118
12191)编译dtc,安装libfdt库到toolchain lib
@@ -71,11 +78,14 @@ make SOC=evalsoc CORE=ux900fd freeloader -j4
7178make SOC=evalsoc CORE=ux900fd bootimages -j4
7279cd ..
7380```
74- * 注意:在linux上使用aia中断控制器时,dts中cpu节点个数要按照实际情况来写,不支持自动探测不存在的core,因为ipi通过msi中断来实现,imsic在core内部,core不存在时,imsic对应的地址我们硬件没有实现,所以软件dts 配置的cpu core数目要小于等于硬件cpu core数目。*
7581
76- 将前面编译的lkvm-static,guest linux内核Image 拷贝到rootfs中,重新编译rootfs。
82+ > [ !CAUTION]
83+ > ** 注意** :在linux上使用aia中断控制器时,dts中cpu节点个数要按照实际情况来写,不支持自动探测不存在的core,因为ipi通过msi中断来实现,imsic在core内部,core不存在时,imsic对应的地址我们硬件没有实现,所以软件dts 配置的cpu core数目要小于等于硬件cpu core数目。
84+
85+ 将前面编译的`` lkvm-static `` ,guest linux内核`` Image `` 拷贝到rootfs中,重新编译rootfs。
7786
7887``` shell
88+ # 如果是使用我们仓库里面预编译好的kvm tool和guest linux kernel,下面的命令不需要支持
7989cp kvmtool/lkvm-static nuclei-linux-sdk/work/evalsoc/buildroot_initramfs_sysroot/usr/bin/
8090cp linux/arch/riscv/boot/Image nuclei-linux-sdk/work/evalsoc/buildroot_initramfs_sysroot/usr/bin/
8191cd nuclei-linux-sdk
You can’t perform that action at this time.
0 commit comments