U-boot-toradex-fsl-fw-utils fw_setenv Problem

Hello,

I’m trying to write into uboot env-var using fw_setenv in script.
but I’m facing this problem

Write error on /dev/mmcblk0boot0: Operation not permitted
Error: can't write fw_env to flash

Do i miss something?

By default in Linux /dev/mmcblk0boot0 is read only.

Have a look at the following script which in our demo images to unlocks mmcblk0boot0 before writing to the U-Boot environment.

Ok I know how to solve this problem.

Hi,

Is there any solution with this issue? I have same problem.

“Write error on /dev/mmcblk0boot0: Operation not permitted\nfsync failed on /dev/mmcblk0boot0: Input/output error\nError: can’t write fw_env to flash\n”

Colibri iMX7D 1GB v1.1A
Colibri Evaluation Board

HI @neotr

Could you provide the hardware and software of your module?
What are you trying to do?

Best regards,
Jaski

Thank you, i fixed the problem.

Perfect. Thanks for the feedback.