Code Block |
---|
|
$ cat /proc/mtd |
dev: size erasesize name
mtd0: 00400000 00010000 "boot"
mtd1: 003e0000 00010000 "failsafe"
mtd2: 00020000 00010000 "reserved"
Code Block |
---|
|
$ flash_eraseall -j /dev/mtd1 |
...
Erasing 64 Kibyte @ 3d0000 -- 100 % complete
Code Block |
---|
|
$ mount -t jffs2 /dev/mtdblock1 /mnt
$ cp /bin/busybox /mnt/
$ reboot -f |
reboot: Restarting system
Code Block |
---|
|
$ mount -t jffs2 /dev/mtdblock1 /mnt
$ ls -lt /mnt |
-rwxr-xr-x 1 root root 541592 Oct 23 09:14 busybox
Code Block |
---|
|
$ /mnt/busybox echo "Hello with busybox from SPI Flash" |
Hello with busybox from SPI Flash