status

Since the beginning of July 2010 MeshCube support works again in OpenWrt trunk and Backfire branch. :)

how to flash

to install openwrt is basically the same as installing nylon images, so see: MeshCube/InstallFilesystemImages for more details. here's a short recap just for OpenWrt:

from yamon via TFTP

connect a serial cable (MeshCube/SerialPort) and during startup press Ctrl-C to enter the YAMON bootloader. set up a TFTP server before.

erase 0xbfd00000 0xf0000
erase -s
load /openwrt-au1000-vmlinux-flash.srec
load /openwrt-au1000-jffs2-128k.srec

from within nylon

you can also flash from within a running nylon system. when writing the filesystem image, however, you have to be careful to kill all processes which could want to read or write the filesystem while flashing - because you are basically replacing the filesystem from under your feet. here is an example session:

get the files, eg.:

root@mtx-1:/tmp# cd /tmp
root@mtx-1:/tmp# wget http://192.168.200.1/openwrt/openwrt-au1000-vmlinux.bin
Connecting to 192.168.200.1[192.168.200.1]:80
openwrt-au1000-vmlin 100% |*****************************|   765 KB    00:00 ETA
root@mtx-1:/tmp# wget http://192.168.200.1/openwrt/openwrt-au1000-jffs2-128k.fs
Connecting to 192.168.200.1[192.168.200.1]:80
openwrt-au1000-jffs2 100% |*****************************|  3328 KB    00:00 ETA

kill all processes (don't kill sshd if you are connected via ssh):

root@mtx-1:/tmp# ps aux
  PID  Uid     VmSize Stat Command
    1 root        592 S   init [2]
    2 root            SW  [keventd]
    3 root            SWN [ksoftirqd_CPU0]
    4 root            SW  [kswapd]
    5 root            SW  [bdflush]
    6 root            SW  [kupdated]
    8 root            SW  [mtdblockd]
    9 root            SW  [khubd]
   43 root            SWN [jffs2_gcd_mtd0]
  200 root        716 S   udhcpc -b -p /var/run/udhcpc.eth0.pid -t 10 -i eth0
  290 root        828 S   /usr/sbin/crond -c /etc/cron/crontabs
  294 nobody      812 S   /usr/bin/dnsmasq
  360 root        592 S   /usr/sbin/ifplugd -i eth0 -fwI -u0 -d10
  381 root       1696 S   /usr/sbin/sshd
  385 root        644 S   /sbin/syslogd -n -C 500 -m 20
  387 root        624 S   /sbin/klogd -n
  395 root        620 S   /usr/sbin/httpd -h /srv/www
  402 root       1756 S   -sh
  419 root        800 R   ps aux
root@mtx-1:/tmp# kill 200 290 294 360 381 385 387 395
root@mtx-1:/tmp# ps aux
  PID  Uid     VmSize Stat Command
    1 root        592 S   init [2]
    2 root            SW  [keventd]
    3 root            SWN [ksoftirqd_CPU0]
    4 root            SW  [kswapd]
    5 root            SW  [bdflush]
    6 root            SW  [kupdated]
    8 root            SW  [mtdblockd]
    9 root            SW  [khubd]
   43 root            SWN [jffs2_gcd_mtd0]
  402 root       1760 S   -sh
  433 root        800 R   ps aux
root@mtx-1:/tmp# sync

now copy to flash:

flashcp -v openwrt-au1000-vmlinux.bin /dev/mtd/2
flashcp -v openwrt-au1000-jffs2-128k.fs /dev/mtd/0

or if you already use openwrt

mtd write openwrt-au1000-vmlinux.bin kernel
mtd write openwrt-au1000-jffs2-128k.fs rootfs

MeshCube/OpenWrt (last edited 2010-07-02 16:19:13 by Br1)