lf-edge / eve

EVE is Edge Virtualization Engine
https://www.lfedge.org/projects/eve/
Apache License 2.0
475 stars 162 forks source link

EVE on Rockchip RK3568 #3053

Closed chairwa closed 1 year ago

chairwa commented 1 year ago

Does EVE image run on Rockchip RK3568 / RK3588 etc. development board?

eriknordmark commented 1 year ago

On 2/20/23 18:12, chairwa wrote:

Does EVE image run on Rockchip RK3568 / RK3588 etc. development board?

Doesn't look like its A55 processor has the Hardware virtualization support (which is needed for reasonable performance when running the EVE hypervisor.)

BR, Erik

— Reply to this email directly, view it on GitHub https://github.com/lf-edge/eve/issues/3053, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGNLQWHLU4FLBKAODDPALALWYQQBPANCNFSM6AAAAAAVCO742E. You are receiving this because you are subscribed to this thread.Message ID: @.***>

chairwa commented 1 year ago

At present, first bring up it without caring the performance.

make ZARCH=arm64 HV=kvm live-raw Burn the built live.raw to an SD card and insert it into the rk3568 board:

  1. If there was original RK system in the eMMC of the board, it will boot the eMMC, and the SD card will be mounted as a normal storage;
  2. If the original system in the eMMC of the board is cleared, the board will not boot.

I wonder how to make the RK board boot from the SD card?

rene commented 1 year ago

@chairwa, we support to load the device tree for EVK R3399 board only, which is not the same as yours:

https://github.com/lf-edge/eve/blob/master/pkg/grub/rootfs.cfg#L256

I didn't work with this SoC before, but what I can tell is that you will need to build the u-boot for your board and patch it to provide the SMBIOS information, like is done here:

https://github.com/lf-edge/eve/blob/master/pkg/bsp-imx/patches/uboot-patches-lf_v2022.04/0008-arch-arm-dts-Add-SMBIOS-information-for-Phytec-Pollu.patch

If it helps, you can generate an ARM image with the following command:

make ZARCH=arm64 HV=kvm PLATFORM=imx8mp_pollux live-raw

This will generate an image with almost 8MB offset between the the GPT and EFI partition (first partition). This will give to you room to write your bootloader in this space...

chairwa commented 1 year ago

@rene How to make image for EVB_RK3399 if I would like to use evb_rk3399 as a try? It seem the following is not OK.

make ZARCH=arm64 HV=kvm PLATFORM=evb_rk3399 live-raw

rene commented 1 year ago

@rene How to make image for EVB_RK3399 if I would like to use evb_rk3399 as a try? It seem the following is not OK.

make ZARCH=arm64 HV=kvm PLATFORM=evb_rk3399 live-raw

@chairwa , u-boot image generation for evb_rk3399 is currently not supported on EVE, so there is no evb_rk3399 platform option. What I suggested is that you can build an image for another platform and re-write your own u-boot for your board. However, EVE's kernel do support RK3399 (we have some patches and the respective device tree is there).