- printf("no valid command given\n");
- printf("\nmtd: modify data within a Memory Technology Device.\n");
- printf("Copyright (C) 2005 Waldemar Brodkorb <wbx@dass-it.de>\n");
- printf("Documented by Mike Strates [dumpedcore] <mike@dilaudid.net>\n");
- printf("mtd has ABSOLUTELY NO WARRANTY and is licensed under the GNU GPL.\n");
- printf("\nUsage: mtd [unlock|erase] device\n");
- printf(" mtd [write|update] imagefile device\n");
- printf("\n.. where device is in the format of mtdX (eg: mtd4) or its label.\n\n");
- printf("unlock enable modification to device\n");
- printf("erase erase all data on device\n");
- printf("write write imagefile to device\n");
- printf("update remove rootfs and update imagefile on device\n");
- printf("\nExample: To write linux.trx to mtd4 labeled as linux\n");
- printf("\n mtd unlock linux && mtd write linux.trx linux\n\n");
- return -1;
-}