mtd/util Makefile,1.47,1.48 flash_erase.c,1.11,1.12
flash_eraseall.c,1.14,1.15 flash_info.c,1.5,1.6
flash_lock.c,1.3,1.4 flash_unlock.c,1.3,1.4 einfo.c,1.5,NONE
erase.c,1.11,NONE eraseall.c,1.14,NONE lock.c,1.3,NONE
unlock.c,1.3,NONE
gleixner at infradead.org
gleixner at infradead.org
Wed May 5 17:28:39 EDT 2004
Update of /home/cvs/mtd/util
In directory phoenix.infradead.org:/tmp/cvs-serv8521
Modified Files:
Makefile flash_erase.c flash_eraseall.c flash_info.c
flash_lock.c flash_unlock.c
Removed Files:
einfo.c erase.c eraseall.c lock.c unlock.c
Log Message:
rename to unique filenames
Index: Makefile
===================================================================
RCS file: /home/cvs/mtd/util/Makefile,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- Makefile 5 May 2004 19:56:40 -0000 1.47
+++ Makefile 5 May 2004 21:28:35 -0000 1.48
@@ -10,9 +10,9 @@
CC := $(CROSS)gcc
CFLAGS := -I../include -O2 -Wall
-TARGETS = ftl_format erase eraseall nanddump doc_loadbios \
- mkfs.jffs ftl_check mkfs.jffs2 lock unlock \
- einfo mtd_debug flashcp nandwrite jffs2dump \
+TARGETS = ftl_format flash_erase flash_eraseall nanddump doc_loadbios \
+ mkfs.jffs ftl_check mkfs.jffs2 flash_lock flash_unlock \
+ flash_info mtd_debug flashcp nandwrite jffs2dump \
nftldump nftl_format #jffs2reader
%: %.o
Index: flash_erase.c
===================================================================
RCS file: /home/cvs/mtd/util/flash_erase.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- flash_erase.c 5 May 2004 11:57:55 -0000 1.11
+++ flash_erase.c 5 May 2004 21:28:36 -0000 1.12
@@ -1,3 +1,7 @@
+/*
+ * flash_erase.c -- erase parts of a MTD device
+*/
+
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -5,8 +9,8 @@
#include <time.h>
#include <sys/ioctl.h>
#include <sys/mount.h>
-
#include <mtd/mtd-user.h>
+
int region_erase(int Fd, int start, int count, int unlock, int regcount)
{
int i, j;
Index: flash_eraseall.c
===================================================================
RCS file: /home/cvs/mtd/util/flash_eraseall.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- flash_eraseall.c 5 May 2004 12:20:30 -0000 1.14
+++ flash_eraseall.c 5 May 2004 21:28:36 -0000 1.15
@@ -2,6 +2,8 @@
Copyright (C) 2000 Arcom Control System Ltd
+ Renamed to flash_eraseall.c
+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
Index: flash_info.c
===================================================================
RCS file: /home/cvs/mtd/util/flash_info.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- flash_info.c 5 May 2004 11:57:55 -0000 1.5
+++ flash_info.c 5 May 2004 21:28:36 -0000 1.6
@@ -1,3 +1,7 @@
+/*
+ * flash_info.c -- print info about a MTD device
+*/
+
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@ -15,7 +19,7 @@
if (1 >= argc)
{
- fprintf(stderr,"You must specify a device\n");
+ fprintf(stderr,"Usage: flash_info device\n");
return 16;
}
Index: flash_lock.c
===================================================================
RCS file: /home/cvs/mtd/util/flash_lock.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- flash_lock.c 5 May 2004 11:57:55 -0000 1.3
+++ flash_lock.c 5 May 2004 21:28:36 -0000 1.4
@@ -1,5 +1,5 @@
/*
- * FILE lock.c
+ * FILE flash_lock.c
*
* This utility locks one or more sectors of flash device.
*
Index: flash_unlock.c
===================================================================
RCS file: /home/cvs/mtd/util/flash_unlock.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- flash_unlock.c 5 May 2004 11:57:55 -0000 1.3
+++ flash_unlock.c 5 May 2004 21:28:36 -0000 1.4
@@ -1,5 +1,5 @@
/*
- * FILE unlock.c
+ * FILE flash_unlock.c
*
* This utility unlock all sectors of flash device.
*
--- einfo.c DELETED ---
--- erase.c DELETED ---
--- eraseall.c DELETED ---
--- lock.c DELETED ---
--- unlock.c DELETED ---
More information about the linux-mtd-cvs
mailing list