mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Mount option `commit=600` (=10 minutes) seems pretty high. Reduce it to 120 for ext4 (default for ext4 is `commit=5`) and 120 for btrfs (default for btrfs is `commit=30`) to reduce risk of losing data on power loss. Sources: - https://www.kernel.org/doc/html/latest/admin-guide/ext4.html - https://wiki.archlinux.org/title/Btrfs#Commit_interval - https://btrfs.readthedocs.io/en/latest/Administration.html
28 lines
935 B
Plaintext
28 lines
935 B
Plaintext
# Allwinner A64 quad core 1GB RAM SoC GBE for 3D printers
|
|
BOARD_NAME="Iagent Recore"
|
|
BOARDFAMILY="sun50iw1"
|
|
BOOTCONFIG="recore_defconfig"
|
|
KERNEL_TARGET="legacy,current,edge"
|
|
MODULES="g_serial"
|
|
BOOT_LOGO="yes"
|
|
BOARD_MAINTAINER=""
|
|
|
|
function post_family_config__shrink_atf() {
|
|
display_alert "Choose ATF branch 🍰" "recore"
|
|
declare -g ATFBRANCH="tag:v2.8.0"
|
|
|
|
declare -g ATF_TARGET_MAP="PLAT=$ATF_PLAT DEBUG=0 SUNXI_PSCI_USE_SCPI=0 bl31;;build/$ATF_PLAT/release/bl31.bin"
|
|
display_alert "Compile without SCP binary 🍰" "recore"
|
|
UBOOT_TARGET_MAP="SCP=/dev/null;;u-boot-sunxi-with-spl.bin"
|
|
}
|
|
|
|
function format_partitions__make_boot_ro() {
|
|
display_alert "Making boot partition ro 🍰" "recore"
|
|
sed -i 's:/boot ext4 defaults,commit=120,errors=remount-ro:/boot ext4 ro,defaults:' $SDCARD/etc/fstab
|
|
}
|
|
|
|
function extension_finish_config__enable_plymouth() {
|
|
display_alert "Enable Plymouth on minimal build 🍰" "recore"
|
|
PLYMOUTH=yes
|
|
}
|