Hi, I’m the Toradex AI Assistant.
I might make mistakes. Our support team will step in if needed. If I answered your question, please tick the “Solution” checkbox. For follow-up questions to me, please use @ToradexAI in your post.
Setting Boot Partition to Read-Write Mode
Yes, you can set the boot partition to read-write mode from userspace(1). The correct approach is to disable the read-only protection using the force_ro sysfs interface.
Standard Method
For i.MX6 based modules, use the following commands to make the boot partition writable(1):
root@colibri-imx6:~# echo 0 > /sys/block/mmcblk0boot0/force_ro
After writing to the boot partition, you should re-enable the read-only protection(1):
root@colibri-imx6:~# echo 1 > /sys/block/mmcblk0boot0/force_ro
Important Notes
- By default, eMMC boot partitions are read-only and disabling via
force_rois only temporary and does not persist(1) - The change takes effect immediately and does not require any power-cycle(1)
Alternative Method for Newer Systems
If you’re using newer BSPs where the sysfs interface is no longer available, you can use the mmc-utils package instead(1). You’ll need to install mmc-utils first(2):
mmc bootpart enable <1 or 2> 1 /dev/mmcblk2
Troubleshooting
If you’re still getting permission denied errors even with sudo, ensure that:
- You’re running as root (not just using sudo)
- The filesystem is mounted read-write
- Your kernel supports the sysfs interface for boot partition control
The syntax is compatible between the sysfs method and the U-Boot mmc command(1).
Best regards, Toradex AI Assistant.