Xen hypervisor on Rock64
#5
Hi sstabellini, thanks for the suggestions.  
I tried to setup direct UEFI boot without success.  (Basically I started with the QEMU instructions and created  /boot/efi/EFI/xen/ with xen.efi , xen.cfg and so forth. )

It appears that EFI booting is skipped altogether, and for example:

Code:
rock64@rock64:~$ efibootmgr -w -L Xen -l "\EFI\Xen\xen.efi" -c EFI variables are not supported on this system.

Looking at the Rockchip boot options diagram, it appears that either u-boot.bin or UEFI.FD is run as "Loader 2" , only for "Boot Flow 1".  Looking at the serial console output below, it seems to me the Rock64 is following "Boot Flow 2", which uses u-boot, since we see "BL31" running.

The serial console output at reboot, if I read it correctly, shows the system directly booting into u-boot.  
How can I ensure the Rock64 chooses UEFI boot?  

Code:
=> reset DDR version 1.08 20170628 In SRX LPDDR3 333MHz Bus Width=32 Col=11 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=4096MB ddrconfig:7 OUT U-Boot SPL 2017.09-ga0a2b48 (Apr 29 2018 - 20:24:03) setup_ddr_param  1 booted from eMMC Trying to boot from MMC1 NOTICE:  BL31: v1.3(debug):9d3f591 NOTICE:  BL31: Built : 14:39:02, Jan 17 2018 NOTICE:  BL31:Rockchip release version: v1.3 INFO:    ARM GICv2 driver initialized INFO:    Using opteed sec cpu_context! INFO:    boot cpu mask: 1 INFO:    plat_rockchip_pmu_init: pd status 0xe INFO:    BL31: Initializing runtime services WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK ERROR:   Error initializing runtime service opteed_fast INFO:    BL31: Preparing for EL3 exit to normal world INFO:    Entry point address = 0x200000 INFO:    SPSR = 0x3c9 U-Boot 2017.09-ga0a2b48 (Apr 29 2018 - 20:24:18 +0000), Build: jenkins-linux-build-rock-64-213 Model: Pine64 Rock64 DRAM:  4 GiB MMC:   rksdmmc@ff520000: 0, rksdmmc@ff500000: 1 Card did not respond to voltage select! mmc_init: -95, time 10 *** Warning - No block device, using default environment In:    serial@ff130000 Out:   serial@ff130000 Err:   serial@ff130000 Model: Pine64 Rock64 misc_init_r cpuid=55524b50303930343000000000010715 serial=9a6b577037c4808 normal boot Net:   eth0: ethernet@ff540000 Hit any key to stop autoboot:  0



Quote:sstabelliniHi Tumbleweed,I haven\'t tried Xen on Rock64, but I did run Xen on Pine64 successfully in the past.The mkimage step below is only required if you boot Xen from U-Boot. If you boot Xen from extlinux or another bootloader, it will actually cause troubles. Instead, to simplify the boot sequence, I would boot Xen directly from EFI, skipping extlinux completely. To do that, you need to copy xen.efi to the FAT partition, and write a xen.cfg config file. You also need to copy the Dom0 kernel, initrd and device tree to the fat partition. For instance, see this guide for booting Xen on ARM on QEMU: https://wiki.xenproject.org/wiki/Xen_ARM...em-aarch64 There are a few QEMU specific steps in there, but it also contains the steps to boot Xen directly from UEFI including an example xen.cfg.It might also be possible to boot Xen from extlinux but I don't have experience with that. I recommend booting from UEFI first. Cheers,Stefano
  Reply


Messages In This Thread
Xen hypervisor on Rock64 - by tumbleweed - 05-13-2018, 09:03 PM
RE: Xen hypervisor on Rock64 - by evilbunny - 05-13-2018, 11:40 PM
RE: Xen hypervisor on Rock64 - by tumbleweed - 05-15-2018, 09:41 AM
RE: Xen hypervisor on Rock64 - by sstabellini - 05-17-2018, 07:05 PM
RE: Xen hypervisor on Rock64 - by tumbleweed - 05-19-2018, 02:35 PM
RE: Xen hypervisor on Rock64 - by tumbleweed - 05-23-2018, 09:36 PM
RE: Xen hypervisor on Rock64 - by darkfader - 11-03-2025, 09:25 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  rAudio for Rock64 V2/Pine A64+ shinzuka 16 6,046 11-28-2026, 02:11 PM
Last Post: shinzuka
  irradium (based on crux linux) Rock64 riscv64, aarch64 mara 14 22,489 09-27-2026, 11:55 AM
Last Post: mara
  DietPi OS for ROCK64 MichaIng 43 101,086 07-22-2026, 01:47 PM
Last Post: MichaIng
  Rock64 v3 Tx/RX and GPIO connections for 3dprinter MinimumJargon 2 2,371 01-28-2026, 04:04 AM
Last Post: alicesphere
  Rock64 - not booting after Armbian update helpmerock 7 8,118 01-24-2026, 04:44 PM
Last Post: ff255
  can rock64 4gb ram run entirely on free software? heocb 1 4,239 01-07-2025, 05:47 AM
Last Post: KC9UDX
  Upgrading ancient Rock64 timxjr1300 1 4,483 11-26-2024, 09:47 AM
Last Post: dmitrymyadzelets
  arch rock64 does not boot nemnob 1 5,315 09-20-2024, 11:18 AM
Last Post: AwU2HBg
Smile First Lakka image for Rock64! Luke 47 121,625 09-01-2024, 06:05 AM
Last Post: RaymondDay
  Rock64 v2 - did not work song / audio sqw200zu 2 6,797 03-14-2024, 03:09 AM
Last Post: dmitrymyadzelets

Forum Jump:


Users browsing this thread: 1 Guest(s)