From 2df92cc331d09366663cce1ba93eae72da49a834 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 22 Apr 2026 21:35:09 +1200 Subject: [PATCH] feat(boards): airbrainh743 tune logger for 128 MB W25N flash Replace the old SDLOG_DIRS_MAX=3 + larger-buffer override with the new rotation-based tuning: SDLOG_MAX_SIZE=40 caps each log file at 40 MB so a handful of recent logs fit, and SDLOG_ROTATE=95 lets logs fill up to 95% of the 128 MB volume. Also set COM_ARM_SDCARD=0 (no SD on this board) and SYS_DM_BACKEND=1 so missions are stored in RAM. --- boards/gearup/airbrainh743/init/rc.board_defaults | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/boards/gearup/airbrainh743/init/rc.board_defaults b/boards/gearup/airbrainh743/init/rc.board_defaults index 4ef2ce41eef..6a67bd3226f 100644 --- a/boards/gearup/airbrainh743/init/rc.board_defaults +++ b/boards/gearup/airbrainh743/init/rc.board_defaults @@ -12,6 +12,13 @@ param set-default CBRK_SUPPLY_CHK 894281 param set-default IMU_GYRO_RATEMAX 2000 -# W25N NAND flash with littlefs (128 MB): larger buffer, auto-rotate -set LOGGER_BUF 32 -param set-default SDLOG_DIRS_MAX 3 +# W25N NAND flash with littlefs (128 MB): small log file size so we can keep +# a few recent logs, and fill up to 95%. +param set-default SDLOG_ROTATE 95 +param set-default SDLOG_MAX_SIZE 40 + +# Store missions in RAM +param set-default SYS_DM_BACKEND 1 + +# Ignore that there is no SD card +param set-default COM_ARM_SDCARD 0