Xen EFI with Alpine Linux dom0
#1
Hello all,

I have been working on getting Xen EFI working on the RockPro64 with Alpine Linux as a dom0. I have managed to get as far as the initial ramdisk mounting the root filesystem for dom0 but unfortunately that is where I get stuck and I fall into a emergency shell. Listing out /dev I can´t see any block devices to mount:

Code:
/ # ls dev

ashmem           pts              tty2             tty50

binder           ram0             tty20            tty51

console          ram1             tty21            tty52

cpu_dma_latency  ram10            tty22            tty53

full             ram11            tty23            tty54

gpiochip0        ram12            tty24            tty55

gpiochi          ram13            tty25            tty56

gpiochip2        ram14            tty26            tty57

gpiochip3        ram15            tty27            tty58

gpiochip4        ram2             tty28            tty59

hvc0             ram3             tty29            tty6

hvc1             ram4             tty3             tty60

hvc2             ram5             tty30            tty61

hvc3             ram6             tty31            tty62

hvc4             ram7             tty32            tty63

hvc5             ram8             tty33            tty7

hvc6             ram9             tty34            tty8

hvc7             random           tty35            tty9

hwbinder         rd               tty36            ttyS0

kmsg             shm              tty37            ttyS1

loop             snapshot         tty38            ttyS2

loop-control     tty              tty39            ttyS3

loop0            tty0             tty4             urandom

loop1            tty1             tty40            vcs

loop2            tty10            tty41            vcs1

loop3            tty11            tty42            vcsa

loop4            tty12            tty43            vcsa1

loop5            tty13            tty44            vcsu

loop6            tty14            tty45            vcsu1

loop7            tty15            tty46            vga_arbiter

mem              tty16            tty47            vndbinder

null             tty17            tty48            xen

port             tty18            tty49            zero

ptmx             tty19            tty5
  • Uboot is able to see all storage devices
  • No storage devices are found including arbitrary usb drives in the initramfs emergency shell
  • fdisk -l yields no output 
  • Issue is present on both microsd card and emmc
  • Attempts to mount the various ramdisks to /sysroot but this fail
I am compiling the latest u-boot and both the latest xen kernel avialble in the edge repository as well as a xen kernel compiled from the latest source exhibit the problem. As far as device trees go I have used both the one provided by the lts kernel in the edge repository and one from a kernel I compiled, I can´t get the kernel to work but the device tree works fine. I have tried taking the kernel and the relevant files from Ayufan´s Bionic release but this appears to freeze at loading the initial ramdisk, I am not sure if the problem lies where the output from the serial console ends or later down the line. 
Code:
U-Boot TPL 2020.10-rc2-00147-gCol=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB
Channel 1: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB
256B stride
lpddr4_set_rate: change freq to 400000000 mhz 0, 1
lpddr4_set_rate: change freq to 800000000 mhz 1, 0
Trying to boot from BOOTba989cf1ca (Aug 19 2020 - 20:41:45 +0000)
989cf1ca (Aug 19 2020 - 20:41:45 +0000)

SoC: Rockchip rk3399
Reset cause: POR
Model: Pine64 RockPro64 v2.1
DRAM:  3.9 GiB
ironment from SPIFlash... Invalid bus 0 (err=-19)
*** Warning - spi_flash_probe_bus_cs() failed, using default environment

