mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
set CMA to 16M for Rock Pi S
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user