[no ci] tweaksys fixes ()

pull/1539/head
cronyx 2024-08-27 21:29:25 +03:00 committed by GitHub
parent 90b0df7913
commit 80fcda87bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions
general/package/datalink/files

View File

@ -113,6 +113,9 @@ case "$1" in
#cli -s .isp.sensorConfig /etc/sensors/60fps/720p_imx307_i2c_2l.ini
fi
# force set totalmem size
fw_setenv totalmem 64M
# fix osmem in bootargs
bootargs=$(fw_printenv -n bootargs)
if echo "$bootargs" | grep -q "32M"; then
@ -133,6 +136,9 @@ case "$1" in
gk7205v300 | hi3516ev300)
echo "Preparing system tweaks for $chip..."
# force set totalmem size
fw_setenv totalmem 128M
# increase osmem
mem=$(fw_printenv -n osmem) && [ "$mem" = "32M" ] && fw_setenv osmem 64M && set_allocator cma || echo "Memory allocated for the system:" "$mem"