[    1.035116] m25p80 spi1.0: found mx25l25645g, expected s25fl256s
[    1.041632] 4 cmdlinepart partitions found on MTD device s25fl256s
[    1.048046] Creating 4 MTD partitions on "s25fl256s":
[    1.053268] 0x000000000000-0x000000590000 : "Boot"
[    1.063130] 0x000000590000-0x000000b80000 : "Linux"
[    1.072011] 0x000000b80000-0x000001380000 : "RootFs"
[    1.080736] 0x000001380000-0x000002000000 : "User_Data"
[    1.090130] spi_davinci spi_davinci.1: Controller at 0xfef0e000
[    1.099096] spi_davinci spi_davinci.0: Controller at 0xfec41000


root@UltraLite-AVB:/dev# ls -1 /dev/spidev0.*
/dev/spidev0.0
/dev/spidev0.1
root@UltraLite-AVB:/dev# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00590000 00010000 "Boot"
mtd1: 005f0000 00010000 "Linux"
mtd2: 00800000 00010000 "RootFs"
mtd3: 00c80000 00010000 "User_Data"


root@UltraLite-AVB:/dev# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                   15.5M     14.3M      1.2M  92% /
/dev/root                15.5M     14.3M      1.2M  92% /
tmpfs                    25.3M    132.0K     25.1M   1% /var/volatile
tmpfs                    25.3M         0     25.3M   0% /tmp
/dev/mtdblock3           12.5M    688.0K     11.8M   5% /mnt/user



root@UltraLite-AVB:/dev# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw,relatime,errors=continue)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
tmpfs on /var/volatile type tmpfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime)
/dev/mtdblock3 on /mnt/user type jffs2 (rw,sync,relatime)



##copy out SPI containing the bootloader:
dd if=/dev/mtdblock0 bs=512 count=2 | hexdump -C

#dump 5MB boot partition
dd if=/dev/mtdblock0 of=/mnt/user/bootdump.bin
#tftp it
cd /mnt/user/
tftp -p -l bootdump.bin 192.168.1.8
