Ok, I just reflashed the router (I had some old data from previous install and the file I should edit with the vi editor was empty). I then got the following reply through telnet/ ssh:
root@piratebox:~# cd /mnt/usb && mtd write -r openwrt-ar71xx-generic-tl-mr3020-v
1-squashfs- factory.bin firmware
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
write <imagefile>|- write <imagefile> (use - for stdin) to device
jffs2write <file> append <file> to the jffs2 partition on the device
fixtrx fix the checksum in a trx header on first boot
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
-p write beginning at partition offset
-o offset offset of the image header in the partition(for fixtrx)
-F <part>[:<size>[:<entrypoint>]][,<part>...]
alter the fis partition table to create new partitions replacing
the partitions provided as argument to the write command
(only valid together with the write command)
Example: To write linux.trx to mtd4 labeled as linux and reboot afterwards
mtd -r write linux.trx linux
Which option should I choose? Anyone know?
paul
root@piratebox:~# cd /mnt/usb && mtd write -r openwrt-ar71xx-generic-tl-mr3020-v
1-squashfs- factory.bin firmware
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
write <imagefile>|- write <imagefile> (use - for stdin) to device
jffs2write <file> append <file> to the jffs2 partition on the device
fixtrx fix the checksum in a trx header on first boot
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
-p write beginning at partition offset
-o offset offset of the image header in the partition(for fixtrx)
-F <part>[:<size>[:<entrypoint>]][,<part>...]
alter the fis partition table to create new partitions replacing
the partitions provided as argument to the write command
(only valid together with the write command)
Example: To write linux.trx to mtd4 labeled as linux and reboot afterwards
mtd -r write linux.trx linux
Which option should I choose? Anyone know?
paul