mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
v5x,v6x: move mtd_caldata after mtd_id partition
to avoid losing factory calibration params on existing setups
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user