admin |
2016-04-17 18:50 |
mtd: invalid option -- - Usage: mtd [<options> ...] <command> [<arguments> ...] <device>[:<device>...]
The device is in the format of mtdX (eg: mtd4) or its label. mtd recognizes these commands: unlock unlock the device refresh refresh mtd partition erase erase all data on device verify <imagefile>|- verify <imagefile> (use - for stdin) to device write <imagefile>|- write <imagefile> (use - for stdin) to device jffs2write <file> append <file> to the jffs2 partition on the devi ce Following options are available: -q quiet mode (once: no [w] on writing, twice: no status messages) -n write without first erasing the blocks -r reboot after successful command -f force write without trx checks -e <device> erase <device> before executing the command -d <name> directory for jffs2write, defaults to "tmp" -j <name> integrate <file> into jffs2 data when writing an image -s <number> skip the first n bytes when appending data to th e jffs2 partiton, defaults to "0" -p write beginning at partition offset
Example: To write linux.trx to mtd4 labeled as linux and reboot afterwards mtd -r write linux.trx linux
|
|