r:   serial
Model: Pine64 RockPro64 v2.1
Net:   Hit any key to stop autoboot:  21 is current device
dt_check_header(): FDT_ERR_BADMAGIC
000.blk...
Disk mmc@fe310000.blk not ready
Scanning disk mmc@fe320000.blk...
30000.blk...
Disk sdhci@fe330000.blk not ready
Found 4 disks
bles
manager: Cannot load any image
r(): FDT_ERR_BADMAGIC
rk3399-rockpro64.dtb: 0x00000000ting -
- Current EL 00000008 -
- Initialize CPU -
- Turning on paging -
- Ready -
00008113000 - 00000000ee9abfff
(XEN) RAM: 00000000ee9ac000 - 00000000f0dc1fff
(XEN) RAM: 00000000f0dc2000 - 00000000f0dd0fff
(XEN) RAM: 00000000f0dd1000 - 00000000f0dd1fff
(XEN) RAM: 00000000f0dd2000 - 00000000f0f0cfff
(XEN) RAM: 00000000f0f14000 - 00000000f0f14fff
(XEN) RAM: 00000000f0f16000 - 00000000f0f17fff
(XEN) RAM: 00000000f0f1c000 - 00000000f0f1cfff
(XEN) RAM: 00000000f0f22000 - 00000000f0f22fff
(XEN) RAM: 00000000f0f24000 - 00000000f0f24fff
(XEN) RAM: 00000000f0f26000 - 00000000f0f27fff
(XEN) RAM: 00000000f0f29000 - 00000000f0f2afff
(XEN) RAM: 00000000f0f2b000 - 00000000f3f3ffff
(XEN) RAM: 00000000f3f50000 - 00000000f7ffffff
(XEN)
(XEN) MODULE[0]: 00000000f0dd2000 - 00000000f0f0c8f0 Xen        
(XEN) MODULE[1]: 00000000f0db3000 - 00000000f0dc2000 Device Tree
(XEN) MODULE[2]: 00000000ee9ac000 - 00000000f07967de Ramdisk    
(XEN) MODULE[3]: 00000000f0797000 - 00000000f0db28a5 Kernel     
(XEN)
(XEN) CMDLINE[00000000f0797000]:chosen console=hvc0 earlycon=xen earlyprintk=xen clk) Command line: xen console=dtuart dtuart=serial2 loglvl=all dom0_mem=1G dom0_max_vpcus=1
(XEN) parameter "xen" unknown!
(XEN) parameter "dom0_max_vpcus" unknown!
XEN) Booting using Device Tree
(XEN) Platform: Generic System
(XEN) Looking for dtuart at "serial2", options ""
Xen 4.13.1
(XEN) Xen version 4.13.1 (root@[unknown]) (gcc (Alpine 9.3.0) 9.3.0) debug=y  Wed Aug 19 20:44:53 UTC 2020
(XEN) Latest ChangeSet: Thu May 14 14:19:32 2020 +0200 git:6278553325-dirty
(XEN) build-id: ee1326fbc614a8f159d33a919dad5688afdb7ea4
(XEN) Processor: 410fd034: "ARM Limited", variant: 0x0, part 0xd03, rev 0x4
(XEN) 64-bit Execution:
(XEN)   Processor Features: 0000000001002222 0000000000000000
(XEN)   N)     Extensions: FloatingPoint AdvancedSIMD GICv3-SysReg
(XEN)   Debug Features: 0000000010305106 0000000000000000
(XEN)   Auxiliary Features: 0000000000000000 0000000000000000
(XEN)   Memory Model Features: 0000000000001122 0000000000000000
(XEN)   ISA Features:  0000000000011120 0000000000000000
(XEN) 32-bit Execution:
(XEN)   Processor Features: 00000131:10011011
(XEN)     Instruction Sets: AArch32 A32 Thumb Thumb-2 Jazelle
(XEN)     Extensions: GenericTimer Security
(XEN)   Debug Features: 03010066
(XEN)   Auxiliary Features: 00000000
(XEN)   Memory Model Features: 10201105 40000000 01260000 02102211
(XEN)  ISA Features: 02101110 13112111 21232042 01112131 00011142 00011121
(XEN) Using SMC Calling Convention v1.2
(XEN) Using PSCI v1.1
(XEN) SMP: Allowing 6 CPUs
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27 Freq: 24000 KHz
(XEN) GICv3 initialization:
(XEN)   irq=25
(XEN)       gic_rdist_stride=0
(XEN)       gic_rdist_regions=1
(XEN)       redistributor regions:
(XEN)         - region 0: 0x000000fef00000 - 0x000000fefc0000
(XEN) GICv3 compatible with GICv2 cbase 0x000000fff00000 vbase 0x000000fff20000
(XEN) GICv3: 288 lines, (IID 0001143b).
(XEN) GICv3: CPU0: Found redistributor in region 0 @000000004001c000
(XEN) XSM Framework v1.0.0 initialized
(XEN) Initialising XSM SILO mode
(XEN) Using scheduler: SMP Credit Scheduler rev2 (credit2)
(XEN) Initializing Credit2 scheduler
(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms
(XEN) load tracking window length 1073741824 ns
(XEN) Allocated console ring of 64 KiB.
(XEN) CPU0: Guesting up CPU1
- CPU 00000001 booting -
- Current EL 00000008 -
- Initialize CPU -
- Turning on paging -
- Ready -
(XEN) GICv3: CPU1: Found redistributor in region 0 @000000004003c000
(XEN) CPU1: Guest atomics will try 9 times before pausing the domain
(XEN) CPU 1 booted.
(XEN) Bringing up CPU2
- CPU 00000002 booting -
- Current EL 00000008 -
- Initialize CPU -
- Turning on paging -
- Ready -
(XEN) GICv3: CPU2: Found redistributor in region 0 @000000004005c000
(XEN) CPU2: Guest atomics will try 8 times before pausing the domain
(XEN) CPU 2 booted.
(XEN) Bringing up CPU3
- CPU 00000003 booting -
- Current EL 00000008 -
- Initialize CPU -
- Turning on paging -
- Ready -
(XEN) GICv3: CPU3: Found redistributor in region 0 @000000004007c000
(XEN) CPU3: Guest atomics will try 9 times before pausing the domain
(XEN) CPU 3 booted.
(XEN) Bringing up CPU4
- CPU 000001008 -
- Initialize CPU -
- Turning on paging -
- Ready -
(XEN) CPU4 MIDR (0x410fd082) does not match boot CPU MIDR (0x410fd034),
(XEN) disable cpu (see big.LITTLE.txt under docs/).
EN) Failed to bring up CPU 4 (error -5)
(XEN) Bringing up CPU5
- CPU 00000101 booting -
- Current EL 00000008 -
- Initialize CPU -
- Turning on paging -
- Ready -
(XEN) CPU5 MIDR (0x410fd082) does not match boot CPU MIDR (0x410fd034),
(XEN) disable cpu (see big.LITTLE.txt under docs/).
EN) Failed to bring up CPU 5 (error -5)
(XEN) Brought up 4 CPUs
(XEN) I/O virtualisation disabled
(XEN) P2M: 40-bit IPA with 40-bit PA and 8-bit VMID
(XEN) P2M: 3 levels with order-1 root, VTCR 0x80023558
(XEN) Adding cpu 0 to runqueue 0
(XEN)  First cpu on runqueue, activating
(XEN) Adding cpu 1 to runqueue 0
(XEN) Adding cpu 2 to runqueue 0
(XEN) Adding cpu 3 to runqueue 0
(XEN) alternatives: Patching with alt table 00000000002cc0b8 -> 00000000002cc7cc
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Loading d0 kernel from boot module @ 00000000f0797000
(XEN) Loading ramdisk from boot module @ 00000000ee9ac000
Grant table range: 0x000000f0dd2000-0x000000f0e12000
(XEN) Loading zImage from 00000000f1000000 to 0000000040080000-0000000040f58a00
XEN) Initial low memory virq threshold set at 0x4000 pages.
(XEN) Scrubbing Free RAM in background
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) *** Serial input to DOM0 (type 'CTRL-a' three times to switch input)
dled word write 0x000000ffffffff to ICACTIVER8
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER12
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER16
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER20
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER24
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER28
(XEN) d0v0: vGICD: unhandled word write 0x000000ffffffff to ICACTIVER32
(XEN) d0v0: vGICR: SGI: unhandled word write 0x000000ffffffff to ICACTIVER0
rsion 5.4.58-0-lts (buildozer@build-edge-aarch64) (gcc version 9.3.0 (Alpine 9.3.0)) #1-Alpine SMP Thu, 13 Aug 2020 09:39:55 UTC
[    0.000000] Machine model: Pine64 RockPro64
[    0.000000] Xen 4.13 support found
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 16 MiB at 0x000000007f000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x7ed65980-0x7ed72fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[    0.0] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] psci: SMC Calling Convention v1.1
[    0.000000] percpu: Embedded 32 pages/cpu s91992 r8192 d30888 u131072
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] Speculative Store Bypass Disable mitigation not required
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258048
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: console=hvc0 earlycon=xen earlyprintk=xen clk_ignore_unused root=LABEL=ROCKROOT init=/sbin/init
[    0.000000] printk: log_buf_len individual max cpu contribution: 4096 bytes
[    0.000000] printk: log_buf_len total cpu_extra contri0000] printk: log_buf_len min size: 16384 bytes
[    0.000000] printk: log_buf_len: 32768 bytes
[    0.000000] printk: early log buf free: 13940(85%)
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000] Memory: 959896K/1048576K available (8764K kernel code, 1378K rwdata, 3444K rodata, 1536K init, 5247K bss, 72296K reserved, 16384K cma-reserved)
[    0.000000] random: get_random_u64 called from cache_random_seq_create+0x88/0x158 with crng_init=0
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] kmemleak: Kernel memory leak detector disabled
[    0.000000] ftrace: allocating 32604 entries in 128 pages
[    0.000000] rcu: Hicting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: 256 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: no VLPI support, no direct LPI support
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000fef00000
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps eve89] Console: colour dummy device 80x25
[    0.004255] printk: console [hvc0] enabled
[    0.004430] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=80000)
[    0.004484] pid_max: default: 32768 minimum: 301
[    0.004724] LSM: Security Framework initializing
[    0.004767] Yama: becoming mindful.
[    0.004912] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.004958] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.007832] ASID allocator initialised with 32768 entries
[    0.009120] xen:grant_table: Grant tables using version 1 layout
[    0.009186] Grant table initialized
[    0.009266] xen:events: Using FIFO-based ABI
[    0.009367] Xen: initializing cpu0
[    0.009634] rcu: Hierarchical SRCU implementation.
[    0.013ringing up secondary CPUs ...
(XEN) d0v1: vGICR: SGI: unhandled word write 0x000000ffffffff to ICACTIVER0
(XEN) d0v2: vGICR: SGI: unhandled word write 0x000000ffffffff to ICACTIVER0
(XEN) d0v3: vGICR: SGI: unhandled word write 0x000000ffffffff to ICACTIVER0
[    0.015379] Detected VIPT I-cache on CPU1
[    0.015444] GICv3: CPU1: found redistributor 1 region 0:0x00000000fef20000
[    0.015605] Xen: initializing cpu1
[    0.015657] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.017097] Detected VIPT I-cache on CPU2
[    0.017161] GICv3: CPU2: found redistributor 2 region 0:0x00000000fef40000
[    0.017320] Xen: initializing cpu2
[    0.017366] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.018511] Detected VIPT I-cache on CPU3
[    0.018564] GICv3: CPU3: found redistributor 3 region 0:0x00000000fef60000
[    0.018678] Xen: initializing cpu3
[    0.01871[    0.018951] smp: Brought up 1 node, 4 CPUs
[    0.019266] SMP: Total of 4 processors activated.
[    0.019294] CPU features: detected: 32-bit EL0 Support
[    0.019336] CPU features: detected: CRC32 instructions
[    0.020274] CPU: All CPU(s) started at EL1
[    0.020357] alternatives: patching kernel code
[    0.022987] devtmpfs: initialized
[    0.042600] Registered cp15_barrier emulation handler
[    0.043125] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370867519511994 ns
[    0.043220] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.044804] pinctrl core: initialized pinctrl subsystem
[    0.048298] DMI not present or invalid.
[    0.049601] NET: Registered protocol family 16
[    0.052658] DMA: preallocated 256 KiB pool for atomic allocations
[    0.052807] audit:type=2000 audit(0.049:1): state=initialized audit_enabled=0 res=1
[    0.057030] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.058622] xen:swiotlb_xen: Warning: only able to allocate 4 MB for software IO TLB
[    0.059695] software IO TLB: mapped [mem 0x7c800000-5] Serial: AMBA PL011 UART driver
[    0.063538] irq: type mismatch, failed to map hwirq-32 for interrupt-controller!
[    0.064030] irq: type mismatch, failed to map hwirq-32 for interrupt-controller!
eTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.120081] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.120115] HugeTLB registered 64.0 KiB page size, balloon: Initialising balloon driver
[    0.129611] iommu: Default domain type: Translated
[    0.129944] vgaarb: loaded
[    0.131307] pps_core: LinuxPP.131365] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.131464] PTP clock support registered
[    0.131969][    0.136118] clocksource: Switched to clocksource arch_sys_cou: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.221382] pnp: PnP ACPI: disabled
s: Registered thermal governor 'bang_bang'
[    0.238601] thermal_sys: Registered thermal governor 'step_wise'
[    0.238633] thermal_sys: Registered thermal governor 'user_space'
[    0.238664] thermal_sys: Registered thermal governor 'power_allocator'
[    0.239003] OF: /thermal-zones/cpu/cooling-maps/map0: could not find phandle
[    0.2 0.239595] NET: Registered protocol family 2
[    0.240536] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    0.240629] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.240803] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    0.241021] TCP: Hash tables cotable entries: 512 (order: 2, 16384 bytes, linear)
[    0.241275] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.241551] NET: Registered protocol family 1
[    0.241622] NET: Registered protocol family 44
[    0.241659] PCI: CLS 0 bytes, default 64
[    0.241966] Trying to unpack rootm [1]: HYP mode not available
[    2.746855] Initialise system trusted keyrings
[    2.747220] workingset: timestamp_bits=37 max_order=18 bucket_order=0
symmetric key parser 'x509' registered
[    2.757420] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    2.757783] io scheduler mq-deadline registered
[    2.757816] io scheduler kyber registered
[    2.785802] Serial: AMBA driver
[    2.787547] cacheinfo: Unable to detect cache hierarchy for CPU 0
MDIO Bus: probed
[    2.804162] xen_netfront: Initialising Xen virtual ethernet driver
[    2.809001] ashmem: initializ[    2.811567] gre: GRE over IPv4 demultiplexor driver
[    2.811652] Key type dns_resolver registered
[    2.812210] registered taskstats version 1
[    2.812277] Loading compiled-in X.509 certificates
[    2.813620] Key type ._fscrypt registered
[    2.813665] Key type .fscrypt registered
2.858739] clk: Not disabling unused clocks
* Loading boot drivers:  * Mounting root: [    3.306832] usbcore: registered new interface driver hub
[    3.307198] usbcore: registered new device driver usb
[    3.310575] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.312094] ohci-platpyright(c) Pierre Ossman
[    3.793581] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.795770] sdhci-arasan fe330000.sdhci: ignoring dependency for device, assuming no driverre Multimedia Card Interface Dri[    4.852992] dwmmc_rockchip fe320000.dwmmc: ignoring dependency for device, assuming no driver
ng! ehci_hcd should always be loaded before uhci_hcd and ohci_hcd, not after
[    4.981792] ehci-platform: EHCI generic platform driver
n /sysroot failed: No such file mfs emergency recovery shell launched. Type 'exit' to continue boot
sh: can't access tty; job control turned off
/ #

