Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

Untitled
Thursday, May 17th, 2012 at 1:05:20pm MDT 

  1. # cat /proc/mtd
  2. dev:    size   erasesize  name
  3. mtd0: 00030000 00010000 "Bootloader"
  4. mtd1: 00010000 00010000 "Config"
  5. mtd2: 00010000 00010000 "Factory"
  6. mtd3: 007b0000 00010000 "Kernel"
  7. # mtd --help
  8. -sh: mtd: not found
  9. # mtd_write --help
  10. mtd_write: illegal option -- -
  11. Usage: mtd [<options> ...] <command> [<arguments> ...] <device>
  12.  
  13. The device is in the format of mtdX (eg: mtd4) or its label.
  14. mtd recognizes these commands:
  15.         unlock                  unlock the device
  16.         erase                   erase all data on device
  17.         write <imagefile>|-     write <imagefile> (use - for stdin) to device
  18. Following options are available:
  19.         -q                      quiet mode (once: no [w] on writing,
  20.                                            twice: no status messages)
  21.         -r                      reboot after successful command
  22.         -e <device>             erase <device> before executing the command
  23.         -v                      output writing info. (1 more -v would output HTML format.)
  24.         -o <num>                file offset
  25.         -l <num>                length in file
  26.         -w                      read after write action to check
  27. Example: To write linux.trx to mtd4 labeled as linux and reboot afterwards
  28.          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.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



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.

worth-right
fantasy-obligation
fantasy-obligation