feat(boards): kakuteh7v2 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.

Drop the BOARD_SMALL_FLASH_LOGGING define from board_config.h; the
logger no longer keys off a per-board compile flag.
This commit is contained in:
Julian Oes
2026-04-22 21:34:38 +12:00
parent fa601fa5c1
commit be39ec49e5
2 changed files with 4 additions and 8 deletions
@@ -35,6 +35,7 @@ param set-default SYS_DM_BACKEND 1
# Ignore that there is no SD card
param set-default COM_ARM_SDCARD 0
# 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
@@ -59,11 +59,6 @@
# define BOARD_HAS_NBAT_V 1
# define BOARD_HAS_NBAT_I 1
/* Enable small flash logging support (for W25N NAND flash) */
#ifdef CONFIG_MTD_W25N
# define BOARD_SMALL_FLASH_LOGGING 1
#endif
/* Holybro KakuteH7 GPIOs ************************************************************************/
/* LEDs are driven with push open drain to support Anode to 5V or 3.3V */