At present I suspect that the line near the bottom of the log relating to dwmmc_rockchip error might be at play but the USB drivers appear to load correctly and I am not able to see USB block devices either. 

A few side notes of interest:

- If you want to boot the xen EFI binary on the RockPro64 it must be arranged as follows (I have not tested case-sensitivity): 
  • All kernels, EFI binaries, initial ramdisks and configuration files must reside on the EFI partition under /EFI/BOOT/
  • The EFI binary must be named BOOTAA64.EFI 
  • The EFI configuration file must be named BOOTAA64.CFG
Here is my BOOTAA64.CFG:
Code:
[global]
default=xen

[xen]
options=console=dtuart dtuart=serial2 loglvl=all dom0_mem=1G dom0_max_vpcus=1
dtb=rk3399-rockpro64.dtb
kernel=vmlinuz-lts console=hvc0 earlycon=xen earlyprintk=xen clk_ignore_unused root=LABEL=ROCKROOT init=/sbin/init
ramdisk=initramfs-lts

- I am able to get just as far using boot.scr booting method, I will include an option for this boot method in the script

- I cannot get as far with the extlinux.conf, I can boot Xen but there does not appear to be a way to pass the dom0 location to it so it fails. I took the mboot.c32 binary out of Debian´s repository but it didn´t seem to like that. Might be possible at a later stage.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Linux Host - QEMU Android Guest? rik-shaw 0 292 07-09-2020, 08:02 PM
Last Post: rik-shaw
  RETRO GAMING BATOCERA LINUX + ROSHAMBO CASE - Tutoriel Fr TheMiniCakeTV 0 1,045 07-02-2020, 12:45 PM
Last Post: TheMiniCakeTV
  Arch Linux on RockPro64 mmatyas 30 15,468 05-30-2020, 12:08 PM
Last Post: mmatyas
  RockPro64 Linux Manjaro HDMI 4K mkne 12 1,706 05-03-2020, 07:23 AM
Last Post: PakoSt
  Mainline U-Boot with Arch Linux PKGBUILD mmatyas 0 436 04-17-2020, 03:49 AM
Last Post: mmatyas
  Slow/dead ethernet on (non-Ayufan) Linux Mainline (fixed) mmatyas 1 476 04-17-2020, 02:53 AM
Last Post: Thra11
  Rockpro64 and stock arch linux TaborFife 6 1,790 01-15-2020, 05:17 PM
Last Post: dragop
  Problem with compiling ayufans linux kernel voegelit 4 846 01-14-2020, 07:38 AM
Last Post: patstew
  My PCIe disk controller works with Linux 5.3.6 guannais 1 486 10-30-2019, 07:11 PM
Last Post: guannais
  Linux Build Help: Stuck at "Starting kernel ..." ihamilton 2 1,431 10-10-2019, 12:51 PM
Last Post: ihamilton

Forum Jump:


Users browsing this thread: 1 Guest(s)