aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-10-31 11:00:42 +0000
committerJohn Crispin <blogic@openwrt.org>2014-10-31 11:00:42 +0000
commitbfb710247b84122e948188c38c4dbf1dc261cb9a (patch)
treed5d5a34a00898e87e5e724f68dbed2d438e11a2a
parentf7956003ae9a01a73ee0e407ee61754369c13a7d (diff)
downloadupstream-bfb710247b84122e948188c38c4dbf1dc261cb9a.tar.gz
upstream-bfb710247b84122e948188c38c4dbf1dc261cb9a.tar.bz2
upstream-bfb710247b84122e948188c38c4dbf1dc261cb9a.zip
lantiq: vr9-vdsl-fw: properly write firmware to flash
Using a redirect to a non-empty mtd partition will not erase the blocks prior to writing to them resulting in broken dsl_fw. Fix this by piping to mtd write - /dev/mtdX instead. Signed-off-by: Daniel Golle <daniel@makrotopia.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43125 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xpackage/kernel/lantiq/ltq-vdsl-fw/src/vdsl_fw_install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/kernel/lantiq/ltq-vdsl-fw/src/vdsl_fw_install.sh b/package/kernel/lantiq/ltq-vdsl-fw/src/vdsl_fw_install.sh
index 63ed948687..858e8f1aed 100755
--- a/package/kernel/lantiq/ltq-vdsl-fw/src/vdsl_fw_install.sh
+++ b/package/kernel/lantiq/ltq-vdsl-fw/src/vdsl_fw_install.sh
@@ -49,7 +49,7 @@ D=`md5sum -b ${FW_DSL} | cut -d" " -f1`
MTD=$(find_mtd_index dsl_fw)
if [ "$MTD" -gt 0 -a -e "/dev/mtd$MTD" ]; then
echo "Storing firmware in flash"
- tar cvz ${FW_TAPI} ${FW_DSL} > "/dev/mtd$MTD"
+ tar cvz ${FW_TAPI} ${FW_DSL} | mtd write - "/dev/mtd$MTD"
/etc/init.d/dsl_fs boot
else
cp ${FW_TAPI} ${FW_DSL} /lib/firmware/