``` rust
// axvm TODO: ...
pub struct AxVMCrateConfig {
/// The location of the image, default is 'fs'.
pub image_location: Option<String>,
/// The size of kernel.
pub kernel_size: Option<usize>,
/// The size of dtb.
pub dtb_size: Option<usize>,
}
Then we can use make A=(pwd) LOG=debug ARCH=aarch64 BLK=y VM_CONFIGS=configs/nimbos-aarch64.toml run to start VMs.
use make A=(pwd) LOG=debug ARCH=aarch64 BLK=y VM_CONFIGS=configs/rk3588-aarch64.toml kernel to build RK3588 kernel.
Adapting for rk3588.
Loading the OS Image
load from memory
image_location = "memory" kernel_path = "nimbos-aarch64.bin" kernel_size = 0x40_0000
dtb_path = "nimbos-aarch64.dtb"
dtb_size = 0x8_0000
load from file system
image_location = "fs"
kernel_path = "nimbos-aarch64.bin"
memory_regions = [ ...
Then we can use
make A=(pwd) LOG=debug ARCH=aarch64 BLK=y VM_CONFIGS=configs/nimbos-aarch64.toml run
to start VMs. usemake A=(pwd) LOG=debug ARCH=aarch64 BLK=y VM_CONFIGS=configs/rk3588-aarch64.toml kernel
to build RK3588 kernel.