Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Code Block
languagebash
$ cat /proc/mtd

dev: size erasesize name

mtd0: 00400000 00010000 "boot"
mtd1: 003e0000 00010000 "failsafe"
mtd2: 00020000 00010000 "reserved"

Code Block
languagebash
$ flash_eraseall -j /dev/mtd1

...

Erasing 64 Kibyte @ 3d0000 -- 100 % complete

Code Block
languagebash
$ mount -t jffs2 /dev/mtdblock1 /mnt
$ cp /bin/busybox /mnt/
$ reboot -f

reboot: Restarting system

Code Block
languagebash
$ mount -t jffs2 /dev/mtdblock1 /mnt
$ ls -lt /mnt

-rwxr-xr-x 1 root root 541592 Oct 23 09:14 busybox

Code Block
languagebash
$ /mnt/busybox echo "Hello with busybox from SPI Flash" 

Hello with busybox from SPI Flash