This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WARNING: DO NOT RUN THIS AS A SCRIPT, RUN THE COMMANDS MANUALLY | |
# Make rootfs persistent (yes, this command must be run twice) | |
fw_setenv bootcmd "run ubi_init; run flash_flash" | |
fw_setenv bootcmd "run ubi_init; run flash_flash" | |
# Confirm the change: | |
strings /dev/mtd1 | grep bootcmd | |
strings /dev/mtd2 | grep bootcmd |