set CMA to 16M for Rock Pi S

This commit is contained in:
Paolo Sabatino
2024-11-11 21:48:40 +01:00
committed by Igor
parent 977478e380
commit 9b68c85c6c

View File

@@ -66,7 +66,16 @@ function post_family_config___uboot_config() {
rules=etc/udev/rules.d
install -m 755 $bsp/lib/udev/fixEtherAddr $destination/lib/udev &&
install -m 644 $bsp/$rules/05-fixMACaddress.rules $destination/$rules
install -m 644 $bsp/$rules/05-fixMACaddress.rules $destination/$rules
}
}
function pre_install_kernel_debs__enforce_cma() {
# Set CMA to 16 megabytes, to provide more usable RAM since Rock Pi S
# has usually a small amount of DRAM (512MB)
display_alert "$BOARD" "set CMA size to 16MB due to small DRAM size"
run_host_command_logged echo "extraargs=cma=16M" ">>" "${SDCARD}"/boot/armbianEnv.txt
return 0
}