-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configure the firmware to not limit the ram to 3GB
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"version": 2, | ||
"variables": [ | ||
{ | ||
"name": "RamLimitTo3GB", | ||
"guid": "cd7cc258-31db-22e6-9f22-63b0b8eed6b5", | ||
"attr": 7, | ||
"data": "00000000" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
|
||
# virt-firmware. | ||
# see https://pypi.org/project/virt-firmware | ||
# see https://gitlab.com/kraxel/virt-firmware | ||
VIRT_FIRMWARE_PIP_INSTALL_SPEC='virt-firmware==23.5' | ||
VIRT_FIRMWARE_PIP_INSTALL_SPEC='git+https://gitlab.com/kraxel/virt-firmware.git@bf0912128c38684a19a0c530c18d6219a5f60ed9' # 2023-06-01T11:59:02Z | ||
|
||
# install the dependencies. | ||
# see https://github.com/pftf/RPi4/blob/v1.35/.github/workflows/linux_edk2.yml | ||
apt-get install -y \ | ||
acpica-tools gcc-aarch64-linux-gnu python3-distutils uuid-dev \ | ||
build-essential dos2unix unzip zip | ||
ln -fs /usr/bin/python{3,} # symlink python to python3. | ||
|
||
# install virt-firmware. | ||
apt-get install -y python3-pip | ||
python3 -m pip install $VIRT_FIRMWARE_PIP_INSTALL_SPEC |