7 name_nand
="$base/mini2440_nand.bin"
8 name_snapshots
="$base/mini2440_snapshots.img"
10 if [ ! -f "$name_nand" ]; then
11 echo $0 : creating NAND empty image
: "$name_nand"
12 dd if=/dev
/zero of
="$name_nand" bs
=528 count
=131072
14 if [ ! -f "$name_snapshots" ]; then
15 echo $0 : creating empty snapshot image
: "$name_snapshots"
16 qemu-img create
"$name_snapshots" 100MB
20 rm -rf .mini2440_monitor
22 cmd
="$base/../arm-softmmu/qemu-system-arm \
24 -drive file=$name_snapshots,snapshot=on \
26 -kernel /tftpboot/uImage \
27 -mtdblock "$name_nand" \
29 -usb -usbdevice keyboard -usbdevice mouse \
31 -net tap,vlan=0,ifname=tap0 \
32 -monitor telnet::5555,server,nowait"
34 # -monitor unix:.mini2440_monitor,server,nowait"