summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2019-07-24 16:10:40 +0100
committerAndrei Gherzan <andrei@gherzan.ro>2019-07-26 14:09:40 +0100
commite9e3ad1920e1a6f4a05210c2ec4b77530871a886 (patch)
treeb52769f6fab7f30b582950fb23abf58986d020b0
parenta982858993afd0e5d1de474a9c21056c4013b10f (diff)
downloadmeta-raspberrypi-e9e3ad1920e1a6f4a05210c2ec4b77530871a886.tar.gz
raspberrypi4-64.conf: Limit RAM to 3G
The PCI controller on the Raspberry Pi 4 acts as a DMA controller and can only address the first 3Gb[1] of the memory space. On 32bit this was addressed by implementing bouncing buffers[2] but this currently has no support for arm64. In order to have working USB, as a workaround, we limit the ram to 3G. Fixes #446 [1] https://github.com/raspberrypi/linux/issues/3093 [2] https://github.com/raspberrypi/linux/blob/rpi-4.19.y/drivers/pci/controller/pcie-brcmstb-bounce.c Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-rw-r--r--conf/machine/raspberrypi4-64.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/machine/raspberrypi4-64.conf b/conf/machine/raspberrypi4-64.conf
index e308577..2455172 100644
--- a/conf/machine/raspberrypi4-64.conf
+++ b/conf/machine/raspberrypi4-64.conf
@@ -31,6 +31,6 @@ KERNEL_IMAGETYPE_UBOOT ?= "Image"
31KERNEL_IMAGETYPE_DIRECT ?= "Image" 31KERNEL_IMAGETYPE_DIRECT ?= "Image"
32KERNEL_BOOTCMD ?= "booti" 32KERNEL_BOOTCMD ?= "booti"
33 33
34RPI_EXTRA_CONFIG ?= "\n# Force arm in 64bit mode. See: https://github.com/raspberrypi/firmware/issues/1193.\narm_64bit=1" 34RPI_EXTRA_CONFIG ?= "\n# Force arm in 64bit mode. See: https://github.com/raspberrypi/firmware/issues/1193.\narm_64bit=1\n\n# Limit RAM to 3G. See: https://github.com/raspberrypi/linux/issues/3093\ntotal_mem=3072"
35 35
36ARMSTUB ?= "armstub8-gic.bin" 36ARMSTUB ?= "armstub8-gic.bin"