uefi stuff
This commit is contained in:
@@ -3,7 +3,27 @@
|
||||
stdenvNoCC,
|
||||
fetchurl,
|
||||
}:
|
||||
let
|
||||
defaultConfig = ''
|
||||
EOF
|
||||
armstub=RPI_EFI.fd
|
||||
device_tree_address=0x3e0000
|
||||
device_tree_end=0x400000
|
||||
|
||||
# Force 32 bpp framebuffer allocation.
|
||||
framebuffer_depth=32
|
||||
|
||||
# Disable compensation for displays with overscan.
|
||||
disable_overscan=1
|
||||
|
||||
# Force maximum USB power regardless of the power supply.
|
||||
usb_max_current_enable=1
|
||||
|
||||
# Force maximum CPU speed.
|
||||
force_turbo=1
|
||||
EOF
|
||||
'';
|
||||
in
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "uefi-rpi5";
|
||||
version = "test1";
|
||||
@@ -25,24 +45,8 @@ stdenvNoCC.mkDerivation rec {
|
||||
runHook preInstall
|
||||
mkdir -p "$out"
|
||||
|
||||
cp -rv "$src" "$out"
|
||||
cat > "$out/config.txt" <<'EOF'
|
||||
armstub=RPI_EFI.fd
|
||||
device_tree_address=0x3e0000
|
||||
device_tree_end=0x400000
|
||||
|
||||
# Force 32 bpp framebuffer allocation.
|
||||
framebuffer_depth=32
|
||||
|
||||
# Disable compensation for displays with overscan.
|
||||
disable_overscan=1
|
||||
|
||||
# Force maximum USB power regardless of the power supply.
|
||||
usb_max_current_enable=1
|
||||
|
||||
# Force maximum CPU speed.
|
||||
force_turbo=1
|
||||
EOF
|
||||
cp -rv "$src" "$out/RPI_EFI.fd"
|
||||
cat > "$out/config.txt" << ${defaultConfig}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user