summaryrefslogtreecommitdiff
path: root/target/linux/at91-2.6
diff options
context:
space:
mode:
authorHamish Guthrie <hcg@openwrt.org>2007-06-05 04:34:38 +0000
committerHamish Guthrie <hcg@openwrt.org>2007-06-05 04:34:38 +0000
commitc079b2e0460fcd35cb1ad64074cfa18328637d18 (patch)
tree4e51a0e01ec28e383909d42131e82db9ad4f1fa0 /target/linux/at91-2.6
parent6c6a51c4d53a0e87c09c337754db88a2e41195a1 (diff)
downloadmtk-20170518-c079b2e0460fcd35cb1ad64074cfa18328637d18.zip
mtk-20170518-c079b2e0460fcd35cb1ad64074cfa18328637d18.tar.gz
mtk-20170518-c079b2e0460fcd35cb1ad64074cfa18328637d18.tar.bz2
Changed target for ubpar.c to directly write to mtd device
SVN-Revision: 7502
Diffstat (limited to 'target/linux/at91-2.6')
-rw-r--r--target/linux/at91-2.6/image/u-boot/ubclient/ubpar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/at91-2.6/image/u-boot/ubclient/ubpar.c b/target/linux/at91-2.6/image/u-boot/ubclient/ubpar.c
index 103d4fd..228a578 100644
--- a/target/linux/at91-2.6/image/u-boot/ubclient/ubpar.c
+++ b/target/linux/at91-2.6/image/u-boot/ubclient/ubpar.c
@@ -115,7 +115,7 @@ int main(int argc, char *argv[]) {
envptr->crc = crc32(0, envptr->data, ENV_SIZE);
- params = fopen("params", "w");
+ params = fopen("/dev/mtd1", "w");
fwrite(envptr, CFG_ENV_SIZE, 1, params);
fclose(params);