Advertising
- Untitled
- Thursday, May 17th, 2012 at 1:05:20pm MDT
- # cat /proc/mtd
- dev: size erasesize name
- mtd0: 00030000 00010000 "Bootloader"
- mtd1: 00010000 00010000 "Config"
- mtd2: 00010000 00010000 "Factory"
- mtd3: 007b0000 00010000 "Kernel"
- # mtd --help
- -sh: mtd: not found
- # mtd_write --help
- mtd_write: illegal option -- -
- Usage: mtd [<options> ...] <command> [<arguments> ...] <device>
- The device is in the format of mtdX (eg: mtd4) or its label.
- mtd recognizes these commands:
- unlock unlock the device
- erase erase all data on device
- write <imagefile>|- write <imagefile> (use - for stdin) to device
- Following options are available:
- -q quiet mode (once: no [w] on writing,
- twice: no status messages)
- -r reboot after successful command
- -e <device> erase <device> before executing the command
- -v output writing info. (1 more -v would output HTML format.)
- -o <num> file offset
- -l <num> length in file
- -w read after write action to check
- Example: To write linux.trx to mtd4 labeled as linux and reboot afterwards
- mtd -r write linux.trx linux
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.