Leonid Lazarev
Posts: 1
Joined: Thu Feb 13, 2020 7:58 am

Memory issue with XEN on Raspberry Pi 4

Thu Feb 13, 2020 8:42 am

We are trying to run XEN on Raspberry Pi 4 (x64) using the existing instruction https://github.com/dornerworks/xen-rpi4-builder
(viewtopic.php?f=63&t=232323)

There is limitation there for 1GB of memory.
After some experiments we 've figured out that board is able to start successfully on following configuration of memory:
- total_mem = 4096, dom0_mem = 3G

Code: Select all

 +	chosen {
 +		#address-cells = <1>;
 +		#size-cells = <1>;
 +
++		xen,xen-bootargs = "console=dtuart dtuart=/soc/serial@7e215040 sync_console dom0_mem=3G bootscrub=0 loglvl=all guest_loglvl=all" ;
 +
 +		dom0 {
 +			compatible = "xen,linux-zimage", "xen,multiboot-module";
++			reg = <0x00480000 0x05D00000>;
 +		};
 +	};

But it doesn't load Linux if the following setup is used
- total_mem = 4096, dom0_mem = 1Gb

Code: Select all

 +	chosen {
 +		#address-cells = <1>;
 +		#size-cells = <1>;
 +
++		xen,xen-bootargs = "console=dtuart dtuart=/soc/serial@7e215040 sync_console dom0_mem=1G bootscrub=0 loglvl=all guest_loglvl=all" ;
 +
 +		dom0 {
 +			compatible = "xen,linux-zimage", "xen,multiboot-module";
++			reg = <0x00480000 0x01f00000>;
 +		};
 +	};

UART output shows (logs attached) some problems with CPU3 loading.
The loading is finished on the

Code: Select all

(XEN) Bringing up CPU3
- CPU  2... 1... 
It is interesting what is going on.
How the memory setup could impact the loading of the CPU? May be someone has any ideas regarding it

SW version:
Raspberry PI kernel branch: rpi-4.19.y
Raspberry PI firmaware branch: master
Xen branch: RELEASE-4.13.0
Attachments
XEN_MEMORY_ISSUE_RPi4.zip
(10.73 KiB) Downloaded 10 times

Return to “Troubleshooting”