nsh_archinitialize: Initializing SDIO slot 0 nsh_archinitialize: Bind SDIO to the MMC/SD driver, minor=0 nsh_archinitialize: Successfully bound SDIO to the MMC/SD driver NuttShell (NSH) NuttX-6.22 nsh> ls /dev /dev: console mmcsd0 null ttyS0 nsh> ls / /: dev/ nsh> mount nsh> mount -t vfat /dev/mmcsd0 /mnt nsh> df Block Number Size Blocks Used Available Mounted on nsh> df Block Number Size Blocks Used Available Mounted on 8192 62495 2 62493 /mnt nsh> mount /mnt type vfat nsh> ls /mnt /mnt: nsh> cd /mnt nsh> mkdir testdir nsh> cd testdir nsh> pwd /mnt/testdir nsh> ls /mnt/testdir: nsh> help >> help.log nsh> ls -l /mnt/testdir: -rw-rw-rw- 587 help.log nsh> cat help.log help usage: help [-v] [] [ df ifconfig mkfifo ps sleep ? echo kill mkrd put test cat exec losetup mh pwd umount cd exit ls mount rm unset cp free mb mv rmdir usleep date get mkdir mw set wget dd help mkfatfs ping sh xd Builtin Apps: pwm ostest nsh> df >> help.log nsh> ls -l /mnt/testdir: -rw-rw-rw- 689 help.log nsh> mount >> help.log nsh> ls -l /mnt/testdir: -rw-rw-rw- 706 help.log nsh> cat help.log help usage: help [-v] [] [ df ifconfig mkfifo ps sleep ? echo kill mkrd put test cat exec losetup mh pwd umount cd exit ls mount rm unset cp free mb mv rmdir usleep date get mkdir mw set wget dd help mkfatfs ping sh xd Builtin Apps: pwm ostest Block Number Size Blocks Used Available Mounted on 8192 62495 4 62491 /mnt /mnt type vfat nsh> gfree total used free largest Mem: 155088 20544 134544 85712 nsh> free total used free largest Mem: 155088 20544 134544 85712 nsh> cd / nsh> umount /mnt nsh> free total used free largest Mem: 155088 19872 135216 85712 nsh> ls / /: dev/ nsh> ls /dev /dev: console mmcsd0 null ttyS0 nsh> ifconfig eth0 HWaddr 02:03:04:05:00:01 IPaddr:192.168.1.201 DRaddr:192.168.1.1 Mask:255.255.255.0 uIP IP TCP UDP ICMP Received 0012 0000 0000 0000 Dropped 0012 0000 0000 0000 IP VHL: 0000 HBL: 0000 LBL: 0000 Frg: 0000 Checksum 0000 0000 0000 ---- TCP ACK: 0000 SYN: 0000 RST: 0000 0000 Type 0000 ---- ---- 0000 Sent ---- 0000 0000 0000 Rexmit ---- 0000 ---- ---- nsh> ping 192.168.1.100 PING 192.168.1.100 56 bytes of data 56 bytes from 192.168.1.100: icmp_seq=2 time=0 ms 56 bytes from 192.168.1.100: icmp_seq=3 time=0 ms 56 bytes from 192.168.1.100: icmp_seq=4 time=0 ms 56 bytes from 192.168.1.100: icmp_seq=5 time=0 ms 56 bytes from 192.168.1.100: icmp_seq=6 time=0 ms 56 bytes from 192.168.1.100: icmp_seq=7 time=0 ms 56 bytes from 192.168.1.100: icmp_seq=8 time=0 ms 56 bytes from 192.168.1.100: icmp_seq=9 time=0 ms 56 bytes from 192.168.1.100: icmp_seq=10 time=0 ms 10 packets transmitted, 9 received, 10% packet loss, time 10620 ms nsh> ls ping 192.168.1.100 PING 192.168.1.100 56 bytes of data 56 bytes from 192.168.1.100: icmp_seq=1 time=0 ms 56 bytes from 192.168.1.100: icmp_seq=2 time=0 ms 56 bytes from 192.168.1.100: icmp_seq=3 time=0 ms 56 bytes from 192.168.1.100: icmp_seq=4 time=0 ms 56 bytes from 192.168.1.100: icmp_seq=5 time=0 ms 56 bytes from 192.168.1.100: icmp_seq=6 time=0 ms 56 bytes from 192.168.1.100: icmp_seq=7 time=0 ms 56 bytes from 192.168.1.100: icmp_seq=8 time=0 ms 56 bytes from 192.168.1.100: icmp_seq=9 time=0 ms 56 bytes from 192.168.1.100: icmp_seq=10 time=0 ms 10 packets transmitted, 10 received, 0% packet loss, time 10100 ms nsh> ping ifconfig eth0 HWaddr 02:03:04:05:00:01 IPaddr:192.168.1.201 DRaddr:192.168.1.1 Mask:255.255.255.0 uIP IP TCP UDP ICMP Received 0025 0000 0000 0013 Dropped 0012 0000 0000 0000 IP VHL: 0000 HBL: 0000 LBL: 0000 Frg: 0000 Checksum 0000 0000 0000 ---- TCP ACK: 0000 SYN: 0000 RST: 0000 0000 Type 0000 ---- ---- 0000 Sent ---- 0000 0000 0014 Rexmit ---- 0000 ---- ---- nsh> ls /dev /dev: console mmcsd0 null ttyS0 nsh> ifconfig eth0 HWaddr 02:03:04:05:00:01 IPaddr:192.168.1.201 DRaddr:192.168.1.1 Mask:255.255.255.0 uIP IP TCP UDP ICMP Received 0032 000d 0000 0013 Dropped 0012 0000 0000 0000 IP VHL: 0000 HBL: 0000 LBL: 0000 Frg: 0000 Checksum 0000 0000 0000 ---- TCP ACK: 0000 SYN: 0000 RST: 0000 0000 Type 0000 ---- ---- 0000 Sent ---- 000d 0000 0014 Rexmit ---- 0000 ---- ---- nsh> ls /dev /dev: console mmcsd0 null telnetd0 ttyS0 nsh> ifconfig eth0 HWaddr 02:03:04:05:00:01 IPaddr:192.168.1.201 DRaddr:192.168.1.1 Mask:255.255.255.0 uIP IP TCP UDP ICMP Received 004d 0027 0000 0013 Dropped 0013 0000 0000 0000 IP VHL: 0000 HBL: 0000 LBL: 0000 Frg: 0000 Checksum 0000 0000 0000 ---- TCP ACK: 0000 SYN: 0000 RST: 0000 0000 Type 0000 ---- ---- 0000 Sent ---- 0027 0000 0014 Rexmit ---- 0000 ---- ---- nsh> ls /dev /dev: console mmcsd0 null ttyS0 nsh> date Oct 31 21:39:35 2012 nsh> mw 0 16 0 = 0x2000a22c 4 = 0x08000551 8 = 0x08000191 c = 0x08000199 10 = 0x080001a1 14 = 0x080001a9 nsh>