feat: establish OTA-ready fs640 factory baseline

This commit is contained in:
chenjintao
2026-09-27 17:45:49 +08:00
parent 6fad31c37a
commit b726fe192a
9 changed files with 458 additions and 6 deletions
@@ -29,6 +29,7 @@
#include "ql_log.h"
#include "hal_api.h"
#include "nfc.h"
#include "ota_baseline.h"
#define APP_ENABLE_SLEEP
@@ -146,6 +147,17 @@ static void custom_app_task(void * argv)
hal_os_get_build_time(tempbuf);
printf("BUILD TIME:%s\r\n",tempbuf);
printf("[OTA-BASELINE] layout=%s profile=%s app_phys=0x%08lX app_xip=0x%08lX app_size=%lu fs_size=%lu slot=single\r\n",
BANBAN_OTA_LAYOUT_ID,
BANBAN_OTA_BUILD_PROFILE,
(unsigned long)BANBAN_OTA_APP_PHYSICAL_ADDRESS,
(unsigned long)BANBAN_OTA_APP_XIP_ADDRESS,
(unsigned long)BANBAN_OTA_APP_PARTITION_SIZE,
(unsigned long)BANBAN_OTA_FS_PARTITION_SIZE);
printf("[OTA-BASELINE] U: total=%d free=%d fota2_reserve=%lu\r\n",
ql_fs_size('U'),
ql_fs_free_size('U'),
(unsigned long)BANBAN_OTA_STAGING_RESERVE_BYTES);
//app_uartsh_init();
@@ -0,0 +1,21 @@
#ifndef BANBAN_OTA_BASELINE_H
#define BANBAN_OTA_BASELINE_H
#include <stdint.h>
#include "build_macro.h"
#define BANBAN_OTA_EXPECTED_LAYOUT_ID "eg800akcn_11lg-fs640-app2c2000"
#define BANBAN_OTA_LAYOUT_ID CUSTOM_APP_OTA_LAYOUT_ID
#define BANBAN_OTA_BUILD_PROFILE CUSTOM_APP_OTA_BUILD_PROFILE
#define BANBAN_OTA_APP_PHYSICAL_ADDRESS UINT32_C(0x002C2000)
#define BANBAN_OTA_APP_XIP_ADDRESS UINT32_C(0x802C2000)
#define BANBAN_OTA_APP_PARTITION_SIZE UINT32_C(0x00073000)
#define BANBAN_OTA_FS_PHYSICAL_ADDRESS UINT32_C(0x00335000)
#define BANBAN_OTA_FS_PARTITION_SIZE UINT32_C(0x000A0000)
#define BANBAN_OTA_STAGING_RESERVE_BYTES UINT32_C(0x00010000)
#if !defined(CUSTOM_APP_OTA_LAYOUT_ID) || !defined(CUSTOM_APP_OTA_BUILD_PROFILE)
#error "Use build_rel.bat to build the OTA-ready production baseline"
#endif
#endif
@@ -4,4 +4,6 @@
#define CUSTOM_APP_BUILD_REV "NULL"
#define CUSTOM_APP_BUILD_MODEL "EG800AKCN_11LG"
#define CUSTOM_APP_BUILD_VER "1.8.0"
#define CUSTOM_APP_OTA_LAYOUT_ID "eg800akcn_11lg-fs640-app2c2000"
#define CUSTOM_APP_OTA_BUILD_PROFILE "ota_ready_fs640"
#endif