Raspberry 4: XEN support 22/24522/6
authorLeonid Lazarev <leonid.lazarev@mera.com>
Fri, 15 May 2020 08:51:48 +0000 (11:51 +0300)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tue, 26 May 2020 17:12:19 +0000 (17:12 +0000)
commit4028c726be78adc1f1df3708dbe99f9eb2303790
treea612c618ec8689bd785e816582116c4cf81cc681
parent30063de420b4f6c993dd3f2021ab84f622d69320
Raspberry 4: XEN support

Added the support for DOM0 in raspberry pi4. The feature agl-virt-xen should be enabled to activate this code.

1512 MB of memory is used for DOM0 machine.

There are limitations:
- brcmfmac module disabled (bluethooth and Wifi) due to the crash
- total_memory is set to the 3Gb, as it impacts the USB ports on rasbperry pi4 on Linux kernel 4.19

v2 (jsmoeller): make changes in virtualization-layer conditional to raspberrypi4

Bug-AGL: SPEC-3259
Change-Id: I873fbf1f5498e31ae5f468407502f16e1873f7fc
Signed-off-by: Leonid Lazarev <leonid.lazarev@mera.com>
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/24522
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
13 files changed:
meta-agl-bsp/conf/include/agl_raspberrypi4.inc
meta-agl-bsp/meta-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend
meta-agl-bsp/meta-raspberrypi/recipes-bsp/rpi-u-boot-scr/files/boot_xen.cmd [new file with mode: 0644]
meta-agl-bsp/meta-raspberrypi/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bbappend [new file with mode: 0644]
meta-agl-bsp/meta-raspberrypi/recipes-kernel/linux/files/0002-Disable-DMA-in-sdhci-driver.patch [new file with mode: 0644]
meta-agl-bsp/meta-raspberrypi/recipes-kernel/linux/files/0003-Fix-PCIe-in-dom0-for-RPi4.patch [new file with mode: 0644]
meta-agl-bsp/meta-raspberrypi/recipes-kernel/linux/files/xen-be.cfg [new file with mode: 0644]
meta-agl-bsp/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend
meta-agl-bsp/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.19.bbappend
meta-agl-bsp/virtualization-layer/recipes-extended/xen/files/0001-XEN-on-RPi4-1GB-lmitation-workaround-XEN-tries-to-al.patch [new file with mode: 0644]
meta-agl-bsp/virtualization-layer/recipes-extended/xen/xen-mkimage-rpi4.bb [moved from meta-agl-bsp/virtualization-layer/recipes-extended/xen/xen-mkimage.bb with 100% similarity]
meta-agl-bsp/virtualization-layer/recipes-extended/xen/xen-tools_git.bbappend [new file with mode: 0644]
meta-agl-bsp/virtualization-layer/recipes-extended/xen/xen_git.bbappend