From 3bfd62d075a01df850a3d289ccb614da43e7328a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Sun, 26 Jun 2022 19:12:12 +0200 Subject: [PATCH] [boards] Update BK7231T partition layout --- boards/_base/beken-7231t-tuya.json | 8 +++++--- boards/wb2l/README.md | 9 +++++---- tools/boardgen | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/boards/_base/beken-7231t-tuya.json b/boards/_base/beken-7231t-tuya.json index b4eb6f8..cbc3c46 100644 --- a/boards/_base/beken-7231t-tuya.json +++ b/boards/_base/beken-7231t-tuya.json @@ -6,10 +6,12 @@ }, "flash": { "bootloader": "0x000000+0x11000", - "app": "0x011000+0x119000", + "app": "0x011000+0x121000", "download": "0x132000+0xA6000", - "kvs": "0x1D8000+0x6000", - "userdata": "0x1DE000+0x22000" + "kvs": "0x1D8000+0x8000", + "tlv": "0x1E0000+0x1000", + "net": "0x1E1000+0x2000", + "userdata": "0x1E3000+0x1D000" }, "upload": { "maximum_size": 1083136 diff --git a/boards/wb2l/README.md b/boards/wb2l/README.md index 13d5305..a934d8a 100644 --- a/boards/wb2l/README.md +++ b/boards/wb2l/README.md @@ -53,10 +53,11 @@ Hex values are in bytes. Name | Start | Length | End ----------------|----------|--------------------|--------- Bootloader | 0x000000 | 68 KiB / 0x11000 | 0x011000 -App Image | 0x011000 | 1.1 MiB / 0x119000 | 0x12A000 -(reserved) | 0x12A000 | 32 KiB / 0x8000 | 0x132000 +App Image | 0x011000 | 1.1 MiB / 0x121000 | 0x132000 OTA Image | 0x132000 | 664 KiB / 0xA6000 | 0x1D8000 -Key-Value Store | 0x1D8000 | 24 KiB / 0x6000 | 0x1DE000 -User Data | 0x1DE000 | 136 KiB / 0x22000 | 0x200000 +Key-Value Store | 0x1D8000 | 32 KiB / 0x8000 | 0x1E0000 +TLV Store | 0x1E0000 | 4 KiB / 0x1000 | 0x1E1000 +Network Data | 0x1E1000 | 8 KiB / 0x2000 | 0x1E3000 +User Data | 0x1E3000 | 116 KiB / 0x1D000 | 0x200000 Bootloader and app partitions contain CRC16 sums every 32 bytes. That results in the actual flash offsets/sizes not aligned to sector boundaries. To simplify calculations, the values shown in the table (extracted from bootloader's partition table) were aligned to 4096 bytes. diff --git a/tools/boardgen b/tools/boardgen index 77c4d6c..7ab5a50 160000 --- a/tools/boardgen +++ b/tools/boardgen @@ -1 +1 @@ -Subproject commit 77c4d6c0665eef57999ffa458a8020048ff285a8 +Subproject commit 7ab5a50be71bafafdbbd7af8d18d0b307974651f