arceos-hypervisor / arceos-umhv

Unified modular arceos-hypervisor
8 stars 7 forks source link

[feat]: adapt for rk3588, supports packaging guest VM image files at compiling #34

Closed luodeb closed 3 days 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"

dtb_path = "nimbos-aarch64.dtb"

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>, 
}

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.

hky1999 commented 4 weeks ago

@aarkegz please give a look at this PR. you are more familiar with build.rs in arceos-vmm, I think there are still some improvements to be done