arceos-hypervisor / arceos-umhv

Unified modular arceos-hypervisor
8 stars 7 forks source link

Adapting for rk3588. #33

Closed luodeb closed 1 month ago

luodeb commented 1 month ago

Adapting for rk3588.

Loading the OS Image

  1. Add configuration items in configs/*.toml.
    
    ...

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 = [ ...


``` 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.