Files
build/config/boards/recore.csc
ColorfulRhino d638276fcc partitioning: Reduce commit mount option for btrfs and ext4 to 120
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
2024-07-09 11:31:51 +02:00

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
}