diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2015-06-16 11:30:17 +0200 |
---|---|---|
committer | Max Krummenacher <max.oss.09@gmail.com> | 2015-10-12 15:15:40 +0200 |
commit | c1534d3008ffc34ae590e9e80682bc22ee2f8c5c (patch) | |
tree | ded91b04854ed6912a3e73c9d82c24277583f1b6 /recipes-bsp/u-boot/files/fw_unlock_mmc.sh | |
parent | e10ff4d2f038729f8731556162aadf220a401bde (diff) |
base-files/u-boot-toradex-fw-utils: move MMC unlock
The mmc unlock function causes troubles when using Poky reference
distribution since Poky uses the busybox shell:
/etc/rc5.d/S09xserver-nodm: /etc/profile.d/fw_unlock_mmc.sh: line 2: syntax error: unexpected "("
This avoids X getting at all.
This patch does not solve the underlying problem, but works around it
by moving the script to the u-boot-toradex-fw-utils recipe, which is
not installed by the Poky images by default.
Diffstat (limited to 'recipes-bsp/u-boot/files/fw_unlock_mmc.sh')
-rw-r--r-- | recipes-bsp/u-boot/files/fw_unlock_mmc.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/files/fw_unlock_mmc.sh b/recipes-bsp/u-boot/files/fw_unlock_mmc.sh new file mode 100644 index 0000000..8982640 --- /dev/null +++ b/recipes-bsp/u-boot/files/fw_unlock_mmc.sh @@ -0,0 +1,6 @@ +# Give fw_setenv mmcblk0boot1 write permissions +function fw_setenv() { + echo 0 > /sys/block/mmcblk0boot1/force_ro + /sbin/fw_setenv "$@" + echo 1 > /sys/block/mmcblk0boot1/force_ro +} |