v5x,v6x: move mtd_caldata after mtd_id partition

to avoid losing factory calibration params on existing setups
This commit is contained in:
Beat Küng
2021-01-14 11:29:53 +01:00
committed by Daniel Agar
parent a282f3df8d
commit 26e8c231b0
2 changed files with 10 additions and 10 deletions

View File

@@ -88,15 +88,15 @@ static const px4_mtd_entry_t imu_eeprom = {
.device = &i2c4, .device = &i2c4,
.npart = 2, .npart = 2,
.partd = { .partd = {
{
.type = MTD_ID,
.path = "/fs/mtd_id",
.nblocks = 8 // 256 = 32 * 8
},
{ {
.type = MTD_CALDATA, .type = MTD_CALDATA,
.path = "/fs/mtd_caldata", .path = "/fs/mtd_caldata",
.nblocks = 248 .nblocks = 248
},
{
.type = MTD_ID,
.path = "/fs/mtd_id",
.nblocks = 8 // 256 = 32 * 8
} }
}, },
}; };

View File

@@ -88,15 +88,15 @@ static const px4_mtd_entry_t imu_eeprom = {
.device = &i2c4, .device = &i2c4,
.npart = 2, .npart = 2,
.partd = { .partd = {
{
.type = MTD_ID,
.path = "/fs/mtd_id",
.nblocks = 8 // 256 = 32 * 8
},
{ {
.type = MTD_CALDATA, .type = MTD_CALDATA,
.path = "/fs/mtd_caldata", .path = "/fs/mtd_caldata",
.nblocks = 248 .nblocks = 248
},
{
.type = MTD_ID,
.path = "/fs/mtd_id",
.nblocks = 8 // 256 = 32 * 8
} }
}, },
}; };