feat(universal_ota): Modify partition file configuration

This commit is contained in:
Dong Heng
2019-01-23 19:12:58 +08:00
parent 7d01ea2dab
commit c77d59bf01

View File

@ -1,11 +1,10 @@
# Name, Type, SubType, Offset, Size, Flags
# Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild
# Bootloader is at 0x1000 - 0x8000, total 28KB
# Partition table is at 0x8000 - 0x9000, total 4KB
# Bootloader is at 0x1000 - 0x5000, total 16KB
# Partition table is at 0x5000 - 0x6000, total 4KB
# Reserve 4 sectors at the end flash address for V2 updating to V3 and system can read V2 parameters.
# If you don't need read v2 parameters, don't reserve the 4 sectors.
nvs, data, nvs, 0x9000, 0x4000
otadata, data, ota, 0xd000, 0x2000
phy_init, data, phy, 0xf000, 0x1000
ota_0, 0, ota_0, 0x10000, 0x6C000
ota_1, 0, ota_1, 0x90000, 0x6C000
phy_init, data, phy, 0x6000, 0x1000
ota_0, 0, ota_0, 0x7000, 0x77000
nvs, data, nvs, 0x7f000, 0x4000
otadata, data, ota, 0x83000, 0x2000
ota_1, 0, ota_1, 0x85000, 0x77000

1 # Name, Type, SubType, Offset, Size, Flags
2 # Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild
3 # Bootloader is at 0x1000 - 0x8000, total 28KB # Bootloader is at 0x1000 - 0x5000, total 16KB
4 # Partition table is at 0x8000 - 0x9000, total 4KB # Partition table is at 0x5000 - 0x6000, total 4KB
5 # Reserve 4 sectors at the end flash address for V2 updating to V3 and system can read V2 parameters.
6 # If you don't need read v2 parameters, don't reserve the 4 sectors. phy_init, data, phy, 0x6000, 0x1000
7 nvs, data, nvs, 0x9000, 0x4000 ota_0, 0, ota_0, 0x7000, 0x77000
8 otadata, data, ota, 0xd000, 0x2000 nvs, data, nvs, 0x7f000, 0x4000
9 phy_init, data, phy, 0xf000, 0x1000 otadata, data, ota, 0x83000, 0x2000
10 ota_0, 0, ota_0, 0x10000, 0x6C000 ota_1, 0, ota_1, 0x85000, 0x77000
ota_1, 0, ota_1, 0x90000, 0x6C000