* [Buildroot] svn commit: trunk/buildroot/package/mtd/mtd-utils
@ 2007-09-27 7:36 ulf at uclibc.org
0 siblings, 0 replies; 5+ messages in thread
From: ulf at uclibc.org @ 2007-09-27 7:36 UTC (permalink / raw)
To: buildroot
Author: ulf
Date: 2007-09-27 00:36:42 -0700 (Thu, 27 Sep 2007)
New Revision: 20055
Log:
Fix some issues with mtdutils
Added:
trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-all-targets.patch
trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-acl.patch
trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-llzo.patch
trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-lzo-header.patch
Modified:
trunk/buildroot/package/mtd/mtd-utils/mtd.mk
Changeset:
Added: trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-all-targets.patch
===================================================================
--- trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-all-targets.patch (rev 0)
+++ trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-all-targets.patch 2007-09-27 07:36:42 UTC (rev 20055)
@@ -0,0 +1,34 @@
+diff -urN mtd-utils-1.1.0-0rig/Makefile mtd-utils-1.1.0/Makefile
+--- mtd-utils-1.1.0-0rig/Makefile 2007-08-03 15:55:51.000000000 +0200
++++ mtd-utils-1.1.0/Makefile 2007-09-27 08:20:55.000000000 +0200
+@@ -72,6 +72,30 @@
+ $(BUILDDIR)/sumtool: $(BUILDDIR)/sumtool.o $(BUILDDIR)/crc32.o
+ $(CC) $(LDFLAGS) -o $@ $^
+
++ftl_format: $(BUILDDIR)/ftl_format
++flash_erase: $(BUILDDIR)/flash_erase
++flash_eraseall: $(BUILDDIR)/flash_eraseall
++nanddump: $(BUILDDIR)/nanddump
++doc_loadbios: $(BUILDDIR)/doc_loadbios
++mkfs.jffs: $(BUILDDIR)/mkfs.jffs
++ftl_check: $(BUILDDIR)/ftl_check
++mkfs.jffs2: $(BUILDDIR)/mkfs.jffs2
++flash_lock: $(BUILDDIR)/flash_lock
++flash_unlock: $(BUILDDIR)/flash_unlock
++flash_info: $(BUILDDIR)/flash_info
++flash_otp_info: $(BUILDDIR)/flash_otp_info
++flash_otp_dump: $(BUILDDIR)/flash_otp_dump
++mtd_debug: $(BUILDDIR)/mtd_debug
++flashcp: $(BUILDDIR)/flashcp
++nandwrite: $(BUILDDIR)/nandwrite
++jffs2dump: $(BUILDDIR)/jffs2dump
++nftldump: $(BUILDDIR)/nftldump
++nftl_format: $(BUILDDIR)/nftl_format
++docfdisk: $(BUILDDIR)/docfdisk
++rfddump: $(BUILDDIR)/rfddump
++rfdformat: $(BUILDDIR)/rfdformat
++sumtool: $(BUILDDIR)/sumtool
++
+ install: ${TARGETS}
+ mkdir -p ${DESTDIR}/${SBINDIR}
+ install -m0755 ${TARGETS} ${DESTDIR}/${SBINDIR}/
Added: trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-acl.patch
===================================================================
--- trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-acl.patch (rev 0)
+++ trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-acl.patch 2007-09-27 07:36:42 UTC (rev 20055)
@@ -0,0 +1,48 @@
+Author: Ulf Samuelsson
+Date: 2007-01-25
+
+Log:
+Patch adding "sys/acl.h" needed to compile mtd.
+
+Modified:
+ package/mtd/mtd_acl.patch
+
+Changeset
+ package/mtd/mtd_acl.patch
+
+diff -urN mtd_orig-0rig/include/sys/acl.h mtd_orig/include/sys/acl.h
+--- mtd_orig-0rig/include/sys/acl.h 1970-01-01 01:00:00.000000000 +0100
++++ mtd_orig/include/sys/acl.h 2007-01-17 20:11:22.000000000 +0100
+@@ -0,0 +1,32 @@
++/*
++ File: linux/posix_acl.h
++
++ (C) 2002 Andreas Gruenbacher, <a.gruenbacher@computer.org>
++*/
++
++
++#ifndef __LINUX_POSIX_ACL_H
++#define __LINUX_POSIX_ACL_H
++
++#define ACL_UNDEFINED_ID (-1)
++
++/* a_type field in acl_user_posix_entry_t */
++#define ACL_TYPE_ACCESS (0x8000)
++#define ACL_TYPE_DEFAULT (0x4000)
++
++/* e_tag entry in struct posix_acl_entry */
++#define ACL_USER_OBJ (0x01)
++#define ACL_USER (0x02)
++#define ACL_GROUP_OBJ (0x04)
++#define ACL_GROUP (0x08)
++#define ACL_MASK (0x10)
++#define ACL_OTHER (0x20)
++
++/* permissions in the e_perm field */
++#define ACL_READ (0x04)
++#define ACL_WRITE (0x02)
++#define ACL_EXECUTE (0x01)
++//#define ACL_ADD (0x08)
++//#define ACL_DELETE (0x10)
++
++#endif /* __LINUX_POSIX_ACL_H */
Added: trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-llzo.patch
===================================================================
--- trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-llzo.patch (rev 0)
+++ trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-llzo.patch 2007-09-27 07:36:42 UTC (rev 20055)
@@ -0,0 +1,10 @@
+diff -urN mtd-utils-1.1.0-0rig/Makefile mtd-utils-1.1.0/Makefile
+--- mtd-utils-1.1.0-0rig/Makefile 2007-08-03 15:55:51.000000000 +0200
++++ mtd-utils-1.1.0/Makefile 2007-09-27 08:20:55.000000000 +0200
+@@ -58,7 +58,7 @@
+ $(BUILDDIR)/compr_zlib.o \
+ $(BUILDDIR)/compr_lzo.o \
+ $(BUILDDIR)/compr.o
+- $(CC) $(LDFLAGS) -o $@ $^ -lz -llzo2
++ $(CC) $(LDFLAGS) -o $@ $^ -lz -llzo
+
Added: trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-lzo-header.patch
===================================================================
--- trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-lzo-header.patch (rev 0)
+++ trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-lzo-header.patch 2007-09-27 07:36:42 UTC (rev 20055)
@@ -0,0 +1,14 @@
+diff -urN mtd-utils-1.1.0-0rig/compr_lzo.c mtd-utils-1.1.0/compr_lzo.c
+--- mtd-utils-1.1.0-0rig/compr_lzo.c 2007-08-03 15:55:51.000000000 +0200
++++ mtd-utils-1.1.0/compr_lzo.c 2007-09-27 08:18:05.000000000 +0200
+@@ -26,7 +26,7 @@
+ #include <string.h>
+ #include <asm/types.h>
+ #include <linux/jffs2.h>
+-#include <lzo/lzo1x.h>
++#include <lzo1x.h>
+ #include "compr.h"
+
+ extern int page_size;
+ $(BUILDDIR)/flash_eraseall: $(BUILDDIR)/crc32.o $(BUILDDIR)/flash_eraseall.o
+ $(CC) $(LDFLAGS) -o $@ $^
Modified: trunk/buildroot/package/mtd/mtd-utils/mtd.mk
===================================================================
--- trunk/buildroot/package/mtd/mtd-utils/mtd.mk 2007-09-27 00:48:31 UTC (rev 20054)
+++ trunk/buildroot/package/mtd/mtd-utils/mtd.mk 2007-09-27 07:36:42 UTC (rev 20055)
@@ -27,12 +27,17 @@
rm -rf $(MTD_HOST_DIR)
mv $(TOOL_BUILD_DIR)/$(MTD_NAME) $(MTD_HOST_DIR)
toolchain/patch-kernel.sh $(MTD_HOST_DIR) \
- package/mtd/mtd-utils \*.patch
+ package/mtd/mtd-utils mtd-utils-$(MTD_VERSION)-all\*.patch
+ toolchain/patch-kernel.sh $(MTD_HOST_DIR) \
+ package/mtd/mtd-utils mtd-utils-$(MTD_VERSION)-host\*.patch
touch $@
+
$(MTD_HOST_DIR)/mkfs.jffs2: $(MTD_HOST_DIR)/.unpacked
CC="$(HOSTCC)" CROSS= CFLAGS=-I$(LINUX_HEADERS_DIR)/include \
- $(MAKE) LINUXDIR=$(LINUX_DIR) -C $(MTD_HOST_DIR) mkfs.jffs2
+ $(MAKE) LINUXDIR=$(LINUX_DIR) \
+ BUILDDIR=$(MTD_HOST_DIR) \
+ -C $(MTD_HOST_DIR) mkfs.jffs2
mtd-host: $(MKFS_JFFS2)
@@ -52,8 +57,8 @@
$(MTD_DIR)/.unpacked: $(DL_DIR)/$(MTD_SOURCE)
$(MTD_CAT) $(DL_DIR)/$(MTD_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
mv $(BUILD_DIR)/$(MTD_NAME) $(MTD_DIR)
- toolchain/patch-kernel.sh $(MTD_DIR) \
- package/mtd/mtd-utils \*.patch
+ toolchain/patch-kernel.sh $(MTD_DIR) package/mtd/mtd-utils mtd-utils-$(MTD_VERSION)-all\*.patch
+ toolchain/patch-kernel.sh $(MTD_DIR) package/mtd/mtd-utils mtd-utils-$(MTD_VERSION)-target\*.patch
touch $@
MTD_TARGETS_n :=
@@ -85,7 +90,8 @@
$(MTD_BUILD_TARGETS): $(MTD_DIR)/.unpacked
mkdir -p $(TARGET_DIR)/usr/sbin
$(MAKE) CFLAGS="-I. -I./include -I$(LINUX_HEADERS_DIR)/include -I$(STAGING_DIR)/usr/include $(TARGET_CFLAGS)" \
- CROSS= CC=$(TARGET_CC) LINUXDIR=$(LINUX26_DIR) WITHOUT_XATTR=1 -C $(MTD_DIR)
+ BUILDDIR=$(MTD_DIR) \
+ CROSS=$(TARGET_CROSS) CC=$(TARGET_CC) LINUXDIR=$(LINUX26_DIR) WITHOUT_XATTR=1 -C $(MTD_DIR)
MTD_TARGETS := $(addprefix $(TARGET_DIR)/usr/sbin/, $(MTD_TARGETS_y))
^ permalink raw reply [flat|nested] 5+ messages in thread* [Buildroot] svn commit: trunk/buildroot/package/mtd/mtd-utils
@ 2008-09-04 1:39 hamish at uclibc.org
0 siblings, 0 replies; 5+ messages in thread
From: hamish at uclibc.org @ 2008-09-04 1:39 UTC (permalink / raw)
To: buildroot
Author: hamish
Date: 2008-09-03 18:39:40 -0700 (Wed, 03 Sep 2008)
New Revision: 23315
Log:
Remove lzo patches which aren't required with latest liblzo package updates
Removed:
trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-llzo.patch
trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-lzo-header.patch
Changeset:
Deleted: trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-llzo.patch
===================================================================
--- trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-llzo.patch 2008-09-04 01:35:34 UTC (rev 23314)
+++ trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-llzo.patch 2008-09-04 01:39:40 UTC (rev 23315)
@@ -1,10 +0,0 @@
-diff -urN mtd-utils-1.1.0-0rig/Makefile mtd-utils-1.1.0/Makefile
---- mtd-utils-1.1.0-0rig/Makefile 2007-08-03 15:55:51.000000000 +0200
-+++ mtd-utils-1.1.0/Makefile 2007-09-27 08:20:55.000000000 +0200
-@@ -58,7 +58,7 @@
- $(BUILDDIR)/compr_zlib.o \
- $(BUILDDIR)/compr_lzo.o \
- $(BUILDDIR)/compr.o
-- $(CC) $(LDFLAGS) -o $@ $^ -lz -llzo2
-+ $(CC) $(LDFLAGS) -o $@ $^ -lz -llzo
-
Deleted: trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-lzo-header.patch
===================================================================
--- trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-lzo-header.patch 2008-09-04 01:35:34 UTC (rev 23314)
+++ trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-lzo-header.patch 2008-09-04 01:39:40 UTC (rev 23315)
@@ -1,14 +0,0 @@
-diff -urN mtd-utils-1.1.0-0rig/compr_lzo.c mtd-utils-1.1.0/compr_lzo.c
---- mtd-utils-1.1.0-0rig/compr_lzo.c 2007-08-03 15:55:51.000000000 +0200
-+++ mtd-utils-1.1.0/compr_lzo.c 2007-09-27 08:18:05.000000000 +0200
-@@ -26,7 +26,7 @@
- #include <string.h>
- #include <asm/types.h>
- #include <linux/jffs2.h>
--#include <lzo/lzo1x.h>
-+#include <lzo1x.h>
- #include "compr.h"
-
- extern int page_size;
- $(BUILDDIR)/flash_eraseall: $(BUILDDIR)/crc32.o $(BUILDDIR)/flash_eraseall.o
- $(CC) $(LDFLAGS) -o $@ $^
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package/mtd/mtd-utils
@ 2009-01-20 14:17 jacmet at uclibc.org
0 siblings, 0 replies; 5+ messages in thread
From: jacmet at uclibc.org @ 2009-01-20 14:17 UTC (permalink / raw)
To: buildroot
Author: jacmet
Date: 2009-01-20 14:17:58 +0000 (Tue, 20 Jan 2009)
New Revision: 24923
Log:
mtd/mtd-utils: sys/acl.h patch is needed for host-mkfs.jffs2 as well
The host stuff seems pretty broken though as we don't build a host version
of liblzo.
Added:
trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-all-acl.patch
Removed:
trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-acl.patch
Changeset:
Copied: trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-all-acl.patch (from rev 24922, trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-acl.patch)
===================================================================
--- trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-all-acl.patch (rev 0)
+++ trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-all-acl.patch 2009-01-20 14:17:58 UTC (rev 24923)
@@ -0,0 +1,48 @@
+Author: Ulf Samuelsson
+Date: 2007-01-25
+
+Log:
+Patch adding "sys/acl.h" needed to compile mtd.
+
+Modified:
+ package/mtd/mtd_acl.patch
+
+Changeset
+ package/mtd/mtd_acl.patch
+
+diff -urN mtd_orig-0rig/include/sys/acl.h mtd_orig/include/sys/acl.h
+--- mtd_orig-0rig/include/sys/acl.h 1970-01-01 01:00:00.000000000 +0100
++++ mtd_orig/include/sys/acl.h 2007-01-17 20:11:22.000000000 +0100
+@@ -0,0 +1,32 @@
++/*
++ File: linux/posix_acl.h
++
++ (C) 2002 Andreas Gruenbacher, <a.gruenbacher@computer.org>
++*/
++
++
++#ifndef __LINUX_POSIX_ACL_H
++#define __LINUX_POSIX_ACL_H
++
++#define ACL_UNDEFINED_ID (-1)
++
++/* a_type field in acl_user_posix_entry_t */
++#define ACL_TYPE_ACCESS (0x8000)
++#define ACL_TYPE_DEFAULT (0x4000)
++
++/* e_tag entry in struct posix_acl_entry */
++#define ACL_USER_OBJ (0x01)
++#define ACL_USER (0x02)
++#define ACL_GROUP_OBJ (0x04)
++#define ACL_GROUP (0x08)
++#define ACL_MASK (0x10)
++#define ACL_OTHER (0x20)
++
++/* permissions in the e_perm field */
++#define ACL_READ (0x04)
++#define ACL_WRITE (0x02)
++#define ACL_EXECUTE (0x01)
++//#define ACL_ADD (0x08)
++//#define ACL_DELETE (0x10)
++
++#endif /* __LINUX_POSIX_ACL_H */
Deleted: trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-acl.patch
===================================================================
--- trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-acl.patch 2009-01-20 09:29:50 UTC (rev 24922)
+++ trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-target-acl.patch 2009-01-20 14:17:58 UTC (rev 24923)
@@ -1,48 +0,0 @@
-Author: Ulf Samuelsson
-Date: 2007-01-25
-
-Log:
-Patch adding "sys/acl.h" needed to compile mtd.
-
-Modified:
- package/mtd/mtd_acl.patch
-
-Changeset
- package/mtd/mtd_acl.patch
-
-diff -urN mtd_orig-0rig/include/sys/acl.h mtd_orig/include/sys/acl.h
---- mtd_orig-0rig/include/sys/acl.h 1970-01-01 01:00:00.000000000 +0100
-+++ mtd_orig/include/sys/acl.h 2007-01-17 20:11:22.000000000 +0100
-@@ -0,0 +1,32 @@
-+/*
-+ File: linux/posix_acl.h
-+
-+ (C) 2002 Andreas Gruenbacher, <a.gruenbacher@computer.org>
-+*/
-+
-+
-+#ifndef __LINUX_POSIX_ACL_H
-+#define __LINUX_POSIX_ACL_H
-+
-+#define ACL_UNDEFINED_ID (-1)
-+
-+/* a_type field in acl_user_posix_entry_t */
-+#define ACL_TYPE_ACCESS (0x8000)
-+#define ACL_TYPE_DEFAULT (0x4000)
-+
-+/* e_tag entry in struct posix_acl_entry */
-+#define ACL_USER_OBJ (0x01)
-+#define ACL_USER (0x02)
-+#define ACL_GROUP_OBJ (0x04)
-+#define ACL_GROUP (0x08)
-+#define ACL_MASK (0x10)
-+#define ACL_OTHER (0x20)
-+
-+/* permissions in the e_perm field */
-+#define ACL_READ (0x04)
-+#define ACL_WRITE (0x02)
-+#define ACL_EXECUTE (0x01)
-+//#define ACL_ADD (0x08)
-+//#define ACL_DELETE (0x10)
-+
-+#endif /* __LINUX_POSIX_ACL_H */
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package/mtd/mtd-utils
@ 2009-01-20 20:06 jacmet at uclibc.org
0 siblings, 0 replies; 5+ messages in thread
From: jacmet at uclibc.org @ 2009-01-20 20:06 UTC (permalink / raw)
To: buildroot
Author: jacmet
Date: 2009-01-20 20:06:36 +0000 (Tue, 20 Jan 2009)
New Revision: 24925
Log:
mtd/mtd-utils: mkfs.jffs2: fix device_table handling
Added:
trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-all-mkfs.jffs2-device_table-fix.patch
Changeset:
Added: trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-all-mkfs.jffs2-device_table-fix.patch
===================================================================
--- trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-all-mkfs.jffs2-device_table-fix.patch (rev 0)
+++ trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-all-mkfs.jffs2-device_table-fix.patch 2009-01-20 20:06:36 UTC (rev 24925)
@@ -0,0 +1,23 @@
+mkfs.jffs2.c: fix device_table handling
+
+find_filesystem_entry would ignore device_table entries for existing elements
+if the device type / permissions weren't exactly the same, effectively
+rendering device_table useless.
+---
+ mkfs.jffs2.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+Index: mtd-utils-1.1.0/mkfs.jffs2.c
+===================================================================
+--- mtd-utils-1.1.0.orig/mkfs.jffs2.c
++++ mtd-utils-1.1.0/mkfs.jffs2.c
+@@ -246,8 +246,7 @@
+ e = dir->files;
+ }
+ while (e) {
+- /* Only bother to do the expensive strcmp on matching file types */
+- if (type == (e->sb.st_mode & S_IFMT)) {
++ if (1) {
+ if (S_ISDIR(e->sb.st_mode)) {
+ int len = strlen(e->fullname);
+
^ permalink raw reply [flat|nested] 5+ messages in thread* [Buildroot] svn commit: trunk/buildroot/package/mtd/mtd-utils
@ 2009-02-17 14:04 jacmet at uclibc.org
0 siblings, 0 replies; 5+ messages in thread
From: jacmet at uclibc.org @ 2009-02-17 14:04 UTC (permalink / raw)
To: buildroot
Author: jacmet
Date: 2009-02-17 14:04:49 +0000 (Tue, 17 Feb 2009)
New Revision: 25353
Log:
mtd-utils: flashcp: handle non-power-of-2 erase size (E.G. for dataflash)
Added:
trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-all-flashcp-npow2-erase.patch
Changeset:
Added: trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-all-flashcp-npow2-erase.patch
===================================================================
--- trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-all-flashcp-npow2-erase.patch (rev 0)
+++ trunk/buildroot/package/mtd/mtd-utils/mtd-utils-1.1.0-all-flashcp-npow2-erase.patch 2009-02-17 14:04:49 UTC (rev 25353)
@@ -0,0 +1,23 @@
+flashcp: handle non-power-of-2 erase size (E.G. for dataflash)
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ flashcp.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+Index: mtd-utils-1.1.0/flashcp.c
+===================================================================
+--- mtd-utils-1.1.0.orig/flashcp.c 2007-08-03 15:55:51.000000000 +0200
++++ mtd-utils-1.1.0/flashcp.c 2009-02-17 14:02:09.000000000 +0100
+@@ -255,8 +255,9 @@
+ #warning "Check for smaller erase regions"
+
+ erase.start = 0;
+- erase.length = filestat.st_size & ~(mtd.erasesize - 1);
+- if (filestat.st_size % mtd.erasesize) erase.length += mtd.erasesize;
++ erase.length = (filestat.st_size + mtd.erasesize - 1) / mtd.erasesize;
++ erase.length *= mtd.erasesize;
++
+ if (flags & FLAG_VERBOSE)
+ {
+ /* if the user wants verbose output, erase 1 block at a time and show him/her what's going on */
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-02-17 14:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-27 7:36 [Buildroot] svn commit: trunk/buildroot/package/mtd/mtd-utils ulf at uclibc.org
-- strict thread matches above, loose matches on Subject: below --
2008-09-04 1:39 hamish at uclibc.org
2009-01-20 14:17 jacmet at uclibc.org
2009-01-20 20:06 jacmet at uclibc.org
2009-02-17 14:04 jacmet at uclibc.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox