OTA Update partitioning scheme
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-22 2:51 AM
Hi,
I am trying to integrate swupdate for OTA update integration for STM32MP1.
In the due process I will be in need to modify the flash layout file a bit , since I am trying have an extra rootfs partition , named partition B on /dev/mmcblkp06.
I referred to flash layout currently mentioned here.
It looks to me that there is not any support for the extra rootfs which is provided.
How can i do that?
I am sure that I will be in need to change the flashlayout but since offsets are defined static in the mentioned link , I was wondering what should be offset calculation for achieving the same.
I want to achieve following scheme:
#Opt Id Name Type IP Offset Binary
- 0x01 fsbl1-boot Binary none 0x0 arm-trusted-firmware/tf-a-stm32mp157c-ev1-usb.stm32
- 0x03 fip-boot Binary none 0x0 fip/fip-stm32mp157c-ev1-trusted.bin
P 0x04 fsbl1 Binary mmc1 boot1 arm-trusted-firmware/tf-a-stm32mp157c-ev1-emmc.stm32
P 0x05 fsbl2 Binary mmc1 boot2 arm-trusted-firmware/tf-a-stm32mp157c-ev1-emmc.stm32
PD 0x06 fip Binary mmc1 0x00080000 fip/fip-stm32mp157c-ev1-trusted.bin
P 0x10 boot System mmc1 0x00480000 st-image-bootfs-openstlinux-weston-stm32mp1.ext4
P 0x11 vendorfs FileSystem mmc1 0x04480000 st-image-vendorfs-openstlinux-weston-stm32mp1.ext4
P 0x12 rootfs FileSystem mmc1 0x05480000 st-image-weston-openstlinux-weston-stm32mp1.ext4
P 0x13 rootfs2 FileSystem mmc1 ?????????? st-image-weston-openstlinux-weston-stm32mp1.ext4
P 0x14 userfs FileSystem mmc1 ?????????? st-image-userfs-openstlinux-weston-stm32mp1.ext4
What shall be value at the place where I have mentioned ----> "??????????"
TIA
Solved! Go to Solution.
- Labels:
-
STM32MP15 Lines
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-22 5:16 AM
Hi @NPal.2​ ,
You can customized the flashlayout as per your need since you respect the recommendation for partition size
STM32CubeProgrammer flashlayout - stm32mpu
Offset is just the addition of each partition size.
The flashlayout on wiki allocate 746MB to rootfs ( you can change it )
So if you want to double it, it would give something like :
P 0x12 rootfs FileSystem mmc1 0x05480000 st-image-weston-openstlinux-weston-stm32mp1.ext4
P 0x13 rootfs2 FileSystem mmc1 0x33E80000 st-image-weston-openstlinux-weston-stm32mp1.ext4
P 0x14 userfs FileSystem mmc1 0x62880000 st-image-userfs-openstlinux-weston-stm32mp1.ext4
Hope it help
Olivier
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-22 5:16 AM
Hi @NPal.2​ ,
You can customized the flashlayout as per your need since you respect the recommendation for partition size
STM32CubeProgrammer flashlayout - stm32mpu
Offset is just the addition of each partition size.
The flashlayout on wiki allocate 746MB to rootfs ( you can change it )
So if you want to double it, it would give something like :
P 0x12 rootfs FileSystem mmc1 0x05480000 st-image-weston-openstlinux-weston-stm32mp1.ext4
P 0x13 rootfs2 FileSystem mmc1 0x33E80000 st-image-weston-openstlinux-weston-stm32mp1.ext4
P 0x14 userfs FileSystem mmc1 0x62880000 st-image-userfs-openstlinux-weston-stm32mp1.ext4
Hope it help
Olivier
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-12-22 10:46 PM
Hi @Community member​ : Thanks for the response. I just modified few set of things in the file :
./meta-st-stm32mp/conf/machine/include/st-machine-common-stm32mp.inc
Added below lines :
ROOTFS2_PARTITION_SIZE ?= "${IMAGE_ROOTFS_MAXSIZE}"
PARTITIONS_CONFIG[rootfs2] ?= "${IMAGE_BASENAME},rootfs2,,${ROOTFS_PARTITION_SIZE},FileSystem"
with I got the flashlayout generated according to my need.
Thanks for the inputs.
