2021-10-22 02:35 PM
I have a successful emmc image running on my STM32MP157FAD. However, fw_env.config is incorrect. This is my first project using FIP and I'm a little confused where the uboot environment variables are now located.
Partition Layout:
/dev/mmcblk1p1 34 8225 8192 4M Linux reserved FIP
/dev/mmcblk1p2 49152 180223 131072 64M Linux filesystem Boot
/dev/mmcblk1p3 180224 3227647 3047424 1.5G Linux filesystem RootA
/dev/mmcblk1p4 3227648 6275071 3047424 1.5G Linux filesystem RootB
/dev/mmcblk1p5 6275072 8372223 2097152 1G Linux filesystem Data
Here is the wks output (I'm not sure how to interpret where uboot.env is placed)
part fip --source rawcopy --fstype=ext4 --fsoptions "noauto" --part-name=fip --sourceparams="file=/datadrive/gen3-dev/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxweston-stm32mp1-henson/tmp-glibc/deploy/images/stm32mp1-henson/fip/fip-stm32mp157f-henson-mx-trusted.bin" --ondisk mmcblk --part-type 0x8301 --fixed-size 4096K
part --source rawcopy --sourceparams="file=/datadrive/gen3-dev/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxweston-stm32mp1-henson/tmp-glibc/work/stm32mp1_henson-ostl-linux-gnueabi/st-image-core/1.0-r0/uboot.env" --ondisk "$ondisk_dev" --align $boot_env_align_kb --no-table
part --source rootfs --rootfs-dir /datadrive/gen3-dev/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxweston-stm32mp1-henson/tmp-glibc/work/stm32mp1_henson-ostl-linux-gnueabi/st-image-core/1.0-r0/bootfs.image_gptimg --ondisk "$ondisk_dev" --fstype=ext4 --label bootfs --align $alignment_kb --fixed-size 64 --active $boot_part_params --part-type 0x8300
part --source rootfs --ondisk "$ondisk_dev" --fstype=ext4 --label primary --align $alignment_kb --fixed-size 1523712k $exclude_path_options
part --source rootfs --ondisk "$ondisk_dev" --fstype=ext4 --label secondary --align $alignment_kb --fixed-size 1523712k $exclude_path_options
part --source rootfs --rootfs-dir /datadrive/gen3-dev/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxweston-stm32mp1-henson/tmp-glibc/work/stm32mp1_henson-ostl-linux-gnueabi/st-image-core/1.0-r0/rootfs/data --ondisk "$ondisk_dev" --fstype=ext4 --label data --align $alignment_kb --fixed-size 1024
bootloader --ptable gpt
EOF
Thanks!
2021-10-24 05:08 AM
It appears that the environment is stored at the end of the fip partition. The correct fw_env.config is:
/dev/mmcblk1p1 -0x2000 0x2000
/dev/mmcblk1p1 -0x4000 0x2000
2022-04-14 09:37 AM
Awesome :clapping_hands:
Thanks, it works
2022-10-12 05:47 AM
Hi @TStru.1 ,
I wondering if you can help,
my Yocto kirkstone with Mender build cannot find the "bootfs.image_gptimg.env" file . and i have no clue why.
how you managed to build without this error?
tnx.